diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d3c9d3a4..ffa4636e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # pre-commit install --install-hooks # To update the versions: # pre-commit autoupdate -exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)' +exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg|src/vendor)(/|$)' # Note the order is intentional to avoid multiple passes of the hooks repos: - repo: https://github.com/astral-sh/ruff-pre-commit diff --git a/setup.py b/setup.py index 00c2396c..d8503be7 100755 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ def read(*names, **kwargs): python_requires=">=3.8", install_requires=[ "click~=8.1.7", - "dbt-artifacts-parser @ git+https://github.com/mdesmet/dbt-artifacts-parser.git@2c0810ee557feeeaca66a8c46a0b764bb8f3a0bc", + "pydantic >=2.0,<3.0", "ruamel.yaml~=0.18.6", "tabulate~=0.9.0", "requests>=2.31", diff --git a/src/datapilot/core/platforms/dbt/factory.py b/src/datapilot/core/platforms/dbt/factory.py index 31033b4d..ffde0964 100644 --- a/src/datapilot/core/platforms/dbt/factory.py +++ b/src/datapilot/core/platforms/dbt/factory.py @@ -1,8 +1,4 @@ -# Remove the import of CatalogV1 from dbt_artifacts_parser since we use our custom version -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 - +# Remove the import of CatalogV1 from vendor.dbt_artifacts_parser since we use our custom version from datapilot.core.platforms.dbt.schemas.catalog import Catalog from datapilot.core.platforms.dbt.schemas.catalog import CatalogV1 from datapilot.core.platforms.dbt.schemas.manifest import Manifest @@ -11,6 +7,9 @@ from datapilot.core.platforms.dbt.wrappers.manifest.v11.wrapper import ManifestV11Wrapper from datapilot.core.platforms.dbt.wrappers.manifest.v12.wrapper import ManifestV12Wrapper from datapilot.exceptions.exceptions import AltimateNotSupportedError +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 class DBTFactory: diff --git a/src/datapilot/core/platforms/dbt/schemas/catalog.py b/src/datapilot/core/platforms/dbt/schemas/catalog.py index 92da53ae..923eea31 100644 --- a/src/datapilot/core/platforms/dbt/schemas/catalog.py +++ b/src/datapilot/core/platforms/dbt/schemas/catalog.py @@ -5,10 +5,11 @@ from typing import Optional from typing import Union -from dbt_artifacts_parser.parsers.catalog.catalog_v1 import CatalogV1 as BaseCatalogV1 -from dbt_artifacts_parser.parsers.catalog.catalog_v1 import Metadata as BaseMetadata from pydantic.main import BaseModel +from vendor.dbt_artifacts_parser.parsers.catalog.catalog_v1 import CatalogV1 as BaseCatalogV1 +from vendor.dbt_artifacts_parser.parsers.catalog.catalog_v1 import Metadata as BaseMetadata + class AltimateCatalogMetadata(BaseModel): dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/catalog/v1.json" diff --git a/src/datapilot/core/platforms/dbt/schemas/manifest.py b/src/datapilot/core/platforms/dbt/schemas/manifest.py index 967af335..c5609315 100644 --- a/src/datapilot/core/platforms/dbt/schemas/manifest.py +++ b/src/datapilot/core/platforms/dbt/schemas/manifest.py @@ -5,21 +5,22 @@ from typing import Optional from typing import Union -from dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1 -from dbt_artifacts_parser.parsers.manifest.manifest_v2 import ManifestV2 -from dbt_artifacts_parser.parsers.manifest.manifest_v3 import ManifestV3 -from dbt_artifacts_parser.parsers.manifest.manifest_v4 import ManifestV4 -from dbt_artifacts_parser.parsers.manifest.manifest_v5 import ManifestV5 -from dbt_artifacts_parser.parsers.manifest.manifest_v6 import ManifestV6 -from dbt_artifacts_parser.parsers.manifest.manifest_v7 import ManifestV7 -from dbt_artifacts_parser.parsers.manifest.manifest_v8 import ManifestV8 -from dbt_artifacts_parser.parsers.manifest.manifest_v9 import ManifestV9 -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SupportedLanguage -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 from pydantic import BaseModel +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v2 import ManifestV2 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v3 import ManifestV3 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v4 import ManifestV4 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v5 import ManifestV5 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v6 import ManifestV6 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v7 import ManifestV7 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v8 import ManifestV8 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v9 import ManifestV9 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SupportedLanguage +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 + class DBTVersion(BaseModel): MAJOR: int diff --git a/src/datapilot/core/platforms/dbt/utils.py b/src/datapilot/core/platforms/dbt/utils.py index ac7e9f84..c94610d0 100644 --- a/src/datapilot/core/platforms/dbt/utils.py +++ b/src/datapilot/core/platforms/dbt/utils.py @@ -6,8 +6,6 @@ from typing import Tuple from typing import Union -from dbt_artifacts_parser.parser import parse_manifest - from datapilot.core.platforms.dbt.constants import BASE from datapilot.core.platforms.dbt.constants import FOLDER from datapilot.core.platforms.dbt.constants import INTERMEDIATE @@ -30,6 +28,7 @@ from datapilot.utils.utils import extract_folders_in_path from datapilot.utils.utils import is_superset_path from datapilot.utils.utils import load_json +from vendor.dbt_artifacts_parser.parser import parse_manifest MODEL_TYPE_PATTERNS = { STAGING: r"^stg_.*", # Example: models starting with 'stg_' diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/schemas.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/schemas.py index f01bee66..da1721b0 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/schemas.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/schemas.py @@ -2,21 +2,20 @@ from typing import Type from typing import Union -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import AnalysisNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import Exposure -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import GenericTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import HookNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import Macro -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import ModelNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import RPCNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SeedNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SingularTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SnapshotNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SourceDefinition -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SqlNode - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import SINGULAR +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import AnalysisNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import Exposure +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import GenericTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import HookNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import Macro +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ModelNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import RPCNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SeedNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SingularTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SnapshotNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SourceDefinition +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SqlNode ManifestNode = Union[ AnalysisNode, diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/wrapper.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/wrapper.py index 4f1d8dc4..842f9ad1 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/wrapper.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v10/wrapper.py @@ -2,10 +2,6 @@ from typing import Optional from typing import Set -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import GenericTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 -from dbt_artifacts_parser.parsers.manifest.manifest_v10 import SingularTestNode - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import OTHER_TEST_NODE from datapilot.core.platforms.dbt.constants import SEED @@ -42,6 +38,9 @@ from datapilot.core.platforms.dbt.wrappers.manifest.v10.schemas import SourceNode from datapilot.core.platforms.dbt.wrappers.manifest.v10.schemas import TestNode from datapilot.core.platforms.dbt.wrappers.manifest.wrapper import BaseManifestWrapper +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import GenericTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import SingularTestNode class ManifestV10Wrapper(BaseManifestWrapper): diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/schemas.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/schemas.py index 57a9c330..e213d6b0 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/schemas.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/schemas.py @@ -2,21 +2,20 @@ from typing import Type from typing import Union -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import AnalysisNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import Exposure -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import GenericTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import HookNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import Macro -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import ModelNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import RPCNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SeedNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SingularTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SnapshotNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SourceDefinition -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SqlNode - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import SINGULAR +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import AnalysisNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import Exposure +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import GenericTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import HookNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import Macro +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ModelNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import RPCNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SeedNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SingularTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SnapshotNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SourceDefinition +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SqlNode ManifestNode = Union[ AnalysisNode, diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/wrapper.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/wrapper.py index 64ef8e7f..b9610b3f 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/wrapper.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v11/wrapper.py @@ -2,10 +2,6 @@ from typing import Optional from typing import Set -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import GenericTestNode -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 -from dbt_artifacts_parser.parsers.manifest.manifest_v11 import SingularTestNode - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import OTHER_TEST_NODE from datapilot.core.platforms.dbt.constants import SEED @@ -42,6 +38,9 @@ from datapilot.core.platforms.dbt.wrappers.manifest.v11.schemas import SourceNode from datapilot.core.platforms.dbt.wrappers.manifest.v11.schemas import TestNode from datapilot.core.platforms.dbt.wrappers.manifest.wrapper import BaseManifestWrapper +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import GenericTestNode +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import SingularTestNode class ManifestV11Wrapper(BaseManifestWrapper): diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/schemas.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/schemas.py index b7f1722f..b2122acc 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/schemas.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/schemas.py @@ -2,20 +2,19 @@ from typing import Type from typing import Union -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Exposures -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Macros -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes1 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes2 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes3 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes4 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes5 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes6 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes7 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Sources - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import SINGULAR +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Exposures +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Macros +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes2 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes3 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes4 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes5 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes6 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes7 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Sources ManifestNode = Union[Nodes, Nodes1, Nodes2, Nodes3, Nodes4, Nodes5, Nodes6, Nodes7] diff --git a/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/wrapper.py b/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/wrapper.py index 077dd4fc..d972f4bc 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/wrapper.py +++ b/src/datapilot/core/platforms/dbt/wrappers/manifest/v12/wrapper.py @@ -2,10 +2,6 @@ from typing import Optional from typing import Set -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes2 -from dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes6 - from datapilot.core.platforms.dbt.constants import GENERIC from datapilot.core.platforms.dbt.constants import OTHER_TEST_NODE from datapilot.core.platforms.dbt.constants import SEED @@ -44,6 +40,9 @@ from datapilot.core.platforms.dbt.wrappers.manifest.v12.schemas import SourceNode from datapilot.core.platforms.dbt.wrappers.manifest.v12.schemas import TestNode from datapilot.core.platforms.dbt.wrappers.manifest.wrapper import BaseManifestWrapper +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes2 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import Nodes6 class ManifestV12Wrapper(BaseManifestWrapper): diff --git a/src/datapilot/core/platforms/dbt/wrappers/run_results/run_results.py b/src/datapilot/core/platforms/dbt/wrappers/run_results/run_results.py index 2a550955..e61d1972 100644 --- a/src/datapilot/core/platforms/dbt/wrappers/run_results/run_results.py +++ b/src/datapilot/core/platforms/dbt/wrappers/run_results/run_results.py @@ -1,11 +1,11 @@ from abc import ABC from abc import abstractmethod -from dbt_artifacts_parser.parsers.run_results.run_results_v1 import RunResultsV1 -from dbt_artifacts_parser.parsers.run_results.run_results_v2 import RunResultsV2 -from dbt_artifacts_parser.parsers.run_results.run_results_v3 import RunResultsV3 -from dbt_artifacts_parser.parsers.run_results.run_results_v4 import RunResultsV4 -from dbt_artifacts_parser.parsers.run_results.run_results_v5 import RunResultsV5 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v1 import RunResultsV1 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v2 import RunResultsV2 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v3 import RunResultsV3 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v4 import RunResultsV4 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v5 import RunResultsV5 class BaseRunResultsWrapper(ABC): diff --git a/src/datapilot/utils/utils.py b/src/datapilot/utils/utils.py index 22995b7c..b82b2036 100644 --- a/src/datapilot/utils/utils.py +++ b/src/datapilot/utils/utils.py @@ -9,12 +9,11 @@ from typing import List from typing import Union -from dbt_artifacts_parser.parser import parse_manifest - from datapilot.config.config import load_config from datapilot.core.platforms.dbt.schemas.catalog import CatalogV1 from datapilot.schemas.nodes import ModelNode from datapilot.schemas.nodes import SourceNode +from vendor.dbt_artifacts_parser.parser import parse_manifest def load_json(file_path: str) -> Dict: diff --git a/src/vendor/__init__.py b/src/vendor/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/vendor/dbt_artifacts_parser/__init__.py b/src/vendor/dbt_artifacts_parser/__init__.py new file mode 100644 index 00000000..00f0e3b2 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/__init__.py @@ -0,0 +1,21 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +""" +A dbt artifacts parser in python +""" + +__version__ = "0.9.0" diff --git a/src/vendor/dbt_artifacts_parser/parser.py b/src/vendor/dbt_artifacts_parser/parser.py new file mode 100644 index 00000000..0a7511f5 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parser.py @@ -0,0 +1,347 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from typing import Union + +from vendor.dbt_artifacts_parser.parsers.catalog.catalog_v1 import CatalogV1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v2 import ManifestV2 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v3 import ManifestV3 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v4 import ManifestV4 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v5 import ManifestV5 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v6 import ManifestV6 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v7 import ManifestV7 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v8 import ManifestV8 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v9 import ManifestV9 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v1 import RunResultsV1 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v2 import RunResultsV2 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v3 import RunResultsV3 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v4 import RunResultsV4 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v5 import RunResultsV5 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v6 import RunResultsV6 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v1 import SourcesV1 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v2 import SourcesV2 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v3 import SourcesV3 +from vendor.dbt_artifacts_parser.parsers.utils import get_dbt_schema_version +from vendor.dbt_artifacts_parser.parsers.version_map import ArtifactTypes + + +# +# catalog +# +def parse_catalog(catalog: dict) -> Union[CatalogV1]: + """Parse catalog.json + + Args: + catalog: dict of catalog.json + + Returns: + Union[CatalogV1] + """ + dbt_schema_version = get_dbt_schema_version(artifact_json=catalog) + if dbt_schema_version == ArtifactTypes.CATALOG_V1.value.dbt_schema_version: + return CatalogV1(**catalog) + raise ValueError("Not a catalog.json") + + +def parse_catalog_v1(catalog: dict) -> CatalogV1: + """Parse catalog.json v1""" + dbt_schema_version = get_dbt_schema_version(artifact_json=catalog) + if dbt_schema_version == ArtifactTypes.CATALOG_V1.value.dbt_schema_version: + return CatalogV1(**catalog) + raise ValueError("Not a catalog.json v1") + + +# +# manifest +# +def parse_manifest( + manifest: dict, +) -> Union[ + ManifestV1, + ManifestV2, + ManifestV3, + ManifestV4, + ManifestV5, + ManifestV6, + ManifestV7, + ManifestV8, + ManifestV9, + ManifestV10, + ManifestV11, + ManifestV12, +]: + """Parse manifest.json + + Args: + manifest: A dict of manifest.json + + Returns: + Union[ + ManifestV1, ManifestV2, ManifestV3, ManifestV4, ManifestV5, + ManifestV6, ManifestV7, ManifestV8, ManifestV9, ManifestV10, + ManifestV11, ManifestV12, + ] + """ + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V1.value.dbt_schema_version: + return ManifestV1(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V2.value.dbt_schema_version: + return ManifestV2(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V3.value.dbt_schema_version: + return ManifestV3(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V4.value.dbt_schema_version: + return ManifestV4(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V5.value.dbt_schema_version: + return ManifestV5(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V6.value.dbt_schema_version: + return ManifestV6(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V7.value.dbt_schema_version: + return ManifestV7(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V8.value.dbt_schema_version: + return ManifestV8(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V9.value.dbt_schema_version: + return ManifestV9(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V10.value.dbt_schema_version: + return ManifestV10(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V11.value.dbt_schema_version: + return ManifestV11(**manifest) + elif dbt_schema_version == ArtifactTypes.MANIFEST_V12.value.dbt_schema_version: + return ManifestV12(**manifest) + raise ValueError("Not a manifest.json") + + +def parse_manifest_v1(manifest: dict) -> ManifestV1: + """Parse manifest.json ver.1""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V1.value.dbt_schema_version: + return ManifestV1(**manifest) + raise ValueError("Not a manifest.json v1") + + +def parse_manifest_v2(manifest: dict) -> ManifestV2: + """Parse manifest.json ver.2""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V2.value.dbt_schema_version: + return ManifestV2(**manifest) + raise ValueError("Not a manifest.json v2") + + +def parse_manifest_v3(manifest: dict) -> ManifestV3: + """Parse manifest.json ver.3""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V3.value.dbt_schema_version: + return ManifestV3(**manifest) + raise ValueError("Not a manifest.json v3") + + +def parse_manifest_v4(manifest: dict) -> ManifestV4: + """Parse manifest.json ver.4""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V4.value.dbt_schema_version: + return ManifestV4(**manifest) + raise ValueError("Not a manifest.json v4") + + +def parse_manifest_v5(manifest: dict) -> ManifestV5: + """Parse manifest.json ver.5""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V5.value.dbt_schema_version: + return ManifestV5(**manifest) + raise ValueError("Not a manifest.json v5") + + +def parse_manifest_v6(manifest: dict) -> ManifestV6: + """Parse manifest.json ver.6""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V6.value.dbt_schema_version: + return ManifestV6(**manifest) + raise ValueError("Not a manifest.json v6") + + +def parse_manifest_v7(manifest: dict) -> ManifestV7: + """Parse manifest.json ver.7""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V7.value.dbt_schema_version: + return ManifestV7(**manifest) + raise ValueError("Not a manifest.json v7") + + +def parse_manifest_v8(manifest: dict) -> ManifestV8: + """Parse manifest.json ver.8""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V8.value.dbt_schema_version: + return ManifestV8(**manifest) + raise ValueError("Not a manifest.json v8") + + +def parse_manifest_v9(manifest: dict) -> ManifestV9: + """Parse manifest.json ver.9""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V9.value.dbt_schema_version: + return ManifestV9(**manifest) + raise ValueError("Not a manifest.json v9") + + +def parse_manifest_v10(manifest: dict) -> ManifestV10: + """Parse manifest.json ver.10""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V10.value.dbt_schema_version: + return ManifestV10(**manifest) + raise ValueError("Not a manifest.json v10") + + +def parse_manifest_v11(manifest: dict) -> ManifestV11: + """Parse manifest.json ver.11""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V11.value.dbt_schema_version: + return ManifestV11(**manifest) + raise ValueError("Not a manifest.json v11") + + +def parse_manifest_v12(manifest: dict) -> ManifestV12: + """Parse manifest.json ver.12""" + dbt_schema_version = get_dbt_schema_version(artifact_json=manifest) + if dbt_schema_version == ArtifactTypes.MANIFEST_V12.value.dbt_schema_version: + return ManifestV12(**manifest) + raise ValueError("Not a manifest.json v12") + + +# +# run-results +# +def parse_run_results( + run_results: dict, +) -> Union[RunResultsV1, RunResultsV2, RunResultsV3, RunResultsV4, RunResultsV5, RunResultsV6]: + """Parse run-results.json + + Args: + run_results: A dict of run-results.json + + Returns: + Union[RunResultsV1, RunResultsV2, RunResultsV3, RunResultsV4]: + """ + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V1.value.dbt_schema_version: + return RunResultsV1(**run_results) + elif dbt_schema_version == ArtifactTypes.RUN_RESULTS_V2.value.dbt_schema_version: + return RunResultsV2(**run_results) + elif dbt_schema_version == ArtifactTypes.RUN_RESULTS_V3.value.dbt_schema_version: + return RunResultsV3(**run_results) + elif dbt_schema_version == ArtifactTypes.RUN_RESULTS_V4.value.dbt_schema_version: + return RunResultsV4(**run_results) + elif dbt_schema_version == ArtifactTypes.RUN_RESULTS_V5.value.dbt_schema_version: + return RunResultsV5(**run_results) + elif dbt_schema_version == ArtifactTypes.RUN_RESULTS_V6.value.dbt_schema_version: + return RunResultsV6(**run_results) + raise ValueError("Not a manifest.json") + + +def parse_run_results_v1(run_results: dict) -> RunResultsV1: + """Parse run-results.json v1""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V1.value.dbt_schema_version: + return RunResultsV1(**run_results) + raise ValueError("Not a run-results.json v1") + + +def parse_run_results_v2(run_results: dict) -> RunResultsV2: + """Parse run-results.json v2""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V2.value.dbt_schema_version: + return RunResultsV2(**run_results) + raise ValueError("Not a run-results.json v2") + + +def parse_run_results_v3(run_results: dict) -> RunResultsV3: + """Parse run-results.json v3""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V3.value.dbt_schema_version: + return RunResultsV3(**run_results) + raise ValueError("Not a run-results.json v3") + + +def parse_run_results_v4(run_results: dict) -> RunResultsV4: + """Parse run-results.json v4""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V4.value.dbt_schema_version: + return RunResultsV4(**run_results) + raise ValueError("Not a run-results.json v4") + + +def parse_run_results_v5(run_results: dict) -> RunResultsV5: + """Parse run-results.json v5""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V5.value.dbt_schema_version: + return RunResultsV5(**run_results) + raise ValueError("Not a run-results.json v5") + + +def parse_run_results_v6(run_results: dict) -> RunResultsV6: + """Parse run-results.json v6""" + dbt_schema_version = get_dbt_schema_version(artifact_json=run_results) + if dbt_schema_version == ArtifactTypes.RUN_RESULTS_V6.value.dbt_schema_version: + return RunResultsV6(**run_results) + raise ValueError("Not a run-results.json v6") + + +# +# sources +# +def parse_sources(sources: dict) -> Union[SourcesV1, SourcesV2, SourcesV3]: + """Parse sources.json + + Args: + sources: A dict of sources.json + + Returns: + Union[SourcesV1, SourcesV2, SourcesV3] + """ + dbt_schema_version = get_dbt_schema_version(artifact_json=sources) + if dbt_schema_version == ArtifactTypes.SOURCES_V1.value.dbt_schema_version: + return SourcesV1(**sources) + elif dbt_schema_version == ArtifactTypes.SOURCES_V2.value.dbt_schema_version: + return SourcesV2(**sources) + elif dbt_schema_version == ArtifactTypes.SOURCES_V3.value.dbt_schema_version: + return SourcesV3(**sources) + raise ValueError("Not a manifest.json") + + +def parse_sources_v1(sources: dict) -> SourcesV1: + """Parse sources.json v1""" + dbt_schema_version = get_dbt_schema_version(artifact_json=sources) + if dbt_schema_version == ArtifactTypes.SOURCES_V1.value.dbt_schema_version: + return SourcesV1(**sources) + raise ValueError("Not a sources.json v1") + + +def parse_sources_v2(sources: dict) -> SourcesV2: + """Parse sources.json v2""" + dbt_schema_version = get_dbt_schema_version(artifact_json=sources) + if dbt_schema_version == ArtifactTypes.SOURCES_V2.value.dbt_schema_version: + return SourcesV2(**sources) + raise ValueError("Not a sources.json v2") + + +def parse_sources_v3(sources: dict) -> SourcesV3: + """Parse sources.json v3""" + dbt_schema_version = get_dbt_schema_version(artifact_json=sources) + if dbt_schema_version == ArtifactTypes.SOURCES_V3.value.dbt_schema_version: + return SourcesV3(**sources) + raise ValueError("Not a sources.json v3") diff --git a/src/vendor/dbt_artifacts_parser/parsers/__init__.py b/src/vendor/dbt_artifacts_parser/parsers/__init__.py new file mode 100644 index 00000000..3cfa1915 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/__init__.py @@ -0,0 +1,16 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/src/vendor/dbt_artifacts_parser/parsers/base.py b/src/vendor/dbt_artifacts_parser/parsers/base.py new file mode 100644 index 00000000..faa85fd2 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/base.py @@ -0,0 +1,26 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# pylint: disable=no-name-in-module +# pylint: disable=no-self-argument +from pydantic import BaseModel + + +class BaseParserModel(BaseModel): + """ + The base parser class + """ diff --git a/src/vendor/dbt_artifacts_parser/parsers/catalog/__init__.py b/src/vendor/dbt_artifacts_parser/parsers/catalog/__init__.py new file mode 100644 index 00000000..3cfa1915 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/catalog/__init__.py @@ -0,0 +1,16 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/src/vendor/dbt_artifacts_parser/parsers/catalog/catalog_v1.py b/src/vendor/dbt_artifacts_parser/parsers/catalog/catalog_v1.py new file mode 100644 index 00000000..e8f7cee1 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/catalog/catalog_v1.py @@ -0,0 +1,88 @@ +# generated by datamodel-codegen: +# filename: catalog_v1.json + +from __future__ import annotations + +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class Metadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = None + dbt_version: Optional[str] = "1.9.0b2" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = None + + +class Metadata1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: str + schema_: str = Field(..., alias="schema") + name: str + database: Optional[str] = None + comment: Optional[str] = None + owner: Optional[str] = None + + +class Columns(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: str + index: int + name: str + comment: Optional[str] = None + + +class Stats(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + label: str + value: Optional[Union[bool, str, float]] = None + include: bool + description: Optional[str] = None + + +class Nodes(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata1 = Field(..., title="TableMetadata") + columns: dict[str, Columns] + stats: dict[str, Stats] + unique_id: Optional[str] = None + + +class Sources(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata1 = Field(..., title="TableMetadata") + columns: dict[str, Columns] + stats: dict[str, Stats] + unique_id: Optional[str] = None + + +class CatalogV1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata = Field(..., title="CatalogMetadata") + nodes: dict[str, Nodes] + sources: dict[str, Sources] + errors: Optional[list[str]] = None + field_compile_results: Any = Field(None, alias="_compile_results") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/__init__.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/__init__.py new file mode 100644 index 00000000..3cfa1915 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/__init__.py @@ -0,0 +1,16 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v1.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v1.py new file mode 100644 index 00000000..c8afd6be --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v1.py @@ -0,0 +1,1451 @@ +# generated by datamodel-codegen: +# filename: manifest_v1.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v1.json" + dbt_version: Optional[str] = "0.19.0" + generated_at: Optional[datetime] = "2021-02-10T04:42:33.683996Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "test" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + namespace: Optional[str] = None + name: str + kwargs: dict[str, Any] + + +class ResourceType6(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + quote_columns: Optional[bool] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class ResourceType8(Enum): + analysis = "analysis" + + +class ResourceType9(Enum): + test = "test" + + +class ParsedDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class ResourceType10(Enum): + operation = "operation" + + +class ResourceType11(Enum): + model = "model" + + +class ResourceType12(Enum): + rpc = "rpc" + + +class ResourceType13(Enum): + test = "test" + + +class ParsedSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + + +class ResourceType14(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "quote_columns": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class ResourceType15(Enum): + snapshot = "snapshot" + + +class Strategy(Enum): + timestamp = "timestamp" + + +class TimestampSnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + unique_key: str + target_schema: str + target_database: Optional[str] = None + strategy: Strategy + updated_at: str + + +class Strategy1(Enum): + check = "check" + + +class CheckCols(Enum): + all = "all" + + +class CheckSnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + unique_key: str + target_schema: str + target_database: Optional[str] = None + strategy: Strategy1 + check_cols: Union[CheckCols, list[str]] + + +Strategy2 = BaseParserModel + + +class GenericSnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + unique_key: str + target_schema: str + target_database: Optional[str] = None + strategy: Strategy2 + + +class ResourceType16(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v1.json" + dbt_version: Optional[str] = "0.19.0" + generated_at: Optional[datetime] = "2021-02-10T04:42:33.675309Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType17(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType18(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + docs = "docs" + source = "source" + macro = "macro" + exposure = "exposure" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + + +class CompiledDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "quote_columns": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: Union[TimestampSnapshotConfig, CheckSnapshotConfig, GenericSnapshotConfig] + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType17 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType18] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType16 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + + +class ManifestV1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + list[ + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ] + ] = Field(None, description="A list of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v10.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v10.py new file mode 100644 index 00000000..59d660b1 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v10.py @@ -0,0 +1,1537 @@ +# generated by datamodel-codegen: +# filename: manifest_v10.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v10.json" + dbt_version: Optional[str] = "1.6.0" + generated_at: Optional[datetime] = "2023-08-07T20:10:03.381822Z" + invocation_id: Optional[str] = "03dee192-ff77-43cc-bc3f-5eeaf6d36344" + env: Optional[dict[str, str]] = {} + project_name: Optional[str] = Field(None, description="Name of the root project") + project_id: Optional[str] = Field( + None, + description="A unique identifier for the project, hashed from the project name", + ) + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class OnConfigurationChange(Enum): + apply = "apply" + continue_ = "continue" + fail = "fail" + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class ContractConfig(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + + +class Type(Enum): + check = "check" + not_null = "not_null" + unique = "unique" + primary_key = "primary_key" + foreign_key = "foreign_key" + custom = "custom" + + +class ColumnLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class RefArgs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + package: Optional[str] = None + version: Optional[Union[str, float]] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class Contract(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + checksum: Optional[str] = None + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + operation = "operation" + + +class ResourceType3(Enum): + model = "model" + + +class Access(Enum): + protected = "protected" + private = "private" + public = "public" + + +class ModelLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + columns: Optional[list[str]] = [] + + +class DeferRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql_operation = "sql_operation" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = "apply" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType8(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = "apply" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + quote_columns: Optional[bool] = None + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class ResourceType9(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType10(Enum): + macro = "macro" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ResourceType11(Enum): + doc = "doc" + + +class Documentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType11 + package_name: str + path: str + original_file_path: str + unique_id: str + block_contents: str + + +class ResourceType12(Enum): + exposure = "exposure" + + +class Type2(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class Owner(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + email: Optional[str] = None + name: Optional[str] = None + + +class ExposureConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType13(Enum): + metric = "metric" + + +class Type3(Enum): + simple = "simple" + ratio = "ratio" + cumulative = "cumulative" + derived = "derived" + + +class GrainToDate(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class WhereFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_sql_template: str + + +class OffsetToGrain(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class Granularity(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class MetricTimeWindow(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + granularity: Granularity + + +class FileSlice(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + filename: str + content: str + start_line_number: int + end_line_number: int + + +class MetricConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + group: Optional[str] = None + + +class ResourceType14(Enum): + group = "group" + + +class Group(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType14 + package_name: str + path: str + original_file_path: str + unique_id: str + owner: Owner + + +class ResourceType15(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql_operation = "sql_operation" + doc = "doc" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + group = "group" + semantic_model = "semantic_model" + + +class NodeRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + alias: str + schema_name: str + database: Optional[str] = None + relation_name: Optional[str] = None + + +class Defaults(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + agg_time_dimension: Optional[str] = None + + +class Type4(Enum): + foreign = "foreign" + natural = "natural" + primary = "primary" + unique = "unique" + + +class Entity(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type4 + description: Optional[str] = None + role: Optional[str] = None + expr: Optional[str] = None + + +class Agg(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class MeasureAggregationParameters(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + percentile: Optional[float] = None + use_discrete_percentile: Optional[bool] = False + use_approximate_percentile: Optional[bool] = False + + +class WindowChoice(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class NonAdditiveDimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + window_choice: WindowChoice + window_groupings: list[str] + + +class Type5(Enum): + categorical = "categorical" + time = "time" + + +class TimeGranularity(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class DimensionValidityParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + is_start: Optional[bool] = False + is_end: Optional[bool] = False + + +class SemanticModelConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = "apply" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + constraints: Optional[list[ColumnLevelConstraint]] = [] + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class SingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType1 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.389955 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class HookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType2 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.3916101 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + index: Optional[int] = None + + +class ModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType3 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.393298 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + access: Optional[Access] = "protected" + constraints: Optional[list[ModelLevelConstraint]] = [] + version: Optional[Union[str, float]] = None + latest_version: Optional[Union[str, float]] = None + deprecation_date: Optional[datetime] = None + defer_relation: Optional[DeferRelation] = None + + +class RPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType4 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.39583 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class SqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType5 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.3974268 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class GenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType6 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.399393 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None + + +class SnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType7 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.4026701 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + defer_relation: Optional[DeferRelation] = None + + +class SeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType8 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "seed", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.4056058 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + root_path: Optional[str] = None + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + defer_relation: Optional[DeferRelation] = None + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[ExternalPartition]]] = None + + +class Macro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType10 + package_name: str + path: str + original_file_path: str + unique_id: str + macro_sql: str + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1691439003.409885 + supported_languages: Optional[list[SupportedLanguage]] = None + + +class Exposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType12 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type2 + owner: Owner + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[ExposureConfig] = Field(default_factory=lambda: ExposureConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1691439003.411563 + + +class MetricInputMeasure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[WhereFilter] = None + alias: Optional[str] = None + + +class MetricInput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[WhereFilter] = None + alias: Optional[str] = None + offset_window: Optional[MetricTimeWindow] = None + offset_to_grain: Optional[OffsetToGrain] = None + + +class SourceFileMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice + + +class Measure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + agg: Agg + description: Optional[str] = None + create_metric: Optional[bool] = False + expr: Optional[str] = None + agg_params: Optional[MeasureAggregationParameters] = None + non_additive_dimension: Optional[NonAdditiveDimension] = None + agg_time_dimension: Optional[str] = None + + +class DimensionTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + time_granularity: TimeGranularity + validity_params: Optional[DimensionValidityParams] = None + + +class AnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1691439003.386713 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class SourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType9 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1691439003.408927 + + +class MetricTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + measure: Optional[MetricInputMeasure] = None + input_measures: Optional[list[MetricInputMeasure]] = [] + numerator: Optional[MetricInput] = None + denominator: Optional[MetricInput] = None + expr: Optional[str] = None + window: Optional[MetricTimeWindow] = None + grain_to_date: Optional[GrainToDate] = None + metrics: Optional[list[MetricInput]] = None + + +class Dimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type5 + description: Optional[str] = None + is_partition: Optional[bool] = False + type_params: Optional[DimensionTypeParams] = None + expr: Optional[str] = None + metadata: Optional[SourceFileMetadata] = None + + +class Metric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType13 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + type: Type3 + type_params: MetricTypeParams + filter: Optional[WhereFilter] = None + metadata: Optional[SourceFileMetadata] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[MetricConfig] = Field(default_factory=lambda: MetricConfig.model_validate({"enabled": True, "group": None})) + unrendered_config: Optional[dict[str, Any]] = {} + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[RefArgs]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1691439003.41419 + group: Optional[str] = None + + +class SemanticModel(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType15 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + model: str + node_relation: Optional[NodeRelation] = None + description: Optional[str] = None + defaults: Optional[Defaults] = None + entities: Optional[list[Entity]] = [] + measures: Optional[list[Measure]] = [] + dimensions: Optional[list[Dimension]] = [] + metadata: Optional[SourceFileMetadata] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[RefArgs]] = [] + created_at: Optional[float] = 1691439003.4182558 + config: Optional[SemanticModelConfig] = Field(default_factory=lambda: SemanticModelConfig.model_validate({"enabled": True})) + primary_entity: Optional[str] = None + + +class ManifestV10(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, SourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, Macro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, Documentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, Exposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, Metric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + groups: dict[str, Group] = Field(..., description="The groups defined in the dbt project") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + SourceDefinition, + Exposure, + Metric, + SemanticModel, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") + group_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from group names to their nodes") + semantic_models: dict[str, SemanticModel] = Field(..., description="The semantic models defined in the dbt project") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v11.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v11.py new file mode 100644 index 00000000..03257599 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v11.py @@ -0,0 +1,1420 @@ +# generated by datamodel-codegen: +# filename: manifest_v11.json + +from __future__ import annotations + +from enum import Enum +from typing import Any +from typing import Literal +from typing import Optional +from typing import Union +from uuid import UUID + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = None + dbt_version: Optional[str] = "1.8.0a1" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = None + project_name: Optional[str] = Field(None, description="Name of the root project") + project_id: Optional[str] = Field( + None, + description="A unique identifier for the project, hashed from the project name", + ) + user_id: Optional[UUID] = Field(None, description="A unique identifier for the user") + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class ContractConfig(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class OnConfigurationChange(Enum): + apply = "apply" + continue_ = "continue" + fail = "fail" + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[Hook]] = Field(None, alias="post-hook") + pre_hook: Optional[list[Hook]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = None + contract: Optional[ContractConfig] = None + + +class Type(Enum): + check = "check" + not_null = "not_null" + unique = "unique" + primary_key = "primary_key" + foreign_key = "foreign_key" + custom = "custom" + + +class ColumnLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[ColumnLevelConstraint]] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + + +class RefArgs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + package: Optional[str] = None + version: Optional[Union[str, float]] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + nodes: Optional[list[str]] = None + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class Contract(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class AnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["analysis"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + store_failures_as: Optional[str] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class SingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + + +class HookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + index: Optional[int] = None + + +class Access(Enum): + private = "private" + protected = "protected" + public = "public" + + +class ModelConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[Hook]] = Field(None, alias="post-hook") + pre_hook: Optional[list[Hook]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = None + contract: Optional[ContractConfig] = None + access: Optional[Access] = "protected" + + +class ModelLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + columns: Optional[list[str]] = None + + +class DeferRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + + +class ModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["model"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[ModelConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + access: Optional[Access] = "protected" + constraints: Optional[list[ModelLevelConstraint]] = None + version: Optional[Union[str, float]] = None + latest_version: Optional[Union[str, float]] = None + deprecation_date: Optional[str] = None + defer_relation: Optional[DeferRelation] = None + + +class RPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["rpc"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + + +class SqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["sql_operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = None + namespace: Optional[str] = None + + +class GenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[Hook]] = Field(None, alias="post-hook") + pre_hook: Optional[list[Hook]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = None + contract: Optional[ContractConfig] = None + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class SnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["snapshot"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: SnapshotConfig + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract] = None + defer_relation: Optional[DeferRelation] = None + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[Hook]] = Field(None, alias="post-hook") + pre_hook: Optional[list[Hook]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = None + contract: Optional[ContractConfig] = None + delimiter: Optional[str] = "," + quote_columns: Optional[bool] = None + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + + +class SeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["seed"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[SeedConfig] = None + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + root_path: Optional[str] = None + depends_on: Optional[MacroDependsOn] = None + defer_relation: Optional[DeferRelation] = None + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[ExternalPartition]]] = None + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + + +class SourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["source"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + field_event_status: Optional[dict[str, Any]] = Field(None, alias="_event_status") + quoting: Optional[Quoting] = None + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = None + meta: Optional[dict[str, Any]] = None + source_meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[SourceConfig] = None + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + created_at: Optional[float] = None + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class Macro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["macro"] + package_name: str + path: str + original_file_path: str + unique_id: str + macro_sql: str + depends_on: Optional[MacroDependsOn] = None + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + docs: Optional[Docs] = None + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = None + created_at: Optional[float] = None + supported_languages: Optional[list[SupportedLanguage]] = None + + +class Documentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["doc"] + package_name: str + path: str + original_file_path: str + unique_id: str + block_contents: str + + +class Owner(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + email: Optional[str] = None + name: Optional[str] = None + + +class ExposureConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + + +class Type2(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class Exposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["exposure"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type2 + owner: Owner + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[ExposureConfig] = None + unrendered_config: Optional[dict[str, Any]] = None + url: Optional[str] = None + depends_on: Optional[DependsOn] = None + refs: Optional[list[RefArgs]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + + +class WhereFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_sql_template: str + + +class WhereFilterIntersection(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class MetricInputMeasure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[WhereFilterIntersection] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Granularity(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class MetricTimeWindow(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + granularity: Granularity + + +class OffsetToGrain(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class MetricInput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[WhereFilterIntersection] = None + alias: Optional[str] = None + offset_window: Optional[MetricTimeWindow] = None + offset_to_grain: Optional[OffsetToGrain] = None + + +class GrainToDate(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class MetricTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + measure: Optional[MetricInputMeasure] = None + input_measures: Optional[list[MetricInputMeasure]] = None + numerator: Optional[MetricInput] = None + denominator: Optional[MetricInput] = None + expr: Optional[str] = None + window: Optional[MetricTimeWindow] = None + grain_to_date: Optional[GrainToDate] = None + metrics: Optional[list[MetricInput]] = None + + +class FileSlice(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + filename: str + content: str + start_line_number: int + end_line_number: int + + +class SourceFileMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice + + +class MetricConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + + +class Type3(Enum): + simple = "simple" + ratio = "ratio" + cumulative = "cumulative" + derived = "derived" + + +class Metric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["metric"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + type: Type3 + type_params: MetricTypeParams + filter: Optional[WhereFilterIntersection] = None + metadata: Optional[SourceFileMetadata] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[MetricConfig] = None + unrendered_config: Optional[dict[str, Any]] = None + sources: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn] = None + refs: Optional[list[RefArgs]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + group: Optional[str] = None + + +class Group(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["group"] + package_name: str + path: str + original_file_path: str + unique_id: str + owner: Owner + + +class QueryParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metrics: list[str] + group_by: list[str] + where: Optional[WhereFilterIntersection] = None + + +class ExportAs(Enum): + table = "table" + view = "view" + + +class ExportConfig(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + export_as: ExportAs + schema_name: Optional[str] = None + alias: Optional[str] = None + + +class Export(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + config: ExportConfig + + +class SavedQueryConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class ResourceType(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql_operation = "sql_operation" + doc = "doc" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + group = "group" + saved_query = "saved_query" + semantic_model = "semantic_model" + + +class SavedQuery(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + query_params: QueryParams + exports: list[Export] + description: Optional[str] = None + label: Optional[str] = None + metadata: Optional[SourceFileMetadata] = None + config: Optional[SavedQueryConfig] = None + unrendered_config: Optional[dict[str, Any]] = None + group: Optional[str] = None + depends_on: Optional[DependsOn] = None + created_at: Optional[float] = None + refs: Optional[list[RefArgs]] = None + + +class NodeRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + alias: str + schema_name: str + database: Optional[str] = None + relation_name: Optional[str] = None + + +class Defaults(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + agg_time_dimension: Optional[str] = None + + +class Type4(Enum): + foreign = "foreign" + natural = "natural" + primary = "primary" + unique = "unique" + + +class Entity(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type4 + description: Optional[str] = None + label: Optional[str] = None + role: Optional[str] = None + expr: Optional[str] = None + + +class MeasureAggregationParameters(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + percentile: Optional[float] = None + use_discrete_percentile: Optional[bool] = False + use_approximate_percentile: Optional[bool] = False + + +class WindowChoice(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class NonAdditiveDimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + window_choice: WindowChoice + window_groupings: list[str] + + +class Agg(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class Measure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + agg: Agg + description: Optional[str] = None + label: Optional[str] = None + create_metric: Optional[bool] = False + expr: Optional[str] = None + agg_params: Optional[MeasureAggregationParameters] = None + non_additive_dimension: Optional[NonAdditiveDimension] = None + agg_time_dimension: Optional[str] = None + + +class DimensionValidityParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + is_start: Optional[bool] = False + is_end: Optional[bool] = False + + +class TimeGranularity(Enum): + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class DimensionTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + time_granularity: TimeGranularity + validity_params: Optional[DimensionValidityParams] = None + + +class Type5(Enum): + categorical = "categorical" + time = "time" + + +class Dimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type5 + description: Optional[str] = None + label: Optional[str] = None + is_partition: Optional[bool] = False + type_params: Optional[DimensionTypeParams] = None + expr: Optional[str] = None + metadata: Optional[SourceFileMetadata] = None + + +class SemanticModelConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class SemanticModel(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + model: str + node_relation: Optional[NodeRelation] = None + description: Optional[str] = None + label: Optional[str] = None + defaults: Optional[Defaults] = None + entities: Optional[list[Entity]] = None + measures: Optional[list[Measure]] = None + dimensions: Optional[list[Dimension]] = None + metadata: Optional[SourceFileMetadata] = None + depends_on: Optional[DependsOn] = None + refs: Optional[list[RefArgs]] = None + created_at: Optional[float] = None + config: Optional[SemanticModelConfig] = None + unrendered_config: Optional[dict[str, Any]] = None + primary_entity: Optional[str] = None + group: Optional[str] = None + + +class ManifestV11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, SourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, Macro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, Documentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, Exposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, Metric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + groups: dict[str, Group] = Field(..., description="The groups defined in the dbt project") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + SourceDefinition, + Exposure, + Metric, + SavedQuery, + SemanticModel, + ] + ], + ] + ] = Field(..., description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from parent nodes to their dependents") + group_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from group names to their nodes") + saved_queries: dict[str, SavedQuery] = Field(..., description="The saved queries defined in the dbt project") + semantic_models: dict[str, SemanticModel] = Field(..., description="The semantic models defined in the dbt project") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v12.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v12.py new file mode 100644 index 00000000..b00b3324 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v12.py @@ -0,0 +1,4434 @@ +# generated by datamodel-codegen: +# filename: manifest_v12.json + +from __future__ import annotations + +from enum import Enum +from typing import Any +from typing import Literal +from typing import Optional +from typing import Union +from uuid import UUID + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class Metadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = None + dbt_version: Optional[str] = "1.10.0b3" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + invocation_started_at: Optional[str] = None + env: Optional[dict[str, str]] = None + project_name: Optional[str] = Field(None, description="Name of the root project") + project_id: Optional[str] = Field( + None, + description="A unique identifier for the project, hashed from the project name", + ) + user_id: Optional[UUID] = Field(None, description="A unique identifier for the user") + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + quoting: Optional[Quoting] = Field(None, description="The quoting configuration for the project") + run_started_at: Optional[str] = Field(None, description="Timestamp when the dbt run started") + + +class Checksum(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class PostHookItem(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class PreHookItem(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class OnConfigurationChange(Enum): + apply = "apply" + continue_ = "continue" + fail = "fail" + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class Contract(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + delimiter: Optional[str] = "," + quote_columns: Optional[bool] = None + + +class Type(Enum): + check = "check" + not_null = "not_null" + unique = "unique" + primary_key = "primary_key" + foreign_key = "foreign_key" + custom = "custom" + + +class Constraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config1(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Granularity(Enum): + nanosecond = "nanosecond" + microsecond = "microsecond" + millisecond = "millisecond" + second = "second" + minute = "minute" + hour = "hour" + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class Columns(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint]] = None + quote: Optional[bool] = None + config: Optional[Config1] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + + +class ResourceType(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql_operation = "sql_operation" + doc = "doc" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + group = "group" + saved_query = "saved_query" + semantic_model = "semantic_model" + unit_test = "unit_test" + fixture = "fixture" + + +class Config2(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config2] = None + + +class Nodes(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["seed"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config] = Field(None, title="SeedConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + root_path: Optional[str] = None + depends_on: Optional[DependsOn] = Field(None, title="MacroDependsOn") + defer_relation: Optional[DeferRelation] = None + + +class Config3(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config4(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns1(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint1]] = None + quote: Optional[bool] = None + config: Optional[Config4] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Ref(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + package: Optional[str] = None + version: Optional[Union[str, float]] = None + + +class DependsOn1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + nodes: Optional[list[str]] = None + + +class ExtraCte(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class Contract3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Nodes1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["analysis"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config3] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns1]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract3] = Field(None, title="Contract") + + +class Config5(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + store_failures_as: Optional[str] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class Constraint2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config6(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns2(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint2]] = None + quote: Optional[bool] = None + config: Optional[Config6] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Nodes2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config5] = Field(None, title="TestConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns2]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract3] = Field(None, title="Contract") + functions: Optional[list[str]] = None + + +class Contract5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config7(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract5] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config8(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns3(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint3]] = None + quote: Optional[bool] = None + config: Optional[Config8] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Nodes3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config7] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns3]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract6] = Field(None, title="Contract") + index: Optional[int] = None + functions: Optional[list[str]] = None + + +class Contract7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Access(Enum): + private = "private" + protected = "protected" + public = "public" + + +class UpdatesOn(Enum): + all = "all" + any = "any" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class BuildAfter(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + updates_on: Optional[UpdatesOn] = "any" + count: Optional[int] = 0 + period: Optional[Period] = "hour" + + +class Freshness(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + build_after: Optional[BuildAfter] = Field(None, title="ModelBuildAfter") + + +class Config9(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract7] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + access: Optional[Access] = "protected" + freshness: Optional[Freshness] = None + + +class Constraint4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config10(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns4(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint4]] = None + quote: Optional[bool] = None + config: Optional[Config10] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Constraint5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + columns: Optional[list[str]] = None + + +class Contract9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config11(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract9] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config11] = None + + +class CustomGranularity(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + column_name: Optional[str] = None + + +class TimeSpine(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + standard_granularity_column: str + custom_granularities: Optional[list[CustomGranularity]] = None + + +class BuildAfter1(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + updates_on: Optional[UpdatesOn] = "any" + count: Optional[int] = 0 + period: Optional[Period] = "hour" + + +class Freshness1(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + build_after: Optional[BuildAfter1] = Field(None, title="ModelBuildAfter") + + +class Nodes4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["model"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config9] = Field(None, title="ModelConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns4]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract8] = Field(None, title="Contract") + access: Optional[Access] = "protected" + constraints: Optional[list[Constraint5]] = None + version: Optional[Union[str, float]] = None + latest_version: Optional[Union[str, float]] = None + deprecation_date: Optional[str] = None + defer_relation: Optional[DeferRelation1] = None + primary_key: Optional[list[str]] = None + time_spine: Optional[TimeSpine] = None + freshness: Optional[Freshness1] = None + functions: Optional[list[str]] = None + + +class Config12(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract9] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config13(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns5(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint6]] = None + quote: Optional[bool] = None + config: Optional[Config13] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Nodes5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["sql_operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config12] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns5]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract11] = Field(None, title="Contract") + + +class Config14(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + store_failures_as: Optional[str] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class Constraint7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config15(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns6(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint7]] = None + quote: Optional[bool] = None + config: Optional[Config15] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: Optional[str] = "test" + kwargs: Optional[dict[str, Any]] = None + namespace: Optional[str] = None + + +class Nodes6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config14] = Field(None, title="TestConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns6]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract11] = Field(None, title="Contract") + functions: Optional[list[str]] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None + test_metadata: Optional[TestMetadata] = Field(None, title="TestMetadata") + + +class Contract13(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class SnapshotMetaColumnNames(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_valid_to: Optional[str] = None + dbt_valid_from: Optional[str] = None + dbt_scd_id: Optional[str] = None + dbt_updated_at: Optional[str] = None + dbt_is_deleted: Optional[str] = None + + +class Config16(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract13] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + snapshot_meta_column_names: Optional[SnapshotMetaColumnNames] = Field(None, title="SnapshotMetaColumnNames") + dbt_valid_to_current: Optional[str] = None + + +class Constraint8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config17(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns7(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint8]] = None + quote: Optional[bool] = None + config: Optional[Config17] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract14(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Contract15(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config18(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs] = Field(None, title="Docs") + contract: Optional[Contract15] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config18] = None + + +class Nodes7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["snapshot"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Config16 = Field(..., title="SnapshotConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns7]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn1] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract14] = Field(None, title="Contract") + defer_relation: Optional[DeferRelation2] = None + functions: Optional[list[str]] = None + + +class WarnAfter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ErrorAfter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class Freshness2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[WarnAfter] = None + error_after: Optional[ErrorAfter] = None + filter: Optional[str] = None + + +class Partition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + + +class External(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[Partition]]] = None + + +class Constraint9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config19(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns8(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint9]] = None + quote: Optional[bool] = None + config: Optional[Config19] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class WarnAfter1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ErrorAfter1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class Freshness3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[WarnAfter1] = None + error_after: Optional[ErrorAfter1] = None + filter: Optional[str] = None + + +class Config20(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + event_time: Optional[Any] = None + freshness: Optional[Freshness3] = None + + +class Sources(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["source"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + quoting: Optional[Quoting] = Field(None, title="Quoting") + loaded_at_field: Optional[str] = None + loaded_at_query: Optional[str] = None + freshness: Optional[Freshness2] = None + external: Optional[External] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns8]] = None + meta: Optional[dict[str, Any]] = None + source_meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config20] = Field(None, title="SourceConfig") + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + created_at: Optional[float] = None + unrendered_database: Optional[str] = None + unrendered_schema: Optional[str] = None + doc_blocks: Optional[list[str]] = None + + +class DependsOn8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + + +class Argument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class Macros(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["macro"] + package_name: str + path: str + original_file_path: str + unique_id: str + macro_sql: str + depends_on: Optional[DependsOn8] = Field(None, title="MacroDependsOn") + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + docs: Optional[Docs] = Field(None, title="Docs") + patch_path: Optional[str] = None + arguments: Optional[list[Argument]] = None + created_at: Optional[float] = None + supported_languages: Optional[list[SupportedLanguage]] = None + + +class Docs18(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["doc"] + package_name: str + path: str + original_file_path: str + unique_id: str + block_contents: str + + +class Type10(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Owner(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + email: Optional[Union[str, list[str]]] = None + name: Optional[str] = None + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class Config21(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + tags: Optional[list[str]] = None + meta: Optional[dict[str, Any]] = None + + +class DependsOn9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + nodes: Optional[list[str]] = None + + +class Exposures(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["exposure"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type10 + owner: Owner = Field(..., title="Owner") + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config21] = Field(None, title="ExposureConfig") + unrendered_config: Optional[dict[str, Any]] = None + url: Optional[str] = None + depends_on: Optional[DependsOn9] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + + +class Type11(Enum): + simple = "simple" + ratio = "ratio" + cumulative = "cumulative" + derived = "derived" + conversion = "conversion" + + +class WhereFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_sql_template: str + + +class Filter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Measure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class InputMeasure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter1] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class OffsetWindow(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + granularity: str + + +class Numerator(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter2] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Filter3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Denominator(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter3] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Window(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + granularity: str + + +class GrainToDate(Enum): + nanosecond = "nanosecond" + microsecond = "microsecond" + millisecond = "millisecond" + second = "second" + minute = "minute" + hour = "hour" + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class Filter4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Metric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter4] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Filter5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class BaseMeasure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter5] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class ConversionMeasure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter6] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Calculation(Enum): + conversions = "conversions" + conversion_rate = "conversion_rate" + + +class ConstantProperty(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + base_property: str + conversion_property: str + + +class ConversionTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + base_measure: BaseMeasure = Field(..., title="MetricInputMeasure") + conversion_measure: ConversionMeasure = Field(..., title="MetricInputMeasure") + entity: str + calculation: Optional[Calculation] = "conversion_rate" + window: Optional[Window] = None + constant_properties: Optional[list[ConstantProperty]] = None + + +class PeriodAgg(Enum): + first = "first" + last = "last" + average = "average" + + +class CumulativeTypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + window: Optional[Window] = None + grain_to_date: Optional[str] = None + period_agg: Optional[PeriodAgg] = "first" + + +class TypeParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + measure: Optional[Measure] = None + input_measures: Optional[list[InputMeasure]] = None + numerator: Optional[Numerator] = None + denominator: Optional[Denominator] = None + expr: Optional[str] = None + window: Optional[Window] = None + grain_to_date: Optional[GrainToDate] = None + metrics: Optional[list[Metric]] = None + conversion_type_params: Optional[ConversionTypeParams] = None + cumulative_type_params: Optional[CumulativeTypeParams] = None + + +class Filter7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class FileSlice(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + filename: str + content: str + start_line_number: int + end_line_number: int + + +class Metadata1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Config22(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class Metrics(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["metric"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + type: Type11 + type_params: TypeParams = Field(..., title="MetricTypeParams") + filter: Optional[Filter7] = None + metadata: Optional[Metadata1] = None + time_granularity: Optional[str] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config22] = Field(None, title="MetricConfig") + unrendered_config: Optional[dict[str, Any]] = None + sources: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn9] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + group: Optional[str] = None + + +class Config23(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + + +class Groups(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["group"] + package_name: str + path: str + original_file_path: str + unique_id: str + owner: Owner = Field(..., title="Owner") + description: Optional[str] = None + config: Optional[Config23] = Field(None, title="GroupConfig") + + +class Docs19(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class Config24(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract15] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + delimiter: Optional[str] = "," + quote_columns: Optional[bool] = None + + +class Type12(Enum): + check = "check" + not_null = "not_null" + unique = "unique" + primary_key = "primary_key" + foreign_key = "foreign_key" + custom = "custom" + + +class Constraint10(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config25(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns9(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint10]] = None + quote: Optional[bool] = None + config: Optional[Config25] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class DependsOn11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + + +class Config26(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract15] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config26] = None + + +class Disabled(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["seed"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config24] = Field(None, title="SeedConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns9]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + root_path: Optional[str] = None + depends_on: Optional[DependsOn11] = Field(None, title="MacroDependsOn") + defer_relation: Optional[DeferRelation3] = None + + +class Config27(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract15] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config28(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns10(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint11]] = None + quote: Optional[bool] = None + config: Optional[Config28] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class DependsOn12(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = None + nodes: Optional[list[str]] = None + + +class Contract19(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Disabled1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["analysis"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config27] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns10]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract19] = Field(None, title="Contract") + + +class Config29(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + store_failures_as: Optional[str] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class Constraint12(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config30(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns11(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint12]] = None + quote: Optional[bool] = None + config: Optional[Config30] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Disabled2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config29] = Field(None, title="TestConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns11]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract19] = Field(None, title="Contract") + + +class Contract21(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config31(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract21] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint13(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config32(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns12(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint13]] = None + quote: Optional[bool] = None + config: Optional[Config32] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract22(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Disabled3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config31] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns12]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract22] = Field(None, title="Contract") + index: Optional[int] = None + + +class Contract23(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class BuildAfter2(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + updates_on: Optional[UpdatesOn] = "any" + count: Optional[int] = 0 + period: Optional[Period] = "hour" + + +class Freshness4(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + build_after: Optional[BuildAfter2] = Field(None, title="ModelBuildAfter") + + +class Config33(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract23] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + access: Optional[Access] = "protected" + freshness: Optional[Freshness4] = None + + +class Constraint14(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config34(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns13(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint14]] = None + quote: Optional[bool] = None + config: Optional[Config34] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract24(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Constraint15(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + columns: Optional[list[str]] = None + + +class Contract25(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config35(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract25] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config35] = None + + +class TimeSpine1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + standard_granularity_column: str + custom_granularities: Optional[list[CustomGranularity]] = None + + +class BuildAfter3(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + updates_on: Optional[UpdatesOn] = "any" + count: Optional[int] = 0 + period: Optional[Period] = "hour" + + +class Freshness5(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + build_after: Optional[BuildAfter3] = Field(None, title="ModelBuildAfter") + + +class Disabled4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["model"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config33] = Field(None, title="ModelConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns13]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract24] = Field(None, title="Contract") + functions: Optional[list[str]] = None + access: Optional[Access] = "protected" + constraints: Optional[list[Constraint15]] = None + version: Optional[Union[str, float]] = None + latest_version: Optional[Union[str, float]] = None + deprecation_date: Optional[str] = None + defer_relation: Optional[DeferRelation4] = None + primary_key: Optional[list[str]] = None + time_spine: Optional[TimeSpine1] = None + freshness: Optional[Freshness5] = None + + +class Config36(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract25] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class Constraint16(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config37(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns14(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint16]] = None + quote: Optional[bool] = None + config: Optional[Config37] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract27(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Disabled5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["sql_operation"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config36] = Field(None, title="NodeConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns14]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract27] = Field(None, title="Contract") + + +class Config38(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + store_failures_as: Optional[str] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class Constraint17(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config39(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns15(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint17]] = None + quote: Optional[bool] = None + config: Optional[Config39] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Disabled6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["test"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Optional[Config38] = Field(None, title="TestConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns15]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract27] = Field(None, title="Contract") + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None + test_metadata: Optional[TestMetadata] = Field(None, title="TestMetadata") + + +class Contract29(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config40(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract29] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + snapshot_meta_column_names: Optional[SnapshotMetaColumnNames] = Field(None, title="SnapshotMetaColumnNames") + dbt_valid_to_current: Optional[str] = None + + +class Constraint18(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config41(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns16(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint18]] = None + quote: Optional[bool] = None + config: Optional[Config41] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class Contract30(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Contract31(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config42(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + batch_size: Optional[Any] = None + lookback: Optional[Any] = 1 + begin: Optional[Any] = None + persist_docs: Optional[dict[str, Any]] = None + post_hook: Optional[list[PostHookItem]] = Field(None, alias="post-hook") + pre_hook: Optional[list[PreHookItem]] = Field(None, alias="pre-hook") + quoting: Optional[dict[str, Any]] = None + column_types: Optional[dict[str, Any]] = None + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + on_configuration_change: Optional[OnConfigurationChange] = None + grants: Optional[dict[str, Any]] = None + packages: Optional[list[str]] = None + docs: Optional[Docs19] = Field(None, title="Docs") + contract: Optional[Contract31] = Field(None, title="ContractConfig") + event_time: Optional[Any] = None + concurrent_batches: Optional[Any] = None + + +class DeferRelation5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + alias: str + relation_name: Optional[str] = None + resource_type: ResourceType + name: str + description: str + compiled_code: Optional[str] = None + meta: dict[str, Any] + tags: list[str] + config: Optional[Config42] = None + + +class Disabled7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["snapshot"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: Checksum = Field(..., title="FileHash") + config: Config40 = Field(..., title="SnapshotConfig") + tags: Optional[list[str]] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns16]] = None + meta: Optional[dict[str, Any]] = None + group: Optional[str] = None + docs: Optional[Docs19] = Field(None, title="Docs") + patch_path: Optional[str] = None + build_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + created_at: Optional[float] = None + config_call_dict: Optional[dict[str, Any]] = None + unrendered_config_call_dict: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + doc_blocks: Optional[list[str]] = None + language: Optional[str] = "sql" + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[ExtraCte]] = None + field_pre_injected_sql: Optional[str] = Field(None, alias="_pre_injected_sql") + contract: Optional[Contract30] = Field(None, title="Contract") + defer_relation: Optional[DeferRelation5] = None + + +class WarnAfter2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ErrorAfter2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class Freshness6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[WarnAfter2] = None + error_after: Optional[ErrorAfter2] = None + filter: Optional[str] = None + + +class External1(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[Partition]]] = None + + +class Constraint19(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type12 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + to: Optional[str] = None + to_columns: Optional[list[str]] = None + + +class Config43(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + + +class Columns17(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[list[Constraint19]] = None + quote: Optional[bool] = None + config: Optional[Config43] = Field(None, title="ColumnConfig") + tags: Optional[list[str]] = None + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + granularity: Optional[Granularity] = None + doc_blocks: Optional[list[str]] = None + + +class WarnAfter3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ErrorAfter3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class Freshness7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[WarnAfter3] = None + error_after: Optional[ErrorAfter3] = None + filter: Optional[str] = None + + +class Config44(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + event_time: Optional[Any] = None + freshness: Optional[Freshness7] = None + + +class Disabled8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: Literal["source"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + quoting: Optional[Quoting] = Field(None, title="Quoting") + loaded_at_field: Optional[str] = None + loaded_at_query: Optional[str] = None + freshness: Optional[Freshness6] = None + external: Optional[External1] = None + description: Optional[str] = "" + columns: Optional[dict[str, Columns17]] = None + meta: Optional[dict[str, Any]] = None + source_meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config44] = Field(None, title="SourceConfig") + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = None + relation_name: Optional[str] = None + created_at: Optional[float] = None + unrendered_database: Optional[str] = None + unrendered_schema: Optional[str] = None + doc_blocks: Optional[list[str]] = None + + +class Type22(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Config45(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + tags: Optional[list[str]] = None + meta: Optional[dict[str, Any]] = None + + +class Disabled9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["exposure"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type22 + owner: Owner = Field(..., title="Owner") + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config45] = Field(None, title="ExposureConfig") + unrendered_config: Optional[dict[str, Any]] = None + url: Optional[str] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + sources: Optional[list[list[str]]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + + +class Type23(Enum): + simple = "simple" + ratio = "ratio" + cumulative = "cumulative" + derived = "derived" + conversion = "conversion" + + +class Filter8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Measure1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter8] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class InputMeasure1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter9] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter10(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Numerator1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter10] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Filter11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Denominator1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter11] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Filter12(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Metric1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter12] = None + alias: Optional[str] = None + offset_window: Optional[OffsetWindow] = None + offset_to_grain: Optional[str] = None + + +class Filter13(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class BaseMeasure1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter13] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class Filter14(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class ConversionMeasure1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + filter: Optional[Filter14] = None + alias: Optional[str] = None + join_to_timespine: Optional[bool] = False + fill_nulls_with: Optional[int] = None + + +class ConversionTypeParams1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + base_measure: BaseMeasure1 = Field(..., title="MetricInputMeasure") + conversion_measure: ConversionMeasure1 = Field(..., title="MetricInputMeasure") + entity: str + calculation: Optional[Calculation] = "conversion_rate" + window: Optional[Window] = None + constant_properties: Optional[list[ConstantProperty]] = None + + +class CumulativeTypeParams1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + window: Optional[Window] = None + grain_to_date: Optional[str] = None + period_agg: Optional[PeriodAgg] = "first" + + +class TypeParams1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + measure: Optional[Measure1] = None + input_measures: Optional[list[InputMeasure1]] = None + numerator: Optional[Numerator1] = None + denominator: Optional[Denominator1] = None + expr: Optional[str] = None + window: Optional[Window] = None + grain_to_date: Optional[GrainToDate] = None + metrics: Optional[list[Metric1]] = None + conversion_type_params: Optional[ConversionTypeParams1] = None + cumulative_type_params: Optional[CumulativeTypeParams1] = None + + +class Filter15(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class Metadata2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Config46(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class Disabled10(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["metric"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + type: Type23 + type_params: TypeParams1 = Field(..., title="MetricTypeParams") + filter: Optional[Filter15] = None + metadata: Optional[Metadata2] = None + time_granularity: Optional[str] = None + meta: Optional[dict[str, Any]] = None + tags: Optional[list[str]] = None + config: Optional[Config46] = Field(None, title="MetricConfig") + unrendered_config: Optional[dict[str, Any]] = None + sources: Optional[list[list[str]]] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + metrics: Optional[list[list[str]]] = None + created_at: Optional[float] = None + group: Optional[str] = None + + +class Where(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class QueryParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metrics: list[str] + group_by: list[str] + where: Optional[Where] = None + order_by: Optional[list[str]] = None + limit: Optional[int] = None + + +class ExportAs(Enum): + table = "table" + view = "view" + + +class Config47(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + export_as: ExportAs + schema_name: Optional[str] = None + alias: Optional[str] = None + database: Optional[str] = None + + +class Export(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + config: Config47 = Field(..., title="ExportConfig") + unrendered_config: Optional[dict[str, str]] = None + + +class Metadata3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Cache(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enabled: Optional[bool] = False + + +class Config48(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + export_as: Optional[ExportAs] = None + schema_: Optional[str] = Field(None, alias="schema") + cache: Optional[Cache] = Field(None, title="SavedQueryCache") + + +class Disabled11(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["saved_query"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + query_params: QueryParams = Field(..., title="QueryParams") + exports: list[Export] + description: Optional[str] = None + label: Optional[str] = None + metadata: Optional[Metadata3] = None + config: Optional[Config48] = Field(None, title="SavedQueryConfig") + unrendered_config: Optional[dict[str, Any]] = None + group: Optional[str] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + created_at: Optional[float] = None + refs: Optional[list[Ref]] = None + tags: Optional[Union[list[str], str]] = None + + +class NodeRelation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + alias: str + schema_name: str + database: Optional[str] = None + relation_name: Optional[str] = "" + + +class Defaults(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + agg_time_dimension: Optional[str] = None + + +class Type24(Enum): + foreign = "foreign" + natural = "natural" + primary = "primary" + unique = "unique" + + +class Config49(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + meta: Optional[dict[str, Any]] = None + + +class Entity(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type24 + description: Optional[str] = None + label: Optional[str] = None + role: Optional[str] = None + expr: Optional[str] = None + config: Optional[Config49] = None + + +class Agg(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class AggParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + percentile: Optional[float] = None + use_discrete_percentile: Optional[bool] = False + use_approximate_percentile: Optional[bool] = False + + +class WindowChoice(Enum): + sum = "sum" + min = "min" + max = "max" + count_distinct = "count_distinct" + sum_boolean = "sum_boolean" + average = "average" + percentile = "percentile" + median = "median" + count = "count" + + +class NonAdditiveDimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + window_choice: WindowChoice + window_groupings: list[str] + + +class Measure2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + agg: Agg + description: Optional[str] = None + label: Optional[str] = None + create_metric: Optional[bool] = False + expr: Optional[str] = None + agg_params: Optional[AggParams] = None + non_additive_dimension: Optional[NonAdditiveDimension] = None + agg_time_dimension: Optional[str] = None + config: Optional[Config49] = None + + +class Type25(Enum): + categorical = "categorical" + time = "time" + + +class TimeGranularity(Enum): + nanosecond = "nanosecond" + microsecond = "microsecond" + millisecond = "millisecond" + second = "second" + minute = "minute" + hour = "hour" + day = "day" + week = "week" + month = "month" + quarter = "quarter" + year = "year" + + +class ValidityParams(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + is_start: Optional[bool] = False + is_end: Optional[bool] = False + + +class TypeParams2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + time_granularity: TimeGranularity + validity_params: Optional[ValidityParams] = None + + +class Metadata4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Dimension(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type25 + description: Optional[str] = None + label: Optional[str] = None + is_partition: Optional[bool] = False + type_params: Optional[TypeParams2] = None + expr: Optional[str] = None + metadata: Optional[Metadata4] = None + config: Optional[Config49] = None + + +class Metadata5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Config52(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class Disabled12(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + model: str + node_relation: Optional[NodeRelation] = None + description: Optional[str] = None + label: Optional[str] = None + defaults: Optional[Defaults] = None + entities: Optional[list[Entity]] = None + measures: Optional[list[Measure2]] = None + dimensions: Optional[list[Dimension]] = None + metadata: Optional[Metadata5] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + created_at: Optional[float] = None + config: Optional[Config52] = Field(None, title="SemanticModelConfig") + unrendered_config: Optional[dict[str, Any]] = None + primary_entity: Optional[str] = None + group: Optional[str] = None + + +class Format(Enum): + csv = "csv" + dict = "dict" + sql = "sql" + + +class GivenItem(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + input: str + rows: Optional[Union[str, list[dict[str, Any]]]] = None + format: Optional[Format] = "dict" + fixture: Optional[str] = None + + +class Expect(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + rows: Optional[Union[str, list[dict[str, Any]]]] = None + format: Optional[Format] = "dict" + fixture: Optional[str] = None + + +class Overrides(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[dict[str, Any]] = None + vars: Optional[dict[str, Any]] = None + env_vars: Optional[dict[str, Any]] = None + + +class Config53(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + tags: Optional[Union[str, list[str]]] = None + meta: Optional[dict[str, Any]] = None + enabled: Optional[bool] = True + + +class Versions(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + include: Optional[list[Union[str, float]]] = None + exclude: Optional[list[Union[str, float]]] = None + + +class Disabled13(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + model: str + given: list[GivenItem] + expect: Expect = Field(..., title="UnitTestOutputFixture") + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: Optional[str] = "" + overrides: Optional[Overrides] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + config: Optional[Config53] = Field(None, title="UnitTestConfig") + checksum: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + created_at: Optional[float] = None + versions: Optional[Versions] = None + version: Optional[Union[str, float]] = None + + +class Where1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + where_filters: list[WhereFilter] + + +class QueryParams1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metrics: list[str] + group_by: list[str] + where: Optional[Where1] = None + order_by: Optional[list[str]] = None + limit: Optional[int] = None + + +class Config54(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + export_as: ExportAs + schema_name: Optional[str] = None + alias: Optional[str] = None + database: Optional[str] = None + + +class Export1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + config: Config54 = Field(..., title="ExportConfig") + unrendered_config: Optional[dict[str, str]] = None + + +class Metadata6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Config55(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + export_as: Optional[ExportAs] = None + schema_: Optional[str] = Field(None, alias="schema") + cache: Optional[Cache] = Field(None, title="SavedQueryCache") + + +class SavedQueries(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: Literal["saved_query"] + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + query_params: QueryParams1 = Field(..., title="QueryParams") + exports: list[Export1] + description: Optional[str] = None + label: Optional[str] = None + metadata: Optional[Metadata6] = None + config: Optional[Config55] = Field(None, title="SavedQueryConfig") + unrendered_config: Optional[dict[str, Any]] = None + group: Optional[str] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + created_at: Optional[float] = None + refs: Optional[list[Ref]] = None + tags: Optional[Union[list[str], str]] = None + + +class Type26(Enum): + foreign = "foreign" + natural = "natural" + primary = "primary" + unique = "unique" + + +class Config56(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + meta: Optional[dict[str, Any]] = None + + +class Entity1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type26 + description: Optional[str] = None + label: Optional[str] = None + role: Optional[str] = None + expr: Optional[str] = None + config: Optional[Config56] = None + + +class NonAdditiveDimension1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + window_choice: WindowChoice + window_groupings: list[str] + + +class Measure3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + agg: Agg + description: Optional[str] = None + label: Optional[str] = None + create_metric: Optional[bool] = False + expr: Optional[str] = None + agg_params: Optional[AggParams] = None + non_additive_dimension: Optional[NonAdditiveDimension1] = None + agg_time_dimension: Optional[str] = None + config: Optional[Config56] = None + + +class Type27(Enum): + categorical = "categorical" + time = "time" + + +class TypeParams3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + time_granularity: TimeGranularity + validity_params: Optional[ValidityParams] = None + + +class Metadata7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Dimension1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Type27 + description: Optional[str] = None + label: Optional[str] = None + is_partition: Optional[bool] = False + type_params: Optional[TypeParams3] = None + expr: Optional[str] = None + metadata: Optional[Metadata7] = None + config: Optional[Config56] = None + + +class Metadata8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + repo_file_path: str + file_slice: FileSlice = Field(..., title="FileSlice") + + +class Config59(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + enabled: Optional[bool] = True + group: Optional[str] = None + meta: Optional[dict[str, Any]] = None + + +class SemanticModels(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + model: str + node_relation: Optional[NodeRelation] = None + description: Optional[str] = None + label: Optional[str] = None + defaults: Optional[Defaults] = None + entities: Optional[list[Entity1]] = None + measures: Optional[list[Measure3]] = None + dimensions: Optional[list[Dimension1]] = None + metadata: Optional[Metadata8] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + refs: Optional[list[Ref]] = None + created_at: Optional[float] = None + config: Optional[Config59] = Field(None, title="SemanticModelConfig") + unrendered_config: Optional[dict[str, Any]] = None + primary_entity: Optional[str] = None + group: Optional[str] = None + + +class GivenItem1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + input: str + rows: Optional[Union[str, list[dict[str, Any]]]] = None + format: Optional[Format] = "dict" + fixture: Optional[str] = None + + +class Expect1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + rows: Optional[Union[str, list[dict[str, Any]]]] = None + format: Optional[Format] = "dict" + fixture: Optional[str] = None + + +class Config60(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + field_extra: Optional[dict[str, Any]] = Field(None, alias="_extra") + tags: Optional[Union[str, list[str]]] = None + meta: Optional[dict[str, Any]] = None + enabled: Optional[bool] = True + + +class UnitTests(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + model: str + given: list[GivenItem1] + expect: Expect1 = Field(..., title="UnitTestOutputFixture") + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: Optional[str] = "" + overrides: Optional[Overrides] = None + depends_on: Optional[DependsOn12] = Field(None, title="DependsOn") + config: Optional[Config60] = Field(None, title="UnitTestConfig") + checksum: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + created_at: Optional[float] = None + versions: Optional[Versions] = None + version: Optional[Union[str, float]] = None + + +class ManifestV12(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata = Field(..., description="Metadata about the manifest", title="ManifestMetadata") + nodes: dict[str, Union[Nodes, Nodes1, Nodes2, Nodes3, Nodes4, Nodes5, Nodes6, Nodes7]] = Field( + ..., description="The nodes defined in the dbt project and its dependencies" + ) + sources: dict[str, Sources] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, Macros] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, Docs18] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, Exposures] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, Metrics] = Field(..., description="The metrics defined in the dbt project and its dependencies") + groups: dict[str, Groups] = Field(..., description="The groups defined in the dbt project") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + Disabled, + Disabled1, + Disabled2, + Disabled3, + Disabled4, + Disabled5, + Disabled6, + Disabled7, + Disabled8, + Disabled9, + Disabled10, + Disabled11, + Disabled12, + Disabled13, + ] + ], + ] + ] = Field(..., description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from parent nodes to their dependents") + group_map: Optional[dict[str, list[str]]] = Field(..., description="A mapping from group names to their nodes") + saved_queries: dict[str, SavedQueries] = Field(..., description="The saved queries defined in the dbt project") + semantic_models: dict[str, SemanticModels] = Field(..., description="The semantic models defined in the dbt project") + unit_tests: dict[str, UnitTests] = Field(..., description="The unit tests defined in the project") + functions: Optional[dict[str, Any]] = Field(None, description="User-defined functions in the dbt project") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v2.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v2.py new file mode 100644 index 00000000..bc57356e --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v2.py @@ -0,0 +1,1457 @@ +# generated by datamodel-codegen: +# filename: manifest_v2.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v2.json" + dbt_version: Optional[str] = "0.20.0rc1" + generated_at: Optional[datetime] = "2021-06-07T14:49:01.099700Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "test" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType6(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + quote_columns: Optional[bool] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class ResourceType8(Enum): + analysis = "analysis" + + +class ResourceType9(Enum): + test = "test" + + +class ParsedDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class ResourceType10(Enum): + operation = "operation" + + +class ResourceType11(Enum): + model = "model" + + +class ResourceType12(Enum): + rpc = "rpc" + + +class ResourceType13(Enum): + test = "test" + + +class ParsedSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + column_name: Optional[str] = None + + +class ResourceType14(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class ResourceType15(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + strategy: Optional[str] = None + unique_key: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType16(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v1.json" + dbt_version: Optional[str] = "0.20.0rc1" + generated_at: Optional[datetime] = "2021-06-07T14:49:01.095724Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType17(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType18(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + docs = "docs" + source = "source" + macro = "macro" + exposure = "exposure" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + vars: Optional[dict[str, Any]] = {} + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + full_refresh: Optional[bool] = None + + +class CompiledDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "full_refresh": None, + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType17 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[int] = 1623077341 + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType18] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[int] = 1623077341 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "full_refresh": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1623077341 + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType16 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[int] = 1623077341 + + +class ManifestV2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + list[ + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ] + ] = Field(None, description="A list of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v3.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v3.py new file mode 100644 index 00000000..96e58ca9 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v3.py @@ -0,0 +1,1469 @@ +# generated by datamodel-codegen: +# filename: manifest_v3.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v3.json" + dbt_version: Optional[str] = "0.21.0rc1" + generated_at: Optional[datetime] = "2021-09-24T13:29:14.317700Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType6(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + quote_columns: Optional[bool] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class ResourceType8(Enum): + analysis = "analysis" + + +class ResourceType9(Enum): + test = "test" + + +class ParsedDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType10(Enum): + operation = "operation" + + +class ResourceType11(Enum): + model = "model" + + +class ResourceType12(Enum): + rpc = "rpc" + + +class ResourceType13(Enum): + test = "test" + + +class ParsedSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + + +class ResourceType14(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType15(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + strategy: Optional[str] = None + unique_key: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType16(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v2.json" + dbt_version: Optional[str] = "0.21.0rc1" + generated_at: Optional[datetime] = "2021-09-24T13:29:14.312598Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType17(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType18(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + docs = "docs" + source = "source" + macro = "macro" + exposure = "exposure" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + + +class CompiledDataTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSchemaTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType17 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[int] = 1632490154 + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType18] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[int] = 1632490154 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[int] = 1632490154 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType16 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[int] = 1632490154 + + +class ManifestV3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + list[ + Union[ + CompiledAnalysisNode, + CompiledDataTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSchemaTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedDataTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSchemaTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ] + ] = Field(None, description="A list of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v4.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v4.py new file mode 100644 index 00000000..68ad94e8 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v4.py @@ -0,0 +1,1640 @@ +# generated by datamodel-codegen: +# filename: manifest_v4.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v4.json" + dbt_version: Optional[str] = "1.0.0rc2" + generated_at: Optional[datetime] = "2021-11-30T01:35:47.307789Z" + invocation_id: Optional[str] = "66dd78f0-c79a-4b06-81b1-99794345df16" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql = "sql" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + quote_columns: Optional[bool] = None + + +class ResourceType8(Enum): + snapshot = "snapshot" + + +class ResourceType9(Enum): + analysis = "analysis" + + +class ResourceType10(Enum): + test = "test" + + +class ParsedSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.3306549 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType11(Enum): + operation = "operation" + + +class ResourceType12(Enum): + model = "model" + + +class ResourceType13(Enum): + rpc = "rpc" + + +class ResourceType14(Enum): + sql = "sql" + + +class ResourceType15(Enum): + test = "test" + + +class ParsedGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.3383949 + config_call_dict: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class ResourceType16(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType16 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.339838 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType17(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + strategy: Optional[str] = None + unique_key: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType18(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.0.0rc2" + generated_at: Optional[datetime] = "2021-11-30T01:35:47.301745Z" + invocation_id: Optional[str] = "66dd78f0-c79a-4b06-81b1-99794345df16" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType19(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType20(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql = "sql" + docs = "docs" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + on_schema_change: Optional[str] = "ignore" + + +class CompiledSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.314477 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.315979 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.317642 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.319278 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.321433 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.323731 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.326388 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.328031 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.329485 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.332001 + config_call_dict: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.333348 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.335125 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.336567 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType17 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.3425322 + config_call_dict: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType19 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1638236147.345993 + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType20] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1638236147.347234 + + +class ParsedMetric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + model: str + name: str + description: str + label: str + type: str + sql: Optional[str] = None + timestamp: Optional[str] = None + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + resource_type: Optional[ResourceType20] = "metric" + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1638236147.348404 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1638236147.3118432 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType18 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1638236147.345053 + + +class ManifestV4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, ParsedMetric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v5.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v5.py new file mode 100644 index 00000000..77192c89 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v5.py @@ -0,0 +1,1655 @@ +# generated by datamodel-codegen: +# filename: manifest_v5.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v5.json" + dbt_version: Optional[str] = "1.1.0b1" + generated_at: Optional[datetime] = "2022-04-12T01:16:32.489402Z" + invocation_id: Optional[str] = "643c124a-0b61-4f90-90a5-a2decad774d0" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql = "sql" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + quote_columns: Optional[bool] = None + + +class ResourceType8(Enum): + snapshot = "snapshot" + + +class ResourceType9(Enum): + analysis = "analysis" + + +class ResourceType10(Enum): + test = "test" + + +class ParsedSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.5146 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType11(Enum): + operation = "operation" + + +class ResourceType12(Enum): + model = "model" + + +class ResourceType13(Enum): + rpc = "rpc" + + +class ResourceType14(Enum): + sql = "sql" + + +class ResourceType15(Enum): + test = "test" + + +class ParsedGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.520767 + config_call_dict: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class ResourceType16(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType16 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.522246 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType17(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType18(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.1.0b1" + generated_at: Optional[datetime] = "2022-04-12T01:16:32.483681Z" + invocation_id: Optional[str] = "643c124a-0b61-4f90-90a5-a2decad774d0" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType19(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType20(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql = "sql" + docs = "docs" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + + +class CompiledSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.4966102 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.4980211 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.499937 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.5019672 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.503406 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.505614 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.50937 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.511486 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.5133781 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.515753 + config_call_dict: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.517012 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.518336 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.519518 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType17 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.52479 + config_call_dict: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType19 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1649726192.528407 + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType20] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1649726192.529697 + + +class ParsedMetric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + model: str + name: str + description: str + label: str + type: str + sql: Optional[str] = None + timestamp: Optional[str] = None + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + resource_type: Optional[ResourceType20] = "metric" + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1649726192.530702 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1649726192.4941928 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType18 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1649726192.52745 + + +class ManifestV5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, ParsedMetric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v6.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v6.py new file mode 100644 index 00000000..835ce693 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v6.py @@ -0,0 +1,1691 @@ +# generated by datamodel-codegen: +# filename: manifest_v6.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v6.json" + dbt_version: Optional[str] = "1.2.0" + generated_at: Optional[datetime] = "2022-07-26T13:02:44.173047Z" + invocation_id: Optional[str] = "b98791cb-6931-421b-aeb5-945dc062e419" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql_operation = "sql operation" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + quote_columns: Optional[bool] = None + + +class ResourceType8(Enum): + snapshot = "snapshot" + + +class ResourceType9(Enum): + analysis = "analysis" + + +class ResourceType10(Enum): + test = "test" + + +class ParsedSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.187786 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType11(Enum): + operation = "operation" + + +class ResourceType12(Enum): + model = "model" + + +class ResourceType13(Enum): + rpc = "rpc" + + +class ResourceType14(Enum): + sql_operation = "sql operation" + + +class ResourceType15(Enum): + test = "test" + + +class ParsedGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1920261 + config_call_dict: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class ResourceType16(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType16 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.192925 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType17(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType18(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.2.0" + generated_at: Optional[datetime] = "2022-07-26T13:02:44.168999Z" + invocation_id: Optional[str] = "b98791cb-6931-421b-aeb5-945dc062e419" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType19(Enum): + macro = "macro" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType20(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql_operation = "sql operation" + docs_block = "docs block" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + + +class CompiledSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.177789 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1790001 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.180038 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1810539 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.182029 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.183202 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1849642 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.18593 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1869571 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.188651 + config_call_dict: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1895108 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.190333 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.191165 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType17 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.194531 + config_call_dict: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType19 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1658840564.1967978 + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType20] = "exposure" + description: Optional[str] = "" + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1658840564.197692 + + +class ParsedMetric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + description: str + label: str + type: str + sql: str + timestamp: Optional[str] = None + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + model: Optional[str] = None + model_unique_id: Optional[str] = None + resource_type: Optional[ResourceType20] = "metric" + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1658840564.1985369 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + raw_sql: str + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1658840564.1760619 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_sql: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType18 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1658840564.196107 + + +class ManifestV6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, ParsedMetric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v7.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v7.py new file mode 100644 index 00000000..fed97ae7 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v7.py @@ -0,0 +1,1799 @@ +# generated by datamodel-codegen: +# filename: manifest_v7.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v7.json" + dbt_version: Optional[str] = "1.3.0b2" + generated_at: Optional[datetime] = "2022-09-14T20:35:15.346636Z" + invocation_id: Optional[str] = "c59a8269-533c-4b78-a709-5094045afd4d" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + model = "model" + + +class ResourceType3(Enum): + operation = "operation" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql_operation = "sql operation" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + quote_columns: Optional[bool] = None + + +class ResourceType8(Enum): + snapshot = "snapshot" + + +class ResourceType9(Enum): + analysis = "analysis" + + +class ResourceType10(Enum): + test = "test" + + +class ParsedSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType10 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.370925 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType11(Enum): + operation = "operation" + + +class ResourceType12(Enum): + model = "model" + + +class ResourceType13(Enum): + rpc = "rpc" + + +class ResourceType14(Enum): + sql_operation = "sql operation" + + +class ResourceType15(Enum): + test = "test" + + +class ParsedGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType15 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.3784761 + config_call_dict: Optional[dict[str, Any]] = {} + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class ResourceType16(Enum): + seed = "seed" + + +class ParsedSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType16 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.380325 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ResourceType17(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType18(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.3.0b2" + generated_at: Optional[datetime] = "2022-09-14T20:35:15.341700Z" + invocation_id: Optional[str] = "c59a8269-533c-4b78-a709-5094045afd4d" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType19(Enum): + macro = "macro" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ParsedDocumentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + block_contents: str + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class ResourceType20(Enum): + model = "model" + analysis = "analysis" + test = "test" + snapshot = "snapshot" + operation = "operation" + seed = "seed" + rpc = "rpc" + sql_operation = "sql operation" + docs_block = "docs block" + source = "source" + macro = "macro" + exposure = "exposure" + metric = "metric" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class ExposureConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class Period1(Enum): + day = "day" + week = "week" + month = "month" + year = "year" + + +class MetricTime(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period1] = None + + +class MetricConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + + +class CompiledSingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType1 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.35441 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType2 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.356541 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType3 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.3582149 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + index: Optional[int] = None + + +class CompiledRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType4 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.359935 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType5 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.361423 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledGenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType6 + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.363411 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class CompiledSeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType7 + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.366584 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class CompiledSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType8 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.3682182 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType9 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.369675 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedHookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType11 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.372257 + config_call_dict: Optional[dict[str, Any]] = {} + index: Optional[int] = None + + +class ParsedModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType12 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.373705 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedRPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType13 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.375131 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType14 + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.376405 + config_call_dict: Optional[dict[str, Any]] = {} + + +class ParsedSnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType17 + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.3832462 + config_call_dict: Optional[dict[str, Any]] = {} + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[list[ExternalPartition]] = None + + +class ParsedMacro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + macro_sql: str + resource_type: ResourceType19 + tags: Optional[list[str]] = [] + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1663187715.386226 + supported_languages: Optional[list[SupportedLanguage]] = None + + +class ParsedExposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + type: Type + owner: ExposureOwner + resource_type: Optional[ResourceType20] = "exposure" + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[ExposureConfig] = Field(default_factory=lambda: ExposureConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1663187715.3878772 + + +class ParsedMetric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + description: str + label: str + calculation_method: str + expression: str + timestamp: Optional[str] = None + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + window: Optional[MetricTime] = None + model: Optional[str] = None + model_unique_id: Optional[str] = None + resource_type: Optional[ResourceType20] = "metric" + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[MetricConfig] = Field(default_factory=lambda: MetricConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1663187715.38939 + + +class CompiledAnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + compiled: bool + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + fqn: list[str] + unique_id: str + raw_code: str + language: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + resource_type: ResourceType + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + compiled_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1663187715.3517282 + config_call_dict: Optional[dict[str, Any]] = {} + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + relation_name: Optional[str] = None + + +class ParsedSourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + fqn: list[str] + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + unique_id: str + package_name: str + root_path: str + path: str + original_file_path: str + name: str + source_name: str + source_description: str + loader: str + identifier: str + resource_type: ResourceType18 + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1663187715.3854342 + + +class ManifestV7(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, ParsedSourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, ParsedMacro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, ParsedDocumentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, ParsedExposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, ParsedMetric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + CompiledAnalysisNode, + CompiledSingularTestNode, + CompiledModelNode, + CompiledHookNode, + CompiledRPCNode, + CompiledSqlNode, + CompiledGenericTestNode, + CompiledSeedNode, + CompiledSnapshotNode, + ParsedAnalysisNode, + ParsedSingularTestNode, + ParsedHookNode, + ParsedModelNode, + ParsedRPCNode, + ParsedSqlNode, + ParsedGenericTestNode, + ParsedSeedNode, + ParsedSnapshotNode, + ParsedSourceDefinition, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v8.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v8.py new file mode 100644 index 00000000..1e2cfae0 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v8.py @@ -0,0 +1,1176 @@ +# generated by datamodel-codegen: +# filename: manifest_v8.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v8.json" + dbt_version: Optional[str] = "1.4.1" + generated_at: Optional[datetime] = "2023-02-09T10:04:47.350768Z" + invocation_id: Optional[str] = "f795bc66-f417-4007-af6e-f2e513d33790" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + operation = "operation" + + +class ResourceType3(Enum): + model = "model" + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql_operation = "sql operation" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType8(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + quote_columns: Optional[bool] = None + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class ResourceType9(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.4.1" + generated_at: Optional[datetime] = "2023-02-09T10:04:47.347023Z" + invocation_id: Optional[str] = "f795bc66-f417-4007-af6e-f2e513d33790" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType10(Enum): + macro = "macro" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ResourceType11(Enum): + doc = "doc" + + +class Documentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType11 + package_name: str + path: str + original_file_path: str + unique_id: str + block_contents: str + + +class ResourceType12(Enum): + exposure = "exposure" + + +class Type(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class ExposureOwner(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + email: str + name: Optional[str] = None + + +class ExposureConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType13(Enum): + metric = "metric" + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class Period1(Enum): + day = "day" + week = "week" + month = "month" + year = "year" + + +class MetricTime(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period1] = None + + +class MetricConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + + +class SingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType1 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.355371 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class HookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType2 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.356482 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + index: Optional[int] = None + + +class ModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType3 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.357701 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class RPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType4 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.358761 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class SqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType5 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.359803 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class GenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType6 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.361009 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + column_name: Optional[str] = None + file_key_name: Optional[str] = None + + +class SnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType7 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.364386 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class SeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType8 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.366245 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + root_path: Optional[str] = None + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[ExternalPartition]]] = None + + +class Macro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType10 + package_name: str + path: str + original_file_path: str + unique_id: str + macro_sql: str + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1675937087.368656 + supported_languages: Optional[list[SupportedLanguage]] = None + + +class Exposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType12 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type + owner: ExposureOwner + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[ExposureConfig] = Field(default_factory=lambda: ExposureConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1675937087.369866 + + +class Metric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType13 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + calculation_method: str + expression: str + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + timestamp: Optional[str] = None + window: Optional[MetricTime] = None + model: Optional[str] = None + model_unique_id: Optional[str] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[MetricConfig] = Field(default_factory=lambda: MetricConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1675937087.371092 + + +class AnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1675937087.353436 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[list[str]]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + + +class SourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType9 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1675937087.368067 + + +class ManifestV8(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, SourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, Macro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, Documentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, Exposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, Metric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + SourceDefinition, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") diff --git a/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v9.py b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v9.py new file mode 100644 index 00000000..501d9293 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/manifest/manifest_v9.py @@ -0,0 +1,1305 @@ +# generated by datamodel-codegen: +# filename: manifest_v9.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field +from pydantic import constr + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class ManifestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/manifest/v9.json" + dbt_version: Optional[str] = "1.5.0b5" + generated_at: Optional[datetime] = "2023-04-12T03:35:01.188035Z" + invocation_id: Optional[str] = "8aa1596d-f52f-40bc-ad4b-f5e48fc7e6c2" + env: Optional[dict[str, str]] = {} + project_id: Optional[str] = Field(None, description="A unique identifier for the project") + user_id: Optional[constr(pattern=r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")] = Field( + None, description="A unique identifier for the user" + ) + send_anonymous_usage_stats: Optional[bool] = Field(None, description="Whether dbt is configured to send anonymous usage statistics") + adapter_type: Optional[str] = Field(None, description="The type name of the adapter") + + +class ResourceType(Enum): + analysis = "analysis" + + +class FileHash(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + checksum: str + + +class Hook(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + sql: str + transaction: Optional[bool] = True + index: Optional[int] = None + + +class Docs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + show: Optional[bool] = True + node_color: Optional[str] = None + + +class ContractConfig(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + + +class Type(Enum): + check = "check" + not_null = "not_null" + unique = "unique" + primary_key = "primary_key" + foreign_key = "foreign_key" + custom = "custom" + + +class ColumnLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class RefArgs(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + package: Optional[str] = None + version: Optional[Union[str, float]] = None + + +class DependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + nodes: Optional[list[str]] = [] + + +class InjectedCTE(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + id: str + sql: str + + +class Contract(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + enforced: Optional[bool] = False + checksum: Optional[str] = None + + +class ResourceType1(Enum): + test = "test" + + +class TestConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field("dbt_test__audit", alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "test" + severity: Optional[constr(pattern=r"^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$")] = "ERROR" + store_failures: Optional[bool] = None + where: Optional[str] = None + limit: Optional[int] = None + fail_calc: Optional[str] = "count(*)" + warn_if: Optional[str] = "!= 0" + error_if: Optional[str] = "!= 0" + + +class ResourceType2(Enum): + operation = "operation" + + +class ResourceType3(Enum): + model = "model" + + +class Access(Enum): + protected = "protected" + private = "private" + public = "public" + + +class ModelLevelConstraint(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + columns: Optional[list[str]] = [] + + +class ResourceType4(Enum): + rpc = "rpc" + + +class ResourceType5(Enum): + sql_operation = "sql operation" + + +class ResourceType6(Enum): + test = "test" + + +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + kwargs: Optional[dict[str, Any]] = {} + namespace: Optional[str] = None + + +class ResourceType7(Enum): + snapshot = "snapshot" + + +class SnapshotConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "snapshot" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[str] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + strategy: Optional[str] = None + target_schema: Optional[str] = None + target_database: Optional[str] = None + updated_at: Optional[str] = None + check_cols: Optional[Union[str, list[str]]] = None + + +class ResourceType8(Enum): + seed = "seed" + + +class SeedConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "seed" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + quote_columns: Optional[bool] = None + + +class MacroDependsOn(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + macros: Optional[list[str]] = [] + + +class ResourceType9(Enum): + source = "source" + + +class Quoting(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[bool] = None + schema_: Optional[bool] = Field(None, alias="schema") + identifier: Optional[bool] = None + column: Optional[bool] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.5.0b5" + generated_at: Optional[datetime] = "2023-04-12T03:35:01.185979Z" + invocation_id: Optional[str] = "8aa1596d-f52f-40bc-ad4b-f5e48fc7e6c2" + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class ExternalPartition(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: Optional[str] = "" + description: Optional[str] = "" + data_type: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + + +class SourceConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType10(Enum): + macro = "macro" + + +class SupportedLanguage(Enum): + python = "python" + sql = "sql" + + +class MacroArgument(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + type: Optional[str] = None + description: Optional[str] = "" + + +class ResourceType11(Enum): + doc = "doc" + + +class Documentation(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType11 + package_name: str + path: str + original_file_path: str + unique_id: str + block_contents: str + + +class ResourceType12(Enum): + exposure = "exposure" + + +class Type2(Enum): + dashboard = "dashboard" + notebook = "notebook" + analysis = "analysis" + ml = "ml" + application = "application" + + +class Maturity(Enum): + low = "low" + medium = "medium" + high = "high" + + +class Owner(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + email: Optional[str] = None + name: Optional[str] = None + + +class ExposureConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + + +class ResourceType13(Enum): + metric = "metric" + + +class MetricFilter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + field: str + operator: str + value: str + + +class Period1(Enum): + day = "day" + week = "week" + month = "month" + year = "year" + + +class MetricTime(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period1] = None + + +class MetricConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + group: Optional[str] = None + + +class ResourceType14(Enum): + group = "group" + + +class Group(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType14 + package_name: str + path: str + original_file_path: str + unique_id: str + owner: Owner + + +class NodeConfig(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + enabled: Optional[bool] = True + alias: Optional[str] = None + schema_: Optional[str] = Field(None, alias="schema") + database: Optional[str] = None + tags: Optional[Union[list[str], str]] = [] + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + materialized: Optional[str] = "view" + incremental_strategy: Optional[str] = None + persist_docs: Optional[dict[str, Any]] = {} + post_hook: Optional[list[Hook]] = Field([], alias="post-hook") + pre_hook: Optional[list[Hook]] = Field([], alias="pre-hook") + quoting: Optional[dict[str, Any]] = {} + column_types: Optional[dict[str, Any]] = {} + full_refresh: Optional[bool] = None + unique_key: Optional[Union[str, list[str]]] = None + on_schema_change: Optional[str] = "ignore" + grants: Optional[dict[str, Any]] = {} + packages: Optional[list[str]] = [] + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + contract: Optional[ContractConfig] = Field(default_factory=lambda: ContractConfig.model_validate({"enforced": False})) + + +class ColumnInfo(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + name: str + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + data_type: Optional[str] = None + constraints: Optional[list[ColumnLevelConstraint]] = [] + quote: Optional[bool] = None + tags: Optional[list[str]] = [] + + +class SingularTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType1 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.19095 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class HookNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType2 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.191555 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + index: Optional[int] = None + + +class ModelNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType3 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.192162 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + access: Optional[Access] = "protected" + constraints: Optional[list[ModelLevelConstraint]] = [] + version: Optional[Union[str, float]] = None + latest_version: Optional[Union[str, float]] = None + + +class RPCNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType4 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.192949 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class SqlNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType5 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.1935291 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class GenericTestNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + test_metadata: TestMetadata + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType6 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[TestConfig] = Field( + default_factory=lambda: TestConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": "dbt_test__audit", + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "test", + "severity": "ERROR", + "store_failures": None, + "where": None, + "limit": None, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.19419 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None + + +class SnapshotNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType7 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: SnapshotConfig + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.1952698 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class SeedNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType8 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[SeedConfig] = Field( + default_factory=lambda: SeedConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "seed", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "quote_columns": None, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.1968079 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + root_path: Optional[str] = None + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class ExternalTable(BaseParserModel): + model_config = ConfigDict( + extra="allow", + ) + location: Optional[str] = None + file_format: Optional[str] = None + row_format: Optional[str] = None + tbl_properties: Optional[str] = None + partitions: Optional[Union[list[str], list[ExternalPartition]]] = None + + +class Macro(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType10 + package_name: str + path: str + original_file_path: str + unique_id: str + macro_sql: str + depends_on: Optional[MacroDependsOn] = Field(default_factory=lambda: MacroDependsOn.model_validate({"macros": []})) + description: Optional[str] = "" + meta: Optional[dict[str, Any]] = {} + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + arguments: Optional[list[MacroArgument]] = [] + created_at: Optional[float] = 1681270501.198105 + supported_languages: Optional[list[SupportedLanguage]] = None + + +class Exposure(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType12 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + type: Type2 + owner: Owner + description: Optional[str] = "" + label: Optional[str] = None + maturity: Optional[Maturity] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[ExposureConfig] = Field(default_factory=lambda: ExposureConfig.model_validate({"enabled": True})) + unrendered_config: Optional[dict[str, Any]] = {} + url: Optional[str] = None + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1681270501.198782 + + +class Metric(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + resource_type: ResourceType13 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + description: str + label: str + calculation_method: str + expression: str + filters: list[MetricFilter] + time_grains: list[str] + dimensions: list[str] + timestamp: Optional[str] = None + window: Optional[MetricTime] = None + model: Optional[str] = None + model_unique_id: Optional[str] = None + meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[MetricConfig] = Field(default_factory=lambda: MetricConfig.model_validate({"enabled": True, "group": None})) + unrendered_config: Optional[dict[str, Any]] = {} + sources: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + refs: Optional[list[RefArgs]] = [] + metrics: Optional[list[list[str]]] = [] + created_at: Optional[float] = 1681270501.199492 + group: Optional[str] = None + + +class AnalysisNode(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + alias: str + checksum: FileHash + config: Optional[NodeConfig] = Field( + default_factory=lambda: NodeConfig.model_validate( + { + "enabled": True, + "alias": None, + "schema": None, + "database": None, + "tags": [], + "meta": {}, + "group": None, + "materialized": "view", + "incremental_strategy": None, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": None, + "unique_key": None, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": {"show": True, "node_color": None}, + "contract": {"enforced": False}, + "post-hook": [], + "pre-hook": [], + } + ) + ) + tags: Optional[list[str]] = [] + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + group: Optional[str] = None + docs: Optional[Docs] = Field(default_factory=lambda: Docs.model_validate({"show": True, "node_color": None})) + patch_path: Optional[str] = None + build_path: Optional[str] = None + deferred: Optional[bool] = False + unrendered_config: Optional[dict[str, Any]] = {} + created_at: Optional[float] = 1681270501.189703 + config_call_dict: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + raw_code: Optional[str] = "" + language: Optional[str] = "sql" + refs: Optional[list[RefArgs]] = [] + sources: Optional[list[list[str]]] = [] + metrics: Optional[list[list[str]]] = [] + depends_on: Optional[DependsOn] = Field(default_factory=lambda: DependsOn.model_validate({"macros": [], "nodes": []})) + compiled_path: Optional[str] = None + compiled: Optional[bool] = False + compiled_code: Optional[str] = None + extra_ctes_injected: Optional[bool] = False + extra_ctes: Optional[list[InjectedCTE]] = [] + contract: Optional[Contract] = Field(default_factory=lambda: Contract.model_validate({"enforced": False, "checksum": None})) + + +class SourceDefinition(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + database: Optional[str] = None + schema_: str = Field(..., alias="schema") + name: str + resource_type: ResourceType9 + package_name: str + path: str + original_file_path: str + unique_id: str + fqn: list[str] + source_name: str + source_description: str + loader: str + identifier: str + quoting: Optional[Quoting] = Field( + default_factory=lambda: Quoting.model_validate({"database": None, "schema": None, "identifier": None, "column": None}) + ) + loaded_at_field: Optional[str] = None + freshness: Optional[FreshnessThreshold] = None + external: Optional[ExternalTable] = None + description: Optional[str] = "" + columns: Optional[dict[str, ColumnInfo]] = {} + meta: Optional[dict[str, Any]] = {} + source_meta: Optional[dict[str, Any]] = {} + tags: Optional[list[str]] = [] + config: Optional[SourceConfig] = Field(default_factory=lambda: SourceConfig.model_validate({"enabled": True})) + patch_path: Optional[str] = None + unrendered_config: Optional[dict[str, Any]] = {} + relation_name: Optional[str] = None + created_at: Optional[float] = 1681270501.197819 + + +class ManifestV9(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: ManifestMetadata = Field(..., description="Metadata about the manifest") + nodes: dict[ + str, + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + ], + ] = Field(..., description="The nodes defined in the dbt project and its dependencies") + sources: dict[str, SourceDefinition] = Field(..., description="The sources defined in the dbt project and its dependencies") + macros: dict[str, Macro] = Field(..., description="The macros defined in the dbt project and its dependencies") + docs: dict[str, Documentation] = Field(..., description="The docs defined in the dbt project and its dependencies") + exposures: dict[str, Exposure] = Field(..., description="The exposures defined in the dbt project and its dependencies") + metrics: dict[str, Metric] = Field(..., description="The metrics defined in the dbt project and its dependencies") + groups: dict[str, Group] = Field(..., description="The groups defined in the dbt project") + selectors: dict[str, Any] = Field(..., description="The selectors defined in selectors.yml") + disabled: Optional[ + dict[ + str, + list[ + Union[ + AnalysisNode, + SingularTestNode, + HookNode, + ModelNode, + RPCNode, + SqlNode, + GenericTestNode, + SnapshotNode, + SeedNode, + SourceDefinition, + Exposure, + Metric, + ] + ], + ] + ] = Field(None, description="A mapping of the disabled nodes in the target") + parent_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from\xa0child nodes to their dependencies") + child_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from parent nodes to their dependents") + group_map: Optional[dict[str, list[str]]] = Field(None, description="A mapping from group names to their nodes") diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/__init__.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/__init__.py new file mode 100644 index 00000000..3cfa1915 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/__init__.py @@ -0,0 +1,16 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v1.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v1.py new file mode 100644 index 00000000..e5d33a85 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v1.py @@ -0,0 +1,77 @@ +# generated by datamodel-codegen: +# filename: run-results_v1.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class BaseArtifactMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "0.19.0" + generated_at: Optional[datetime] = "2021-02-10T04:42:33.678063Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class RunResultOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingInfo] + thread_id: str + execution_time: float + message: Optional[Union[str, int]] = None + adapter_response: dict[str, Any] + unique_id: str + + +class RunResultsV1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: BaseArtifactMetadata + results: list[RunResultOutput] + elapsed_time: float + args: Optional[dict[str, Any]] = {} diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v2.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v2.py new file mode 100644 index 00000000..8b248d7c --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v2.py @@ -0,0 +1,78 @@ +# generated by datamodel-codegen: +# filename: run-results_v2.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class BaseArtifactMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "0.20.0rc1" + generated_at: Optional[datetime] = "2021-06-07T14:49:01.097134Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class RunResultOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingInfo] + thread_id: str + execution_time: float + adapter_response: dict[str, Any] + message: Optional[str] = None + failures: Optional[int] = None + unique_id: str + + +class RunResultsV2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: BaseArtifactMetadata + results: list[RunResultOutput] + elapsed_time: float + args: Optional[dict[str, Any]] = {} diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v3.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v3.py new file mode 100644 index 00000000..06effdc6 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v3.py @@ -0,0 +1,149 @@ +# generated by datamodel-codegen: +# filename: run-results_v3.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class BaseArtifactMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "0.21.0rc1" + generated_at: Optional[datetime] = "2021-09-24T13:29:14.315088Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + skipped = "skipped" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v2.json" + dbt_version: Optional[str] = "0.21.0rc1" + generated_at: Optional[datetime] = "2021-09-24T13:29:14.312598Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status3(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status3 + + +class Status4(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class RunResultOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingInfo] + thread_id: str + execution_time: float + adapter_response: dict[str, Any] + message: Optional[str] = None + failures: Optional[int] = None + unique_id: str + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class RunResultsV3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: BaseArtifactMetadata + results: list[RunResultOutput] + elapsed_time: float + args: Optional[dict[str, Any]] = {} + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status4 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v4.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v4.py new file mode 100644 index 00000000..44bd186d --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v4.py @@ -0,0 +1,149 @@ +# generated by datamodel-codegen: +# filename: run-results_v4.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class BaseArtifactMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "1.0.0b2" + generated_at: Optional[datetime] = "2021-11-02T20:18:06.799863Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + skipped = "skipped" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v3.json" + dbt_version: Optional[str] = "1.0.0b2" + generated_at: Optional[datetime] = "2021-11-02T20:18:06.796684Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status3(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status3 + + +class Status4(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class RunResultOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingInfo] + thread_id: str + execution_time: float + adapter_response: dict[str, Any] + message: Optional[str] = None + failures: Optional[int] = None + unique_id: str + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = {"count": None, "period": None} + error_after: Optional[Time] = {"count": None, "period": None} + filter: Optional[str] = None + + +class RunResultsV4(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: BaseArtifactMetadata + results: list[RunResultOutput] + elapsed_time: float + args: Optional[dict[str, Any]] = {} + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status4 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v5.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v5.py new file mode 100644 index 00000000..d5358179 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v5.py @@ -0,0 +1,81 @@ +# generated by datamodel-codegen: +# filename: run-results_v5.json + +from __future__ import annotations + +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class BaseArtifactMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "1.7.0b1" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = None + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[str] = None + completed_at: Optional[str] = None + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + skipped = "skipped" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class RunResultOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingInfo] + thread_id: str + execution_time: float + adapter_response: dict[str, Any] + message: Optional[str] = None + failures: Optional[int] = None + unique_id: str + compiled: Optional[bool] = None + compiled_code: Optional[str] = None + relation_name: Optional[str] = None + + +class RunResultsV5(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: BaseArtifactMetadata + results: list[RunResultOutput] + elapsed_time: float + args: Optional[dict[str, Any]] = None diff --git a/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v6.py b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v6.py new file mode 100644 index 00000000..c9b8808f --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/run_results/run_results_v6.py @@ -0,0 +1,92 @@ +# generated by datamodel-codegen: +# filename: run-results_v6.json + +from __future__ import annotations + +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class Metadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: str + dbt_version: Optional[str] = "1.9.0b2" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = None + + +class Status(Enum): + success = "success" + error = "error" + skipped = "skipped" + partial_success = "partial success" + + +class Status1(Enum): + pass_ = "pass" + error = "error" + fail = "fail" + warn = "warn" + skipped = "skipped" + + +class Status2(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class TimingItem(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[str] = None + completed_at: Optional[str] = None + + +class BatchResults(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + successful: Optional[list[list]] = None + failed: Optional[list[list]] = None + + +class Result(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + status: Union[Status, Status1, Status2] + timing: list[TimingItem] + thread_id: str + execution_time: float + adapter_response: dict[str, Any] + message: Optional[str] = None + failures: Optional[int] = None + unique_id: str + compiled: Optional[bool] = None + compiled_code: Optional[str] = None + relation_name: Optional[str] = None + batch_results: Optional[BatchResults] = None + + +class RunResultsV6(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata = Field(..., title="BaseArtifactMetadata") + results: list[Result] + elapsed_time: float + args: Optional[dict[str, Any]] = None diff --git a/src/vendor/dbt_artifacts_parser/parsers/sources/__init__.py b/src/vendor/dbt_artifacts_parser/parsers/sources/__init__.py new file mode 100644 index 00000000..3cfa1915 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/sources/__init__.py @@ -0,0 +1,16 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# diff --git a/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v1.py b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v1.py new file mode 100644 index 00000000..bbba11dc --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v1.py @@ -0,0 +1,90 @@ +# generated by datamodel-codegen: +# filename: sources_v1.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v1.json" + dbt_version: Optional[str] = "0.19.0" + generated_at: Optional[datetime] = "2021-02-10T04:42:33.675309Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + + +class SourcesV1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: FreshnessMetadata + results: list[Union[SourceFreshnessRuntimeError, SourceFreshnessOutput]] + elapsed_time: float diff --git a/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v2.py b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v2.py new file mode 100644 index 00000000..054ef935 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v2.py @@ -0,0 +1,102 @@ +# generated by datamodel-codegen: +# filename: sources_v2.json + +from __future__ import annotations + +from datetime import datetime +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class FreshnessMetadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = "https://schemas.getdbt.com/dbt/sources/v2.json" + dbt_version: Optional[str] = "0.21.0rc1" + generated_at: Optional[datetime] = "2021-09-24T13:29:14.312598Z" + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = {} + + +class Status(Enum): + runtime_error = "runtime error" + + +class SourceFreshnessRuntimeError(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class Time(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: int + period: Period + + +class TimingInfo(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[datetime] = None + completed_at: Optional[datetime] = None + + +class FreshnessThreshold(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[Time] = None + error_after: Optional[Time] = None + filter: Optional[str] = None + + +class SourceFreshnessOutput(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: datetime + snapshotted_at: datetime + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: FreshnessThreshold + adapter_response: dict[str, Any] + timing: list[TimingInfo] + thread_id: str + execution_time: float + + +class SourcesV2(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: FreshnessMetadata + results: list[Union[SourceFreshnessRuntimeError, SourceFreshnessOutput]] + elapsed_time: float diff --git a/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v3.py b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v3.py new file mode 100644 index 00000000..6aaa90ff --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/sources/sources_v3.py @@ -0,0 +1,110 @@ +# generated by datamodel-codegen: +# filename: sources_v3.json + +from __future__ import annotations + +from enum import Enum +from typing import Any +from typing import Optional +from typing import Union + +from pydantic import ConfigDict +from pydantic import Field + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel + + +class Metadata(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + dbt_schema_version: Optional[str] = None + dbt_version: Optional[str] = "1.9.0b2" + generated_at: Optional[str] = None + invocation_id: Optional[str] = None + env: Optional[dict[str, str]] = None + + +class Status(Enum): + runtime_error = "runtime error" + + +class Results(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + error: Optional[Union[str, int]] = None + status: Status + + +class Status1(Enum): + pass_ = "pass" + warn = "warn" + error = "error" + runtime_error = "runtime error" + + +class Period(Enum): + minute = "minute" + hour = "hour" + day = "day" + + +class WarnAfter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class ErrorAfter(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + count: Optional[int] = None + period: Optional[Period] = None + + +class Criteria(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + warn_after: Optional[WarnAfter] = None + error_after: Optional[ErrorAfter] = None + filter: Optional[str] = None + + +class TimingItem(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + name: str + started_at: Optional[str] = None + completed_at: Optional[str] = None + + +class Results1(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + unique_id: str + max_loaded_at: str + snapshotted_at: str + max_loaded_at_time_ago_in_s: float + status: Status1 + criteria: Criteria = Field(..., title="FreshnessThreshold") + adapter_response: dict[str, Any] + timing: list[TimingItem] + thread_id: str + execution_time: float + + +class SourcesV3(BaseParserModel): + model_config = ConfigDict( + extra="forbid", + ) + metadata: Metadata = Field(..., title="FreshnessMetadata") + results: list[Union[Results, Results1]] + elapsed_time: float diff --git a/src/vendor/dbt_artifacts_parser/parsers/utils.py b/src/vendor/dbt_artifacts_parser/parsers/utils.py new file mode 100644 index 00000000..78f770d9 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/utils.py @@ -0,0 +1,67 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +from typing import Type + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel +from vendor.dbt_artifacts_parser.parsers.version_map import ArtifactTypes + + +def get_dbt_schema_version(artifact_json: dict) -> str: + """Get the dbt schema version from the dbt artifact JSON + + Args: + artifact_json (dict): dbt artifacts JSON + + Returns: + (str): dbt schema version from 'metadata.dbt_schema_version' + """ + if "metadata" not in artifact_json: + raise ValueError("'metadata' doesn't exist.") + if "dbt_schema_version" not in artifact_json["metadata"]: + raise ValueError("'metadata.dbt_schema_version' doesnt' exist.") + return artifact_json["metadata"]["dbt_schema_version"] + + +def get_artifact_type_by_id(schema_version: str) -> ArtifactTypes: + """Get artifact information by schema version + + Args: + schema_version: dbt schema version + + Returns: + ArtifactsTypes + """ + for artifact_type in ArtifactTypes: + if schema_version == artifact_type.value.dbt_schema_version: + return artifact_type + raise ValueError(f"no such schema version: {schema_version}") + + +def get_model_class(artifact_type: ArtifactTypes) -> Type[BaseParserModel]: + """Get the model class + + Args: + artifact_type (ArtifactTypes): artifact type + + Returns: + the model class + """ + for artifact_type_ in ArtifactTypes: + if artifact_type == artifact_type_: + return artifact_type_.value.model_class + raise ValueError(f"No such an artifact {artifact_type}") diff --git a/src/vendor/dbt_artifacts_parser/parsers/version_map.py b/src/vendor/dbt_artifacts_parser/parsers/version_map.py new file mode 100644 index 00000000..69dbd0fe --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/parsers/version_map.py @@ -0,0 +1,80 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +from dataclasses import dataclass +from enum import Enum +from typing import Type + +from vendor.dbt_artifacts_parser.parsers.base import BaseParserModel +from vendor.dbt_artifacts_parser.parsers.catalog.catalog_v1 import CatalogV1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v1 import ManifestV1 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v2 import ManifestV2 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v3 import ManifestV3 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v4 import ManifestV4 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v5 import ManifestV5 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v6 import ManifestV6 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v7 import ManifestV7 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v8 import ManifestV8 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v9 import ManifestV9 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v10 import ManifestV10 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v11 import ManifestV11 +from vendor.dbt_artifacts_parser.parsers.manifest.manifest_v12 import ManifestV12 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v1 import RunResultsV1 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v2 import RunResultsV2 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v3 import RunResultsV3 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v4 import RunResultsV4 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v5 import RunResultsV5 +from vendor.dbt_artifacts_parser.parsers.run_results.run_results_v6 import RunResultsV6 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v1 import SourcesV1 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v2 import SourcesV2 +from vendor.dbt_artifacts_parser.parsers.sources.sources_v3 import SourcesV3 + + +@dataclass +class ArtifactType: + dbt_schema_version: str + model_class: Type[BaseParserModel] + + +class ArtifactTypes(Enum): + """Dbt artifacts types""" + + # Catalog + CATALOG_V1 = ArtifactType("https://schemas.getdbt.com/dbt/catalog/v1.json", CatalogV1) + # Manifest + MANIFEST_V1 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v1.json", ManifestV1) + MANIFEST_V2 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v2.json", ManifestV2) + MANIFEST_V3 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v3.json", ManifestV3) + MANIFEST_V4 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v4.json", ManifestV4) + MANIFEST_V5 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v5.json", ManifestV5) + MANIFEST_V6 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v6.json", ManifestV6) + MANIFEST_V7 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v7.json", ManifestV7) + MANIFEST_V8 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v8.json", ManifestV8) + MANIFEST_V9 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v9.json", ManifestV9) + MANIFEST_V10 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v10.json", ManifestV10) + MANIFEST_V11 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v11.json", ManifestV11) + MANIFEST_V12 = ArtifactType("https://schemas.getdbt.com/dbt/manifest/v12.json", ManifestV12) + # RunResults + RUN_RESULTS_V1 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v1.json", RunResultsV1) + RUN_RESULTS_V2 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v2.json", RunResultsV2) + RUN_RESULTS_V3 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v3.json", RunResultsV3) + RUN_RESULTS_V4 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v4.json", RunResultsV4) + RUN_RESULTS_V5 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v5.json", RunResultsV5) + RUN_RESULTS_V6 = ArtifactType("https://schemas.getdbt.com/dbt/run-results/v6.json", RunResultsV6) + # Sources + SOURCES_V1 = ArtifactType("https://schemas.getdbt.com/dbt/sources/v1.json", SourcesV1) + SOURCES_V2 = ArtifactType("https://schemas.getdbt.com/dbt/sources/v2.json", SourcesV2) + SOURCES_V3 = ArtifactType("https://schemas.getdbt.com/dbt/sources/v3.json", SourcesV3) diff --git a/src/vendor/dbt_artifacts_parser/resources/catalog/catalog_v1.json b/src/vendor/dbt_artifacts_parser/resources/catalog/catalog_v1.json new file mode 100644 index 00000000..f104c5b9 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/catalog/catalog_v1.json @@ -0,0 +1,425 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "CatalogArtifact", + "properties": { + "metadata": { + "type": "object", + "title": "CatalogMetadata", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.9.0b2" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "nodes": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "CatalogTable", + "properties": { + "metadata": { + "type": "object", + "title": "TableMetadata", + "properties": { + "type": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "owner": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "type", + "schema", + "name" + ] + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnMetadata", + "properties": { + "type": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "type", + "index", + "name" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "stats": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "StatsItem", + "properties": { + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "include": { + "type": "boolean" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "id", + "label", + "value", + "include" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "columns", + "stats" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "CatalogTable", + "properties": { + "metadata": { + "type": "object", + "title": "TableMetadata", + "properties": { + "type": { + "type": "string" + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "owner": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "type", + "schema", + "name" + ] + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnMetadata", + "properties": { + "type": { + "type": "string" + }, + "index": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "comment": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "type", + "index", + "name" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "stats": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "StatsItem", + "properties": { + "id": { + "type": "string" + }, + "label": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "include": { + "type": "boolean" + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "id", + "label", + "value", + "include" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "columns", + "stats" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "errors": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "_compile_results": { + "anyOf": [ + {}, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "nodes", + "sources" + ], + "$id": "https://schemas.getdbt.com/dbt/catalog/v1.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v1.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v1.json new file mode 100644 index 00000000..69eef10a --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v1.json @@ -0,0 +1,5074 @@ +{ + "title": "Manifest", + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + }, + { + "type": "null" + } + ], + "description": "A list of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.683996Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "NodeConfig(*args, **kwds)" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "test" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + } + }, + "additionalProperties": true, + "description": "TestConfig(*args, **kwds)" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "CompiledSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name", + "kwargs" + ], + "properties": { + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "kwargs": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "TestMetadata(namespace: Union[str, NoneType], name: str, kwargs: Dict[str, Any])" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(*args, **kwds)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , column_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "oneOf": [ + { + "$ref": "#/definitions/TimestampSnapshotConfig" + }, + { + "$ref": "#/definitions/CheckSnapshotConfig" + }, + { + "$ref": "#/definitions/GenericSnapshotConfig" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: Union[ForwardRef('TimestampSnapshotConfig'), ForwardRef('CheckSnapshotConfig'), ForwardRef('GenericSnapshotConfig')], tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "TimestampSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy", + "updated_at" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "type": "string", + "enum": [ + "timestamp" + ] + }, + "updated_at": { + "type": "string" + } + }, + "additionalProperties": true, + "description": "TimestampSnapshotConfig(*args, **kwds)" + }, + "CheckSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy", + "check_cols" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "type": "string", + "enum": [ + "check" + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string", + "enum": [ + "all" + ] + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + } + }, + "additionalProperties": true, + "description": "CheckSnapshotConfig(*args, **kwds)" + }, + "GenericSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "allOf": [ + { + "type": "string" + }, + { + "not": { + "type": "string", + "enum": [ + "timestamp" + ] + } + }, + { + "not": { + "type": "string", + "enum": [ + "check" + ] + } + } + ] + } + }, + "additionalProperties": true, + "description": "GenericSnapshotConfig(*args, **kwds)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None)" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.675309Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.19.0', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(*args, **kwds)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "docs", + "source", + "macro", + "exposure" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v1.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v10.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v10.json new file mode 100644 index 00000000..72737e9b --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v10.json @@ -0,0 +1,5638 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "groups", + "selectors", + "semantic_models" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/SourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Macro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Documentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Exposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Metric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "groups": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Group" + }, + "description": "The groups defined in the dbt project" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + }, + { + "$ref": "#/definitions/SourceDefinition" + }, + { + "$ref": "#/definitions/Exposure" + }, + { + "$ref": "#/definitions/Metric" + }, + { + "$ref": "#/definitions/SemanticModel" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + }, + "group_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from group names to their nodes" + }, + "semantic_models": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/SemanticModel" + }, + "description": "The semantic models defined in the dbt project" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode]], sources: Mapping[str, dbt.contracts.graph.nodes.SourceDefinition], macros: Mapping[str, dbt.contracts.graph.nodes.Macro], docs: Mapping[str, dbt.contracts.graph.nodes.Documentation], exposures: Mapping[str, dbt.contracts.graph.nodes.Exposure], metrics: Mapping[str, dbt.contracts.graph.nodes.Metric], groups: Mapping[str, dbt.contracts.graph.nodes.Group], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode, dbt.contracts.graph.nodes.SourceDefinition, dbt.contracts.graph.nodes.Exposure, dbt.contracts.graph.nodes.Metric, dbt.contracts.graph.nodes.SemanticModel]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType], group_map: Union[Dict[str, List[str]], NoneType], semantic_models: Mapping[str, dbt.contracts.graph.nodes.SemanticModel])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v10.json" + }, + "dbt_version": { + "type": "string", + "default": "1.6.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-08-07T20:10:03.381822Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "03dee192-ff77-43cc-bc3f-5eeaf6d36344" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "Name of the root project" + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project, hashed from the project name" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "AnalysisNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.386713 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "AnalysisNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "type": "string", + "enum": [ + "apply", + "continue", + "fail" + ], + "default": "apply" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, materialized: str = 'view', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', on_configuration_change: dbt.contracts.graph.model_config.OnConfigurationChangeOption = , grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True, node_color: Union[str, NoneType] = None)" + }, + "ContractConfig": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "ContractConfig(enforced: bool = False)" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ColumnLevelConstraint" + }, + "default": [] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "Used in all ManifestNodes and SourceDefinition" + }, + "ColumnLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "ColumnLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Union[str, NoneType] = None, expression: Union[str, NoneType] = None, warn_unenforced: bool = True, warn_unsupported: bool = True)" + }, + "RefArgs": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "package": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "RefArgs(name: str, package: Union[str, NoneType] = None, version: Union[str, float, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Used in CompiledNodes as part of ephemeral model processing" + }, + "Contract": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "checksum": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Contract(enforced: bool = False, checksum: Union[str, NoneType] = None)" + }, + "SingularTestNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.389955 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SingularTestNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "HookNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.3916101 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "HookNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = , index: Union[int, NoneType] = None)" + }, + "ModelNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.393298 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "access": { + "type": "string", + "enum": [ + "protected", + "private", + "public" + ], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ModelLevelConstraint" + }, + "default": [] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "latest_version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "deprecation_date": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "defer_relation": { + "oneOf": [ + { + "$ref": "#/definitions/DeferRelation" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ModelNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = , access: dbt.node_types.AccessType = , constraints: List[dbt.contracts.graph.nodes.ModelLevelConstraint] = , version: Union[str, float, NoneType] = None, latest_version: Union[str, float, NoneType] = None, deprecation_date: Union[datetime.datetime, NoneType] = None, defer_relation: Union[dbt.contracts.graph.nodes.DeferRelation, NoneType] = None)" + }, + "ModelLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ModelLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Union[str, NoneType] = None, expression: Union[str, NoneType] = None, warn_unenforced: bool = True, warn_unsupported: bool = True, columns: List[str] = )" + }, + "DeferRelation": { + "type": "object", + "required": [ + "schema", + "alias" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "DeferRelation(database: Union[str, NoneType], schema: str, alias: str, relation_name: Union[str, NoneType])" + }, + "RPCNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.39583 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "RPCNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "SqlNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql_operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.3974268 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SqlNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "GenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.399393 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "attached_node": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "GenericTestNode(test_metadata: dbt.contracts.graph.nodes.TestMetadata, database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None, attached_node: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "SnapshotNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.4026701 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "defer_relation": { + "oneOf": [ + { + "$ref": "#/definitions/DeferRelation" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "SnapshotNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Union[str, NoneType] = None, compiled: bool = False, compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Union[str, NoneType] = None, contract: dbt.contracts.graph.nodes.Contract = , defer_relation: Union[dbt.contracts.graph.nodes.DeferRelation, NoneType] = None)" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "type": "string", + "enum": [ + "apply", + "continue", + "fail" + ], + "default": "apply" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, materialized: str = 'snapshot', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', on_configuration_change: dbt.contracts.graph.model_config.OnConfigurationChangeOption = , grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , strategy: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "SeedNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "on_configuration_change": "apply", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1691439003.4056058 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "root_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "defer_relation": { + "oneOf": [ + { + "$ref": "#/definitions/DeferRelation" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "SeedNode(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, raw_code: str = '', root_path: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , defer_relation: Union[dbt.contracts.graph.nodes.DeferRelation, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "type": "string", + "enum": [ + "apply", + "continue", + "fail" + ], + "default": "apply" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Union[str, NoneType] = None, materialized: str = 'seed', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', on_configuration_change: dbt.contracts.graph.model_config.OnConfigurationChangeOption = , grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , quote_columns: Union[bool, NoneType] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "Used only in the Macro class" + }, + "SourceDefinition": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1691439003.408927 + } + }, + "additionalProperties": false, + "description": "SourceDefinition(database: Union[str, NoneType], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], source_name: str, source_description: str, loader: str, identifier: str, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[str, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[str], List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Macro": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1691439003.409885 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Macro(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, macro_sql: str, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Union[List[dbt.node_types.ModelLanguage], NoneType] = None)" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "Documentation": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "doc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Documentation(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, block_contents: str)" + }, + "Exposure": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "exposure" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/Owner" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1691439003.411563 + } + }, + "additionalProperties": false, + "description": "Exposure(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.Owner, description: str = '', label: Union[str, NoneType] = None, maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "Owner": { + "type": "object", + "required": [], + "properties": { + "email": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "Owner(_extra: Dict[str, Any] = , email: Union[str, NoneType] = None, name: Union[str, NoneType] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Metric": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "type", + "type_params" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "metric" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "simple", + "ratio", + "cumulative", + "derived" + ] + }, + "type_params": { + "$ref": "#/definitions/MetricTypeParams" + }, + "filter": { + "oneOf": [ + { + "$ref": "#/definitions/WhereFilter" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/SourceFileMetadata" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true, + "group": null + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1691439003.41419 + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Metric(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], description: str, label: str, type: dbt_semantic_interfaces.type_enums.metric_type.MetricType, type_params: dbt.contracts.graph.nodes.MetricTypeParams, filter: Union[dbt.contracts.graph.nodes.WhereFilter, NoneType] = None, metadata: Union[dbt.contracts.graph.semantic_models.SourceFileMetadata, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , metrics: List[List[str]] = , created_at: float = , group: Union[str, NoneType] = None)" + }, + "MetricTypeParams": { + "type": "object", + "required": [], + "properties": { + "measure": { + "oneOf": [ + { + "$ref": "#/definitions/MetricInputMeasure" + }, + { + "type": "null" + } + ] + }, + "input_measures": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricInputMeasure" + }, + "default": [] + }, + "numerator": { + "oneOf": [ + { + "$ref": "#/definitions/MetricInput" + }, + { + "type": "null" + } + ] + }, + "denominator": { + "oneOf": [ + { + "$ref": "#/definitions/MetricInput" + }, + { + "type": "null" + } + ] + }, + "expr": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTimeWindow" + }, + { + "type": "null" + } + ] + }, + "grain_to_date": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ] + }, + "metrics": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/MetricInput" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTypeParams(measure: Union[dbt.contracts.graph.nodes.MetricInputMeasure, NoneType] = None, input_measures: List[dbt.contracts.graph.nodes.MetricInputMeasure] = , numerator: Union[dbt.contracts.graph.nodes.MetricInput, NoneType] = None, denominator: Union[dbt.contracts.graph.nodes.MetricInput, NoneType] = None, expr: Union[str, NoneType] = None, window: Union[dbt.contracts.graph.nodes.MetricTimeWindow, NoneType] = None, grain_to_date: Union[dbt_semantic_interfaces.type_enums.time_granularity.TimeGranularity, NoneType] = None, metrics: Union[List[dbt.contracts.graph.nodes.MetricInput], NoneType] = None)" + }, + "MetricInputMeasure": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "filter": { + "oneOf": [ + { + "$ref": "#/definitions/WhereFilter" + }, + { + "type": "null" + } + ] + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricInputMeasure(name: str, filter: Union[dbt.contracts.graph.nodes.WhereFilter, NoneType] = None, alias: Union[str, NoneType] = None)" + }, + "WhereFilter": { + "type": "object", + "required": [ + "where_sql_template" + ], + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "WhereFilter(where_sql_template: str)" + }, + "MetricInput": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "filter": { + "oneOf": [ + { + "$ref": "#/definitions/WhereFilter" + }, + { + "type": "null" + } + ] + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "offset_window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTimeWindow" + }, + { + "type": "null" + } + ] + }, + "offset_to_grain": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricInput(name: str, filter: Union[dbt.contracts.graph.nodes.WhereFilter, NoneType] = None, alias: Union[str, NoneType] = None, offset_window: Union[dbt.contracts.graph.nodes.MetricTimeWindow, NoneType] = None, offset_to_grain: Union[dbt_semantic_interfaces.type_enums.time_granularity.TimeGranularity, NoneType] = None)" + }, + "MetricTimeWindow": { + "type": "object", + "required": [ + "count", + "granularity" + ], + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string", + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + } + }, + "additionalProperties": false, + "description": "MetricTimeWindow(count: int, granularity: dbt_semantic_interfaces.type_enums.time_granularity.TimeGranularity)" + }, + "SourceFileMetadata": { + "type": "object", + "required": [ + "repo_file_path", + "file_slice" + ], + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "$ref": "#/definitions/FileSlice" + } + }, + "additionalProperties": false, + "description": "Provides file context about what something was created from.\n\n Implementation of the dbt-semantic-interfaces `Metadata` protocol\n " + }, + "FileSlice": { + "type": "object", + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ], + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "description": "Provides file slice level context about what something was created from.\n\n Implementation of the dbt-semantic-interfaces `FileSlice` protocol\n " + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True, group: Union[str, NoneType] = None)" + }, + "Group": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "group" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/Owner" + } + }, + "additionalProperties": false, + "description": "Group(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, owner: dbt.contracts.graph.unparsed.Owner)" + }, + "SemanticModel": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "model" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "semantic_model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "type": "string" + }, + "node_relation": { + "oneOf": [ + { + "$ref": "#/definitions/NodeRelation" + }, + { + "type": "null" + } + ] + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "defaults": { + "oneOf": [ + { + "$ref": "#/definitions/Defaults" + }, + { + "type": "null" + } + ] + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/definitions/Entity" + }, + "default": [] + }, + "measures": { + "type": "array", + "items": { + "$ref": "#/definitions/Measure" + }, + "default": [] + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/definitions/Dimension" + }, + "default": [] + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/SourceFileMetadata" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1691439003.4182558 + }, + "config": { + "$ref": "#/definitions/SemanticModelConfig", + "default": { + "enabled": true + } + }, + "primary_entity": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "SemanticModel(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], model: str, node_relation: Union[dbt.contracts.graph.nodes.NodeRelation, NoneType], description: Union[str, NoneType] = None, defaults: Union[dbt.contracts.graph.semantic_models.Defaults, NoneType] = None, entities: Sequence[dbt.contracts.graph.semantic_models.Entity] = , measures: Sequence[dbt.contracts.graph.semantic_models.Measure] = , dimensions: Sequence[dbt.contracts.graph.semantic_models.Dimension] = , metadata: Union[dbt.contracts.graph.semantic_models.SourceFileMetadata, NoneType] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , created_at: float = , config: dbt.contracts.graph.model_config.SemanticModelConfig = , primary_entity: Union[str, NoneType] = None)" + }, + "NodeRelation": { + "type": "object", + "required": [ + "alias", + "schema_name" + ], + "properties": { + "alias": { + "type": "string" + }, + "schema_name": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "NodeRelation(alias: str, schema_name: str, database: Union[str, NoneType] = None, relation_name: Union[str, NoneType] = None)" + }, + "Defaults": { + "type": "object", + "required": [], + "properties": { + "agg_time_dimension": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Defaults(agg_time_dimension: Union[str, NoneType] = None)" + }, + "Entity": { + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "foreign", + "natural", + "primary", + "unique" + ] + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "role": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expr": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Entity(name: str, type: dbt_semantic_interfaces.type_enums.entity_type.EntityType, description: Union[str, NoneType] = None, role: Union[str, NoneType] = None, expr: Union[str, NoneType] = None)" + }, + "Measure": { + "type": "object", + "required": [ + "name", + "agg" + ], + "properties": { + "name": { + "type": "string" + }, + "agg": { + "type": "string", + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "create_metric": { + "type": "boolean", + "default": false + }, + "expr": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "agg_params": { + "oneOf": [ + { + "$ref": "#/definitions/MeasureAggregationParameters" + }, + { + "type": "null" + } + ] + }, + "non_additive_dimension": { + "oneOf": [ + { + "$ref": "#/definitions/NonAdditiveDimension" + }, + { + "type": "null" + } + ] + }, + "agg_time_dimension": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Measure(name: str, agg: dbt_semantic_interfaces.type_enums.aggregation_type.AggregationType, description: Union[str, NoneType] = None, create_metric: bool = False, expr: Union[str, NoneType] = None, agg_params: Union[dbt.contracts.graph.semantic_models.MeasureAggregationParameters, NoneType] = None, non_additive_dimension: Union[dbt.contracts.graph.semantic_models.NonAdditiveDimension, NoneType] = None, agg_time_dimension: Union[str, NoneType] = None)" + }, + "MeasureAggregationParameters": { + "type": "object", + "required": [], + "properties": { + "percentile": { + "oneOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "use_discrete_percentile": { + "type": "boolean", + "default": false + }, + "use_approximate_percentile": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "MeasureAggregationParameters(percentile: Union[float, NoneType] = None, use_discrete_percentile: bool = False, use_approximate_percentile: bool = False)" + }, + "NonAdditiveDimension": { + "type": "object", + "required": [ + "name", + "window_choice", + "window_groupings" + ], + "properties": { + "name": { + "type": "string" + }, + "window_choice": { + "type": "string", + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "window_groupings": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "description": "NonAdditiveDimension(name: str, window_choice: dbt_semantic_interfaces.type_enums.aggregation_type.AggregationType, window_groupings: List[str])" + }, + "Dimension": { + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "categorical", + "time" + ] + }, + "description": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "is_partition": { + "type": "boolean", + "default": false + }, + "type_params": { + "oneOf": [ + { + "$ref": "#/definitions/DimensionTypeParams" + }, + { + "type": "null" + } + ] + }, + "expr": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "metadata": { + "oneOf": [ + { + "$ref": "#/definitions/SourceFileMetadata" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Dimension(name: str, type: dbt_semantic_interfaces.type_enums.dimension_type.DimensionType, description: Union[str, NoneType] = None, is_partition: bool = False, type_params: Union[dbt.contracts.graph.semantic_models.DimensionTypeParams, NoneType] = None, expr: Union[str, NoneType] = None, metadata: Union[dbt.contracts.graph.semantic_models.SourceFileMetadata, NoneType] = None)" + }, + "DimensionTypeParams": { + "type": "object", + "required": [ + "time_granularity" + ], + "properties": { + "time_granularity": { + "type": "string", + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + "validity_params": { + "oneOf": [ + { + "$ref": "#/definitions/DimensionValidityParams" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "DimensionTypeParams(time_granularity: dbt_semantic_interfaces.type_enums.time_granularity.TimeGranularity, validity_params: Union[dbt.contracts.graph.semantic_models.DimensionValidityParams, NoneType] = None)" + }, + "DimensionValidityParams": { + "type": "object", + "required": [], + "properties": { + "is_start": { + "type": "boolean", + "default": false + }, + "is_end": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "DimensionValidityParams(is_start: bool = False, is_end: bool = False)" + }, + "SemanticModelConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SemanticModelConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v10.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v11.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v11.json new file mode 100644 index 00000000..83db47ea --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v11.json @@ -0,0 +1,6256 @@ +{ + "$ref": "#/$defs/WritableManifest", + "$defs": { + "ManifestMetadata": { + "type": "object", + "title": "ManifestMetadata", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.8.0a1" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + }, + "project_name": { + "description": "Name of the root project", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "project_id": { + "description": "A unique identifier for the project, hashed from the project name", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "user_id": { + "description": "A unique identifier for the user", + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "default": null + }, + "send_anonymous_usage_stats": { + "description": "Whether dbt is configured to send anonymous usage statistics", + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "adapter_type": { + "description": "The type name of the adapter", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "FileHash": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name", + "checksum" + ] + }, + "Hook": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "sql" + ] + }, + "Docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "ContractConfig": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "NodeConfig": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "contract": { + "$ref": "#/$defs/ContractConfig" + } + }, + "additionalProperties": true + }, + "ColumnLevelConstraint": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + "ColumnInfo": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/$defs/ColumnLevelConstraint" + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": [ + "name" + ] + }, + "RefArgs": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "DependsOn": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "InjectedCTE": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "id", + "sql" + ] + }, + "Contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "AnalysisNode": { + "type": "object", + "title": "AnalysisNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "analysis" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/NodeConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "TestConfig": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "where": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true + }, + "SingularTestNode": { + "type": "object", + "title": "SingularTestNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/TestConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "HookNode": { + "type": "object", + "title": "HookNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/NodeConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "ModelConfig": { + "type": "object", + "title": "ModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "contract": { + "$ref": "#/$defs/ContractConfig" + }, + "access": { + "enum": [ + "private", + "protected", + "public" + ], + "default": "protected" + } + }, + "additionalProperties": true + }, + "ModelLevelConstraint": { + "type": "object", + "title": "ModelLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + }, + "DeferRelation": { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name" + ] + }, + "ModelNode": { + "type": "object", + "title": "ModelNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "model" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/ModelConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + }, + "access": { + "enum": [ + "private", + "protected", + "public" + ], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/$defs/ModelLevelConstraint" + } + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "latest_version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "deprecation_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defer_relation": { + "anyOf": [ + { + "$ref": "#/$defs/DeferRelation" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "RPCNode": { + "type": "object", + "title": "RPCNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "rpc" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/NodeConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "SqlNode": { + "type": "object", + "title": "SqlNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "sql_operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/NodeConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "TestMetadata": { + "type": "object", + "title": "TestMetadata", + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "namespace": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "GenericTestNode": { + "type": "object", + "title": "GenericTestNode", + "properties": { + "test_metadata": { + "$ref": "#/$defs/TestMetadata" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/TestConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + }, + "column_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_key_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "attached_node": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "test_metadata", + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "SnapshotConfig": { + "type": "object", + "title": "SnapshotConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "contract": { + "$ref": "#/$defs/ContractConfig" + }, + "strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "updated_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "check_cols": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "SnapshotNode": { + "type": "object", + "title": "SnapshotNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "snapshot" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/SnapshotConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/$defs/InjectedCTE" + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "$ref": "#/$defs/Contract" + }, + "defer_relation": { + "anyOf": [ + { + "$ref": "#/$defs/DeferRelation" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ] + }, + "SeedConfig": { + "type": "object", + "title": "SeedConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/$defs/Hook" + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "contract": { + "$ref": "#/$defs/ContractConfig" + }, + "delimiter": { + "type": "string", + "default": "," + }, + "quote_columns": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "MacroDependsOn": { + "type": "object", + "title": "MacroDependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "SeedNode": { + "type": "object", + "title": "SeedNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "seed" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/$defs/FileHash" + }, + "config": { + "$ref": "#/$defs/SeedConfig" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "root_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "$ref": "#/$defs/MacroDependsOn" + }, + "defer_relation": { + "anyOf": [ + { + "$ref": "#/$defs/DeferRelation" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + "Quoting": { + "type": "object", + "title": "Quoting", + "properties": { + "database": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "identifier": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "column": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "Time": { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "FreshnessThreshold": { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "$ref": "#/$defs/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "$ref": "#/$defs/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "ExternalPartition": { + "type": "object", + "title": "ExternalPartition", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "ExternalTable": { + "type": "object", + "title": "ExternalTable", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "row_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tbl_properties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "partitions": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/$defs/ExternalPartition" + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "SourceConfig": { + "type": "object", + "title": "SourceConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true + }, + "SourceDefinition": { + "type": "object", + "title": "SourceDefinition", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "source" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "quoting": { + "$ref": "#/$defs/Quoting" + }, + "loaded_at_field": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "freshness": { + "anyOf": [ + { + "$ref": "#/$defs/FreshnessThreshold" + }, + { + "type": "null" + } + ], + "default": null + }, + "external": { + "anyOf": [ + { + "$ref": "#/$defs/ExternalTable" + }, + { + "type": "null" + } + ], + "default": null + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/ColumnInfo" + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "source_meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "$ref": "#/$defs/SourceConfig" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "created_at": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ] + }, + "MacroArgument": { + "type": "object", + "title": "MacroArgument", + "properties": { + "name": { + "type": "string" + }, + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "Macro": { + "type": "object", + "title": "Macro", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "macro" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "$ref": "#/$defs/MacroDependsOn" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "docs": { + "$ref": "#/$defs/Docs" + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/$defs/MacroArgument" + } + }, + "created_at": { + "type": "number" + }, + "supported_languages": { + "anyOf": [ + { + "type": "array", + "items": { + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ] + }, + "Documentation": { + "type": "object", + "title": "Documentation", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "doc" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ] + }, + "Owner": { + "type": "object", + "title": "Owner", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "ExposureConfig": { + "type": "object", + "title": "ExposureConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true + }, + "Exposure": { + "type": "object", + "title": "Exposure", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "exposure" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/$defs/Owner" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "maturity": { + "anyOf": [ + { + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "$ref": "#/$defs/ExposureConfig" + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ] + }, + "WhereFilter": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "where_sql_template" + ] + }, + "WhereFilterIntersection": { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "$ref": "#/$defs/WhereFilter" + } + } + }, + "additionalProperties": false, + "required": [ + "where_filters" + ] + }, + "MetricInputMeasure": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "$ref": "#/$defs/WhereFilterIntersection" + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MetricTimeWindow": { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + } + }, + "additionalProperties": false, + "required": [ + "count", + "granularity" + ] + }, + "MetricInput": { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "$ref": "#/$defs/WhereFilterIntersection" + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "$ref": "#/$defs/MetricTimeWindow" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "MetricTypeParams": { + "type": "object", + "title": "MetricTypeParams", + "properties": { + "measure": { + "anyOf": [ + { + "$ref": "#/$defs/MetricInputMeasure" + }, + { + "type": "null" + } + ], + "default": null + }, + "input_measures": { + "type": "array", + "items": { + "$ref": "#/$defs/MetricInputMeasure" + } + }, + "numerator": { + "anyOf": [ + { + "$ref": "#/$defs/MetricInput" + }, + { + "type": "null" + } + ], + "default": null + }, + "denominator": { + "anyOf": [ + { + "$ref": "#/$defs/MetricInput" + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "window": { + "anyOf": [ + { + "$ref": "#/$defs/MetricTimeWindow" + }, + { + "type": "null" + } + ], + "default": null + }, + "grain_to_date": { + "anyOf": [ + { + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "metrics": { + "anyOf": [ + { + "type": "array", + "items": { + "$ref": "#/$defs/MetricInput" + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "FileSlice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + }, + "SourceFileMetadata": { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "$ref": "#/$defs/FileSlice" + } + }, + "additionalProperties": false, + "required": [ + "repo_file_path", + "file_slice" + ] + }, + "MetricConfig": { + "type": "object", + "title": "MetricConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "Metric": { + "type": "object", + "title": "Metric", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "metric" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "enum": [ + "simple", + "ratio", + "cumulative", + "derived" + ] + }, + "type_params": { + "$ref": "#/$defs/MetricTypeParams" + }, + "filter": { + "anyOf": [ + { + "$ref": "#/$defs/WhereFilterIntersection" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/$defs/SourceFileMetadata" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "$ref": "#/$defs/MetricConfig" + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "type", + "type_params" + ] + }, + "Group": { + "type": "object", + "title": "Group", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "group" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "$ref": "#/$defs/Owner" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ] + }, + "QueryParams": { + "type": "object", + "title": "QueryParams", + "properties": { + "metrics": { + "type": "array", + "items": { + "type": "string" + } + }, + "group_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "where": { + "anyOf": [ + { + "$ref": "#/$defs/WhereFilterIntersection" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "metrics", + "group_by", + "where" + ] + }, + "ExportConfig": { + "type": "object", + "title": "ExportConfig", + "properties": { + "export_as": { + "enum": [ + "table", + "view" + ] + }, + "schema_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "export_as" + ] + }, + "Export": { + "type": "object", + "title": "Export", + "properties": { + "name": { + "type": "string" + }, + "config": { + "$ref": "#/$defs/ExportConfig" + } + }, + "additionalProperties": false, + "required": [ + "name", + "config" + ] + }, + "SavedQueryConfig": { + "type": "object", + "title": "SavedQueryConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "SavedQuery": { + "type": "object", + "title": "SavedQuery", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "query_params": { + "$ref": "#/$defs/QueryParams" + }, + "exports": { + "type": "array", + "items": { + "$ref": "#/$defs/Export" + } + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/$defs/SourceFileMetadata" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "$ref": "#/$defs/SavedQueryConfig" + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "created_at": { + "type": "number" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "query_params", + "exports" + ] + }, + "NodeRelation": { + "type": "object", + "title": "NodeRelation", + "properties": { + "alias": { + "type": "string" + }, + "schema_name": { + "type": "string" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "alias", + "schema_name" + ] + }, + "Defaults": { + "type": "object", + "title": "Defaults", + "properties": { + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "Entity": { + "type": "object", + "title": "Entity", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": [ + "foreign", + "natural", + "primary", + "unique" + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "role": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "MeasureAggregationParameters": { + "type": "object", + "title": "MeasureAggregationParameters", + "properties": { + "percentile": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "use_discrete_percentile": { + "type": "boolean", + "default": false + }, + "use_approximate_percentile": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + "NonAdditiveDimension": { + "type": "object", + "title": "NonAdditiveDimension", + "properties": { + "name": { + "type": "string" + }, + "window_choice": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "window_groupings": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "name", + "window_choice", + "window_groupings" + ] + }, + "Measure": { + "type": "object", + "title": "Measure", + "properties": { + "name": { + "type": "string" + }, + "agg": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "create_metric": { + "type": "boolean", + "default": false + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_params": { + "anyOf": [ + { + "$ref": "#/$defs/MeasureAggregationParameters" + }, + { + "type": "null" + } + ], + "default": null + }, + "non_additive_dimension": { + "anyOf": [ + { + "$ref": "#/$defs/NonAdditiveDimension" + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "agg" + ] + }, + "DimensionValidityParams": { + "type": "object", + "title": "DimensionValidityParams", + "properties": { + "is_start": { + "type": "boolean", + "default": false + }, + "is_end": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + "DimensionTypeParams": { + "type": "object", + "title": "DimensionTypeParams", + "properties": { + "time_granularity": { + "enum": [ + "day", + "week", + "month", + "quarter", + "year" + ] + }, + "validity_params": { + "anyOf": [ + { + "$ref": "#/$defs/DimensionValidityParams" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "time_granularity" + ] + }, + "Dimension": { + "type": "object", + "title": "Dimension", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": [ + "categorical", + "time" + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "is_partition": { + "type": "boolean", + "default": false + }, + "type_params": { + "anyOf": [ + { + "$ref": "#/$defs/DimensionTypeParams" + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/$defs/SourceFileMetadata" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "type" + ] + }, + "SemanticModelConfig": { + "type": "object", + "title": "SemanticModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "SemanticModel": { + "type": "object", + "title": "SemanticModel", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "type": "string" + }, + "node_relation": { + "anyOf": [ + { + "$ref": "#/$defs/NodeRelation" + }, + { + "type": "null" + } + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defaults": { + "anyOf": [ + { + "$ref": "#/$defs/Defaults" + }, + { + "type": "null" + } + ], + "default": null + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/$defs/Entity" + } + }, + "measures": { + "type": "array", + "items": { + "$ref": "#/$defs/Measure" + } + }, + "dimensions": { + "type": "array", + "items": { + "$ref": "#/$defs/Dimension" + } + }, + "metadata": { + "anyOf": [ + { + "$ref": "#/$defs/SourceFileMetadata" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "$ref": "#/$defs/DependsOn" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/$defs/RefArgs" + } + }, + "created_at": { + "type": "number" + }, + "config": { + "$ref": "#/$defs/SemanticModelConfig" + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "primary_entity": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "model", + "node_relation" + ] + }, + "WritableManifest": { + "type": "object", + "title": "WritableManifest", + "properties": { + "metadata": { + "description": "Metadata about the manifest", + "$ref": "#/$defs/ManifestMetadata" + }, + "nodes": { + "type": "object", + "description": "The nodes defined in the dbt project and its dependencies", + "additionalProperties": { + "anyOf": [ + { + "$ref": "#/$defs/AnalysisNode" + }, + { + "$ref": "#/$defs/SingularTestNode" + }, + { + "$ref": "#/$defs/HookNode" + }, + { + "$ref": "#/$defs/ModelNode" + }, + { + "$ref": "#/$defs/RPCNode" + }, + { + "$ref": "#/$defs/SqlNode" + }, + { + "$ref": "#/$defs/GenericTestNode" + }, + { + "$ref": "#/$defs/SnapshotNode" + }, + { + "$ref": "#/$defs/SeedNode" + } + ] + }, + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "object", + "description": "The sources defined in the dbt project and its dependencies", + "additionalProperties": { + "$ref": "#/$defs/SourceDefinition" + }, + "propertyNames": { + "type": "string" + } + }, + "macros": { + "type": "object", + "description": "The macros defined in the dbt project and its dependencies", + "additionalProperties": { + "$ref": "#/$defs/Macro" + }, + "propertyNames": { + "type": "string" + } + }, + "docs": { + "type": "object", + "description": "The docs defined in the dbt project and its dependencies", + "additionalProperties": { + "$ref": "#/$defs/Documentation" + }, + "propertyNames": { + "type": "string" + } + }, + "exposures": { + "type": "object", + "description": "The exposures defined in the dbt project and its dependencies", + "additionalProperties": { + "$ref": "#/$defs/Exposure" + }, + "propertyNames": { + "type": "string" + } + }, + "metrics": { + "type": "object", + "description": "The metrics defined in the dbt project and its dependencies", + "additionalProperties": { + "$ref": "#/$defs/Metric" + }, + "propertyNames": { + "type": "string" + } + }, + "groups": { + "type": "object", + "description": "The groups defined in the dbt project", + "additionalProperties": { + "$ref": "#/$defs/Group" + }, + "propertyNames": { + "type": "string" + } + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml", + "propertyNames": { + "type": "string" + } + }, + "disabled": { + "description": "A mapping of the disabled nodes in the target", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/$defs/AnalysisNode" + }, + { + "$ref": "#/$defs/SingularTestNode" + }, + { + "$ref": "#/$defs/HookNode" + }, + { + "$ref": "#/$defs/ModelNode" + }, + { + "$ref": "#/$defs/RPCNode" + }, + { + "$ref": "#/$defs/SqlNode" + }, + { + "$ref": "#/$defs/GenericTestNode" + }, + { + "$ref": "#/$defs/SnapshotNode" + }, + { + "$ref": "#/$defs/SeedNode" + }, + { + "$ref": "#/$defs/SourceDefinition" + }, + { + "$ref": "#/$defs/Exposure" + }, + { + "$ref": "#/$defs/Metric" + }, + { + "$ref": "#/$defs/SavedQuery" + }, + { + "$ref": "#/$defs/SemanticModel" + } + ] + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "parent_map": { + "description": "A mapping from\u00a0child nodes to their dependencies", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "child_map": { + "description": "A mapping from parent nodes to their dependents", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "group_map": { + "description": "A mapping from group names to their nodes", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "saved_queries": { + "type": "object", + "description": "The saved queries defined in the dbt project", + "additionalProperties": { + "$ref": "#/$defs/SavedQuery" + }, + "propertyNames": { + "type": "string" + } + }, + "semantic_models": { + "type": "object", + "description": "The semantic models defined in the dbt project", + "additionalProperties": { + "$ref": "#/$defs/SemanticModel" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "groups", + "selectors", + "disabled", + "parent_map", + "child_map", + "group_map", + "saved_queries", + "semantic_models" + ] + } + }, + "$id": "https://schemas.getdbt.com/dbt/manifest/v11.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v12.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v12.json new file mode 100644 index 00000000..767ef3b7 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v12.json @@ -0,0 +1,23085 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "WritableManifest", + "properties": { + "metadata": { + "type": "object", + "title": "ManifestMetadata", + "description": "Metadata about the manifest", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.10.0b3" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "invocation_started_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + }, + "project_name": { + "description": "Name of the root project", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "project_id": { + "description": "A unique identifier for the project, hashed from the project name", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "user_id": { + "description": "A unique identifier for the user", + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "default": null + }, + "send_anonymous_usage_stats": { + "description": "Whether dbt is configured to send anonymous usage statistics", + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "adapter_type": { + "description": "The type name of the adapter", + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "quoting": { + "description": "The quoting configuration for the project", + "anyOf": [ + { + "type": "object", + "title": "Quoting", + "properties": { + "database": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "identifier": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "column": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false + }, + "nodes": { + "type": "object", + "description": "The nodes defined in the dbt project and its dependencies", + "additionalProperties": { + "anyOf": [ + { + "type": "object", + "title": "Seed", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "seed" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "SeedConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "delimiter": { + "type": "string", + "default": "," + }, + "quote_columns": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "root_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "MacroDependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Analysis", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "analysis" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "SingularTest", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "where": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "HookNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Model", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "model" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "ModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "access": { + "enum": ["private", "protected", "public"], + "default": "protected" + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "ModelFreshness", + "properties": { + "build_after": { + "type": "object", + "title": "ModelBuildAfter", + "properties": { + "updates_on": { + "enum": ["all", "any"], + "default": "any" + }, + "count": { + "type": "integer", + "default": 0 + }, + "period": { + "enum": ["minute", "hour", "day"], + "default": "hour" + } + }, + "additionalProperties": true + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "access": { + "enum": ["private", "protected", "public"], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ModelLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "latest_version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "deprecation_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "primary_key": { + "type": "array", + "items": { + "type": "string" + } + }, + "time_spine": { + "anyOf": [ + { + "type": "object", + "title": "TimeSpine", + "properties": { + "standard_granularity_column": { + "type": "string" + }, + "custom_granularities": { + "type": "array", + "items": { + "type": "object", + "title": "CustomGranularity", + "properties": { + "name": { + "type": "string" + }, + "column_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + } + }, + "additionalProperties": false, + "required": ["standard_granularity_column"] + }, + { + "type": "null" + } + ], + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "ModelFreshness", + "properties": { + "build_after": { + "type": "object", + "title": "ModelBuildAfter", + "properties": { + "updates_on": { + "enum": ["all", "any"], + "default": "any" + }, + "count": { + "type": "integer", + "default": 0 + }, + "period": { + "enum": ["minute", "hour", "day"], + "default": "hour" + } + }, + "additionalProperties": true + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "SqlOperation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "sql_operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "GenericTest", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "where": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "column_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_key_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "attached_node": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "test_metadata": { + "type": "object", + "title": "TestMetadata", + "properties": { + "name": { + "type": "string", + "default": "test" + }, + "kwargs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "namespace": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Snapshot", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "snapshot" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "SnapshotConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "updated_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "check_cols": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "snapshot_meta_column_names": { + "type": "object", + "title": "SnapshotMetaColumnNames", + "properties": { + "dbt_valid_to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_valid_from": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_scd_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_updated_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_is_deleted": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "dbt_valid_to_current": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ] + } + ] + }, + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "object", + "description": "The sources defined in the dbt project and its dependencies", + "additionalProperties": { + "type": "object", + "title": "SourceDefinition", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "source" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "type": "object", + "title": "Quoting", + "properties": { + "database": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "identifier": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "column": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "loaded_at_field": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "loaded_at_query": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "external": { + "anyOf": [ + { + "type": "object", + "title": "ExternalTable", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "row_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tbl_properties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "partitions": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "title": "ExternalPartition", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "source_meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "SourceConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "event_time": { + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "created_at": { + "type": "number" + }, + "unrendered_database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "macros": { + "type": "object", + "description": "The macros defined in the dbt project and its dependencies", + "additionalProperties": { + "type": "object", + "title": "Macro", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "macro" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "type": "object", + "title": "MacroDependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "arguments": { + "type": "array", + "items": { + "type": "object", + "title": "MacroArgument", + "properties": { + "name": { + "type": "string" + }, + "type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "created_at": { + "type": "number" + }, + "supported_languages": { + "anyOf": [ + { + "type": "array", + "items": { + "enum": ["python", "sql"] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "docs": { + "type": "object", + "description": "The docs defined in the dbt project and its dependencies", + "additionalProperties": { + "type": "object", + "title": "Documentation", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "doc" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "exposures": { + "type": "object", + "description": "The exposures defined in the dbt project and its dependencies", + "additionalProperties": { + "type": "object", + "title": "Exposure", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "exposure" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "enum": ["dashboard", "notebook", "analysis", "ml", "application"] + }, + "owner": { + "type": "object", + "title": "Owner", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "maturity": { + "anyOf": [ + { + "enum": ["low", "medium", "high"] + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "ExposureConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "metrics": { + "type": "object", + "description": "The metrics defined in the dbt project and its dependencies", + "additionalProperties": { + "type": "object", + "title": "Metric", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "metric" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "enum": ["simple", "ratio", "cumulative", "derived", "conversion"] + }, + "type_params": { + "type": "object", + "title": "MetricTypeParams", + "properties": { + "measure": { + "anyOf": [ + { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "input_measures": { + "type": "array", + "items": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "numerator": { + "anyOf": [ + { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "denominator": { + "anyOf": [ + { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "grain_to_date": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "metrics": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + { + "type": "null" + } + ], + "default": null + }, + "conversion_type_params": { + "anyOf": [ + { + "type": "object", + "title": "ConversionTypeParams", + "properties": { + "base_measure": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + "conversion_measure": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + "entity": { + "type": "string" + }, + "calculation": { + "enum": ["conversions", "conversion_rate"], + "default": "conversion_rate" + }, + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "constant_properties": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "title": "ConstantPropertyInput", + "properties": { + "base_property": { + "type": "string" + }, + "conversion_property": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "base_property", + "conversion_property" + ] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["base_measure", "conversion_measure", "entity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "cumulative_type_params": { + "anyOf": [ + { + "type": "object", + "title": "CumulativeTypeParams", + "properties": { + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "grain_to_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "period_agg": { + "enum": ["first", "last", "average"], + "default": "first" + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "time_granularity": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "MetricConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "type", + "type_params" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "groups": { + "type": "object", + "description": "The groups defined in the dbt project", + "additionalProperties": { + "type": "object", + "title": "Group", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "group" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "type": "object", + "title": "Owner", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "GroupConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml", + "propertyNames": { + "type": "string" + } + }, + "disabled": { + "description": "A mapping of the disabled nodes in the target", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "title": "Seed", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "seed" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "SeedConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "delimiter": { + "type": "string", + "default": "," + }, + "quote_columns": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "root_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "MacroDependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Analysis", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "analysis" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "SingularTest", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "where": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "HookNode", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Model", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "model" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "ModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "access": { + "enum": ["private", "protected", "public"], + "default": "protected" + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "ModelFreshness", + "properties": { + "build_after": { + "type": "object", + "title": "ModelBuildAfter", + "properties": { + "updates_on": { + "enum": ["all", "any"], + "default": "any" + }, + "count": { + "type": "integer", + "default": 0 + }, + "period": { + "enum": ["minute", "hour", "day"], + "default": "hour" + } + }, + "additionalProperties": true + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "access": { + "enum": ["private", "protected", "public"], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ModelLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "latest_version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "deprecation_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "primary_key": { + "type": "array", + "items": { + "type": "string" + } + }, + "time_spine": { + "anyOf": [ + { + "type": "object", + "title": "TimeSpine", + "properties": { + "standard_granularity_column": { + "type": "string" + }, + "custom_granularities": { + "type": "array", + "items": { + "type": "object", + "title": "CustomGranularity", + "properties": { + "name": { + "type": "string" + }, + "column_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + } + }, + "additionalProperties": false, + "required": ["standard_granularity_column"] + }, + { + "type": "null" + } + ], + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "ModelFreshness", + "properties": { + "build_after": { + "type": "object", + "title": "ModelBuildAfter", + "properties": { + "updates_on": { + "enum": ["all", "any"], + "default": "any" + }, + "count": { + "type": "integer", + "default": 0 + }, + "period": { + "enum": ["minute", "hour", "day"], + "default": "hour" + } + }, + "additionalProperties": true + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "SqlOperation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "sql_operation" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "GenericTest", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "test" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "where": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "column_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_key_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "attached_node": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "test_metadata": { + "type": "object", + "title": "TestMetadata", + "properties": { + "name": { + "type": "string", + "default": "test" + }, + "kwargs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "namespace": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "Snapshot", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "snapshot" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["name", "checksum"] + }, + "config": { + "type": "object", + "title": "SnapshotConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + }, + "strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "target_database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "updated_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "check_cols": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "snapshot_meta_column_names": { + "type": "object", + "title": "SnapshotMetaColumnNames", + "properties": { + "dbt_valid_to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_valid_from": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_scd_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_updated_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "dbt_is_deleted": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "dbt_valid_to_current": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "created_at": { + "type": "number" + }, + "config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "unrendered_config_call_dict": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "compiled_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "type": "object", + "title": "InjectedCTE", + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["id", "sql"] + } + }, + "_pre_injected_sql": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "contract": { + "type": "object", + "title": "Contract", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "defer_relation": { + "anyOf": [ + { + "type": "object", + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "batch_size": { + "default": null + }, + "lookback": { + "default": 1 + }, + "begin": { + "default": null + }, + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "post-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["sql"] + } + }, + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "on_configuration_change": { + "enum": ["apply", "continue", "fail"] + }, + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "packages": { + "type": "array", + "items": { + "type": "string" + } + }, + "docs": { + "type": "object", + "title": "Docs", + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "event_time": { + "default": null + }, + "concurrent_batches": { + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name", + "resource_type", + "name", + "description", + "compiled_code", + "meta", + "tags", + "config" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ] + }, + { + "type": "object", + "title": "SourceDefinition", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "const": "source" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "type": "object", + "title": "Quoting", + "properties": { + "database": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "identifier": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "column": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "loaded_at_field": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "loaded_at_query": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "external": { + "anyOf": [ + { + "type": "object", + "title": "ExternalTable", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "location": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "file_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "row_format": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "tbl_properties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "partitions": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "object", + "title": "ExternalPartition", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + { + "type": "null" + } + ], + "default": null + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "type": "object", + "title": "ColumnInfo", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "data_type": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "constraints": { + "type": "array", + "items": { + "type": "object", + "title": "ColumnLevelConstraint", + "properties": { + "type": { + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "to": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "to_columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["type"] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "ColumnConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "granularity": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": true, + "required": ["name"] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "source_meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "SourceConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "event_time": { + "default": null + }, + "freshness": { + "anyOf": [ + { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": ["minute", "hour", "day"] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "patch_path": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "created_at": { + "type": "number" + }, + "unrendered_database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "unrendered_schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "doc_blocks": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ] + }, + { + "type": "object", + "title": "Exposure", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "exposure" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "type": "object", + "title": "Owner", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "email": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ], + "default": null + }, + "name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "maturity": { + "anyOf": [ + { + "enum": ["low", "medium", "high"] + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "ExposureConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "url": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ] + }, + { + "type": "object", + "title": "Metric", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "metric" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "enum": [ + "simple", + "ratio", + "cumulative", + "derived", + "conversion" + ] + }, + "type_params": { + "type": "object", + "title": "MetricTypeParams", + "properties": { + "measure": { + "anyOf": [ + { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "input_measures": { + "type": "array", + "items": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "numerator": { + "anyOf": [ + { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "denominator": { + "anyOf": [ + { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "grain_to_date": { + "anyOf": [ + { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "metrics": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "title": "MetricInput", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "offset_to_grain": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + { + "type": "null" + } + ], + "default": null + }, + "conversion_type_params": { + "anyOf": [ + { + "type": "object", + "title": "ConversionTypeParams", + "properties": { + "base_measure": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "where_sql_template" + ] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + "conversion_measure": { + "type": "object", + "title": "MetricInputMeasure", + "properties": { + "name": { + "type": "string" + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "where_sql_template" + ] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "join_to_timespine": { + "type": "boolean", + "default": false + }, + "fill_nulls_with": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + }, + "entity": { + "type": "string" + }, + "calculation": { + "enum": ["conversions", "conversion_rate"], + "default": "conversion_rate" + }, + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "constant_properties": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "title": "ConstantPropertyInput", + "properties": { + "base_property": { + "type": "string" + }, + "conversion_property": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "base_property", + "conversion_property" + ] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "base_measure", + "conversion_measure", + "entity" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "cumulative_type_params": { + "anyOf": [ + { + "type": "object", + "title": "CumulativeTypeParams", + "properties": { + "window": { + "anyOf": [ + { + "type": "object", + "title": "MetricTimeWindow", + "properties": { + "count": { + "type": "integer" + }, + "granularity": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["count", "granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "grain_to_date": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "period_agg": { + "enum": ["first", "last", "average"], + "default": "first" + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "filter": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "time_granularity": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "config": { + "type": "object", + "title": "MetricConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "created_at": { + "type": "number" + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "type", + "type_params" + ] + }, + { + "type": "object", + "title": "SavedQuery", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "saved_query" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "query_params": { + "type": "object", + "title": "QueryParams", + "properties": { + "metrics": { + "type": "array", + "items": { + "type": "string" + } + }, + "group_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "where": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ] + }, + "order_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["metrics", "group_by", "where"] + }, + "exports": { + "type": "array", + "items": { + "type": "object", + "title": "Export", + "properties": { + "name": { + "type": "string" + }, + "config": { + "type": "object", + "title": "ExportConfig", + "properties": { + "export_as": { + "enum": ["table", "view"] + }, + "schema_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["export_as"] + }, + "unrendered_config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["name", "config"] + } + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "SavedQueryConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "export_as": { + "anyOf": [ + { + "enum": ["table", "view"] + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "cache": { + "type": "object", + "title": "SavedQueryCache", + "properties": { + "enabled": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "created_at": { + "type": "number" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "query_params", + "exports" + ] + }, + { + "type": "object", + "title": "SemanticModel", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "type": "string" + }, + "node_relation": { + "anyOf": [ + { + "type": "object", + "title": "NodeRelation", + "properties": { + "alias": { + "type": "string" + }, + "schema_name": { + "type": "string" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "" + } + }, + "additionalProperties": false, + "required": ["alias", "schema_name"] + }, + { + "type": "null" + } + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defaults": { + "anyOf": [ + { + "type": "object", + "title": "Defaults", + "properties": { + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "entities": { + "type": "array", + "items": { + "type": "object", + "title": "Entity", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": ["foreign", "natural", "primary", "unique"] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "role": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "type"] + } + }, + "measures": { + "type": "array", + "items": { + "type": "object", + "title": "Measure", + "properties": { + "name": { + "type": "string" + }, + "agg": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "create_metric": { + "type": "boolean", + "default": false + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_params": { + "anyOf": [ + { + "type": "object", + "title": "MeasureAggregationParameters", + "properties": { + "percentile": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "use_discrete_percentile": { + "type": "boolean", + "default": false + }, + "use_approximate_percentile": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "non_additive_dimension": { + "anyOf": [ + { + "type": "object", + "title": "NonAdditiveDimension", + "properties": { + "name": { + "type": "string" + }, + "window_choice": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "window_groupings": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "name", + "window_choice", + "window_groupings" + ] + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "agg"] + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "object", + "title": "Dimension", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": ["categorical", "time"] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "is_partition": { + "type": "boolean", + "default": false + }, + "type_params": { + "anyOf": [ + { + "type": "object", + "title": "DimensionTypeParams", + "properties": { + "time_granularity": { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + "validity_params": { + "anyOf": [ + { + "type": "object", + "title": "DimensionValidityParams", + "properties": { + "is_start": { + "type": "boolean", + "default": false + }, + "is_end": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["time_granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "type"] + } + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "created_at": { + "type": "number" + }, + "config": { + "type": "object", + "title": "SemanticModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "primary_entity": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "model", + "node_relation" + ] + }, + { + "type": "object", + "title": "UnitTestDefinition", + "properties": { + "model": { + "type": "string" + }, + "given": { + "type": "array", + "items": { + "type": "object", + "title": "UnitTestInputFixture", + "properties": { + "input": { + "type": "string" + }, + "rows": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "default": null + }, + "format": { + "enum": ["csv", "dict", "sql"], + "default": "dict" + }, + "fixture": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["input"] + } + }, + "expect": { + "type": "object", + "title": "UnitTestOutputFixture", + "properties": { + "rows": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "default": null + }, + "format": { + "enum": ["csv", "dict", "sql"], + "default": "dict" + }, + "fixture": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "overrides": { + "anyOf": [ + { + "type": "object", + "title": "UnitTestOverrides", + "properties": { + "macros": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "vars": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "env_vars": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "config": { + "type": "object", + "title": "UnitTestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "created_at": { + "type": "number" + }, + "versions": { + "anyOf": [ + { + "type": "object", + "title": "UnitTestNodeVersions", + "properties": { + "include": { + "anyOf": [ + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "type": "null" + } + ], + "default": null + }, + "exclude": { + "anyOf": [ + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "model", + "given", + "expect", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn" + ] + } + ] + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "parent_map": { + "description": "A mapping from\u00a0child nodes to their dependencies", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "child_map": { + "description": "A mapping from parent nodes to their dependents", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "group_map": { + "description": "A mapping from group names to their nodes", + "anyOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + }, + "propertyNames": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "saved_queries": { + "type": "object", + "description": "The saved queries defined in the dbt project", + "additionalProperties": { + "type": "object", + "title": "SavedQuery", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "const": "saved_query" + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "query_params": { + "type": "object", + "title": "QueryParams", + "properties": { + "metrics": { + "type": "array", + "items": { + "type": "string" + } + }, + "group_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "where": { + "anyOf": [ + { + "type": "object", + "title": "WhereFilterIntersection", + "properties": { + "where_filters": { + "type": "array", + "items": { + "type": "object", + "title": "WhereFilter", + "properties": { + "where_sql_template": { + "type": "string" + } + }, + "additionalProperties": false, + "required": ["where_sql_template"] + } + } + }, + "additionalProperties": false, + "required": ["where_filters"] + }, + { + "type": "null" + } + ] + }, + "order_by": { + "type": "array", + "items": { + "type": "string" + } + }, + "limit": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["metrics", "group_by", "where"] + }, + "exports": { + "type": "array", + "items": { + "type": "object", + "title": "Export", + "properties": { + "name": { + "type": "string" + }, + "config": { + "type": "object", + "title": "ExportConfig", + "properties": { + "export_as": { + "enum": ["table", "view"] + }, + "schema_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "alias": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["export_as"] + }, + "unrendered_config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["name", "config"] + } + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "type": "object", + "title": "SavedQueryConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "export_as": { + "anyOf": [ + { + "enum": ["table", "view"] + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "cache": { + "type": "object", + "title": "SavedQueryCache", + "properties": { + "enabled": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "created_at": { + "type": "number" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "query_params", + "exports" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "semantic_models": { + "type": "object", + "description": "The semantic models defined in the dbt project", + "additionalProperties": { + "type": "object", + "title": "SemanticModel", + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "type": "string" + }, + "node_relation": { + "anyOf": [ + { + "type": "object", + "title": "NodeRelation", + "properties": { + "alias": { + "type": "string" + }, + "schema_name": { + "type": "string" + }, + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "" + } + }, + "additionalProperties": false, + "required": ["alias", "schema_name"] + }, + { + "type": "null" + } + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "defaults": { + "anyOf": [ + { + "type": "object", + "title": "Defaults", + "properties": { + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "entities": { + "type": "array", + "items": { + "type": "object", + "title": "Entity", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": ["foreign", "natural", "primary", "unique"] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "role": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "type"] + } + }, + "measures": { + "type": "array", + "items": { + "type": "object", + "title": "Measure", + "properties": { + "name": { + "type": "string" + }, + "agg": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "create_metric": { + "type": "boolean", + "default": false + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_params": { + "anyOf": [ + { + "type": "object", + "title": "MeasureAggregationParameters", + "properties": { + "percentile": { + "anyOf": [ + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + }, + "use_discrete_percentile": { + "type": "boolean", + "default": false + }, + "use_approximate_percentile": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "non_additive_dimension": { + "anyOf": [ + { + "type": "object", + "title": "NonAdditiveDimension", + "properties": { + "name": { + "type": "string" + }, + "window_choice": { + "enum": [ + "sum", + "min", + "max", + "count_distinct", + "sum_boolean", + "average", + "percentile", + "median", + "count" + ] + }, + "window_groupings": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": ["name", "window_choice", "window_groupings"] + }, + { + "type": "null" + } + ], + "default": null + }, + "agg_time_dimension": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "agg"] + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "object", + "title": "Dimension", + "properties": { + "name": { + "type": "string" + }, + "type": { + "enum": ["categorical", "time"] + }, + "description": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "label": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "is_partition": { + "type": "boolean", + "default": false + }, + "type_params": { + "anyOf": [ + { + "type": "object", + "title": "DimensionTypeParams", + "properties": { + "time_granularity": { + "enum": [ + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", + "day", + "week", + "month", + "quarter", + "year" + ] + }, + "validity_params": { + "anyOf": [ + { + "type": "object", + "title": "DimensionValidityParams", + "properties": { + "is_start": { + "type": "boolean", + "default": false + }, + "is_end": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["time_granularity"] + }, + { + "type": "null" + } + ], + "default": null + }, + "expr": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "config": { + "anyOf": [ + { + "type": "object", + "title": "SemanticLayerElementConfig", + "properties": { + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name", "type"] + } + }, + "metadata": { + "anyOf": [ + { + "type": "object", + "title": "SourceFileMetadata", + "properties": { + "repo_file_path": { + "type": "string" + }, + "file_slice": { + "type": "object", + "title": "FileSlice", + "properties": { + "filename": { + "type": "string" + }, + "content": { + "type": "string" + }, + "start_line_number": { + "type": "integer" + }, + "end_line_number": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "content", + "start_line_number", + "end_line_number" + ] + } + }, + "additionalProperties": false, + "required": ["repo_file_path", "file_slice"] + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["name"] + } + }, + "created_at": { + "type": "number" + }, + "config": { + "type": "object", + "title": "SemanticModelConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": true + }, + "unrendered_config": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "primary_entity": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "model", + "node_relation" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "unit_tests": { + "type": "object", + "description": "The unit tests defined in the project", + "additionalProperties": { + "type": "object", + "title": "UnitTestDefinition", + "properties": { + "model": { + "type": "string" + }, + "given": { + "type": "array", + "items": { + "type": "object", + "title": "UnitTestInputFixture", + "properties": { + "input": { + "type": "string" + }, + "rows": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "default": null + }, + "format": { + "enum": ["csv", "dict", "sql"], + "default": "dict" + }, + "fixture": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": ["input"] + } + }, + "expect": { + "type": "object", + "title": "UnitTestOutputFixture", + "properties": { + "rows": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "default": null + }, + "format": { + "enum": ["csv", "dict", "sql"], + "default": "dict" + }, + "fixture": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "name": { + "type": "string" + }, + "resource_type": { + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql_operation", + "doc", + "source", + "macro", + "exposure", + "metric", + "group", + "saved_query", + "semantic_model", + "unit_test", + "fixture" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string", + "default": "" + }, + "overrides": { + "anyOf": [ + { + "type": "object", + "title": "UnitTestOverrides", + "properties": { + "macros": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "vars": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "env_vars": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "depends_on": { + "type": "object", + "title": "DependsOn", + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "config": { + "type": "object", + "title": "UnitTestConfig", + "properties": { + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "tags": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true + }, + "checksum": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "created_at": { + "type": "number" + }, + "versions": { + "anyOf": [ + { + "type": "object", + "title": "UnitTestNodeVersions", + "properties": { + "include": { + "anyOf": [ + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "type": "null" + } + ], + "default": null + }, + "exclude": { + "anyOf": [ + { + "type": "array", + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "model", + "given", + "expect", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn" + ] + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "groups", + "selectors", + "disabled", + "parent_map", + "child_map", + "group_map", + "saved_queries", + "semantic_models", + "unit_tests" + ], + "$id": "https://schemas.getdbt.com/dbt/manifest/v12.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v2.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v2.json new file mode 100644 index 00000000..75a51af1 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v2.json @@ -0,0 +1,5128 @@ +{ + "title": "Manifest", + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + }, + { + "type": "null" + } + ], + "description": "A list of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v2.json" + }, + "dbt_version": { + "type": "string", + "default": "0.20.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-06-07T14:49:01.099700Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None)" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "test" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'test', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , column_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: int = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.20.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-06-07T14:49:01.095724Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.20.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: int = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "docs", + "source", + "macro", + "exposure" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: int = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v2.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v3.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v3.json new file mode 100644 index 00000000..9ec3069f --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v3.json @@ -0,0 +1,5225 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + }, + { + "type": "null" + } + ], + "description": "A list of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "0.21.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-09-24T13:29:14.317700Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1632490154 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "integer", + "default": 1632490154 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: int = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v2.json" + }, + "dbt_version": { + "type": "string", + "default": "0.21.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-09-24T13:29:14.312598Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1632490154 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: int = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "docs", + "source", + "macro", + "exposure" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1632490154 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: int = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v3.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v4.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v4.json new file mode 100644 index 00000000..fc5a71a9 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v4.json @@ -0,0 +1,5939 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.307789Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3118432 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.314477 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.315979 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.317642 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.319278 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.321433 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.323731 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.326388 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.328031 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.329485 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3306549 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.332001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.333348 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.335125 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.336567 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3383949 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.339838 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3425322 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1638236147.345053 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.301745Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.345993 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.347234 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.348404 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v4.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v5.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v5.json new file mode 100644 index 00000000..2db053b4 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v5.json @@ -0,0 +1,5984 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v5.json" + }, + "dbt_version": { + "type": "string", + "default": "1.1.0b1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-04-12T01:16:32.489402Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "643c124a-0b61-4f90-90a5-a2decad774d0" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.4941928 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.4966102 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.4980211 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.499937 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.5019672 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.503406 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.505614 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.50937 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.511486 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.5133781 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.5146 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.515753 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.517012 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.518336 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.519518 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.520767 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.522246 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1649726192.52479 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1649726192.52745 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.1.0b1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-04-12T01:16:32.483681Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "643c124a-0b61-4f90-90a5-a2decad774d0" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.1.0b1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1649726192.528407 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1649726192.529697 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1649726192.530702 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v5.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v6.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v6.json new file mode 100644 index 00000000..9a027247 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v6.json @@ -0,0 +1,6209 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v6.json" + }, + "dbt_version": { + "type": "string", + "default": "1.2.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-07-26T13:02:44.173047Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "b98791cb-6931-421b-aeb5-945dc062e419" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1760619 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Optional[str] = None, quote: Optional[bool] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.177789 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1790001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.180038 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, index: Optional[int] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1810539 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.182029 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.183202 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1849642 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , quote_columns: Optional[bool] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.18593 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1869571 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.187786 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.188651 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Optional[int] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1895108 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.190333 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.191165 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.1920261 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.192925 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1658840564.194531 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1658840564.196107 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Optional[str], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[pathlib.Path] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.2.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-07-26T13:02:44.168999Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "b98791cb-6931-421b-aeb5-945dc062e419" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.2.0', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Optional[List[dbt.contracts.graph.unparsed.ExternalPartition]] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1658840564.1967978 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql operation", + "docs block", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1658840564.197692 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Optional[str] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "description", + "label", + "type", + "sql", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "type": "string" + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql operation", + "docs block", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1658840564.1985369 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, description: str, label: str, type: str, sql: str, timestamp: Optional[str], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], model: Optional[str] = None, model_unique_id: Optional[str] = None, resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v6.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v7.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v7.json new file mode 100644 index 00000000..efb3ff99 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v7.json @@ -0,0 +1,6575 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v7.json" + }, + "dbt_version": { + "type": "string", + "default": "1.3.0b2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-09-14T20:35:15.346636Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "c59a8269-533c-4b78-a709-5094045afd4d" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.3517282 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True, node_color: Union[str, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.35441 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.356541 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.3582149 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.359935 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.361423 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.363411 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.366584 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "compiled", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.3682182 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_code: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.369675 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.370925 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.372257 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.373705 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.375131 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.376405 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.3784761 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.380325 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "schema", + "fqn", + "unique_id", + "raw_code", + "language", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "raw_code": { + "type": "string" + }, + "language": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1663187715.3832462 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, raw_code: str, language: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', incremental_strategy: Union[str, NoneType] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, unique_key: Union[str, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , strategy: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1663187715.3854342 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.3.0b2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-09-14T20:35:15.341700Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "c59a8269-533c-4b78-a709-5094045afd4d" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.3.0b2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1663187715.386226 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Union[List[dbt.node_types.ModelLanguage], NoneType] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql operation", + "docs block", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1663187715.3878772 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', label: Union[str, NoneType] = None, maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "description", + "label", + "calculation_method", + "expression", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "calculation_method": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTime" + }, + { + "type": "null" + } + ] + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql operation", + "docs block", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1663187715.38939 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, description: str, label: str, calculation_method: str, expression: str, timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], window: Union[dbt.contracts.graph.unparsed.MetricTime, NoneType], model: Union[str, NoneType] = None, model_unique_id: Union[str, NoneType] = None, resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + }, + "MetricTime": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTime(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.MetricTimePeriod, NoneType] = None)" + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v7.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v8.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v8.json new file mode 100644 index 00000000..d7192ab8 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v8.json @@ -0,0 +1,4434 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/SourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Macro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Documentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Exposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Metric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + }, + { + "$ref": "#/definitions/SourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode]], sources: Mapping[str, dbt.contracts.graph.nodes.SourceDefinition], macros: Mapping[str, dbt.contracts.graph.nodes.Macro], docs: Mapping[str, dbt.contracts.graph.nodes.Documentation], exposures: Mapping[str, dbt.contracts.graph.nodes.Exposure], metrics: Mapping[str, dbt.contracts.graph.nodes.Metric], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode, dbt.contracts.graph.nodes.SourceDefinition]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v8.json" + }, + "dbt_version": { + "type": "string", + "default": "1.4.1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-02-09T10:04:47.350768Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "f795bc66-f417-4007-af6e-f2e513d33790" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "AnalysisNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.353436 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "AnalysisNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True, node_color: Optional[str] = None)" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "Used in all ManifestNodes and SourceDefinition" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Used in CompiledNodes as part of ephemeral model processing" + }, + "SingularTestNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.355371 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "SingularTestNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "HookNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.356482 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "HookNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, index: Optional[int] = None)" + }, + "ModelNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.357701 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ModelNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "RPCNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.358761 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "RPCNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "SqlNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.359803 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "SqlNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "GenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.361009 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "GenericTestNode(test_metadata: dbt.contracts.graph.nodes.TestMetadata, database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" + }, + "SnapshotNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.364386 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "SnapshotNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None)" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "SeedNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1675937087.366245 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "root_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + } + }, + "additionalProperties": false, + "description": "SeedNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', root_path: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = )" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , quote_columns: Optional[bool] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "Used only in the Macro class" + }, + "SourceDefinition": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1675937087.368067 + } + }, + "additionalProperties": false, + "description": "SourceDefinition(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], source_name: str, source_description: str, loader: str, identifier: str, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[str] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.4.1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-02-09T10:04:47.347023Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "f795bc66-f417-4007-af6e-f2e513d33790" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.4.1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Union[List[str], List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Macro": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1675937087.368656 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Macro(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, macro_sql: str, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Optional[List[dbt.node_types.ModelLanguage]] = None)" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" + }, + "Documentation": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "doc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Documentation(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, block_contents: str)" + }, + "Exposure": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "exposure" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1675937087.369866 + } + }, + "additionalProperties": false, + "description": "Exposure(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, description: str = '', label: Optional[str] = None, maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Optional[str] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Metric": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "calculation_method", + "expression", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "metric" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "calculation_method": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTime" + }, + { + "type": "null" + } + ] + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1675937087.371092 + } + }, + "additionalProperties": false, + "description": "Metric(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], description: str, label: str, calculation_method: str, expression: str, filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], timestamp: Optional[str] = None, window: Optional[dbt.contracts.graph.unparsed.MetricTime] = None, model: Optional[str] = None, model_unique_id: Optional[str] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + }, + "MetricTime": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTime(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.MetricTimePeriod] = None)" + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v8.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v9.json b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v9.json new file mode 100644 index 00000000..28a47736 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/manifest/manifest_v9.json @@ -0,0 +1,4965 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "groups", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/SourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Macro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Documentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Exposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Metric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "groups": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Group" + }, + "description": "The groups defined in the dbt project" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + }, + { + "$ref": "#/definitions/SourceDefinition" + }, + { + "$ref": "#/definitions/Exposure" + }, + { + "$ref": "#/definitions/Metric" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + }, + "group_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from group names to their nodes" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode]], sources: Mapping[str, dbt.contracts.graph.nodes.SourceDefinition], macros: Mapping[str, dbt.contracts.graph.nodes.Macro], docs: Mapping[str, dbt.contracts.graph.nodes.Documentation], exposures: Mapping[str, dbt.contracts.graph.nodes.Exposure], metrics: Mapping[str, dbt.contracts.graph.nodes.Metric], groups: Mapping[str, dbt.contracts.graph.nodes.Group], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode, dbt.contracts.graph.nodes.SourceDefinition, dbt.contracts.graph.nodes.Exposure, dbt.contracts.graph.nodes.Metric]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]], group_map: Optional[Dict[str, List[str]]])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v9.json" + }, + "dbt_version": { + "type": "string", + "default": "1.5.0b5" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-04-12T03:35:01.188035Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "8aa1596d-f52f-40bc-ad4b-f5e48fc7e6c2" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "AnalysisNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.189703 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "AnalysisNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'view', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True, node_color: Optional[str] = None)" + }, + "ContractConfig": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "ContractConfig(enforced: bool = False)" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ColumnLevelConstraint" + }, + "default": [] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "Used in all ManifestNodes and SourceDefinition" + }, + "ColumnLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "ColumnLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True)" + }, + "RefArgs": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "package": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "RefArgs(name: str, package: Optional[str] = None, version: Union[str, float, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Used in CompiledNodes as part of ephemeral model processing" + }, + "Contract": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "checksum": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Contract(enforced: bool = False, checksum: Optional[str] = None)" + }, + "SingularTestNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.19095 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SingularTestNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "HookNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.191555 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "HookNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , index: Optional[int] = None)" + }, + "ModelNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.192162 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "access": { + "type": "string", + "enum": [ + "protected", + "private", + "public" + ], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ModelLevelConstraint" + }, + "default": [] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "latest_version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ModelNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , access: dbt.node_types.AccessType = , constraints: List[dbt.contracts.graph.nodes.ModelLevelConstraint] = , version: Union[str, float, NoneType] = None, latest_version: Union[str, float, NoneType] = None)" + }, + "ModelLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ModelLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True, columns: List[str] = )" + }, + "RPCNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.192949 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "RPCNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "SqlNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.1935291 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SqlNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "GenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.19419 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "attached_node": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "GenericTestNode(test_metadata: dbt.contracts.graph.nodes.TestMetadata, database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , column_name: Optional[str] = None, file_key_name: Optional[str] = None, attached_node: Optional[str] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" + }, + "SnapshotNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.1952698 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SnapshotNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'snapshot', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "SeedNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1681270501.1968079 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "root_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + } + }, + "additionalProperties": false, + "description": "SeedNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', root_path: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = )" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'seed', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , quote_columns: Optional[bool] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "Used only in the Macro class" + }, + "SourceDefinition": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1681270501.197819 + } + }, + "additionalProperties": false, + "description": "SourceDefinition(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], source_name: str, source_description: str, loader: str, identifier: str, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[str] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.5.0b5" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-04-12T03:35:01.185979Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "8aa1596d-f52f-40bc-ad4b-f5e48fc7e6c2" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.5.0b5', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Union[List[str], List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Macro": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1681270501.198105 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Macro(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, macro_sql: str, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Optional[List[dbt.node_types.ModelLanguage]] = None)" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" + }, + "Documentation": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "doc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Documentation(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, block_contents: str)" + }, + "Exposure": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "exposure" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/Owner" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1681270501.198782 + } + }, + "additionalProperties": false, + "description": "Exposure(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.Owner, description: str = '', label: Optional[str] = None, maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "Owner": { + "type": "object", + "required": [], + "properties": { + "email": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "Owner(_extra: Dict[str, Any] = , email: Optional[str] = None, name: Optional[str] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Metric": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "calculation_method", + "expression", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "metric" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "calculation_method": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTime" + }, + { + "type": "null" + } + ] + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true, + "group": null + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1681270501.199492 + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Metric(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], description: str, label: str, calculation_method: str, expression: str, filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], timestamp: Optional[str] = None, window: Optional[dbt.contracts.graph.unparsed.MetricTime] = None, model: Optional[str] = None, model_unique_id: Optional[str] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , metrics: List[List[str]] = , created_at: float = , group: Optional[str] = None)" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + }, + "MetricTime": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTime(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.MetricTimePeriod] = None)" + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True, group: Optional[str] = None)" + }, + "Group": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "group" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/Owner" + } + }, + "additionalProperties": false, + "description": "Group(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, owner: dbt.contracts.graph.unparsed.Owner)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v9.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v1.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v1.json new file mode 100644 index 00000000..38b4d02a --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v1.json @@ -0,0 +1,183 @@ +{ + "title": "Run Results", + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/BaseArtifactMetadata" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RunResultOutput" + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "RunResultsArtifact(metadata: dbt.contracts.util.BaseArtifactMetadata, results: Sequence[dbt.contracts.results.RunResultOutput], elapsed_time: float, args: Dict[str, Any] = )", + "definitions": { + "BaseArtifactMetadata": { + "type": "object", + "required": [ + "dbt_schema_version" + ], + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.678063Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "BaseArtifactMetadata(dbt_schema_version: str, dbt_version: str = '0.19.0', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "RunResultOutput": { + "type": "object", + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "unique_id" + ], + "properties": { + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success", + "error", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "error", + "fail", + "warn" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "message": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "adapter_response": { + "type": "object" + }, + "unique_id": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "RunResultOutput(status: Union[dbt.contracts.results.RunStatus, dbt.contracts.results.TestStatus, dbt.contracts.results.FreshnessStatus], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float, message: Union[str, int, NoneType], adapter_response: Dict[str, Any], unique_id: str)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/run-results/v1.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v2.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v2.json new file mode 100644 index 00000000..ce5efe2b --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v2.json @@ -0,0 +1,190 @@ +{ + "title": "RunResults", + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/BaseArtifactMetadata" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RunResultOutput" + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "RunResultsArtifact(metadata: dbt.contracts.util.BaseArtifactMetadata, results: Sequence[dbt.contracts.results.RunResultOutput], elapsed_time: float, args: Dict[str, Any] = )", + "definitions": { + "BaseArtifactMetadata": { + "type": "object", + "required": [ + "dbt_schema_version" + ], + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "0.20.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-06-07T14:49:01.097134Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "BaseArtifactMetadata(dbt_schema_version: str, dbt_version: str = '0.20.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "RunResultOutput": { + "type": "object", + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "unique_id" + ], + "properties": { + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success", + "error", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "error", + "fail", + "warn" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "adapter_response": { + "type": "object" + }, + "message": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failures": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "unique_id": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "RunResultOutput(status: Union[dbt.contracts.results.RunStatus, dbt.contracts.results.TestStatus, dbt.contracts.results.FreshnessStatus], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float, adapter_response: Dict[str, Any], message: Union[str, NoneType], failures: Union[int, NoneType], unique_id: str)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/run-results/v2.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v3.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v3.json new file mode 100644 index 00000000..67ab1985 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v3.json @@ -0,0 +1,381 @@ +{ + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/BaseArtifactMetadata" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RunResultOutput" + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "RunResultsArtifact(metadata: dbt.contracts.util.BaseArtifactMetadata, results: Sequence[dbt.contracts.results.RunResultOutput], elapsed_time: float, args: Dict[str, Any] = )", + "definitions": { + "BaseArtifactMetadata": { + "type": "object", + "required": [ + "dbt_schema_version" + ], + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "0.21.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-09-24T13:29:14.315088Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "BaseArtifactMetadata(dbt_schema_version: str, dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "RunResultOutput": { + "type": "object", + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "unique_id" + ], + "properties": { + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success", + "error", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "error", + "fail", + "warn", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "adapter_response": { + "type": "object" + }, + "message": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failures": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "unique_id": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "RunResultOutput(status: Union[dbt.contracts.results.RunStatus, dbt.contracts.results.TestStatus, dbt.contracts.results.FreshnessStatus], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float, adapter_response: Dict[str, Any], message: Union[str, NoneType], failures: Union[int, NoneType], unique_id: str)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v2.json" + }, + "dbt_version": { + "type": "string", + "default": "0.21.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-09-24T13:29:14.312598Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/run-results/v3.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v4.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v4.json new file mode 100644 index 00000000..81e993e9 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v4.json @@ -0,0 +1,400 @@ +{ + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/BaseArtifactMetadata" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/definitions/RunResultOutput" + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "RunResultsArtifact(metadata: dbt.contracts.util.BaseArtifactMetadata, results: Sequence[dbt.contracts.results.RunResultOutput], elapsed_time: float, args: Dict[str, Any] = )", + "definitions": { + "BaseArtifactMetadata": { + "type": "object", + "required": [ + "dbt_schema_version" + ], + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0b2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-02T20:18:06.799863Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "BaseArtifactMetadata(dbt_schema_version: str, dbt_version: str = '1.0.0b2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "RunResultOutput": { + "type": "object", + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "unique_id" + ], + "properties": { + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "success", + "error", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "error", + "fail", + "warn", + "skipped" + ] + }, + { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "adapter_response": { + "type": "object" + }, + "message": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failures": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "unique_id": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "RunResultOutput(status: Union[dbt.contracts.results.RunStatus, dbt.contracts.results.TestStatus, dbt.contracts.results.FreshnessStatus], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float, adapter_response: Dict[str, Any], message: Union[str, NoneType], failures: Union[int, NoneType], unique_id: str)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0b2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-02T20:18:06.796684Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0b2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/run-results/v4.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v5.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v5.json new file mode 100644 index 00000000..4e400e5f --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v5.json @@ -0,0 +1,229 @@ +{ + "$ref": "#/$defs/RunResultsArtifact", + "$defs": { + "BaseArtifactMetadata": { + "type": "object", + "title": "BaseArtifactMetadata", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.7.0b1" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "dbt_schema_version" + ] + }, + "TimingInfo": { + "type": "object", + "title": "TimingInfo", + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "completed_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "RunResultOutput": { + "type": "object", + "title": "RunResultOutput", + "properties": { + "status": { + "anyOf": [ + { + "enum": [ + "success", + "error", + "skipped" + ] + }, + { + "enum": [ + "pass", + "error", + "fail", + "warn", + "skipped" + ] + }, + { + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/$defs/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "adapter_response": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "message": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failures": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "unique_id": { + "type": "string" + }, + "compiled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "message", + "failures", + "unique_id", + "compiled", + "compiled_code", + "relation_name" + ] + }, + "RunResultsArtifact": { + "type": "object", + "title": "RunResultsArtifact", + "properties": { + "metadata": { + "$ref": "#/$defs/BaseArtifactMetadata" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/$defs/RunResultOutput" + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "results", + "elapsed_time" + ] + } + }, + "$id": "https://schemas.getdbt.com/dbt/run-results/v5.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v6.json b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v6.json new file mode 100644 index 00000000..1bf1cf75 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/run-results/run-results_v6.json @@ -0,0 +1,264 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "RunResultsArtifact", + "properties": { + "metadata": { + "type": "object", + "title": "BaseArtifactMetadata", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.9.0b2" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "dbt_schema_version" + ] + }, + "results": { + "type": "array", + "items": { + "type": "object", + "title": "RunResultOutput", + "properties": { + "status": { + "anyOf": [ + { + "enum": [ + "success", + "error", + "skipped", + "partial success" + ] + }, + { + "enum": [ + "pass", + "error", + "fail", + "warn", + "skipped" + ] + }, + { + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + } + ] + }, + "timing": { + "type": "array", + "items": { + "type": "object", + "title": "TimingInfo", + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "completed_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + }, + "adapter_response": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "message": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "failures": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "unique_id": { + "type": "string" + }, + "compiled": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "compiled_code": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "batch_results": { + "anyOf": [ + { + "type": "object", + "title": "BatchResults", + "properties": { + "successful": { + "type": "array", + "items": { + "type": "array", + "prefixItems": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "maxItems": 2, + "minItems": 2 + } + }, + "failed": { + "type": "array", + "items": { + "type": "array", + "prefixItems": [ + { + "type": "string" + }, + { + "type": "string" + } + ], + "maxItems": 2, + "minItems": 2 + } + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "status", + "timing", + "thread_id", + "execution_time", + "adapter_response", + "message", + "failures", + "unique_id", + "compiled", + "compiled_code", + "relation_name" + ] + } + }, + "elapsed_time": { + "type": "number" + }, + "args": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "$id": "https://schemas.getdbt.com/dbt/run-results/v6.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/sources/sources_v1.json b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v1.json new file mode 100644 index 00000000..21c02021 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v1.json @@ -0,0 +1,212 @@ +{ + "title": "Sources", + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/FreshnessMetadata" + }, + "results": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/SourceFreshnessRuntimeError" + }, + { + "$ref": "#/definitions/SourceFreshnessOutput" + } + ] + } + }, + "elapsed_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "FreshnessExecutionResultArtifact(metadata: dbt.contracts.results.FreshnessMetadata, results: Sequence[Union[dbt.contracts.results.SourceFreshnessRuntimeError, dbt.contracts.results.SourceFreshnessOutput]], elapsed_time: float)", + "definitions": { + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.675309Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.19.0', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/sources/v1.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/sources/sources_v2.json b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v2.json new file mode 100644 index 00000000..3fd67780 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v2.json @@ -0,0 +1,261 @@ +{ + "type": "object", + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/FreshnessMetadata" + }, + "results": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/SourceFreshnessRuntimeError" + }, + { + "$ref": "#/definitions/SourceFreshnessOutput" + } + ] + } + }, + "elapsed_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "FreshnessExecutionResultArtifact(metadata: dbt.contracts.results.FreshnessMetadata, results: Sequence[Union[dbt.contracts.results.SourceFreshnessRuntimeError, dbt.contracts.results.SourceFreshnessOutput]], elapsed_time: float)", + "definitions": { + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v2.json" + }, + "dbt_version": { + "type": "string", + "default": "0.21.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-09-24T13:29:14.312598Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.21.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/sources/v2.json" +} diff --git a/src/vendor/dbt_artifacts_parser/resources/sources/sources_v3.json b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v3.json new file mode 100644 index 00000000..df2784f1 --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/resources/sources/sources_v3.json @@ -0,0 +1,280 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "title": "FreshnessExecutionResultArtifact", + "properties": { + "metadata": { + "type": "object", + "title": "FreshnessMetadata", + "properties": { + "dbt_schema_version": { + "type": "string" + }, + "dbt_version": { + "type": "string", + "default": "1.9.0b2" + }, + "generated_at": { + "type": "string" + }, + "invocation_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "results": { + "type": "array", + "items": { + "anyOf": [ + { + "type": "object", + "title": "SourceFreshnessRuntimeError", + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "required": [ + "unique_id", + "error", + "status" + ] + }, + { + "type": "object", + "title": "SourceFreshnessOutput", + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string" + }, + "snapshotted_at": { + "type": "string" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "type": "object", + "title": "FreshnessThreshold", + "properties": { + "warn_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "error_after": { + "anyOf": [ + { + "type": "object", + "title": "Time", + "properties": { + "count": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null + }, + "period": { + "anyOf": [ + { + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + { + "type": "null" + } + ] + }, + "filter": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false + }, + "adapter_response": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "timing": { + "type": "array", + "items": { + "type": "object", + "title": "TimingInfo", + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "completed_at": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ] + } + ] + } + }, + "elapsed_time": { + "type": "number" + } + }, + "additionalProperties": false, + "required": [ + "metadata", + "results", + "elapsed_time" + ], + "$id": "https://schemas.getdbt.com/dbt/sources/v3.json" +} diff --git a/src/vendor/dbt_artifacts_parser/utils.py b/src/vendor/dbt_artifacts_parser/utils.py new file mode 100644 index 00000000..7c4609ad --- /dev/null +++ b/src/vendor/dbt_artifacts_parser/utils.py @@ -0,0 +1,27 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +import os + + +def get_project_root() -> str: + """Get the path to the project root. + + Returns: + str: the path to the project root. + """ + return os.path.abspath(os.path.dirname(os.path.dirname(__file__)))