From 7ac8c85474cb1c19b1ef75ee422e81c701eafb99 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:19:04 +0900 Subject: [PATCH 1/5] Bump black from 24.4.2 to 24.8.0 (#102) Bumps [black](https://github.com/psf/black) from 24.4.2 to 24.8.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/24.4.2...24.8.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3e38036..d8ab5b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ test = [ "pylint >=2.12.0", "mypy ==1.10.1", "flake8 >=3.8.3,<4.0.0", - "black ==24.4.2", + "black ==24.8.0", "isort >=5.0.6,<6.0.0", "yapf >=0.29.0", ] From 07a5d69a986c8f7f94d86b2d169604ca984d5b71 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:14:19 +0900 Subject: [PATCH 2/5] Bump mypy from 1.10.1 to 1.11.1 (#101) Bumps [mypy](https://github.com/python/mypy) from 1.10.1 to 1.11.1. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.10.1...v1.11.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d8ab5b3..7f3efdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ Home = "https://github.com/yu-iskw/dbt-artifacts-parser" test = [ "pytest >=6.2.4,<9.0.0", "pylint >=2.12.0", - "mypy ==1.10.1", + "mypy ==1.11.1", "flake8 >=3.8.3,<4.0.0", "black ==24.8.0", "isort >=5.0.6,<6.0.0", From d1002e5a6df65f6cda7799e523356e5cea0b199a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:44:24 +0900 Subject: [PATCH 3/5] Bump mypy from 1.11.1 to 1.11.2 (#108) Bumps [mypy](https://github.com/python/mypy) from 1.11.1 to 1.11.2. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.11.1...v1.11.2) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7f3efdc..acdd892 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ Home = "https://github.com/yu-iskw/dbt-artifacts-parser" test = [ "pytest >=6.2.4,<9.0.0", "pylint >=2.12.0", - "mypy ==1.11.1", + "mypy ==1.11.2", "flake8 >=3.8.3,<4.0.0", "black ==24.8.0", "isort >=5.0.6,<6.0.0", From 7ef95a06129c63315181c33bf69106cf142c654f Mon Sep 17 00:00:00 2001 From: Yu Ishikawa Date: Mon, 2 Sep 2024 17:38:40 +0900 Subject: [PATCH 4/5] Update manifest v12 at 1.8.6 (#110) --- .../parsers/manifest/manifest_v12.py | 1689 +-- .../resources/manifest/manifest_v12.json | 9508 +++++++++-------- 2 files changed, 6240 insertions(+), 4957 deletions(-) diff --git a/dbt_artifacts_parser/parsers/manifest/manifest_v12.py b/dbt_artifacts_parser/parsers/manifest/manifest_v12.py index c595360..7042130 100644 --- a/dbt_artifacts_parser/parsers/manifest/manifest_v12.py +++ b/dbt_artifacts_parser/parsers/manifest/manifest_v12.py @@ -17,7 +17,7 @@ class Metadata(BaseParserModel): extra='forbid', ) dbt_schema_version: Optional[str] = None - dbt_version: Optional[str] = '1.8.0b3' + dbt_version: Optional[str] = '1.8.0a1' generated_at: Optional[str] = None invocation_id: Optional[str] = None env: Optional[Dict[str, str]] = None @@ -97,7 +97,7 @@ class Config(BaseParserModel): tags: Optional[Union[List[str], str]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - materialized: Optional[str] = 'seed' + materialized: Optional[str] = 'view' incremental_strategy: Optional[str] = None persist_docs: Optional[Dict[str, Any]] = None post_hook: Optional[List[PostHookItem]] = Field(None, alias='post-hook') @@ -112,8 +112,6 @@ class Config(BaseParserModel): packages: Optional[List[str]] = None docs: Optional[Docs] = Field(None, title='Docs') contract: Optional[Contract] = Field(None, title='ContractConfig') - delimiter: Optional[str] = ',' - quote_columns: Optional[bool] = None class Type(Enum): @@ -150,78 +148,38 @@ class Columns(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class DependsOn(BaseParserModel): +class Ref(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - macros: Optional[List[str]] = None + name: str + package: Optional[str] = None + version: Optional[Union[str, float]] = 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 DependsOn(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + macros: Optional[List[str]] = None + nodes: Optional[List[str]] = None -class Config1(BaseParserModel): +class ExtraCte(BaseParserModel): model_config = ConfigDict( - extra='allow', + extra='forbid', ) - 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[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') + id: str + sql: str -class DeferRelation(BaseParserModel): +class Contract1(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[Config1] = None + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None class Nodes(BaseParserModel): @@ -231,7 +189,7 @@ class Nodes(BaseParserModel): database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['seed'] + resource_type: Literal['analysis'] package_name: str path: str original_file_path: str @@ -239,7 +197,8 @@ class Nodes(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config] = Field(None, title='SeedConfig') + config: Optional[Config] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns]] = None @@ -248,43 +207,49 @@ class Nodes(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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[DependsOn] = Field(None, title='MacroDependsOn') - defer_relation: Optional[DeferRelation] = 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[DependsOn] = 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[Contract1] = Field(None, title='Contract') -class Config2(BaseParserModel): +class Config1(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') + 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] = 'view' - incremental_strategy: Optional[str] = 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') + 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 Constraint1(BaseParserModel): @@ -312,40 +277,6 @@ class Columns1(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -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', @@ -353,7 +284,7 @@ class Nodes1(BaseParserModel): database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['analysis'] + resource_type: Literal['test'] package_name: str path: str original_file_path: str @@ -361,7 +292,8 @@ class Nodes1(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config2] = Field(None, title='NodeConfig') + config: Optional[Config1] = Field(None, title='TestConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns1]] = None @@ -370,6 +302,7 @@ class Nodes1(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -379,39 +312,51 @@ class Nodes1(BaseParserModel): 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') + depends_on: Optional[DependsOn] = 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') + contract: Optional[Contract1] = Field(None, title='Contract') -class Config3(BaseParserModel): +class Contract3(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +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('dbt_test__audit', alias='schema') + 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] = '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' + materialized: Optional[str] = 'view' + incremental_strategy: Optional[str] = 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[Contract3] = Field(None, title='ContractConfig') class Constraint2(BaseParserModel): @@ -439,6 +384,15 @@ class Columns2(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') +class Contract4(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + class Nodes2(BaseParserModel): model_config = ConfigDict( extra='forbid', @@ -446,7 +400,7 @@ class Nodes2(BaseParserModel): database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['test'] + resource_type: Literal['operation'] package_name: str path: str original_file_path: str @@ -454,7 +408,8 @@ class Nodes2(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config3] = Field(None, title='TestConfig') + config: Optional[Config2] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns2]] = None @@ -463,6 +418,7 @@ class Nodes2(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -472,14 +428,15 @@ class Nodes2(BaseParserModel): 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') + depends_on: Optional[DependsOn] = 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') + contract: Optional[Contract4] = Field(None, title='Contract') + index: Optional[int] = None class Contract5(BaseParserModel): @@ -490,7 +447,13 @@ class Contract5(BaseParserModel): alias_types: Optional[bool] = True -class Config4(BaseParserModel): +class Access(Enum): + private = 'private' + protected = 'protected' + public = 'public' + + +class Config3(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -517,6 +480,7 @@ class Config4(BaseParserModel): packages: Optional[List[str]] = None docs: Optional[Docs] = Field(None, title='Docs') contract: Optional[Contract5] = Field(None, title='ContractConfig') + access: Optional[Access] = 'protected' class Constraint3(BaseParserModel): @@ -553,6 +517,28 @@ class Contract6(BaseParserModel): checksum: Optional[str] = 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 + 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 Nodes3(BaseParserModel): model_config = ConfigDict( extra='forbid', @@ -560,7 +546,7 @@ class Nodes3(BaseParserModel): database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['operation'] + resource_type: Literal['model'] package_name: str path: str original_file_path: str @@ -568,7 +554,8 @@ class Nodes3(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config4] = Field(None, title='NodeConfig') + config: Optional[Config3] = Field(None, title='ModelConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns3]] = None @@ -577,6 +564,7 @@ class Nodes3(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -586,7 +574,7 @@ class Nodes3(BaseParserModel): 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') + depends_on: Optional[DependsOn] = Field(None, title='DependsOn') compiled_path: Optional[str] = None compiled: Optional[bool] = False compiled_code: Optional[str] = None @@ -594,7 +582,12 @@ class Nodes3(BaseParserModel): 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 + access: Optional[Access] = 'protected' + constraints: Optional[List[Constraint4]] = 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 Contract7(BaseParserModel): @@ -605,13 +598,7 @@ class Contract7(BaseParserModel): alias_types: Optional[bool] = True -class Access(Enum): - private = 'private' - protected = 'protected' - public = 'public' - - -class Config5(BaseParserModel): +class Config4(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -638,10 +625,9 @@ class Config5(BaseParserModel): packages: Optional[List[str]] = None docs: Optional[Docs] = Field(None, title='Docs') contract: Optional[Contract7] = Field(None, title='ContractConfig') - access: Optional[Access] = 'protected' -class Constraint4(BaseParserModel): +class Constraint5(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -660,7 +646,7 @@ class Columns4(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint4]] = None + constraints: Optional[List[Constraint5]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') @@ -675,80 +661,14 @@ class Contract8(BaseParserModel): 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 - columns: Optional[List[str]] = None - - -class Contract9(BaseParserModel): - model_config = ConfigDict( - extra='forbid', - ) - enforced: Optional[bool] = False - alias_types: Optional[bool] = True - - -class Config6(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[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') - - -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[Config6] = None - - -class Nodes4(BaseParserModel): +class Nodes4(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['model'] + resource_type: Literal['rpc'] package_name: str path: str original_file_path: str @@ -756,7 +676,8 @@ class Nodes4(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config5] = Field(None, title='ModelConfig') + config: Optional[Config4] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns4]] = None @@ -765,6 +686,7 @@ class Nodes4(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -774,7 +696,7 @@ class Nodes4(BaseParserModel): 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') + depends_on: Optional[DependsOn] = Field(None, title='DependsOn') compiled_path: Optional[str] = None compiled: Optional[bool] = False compiled_code: Optional[str] = None @@ -782,16 +704,17 @@ class Nodes4(BaseParserModel): 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 -class Config7(BaseParserModel): +class Contract9(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config5(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -845,7 +768,7 @@ class Columns5(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Contract11(BaseParserModel): +class Contract10(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -869,7 +792,8 @@ class Nodes5(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config7] = Field(None, title='NodeConfig') + config: Optional[Config5] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns5]] = None @@ -878,6 +802,7 @@ class Nodes5(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -887,17 +812,26 @@ class Nodes5(BaseParserModel): 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') + depends_on: Optional[DependsOn] = 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') + contract: Optional[Contract10] = Field(None, title='Contract') -class Config8(BaseParserModel): +class TestMetadata(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + name: str + kwargs: Optional[Dict[str, Any]] = None + namespace: Optional[str] = None + + +class Config6(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -910,9 +844,9 @@ class Config8(BaseParserModel): 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' + 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 @@ -947,19 +881,11 @@ class Columns6(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -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', ) + test_metadata: TestMetadata = Field(..., title='TestMetadata') database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str @@ -971,7 +897,8 @@ class Nodes6(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config8] = Field(None, title='TestConfig') + config: Optional[Config6] = Field(None, title='TestConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' columns: Optional[Dict[str, Columns6]] = None @@ -980,6 +907,7 @@ class Nodes6(BaseParserModel): docs: Optional[Docs] = Field(None, title='Docs') 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 @@ -989,21 +917,20 @@ class Nodes6(BaseParserModel): 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') + depends_on: Optional[DependsOn] = 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') + contract: Optional[Contract10] = 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 Contract13(BaseParserModel): +class Contract12(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1011,7 +938,7 @@ class Contract13(BaseParserModel): alias_types: Optional[bool] = True -class Config9(BaseParserModel): +class Config7(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1037,7 +964,7 @@ class Config9(BaseParserModel): 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') + contract: Optional[Contract12] = Field(None, title='ContractConfig') strategy: Optional[str] = None target_schema: Optional[str] = None target_database: Optional[str] = None @@ -1070,7 +997,7 @@ class Columns7(BaseParserModel): field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Contract14(BaseParserModel): +class Contract13(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1079,7 +1006,53 @@ class Contract14(BaseParserModel): checksum: Optional[str] = None -class Contract15(BaseParserModel): +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: Config7 = Field(..., title='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, 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 + 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[Ref]] = None + sources: Optional[List[List[str]]] = None + metrics: Optional[List[List[str]]] = None + depends_on: Optional[DependsOn] = 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[Contract13] = Field(None, title='Contract') + defer_relation: Optional[DeferRelation] = None + + +class Contract14(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1087,7 +1060,7 @@ class Contract15(BaseParserModel): alias_types: Optional[bool] = True -class Config10(BaseParserModel): +class Config8(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1113,34 +1086,61 @@ class Config10(BaseParserModel): 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') + contract: Optional[Contract14] = Field(None, title='ContractConfig') + expected_rows: Optional[List[Dict[str, Any]]] = None -class DeferRelation2(BaseParserModel): +class Constraint9(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 + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class Columns8(BaseParserModel): + model_config = ConfigDict( + extra='allow', + ) name: str - description: str - compiled_code: Optional[str] = None - meta: Dict[str, Any] - tags: List[str] - config: Optional[Config10] = None + description: Optional[str] = '' + meta: Optional[Dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[List[Constraint9]] = None + quote: Optional[bool] = None + tags: Optional[List[str]] = None + field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Nodes7(BaseParserModel): +class Contract15(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: 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 Nodes8(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['snapshot'] + resource_type: Literal['unit_test'] package_name: str path: str original_file_path: str @@ -1148,15 +1148,17 @@ class Nodes7(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Config9 = Field(..., title='SnapshotConfig') + config: Optional[Config8] = Field(None, title='UnitTestNodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns7]] = None + columns: Optional[Dict[str, Columns8]] = 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 + deferred: Optional[bool] = False unrendered_config: Optional[Dict[str, Any]] = None created_at: Optional[float] = None config_call_dict: Optional[Dict[str, Any]] = None @@ -1166,55 +1168,164 @@ class Nodes7(BaseParserModel): 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') + depends_on: Optional[DependsOn] = 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 + contract: Optional[Contract15] = Field(None, title='Contract') + tested_node_unique_id: Optional[str] = None + this_input_node_unique_id: Optional[str] = None + overrides: Optional[Overrides] = None -class Quoting(BaseParserModel): +class Contract16(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' + enforced: Optional[bool] = False + alias_types: Optional[bool] = True -class WarnAfter(BaseParserModel): +class Config9(BaseParserModel): model_config = ConfigDict( - extra='forbid', + extra='allow', ) - count: Optional[int] = None - period: Optional[Period] = None + 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[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[Contract16] = Field(None, title='ContractConfig') + delimiter: Optional[str] = ',' + quote_columns: Optional[bool] = None -class ErrorAfter(BaseParserModel): +class Constraint10(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - count: Optional[int] = None - period: Optional[Period] = None + type: Type + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True -class Freshness(BaseParserModel): +class Columns9(BaseParserModel): model_config = ConfigDict( - extra='forbid', + extra='allow', ) - warn_after: Optional[WarnAfter] = None - error_after: Optional[ErrorAfter] = None + 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 + tags: Optional[List[str]] = None + field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') + + +class DependsOn9(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + macros: Optional[List[str]] = None + + +class Nodes9(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[Config9] = Field(None, title='SeedConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') + 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[Docs] = Field(None, title='Docs') + 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[DependsOn9] = Field(None, title='MacroDependsOn') + 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 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 Freshness(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + warn_after: Optional[WarnAfter] = None + error_after: Optional[ErrorAfter] = None filter: Optional[str] = None @@ -1241,7 +1352,7 @@ class External(BaseParserModel): partitions: Optional[Union[List[str], List[Partition]]] = None -class Constraint9(BaseParserModel): +class Constraint11(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1252,7 +1363,7 @@ class Constraint9(BaseParserModel): warn_unsupported: Optional[bool] = True -class Columns8(BaseParserModel): +class Columns10(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1260,13 +1371,13 @@ class Columns8(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint9]] = None + constraints: Optional[List[Constraint11]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Config11(BaseParserModel): +class Config10(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1291,29 +1402,23 @@ class Sources(BaseParserModel): source_description: str loader: str identifier: str + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') quoting: Optional[Quoting] = Field(None, title='Quoting') loaded_at_field: Optional[str] = None freshness: Optional[Freshness] = None external: Optional[External] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns8]] = None + columns: Optional[Dict[str, Columns10]] = None meta: Optional[Dict[str, Any]] = None source_meta: Optional[Dict[str, Any]] = None tags: Optional[List[str]] = None - config: Optional[Config11] = Field(None, title='SourceConfig') + config: Optional[Config10] = 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 -class DependsOn8(BaseParserModel): - model_config = ConfigDict( - extra='forbid', - ) - macros: Optional[List[str]] = None - - class Argument(BaseParserModel): model_config = ConfigDict( extra='forbid', @@ -1339,7 +1444,7 @@ class Macros(BaseParserModel): original_file_path: str unique_id: str macro_sql: str - depends_on: Optional[DependsOn8] = Field(None, title='MacroDependsOn') + depends_on: Optional[DependsOn9] = Field(None, title='MacroDependsOn') description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None docs: Optional[Docs] = Field(None, title='Docs') @@ -1349,7 +1454,7 @@ class Macros(BaseParserModel): supported_languages: Optional[List[SupportedLanguage]] = None -class Docs18(BaseParserModel): +class Docs19(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1362,7 +1467,7 @@ class Docs18(BaseParserModel): block_contents: str -class Type10(Enum): +class Type12(Enum): dashboard = 'dashboard' notebook = 'notebook' analysis = 'analysis' @@ -1385,7 +1490,7 @@ class Maturity(Enum): high = 'high' -class DependsOn9(BaseParserModel): +class DependsOn11(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1404,24 +1509,24 @@ class Exposures(BaseParserModel): original_file_path: str unique_id: str fqn: List[str] - type: Type10 + type: Type12 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[Config11] = Field(None, title='ExposureConfig') + config: Optional[Config10] = Field(None, title='ExposureConfig') unrendered_config: Optional[Dict[str, Any]] = None url: Optional[str] = None - depends_on: Optional[DependsOn9] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn11] = 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): +class Type13(Enum): simple = 'simple' ratio = 'ratio' cumulative = 'cumulative' @@ -1691,14 +1796,13 @@ class Metadata1(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Config13(BaseParserModel): +class Config12(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): @@ -1714,16 +1818,16 @@ class Metrics(BaseParserModel): fqn: List[str] description: str label: str - type: Type11 + type: Type13 type_params: TypeParams = Field(..., title='MetricTypeParams') filter: Optional[Filter7] = None metadata: Optional[Metadata1] = None meta: Optional[Dict[str, Any]] = None tags: Optional[List[str]] = None - config: Optional[Config13] = Field(None, title='MetricConfig') + config: Optional[Config12] = 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') + depends_on: Optional[DependsOn11] = Field(None, title='DependsOn') refs: Optional[List[Ref]] = None metrics: Optional[List[List[str]]] = None created_at: Optional[float] = None @@ -1743,7 +1847,7 @@ class Groups(BaseParserModel): owner: Owner = Field(..., title='Owner') -class Docs19(BaseParserModel): +class Docs20(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1751,7 +1855,7 @@ class Docs19(BaseParserModel): node_color: Optional[str] = None -class Config14(BaseParserModel): +class Config13(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1763,7 +1867,7 @@ class Config14(BaseParserModel): tags: Optional[Union[List[str], str]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - materialized: Optional[str] = 'seed' + materialized: Optional[str] = 'view' incremental_strategy: Optional[str] = None persist_docs: Optional[Dict[str, Any]] = None post_hook: Optional[List[PostHookItem]] = Field(None, alias='post-hook') @@ -1776,13 +1880,11 @@ class Config14(BaseParserModel): 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') - delimiter: Optional[str] = ',' - quote_columns: Optional[bool] = None + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract16] = Field(None, title='ContractConfig') -class Type12(Enum): +class Type14(Enum): check = 'check' not_null = 'not_null' unique = 'unique' @@ -1791,18 +1893,18 @@ class Type12(Enum): custom = 'custom' -class Constraint10(BaseParserModel): +class Constraint12(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns9(BaseParserModel): +class Columns11(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1810,73 +1912,124 @@ class Columns9(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint10]] = None + constraints: Optional[List[Constraint12]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class DependsOn11(BaseParserModel): +class Contract18(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - macros: Optional[List[str]] = None + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None -class Config15(BaseParserModel): +class Disabled(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[Config13] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') + 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[Docs20] = Field(None, title='Docs') + 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[Ref]] = None + sources: Optional[List[List[str]]] = None + metrics: Optional[List[List[str]]] = None + depends_on: Optional[DependsOn11] = 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[Contract18] = 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(None, alias='schema') + 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] = 'view' - incremental_strategy: Optional[str] = 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') + 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 DeferRelation3(BaseParserModel): +class Constraint13(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 + type: Type14 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class Columns12(BaseParserModel): + model_config = ConfigDict( + extra='allow', + ) name: str - description: str - compiled_code: Optional[str] = None - meta: Dict[str, Any] - tags: List[str] - config: Optional[Config15] = None + description: Optional[str] = '' + meta: Optional[Dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[List[Constraint13]] = None + quote: Optional[bool] = None + tags: Optional[List[str]] = None + field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Disabled(BaseParserModel): +class Disabled1(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['seed'] + resource_type: Literal['test'] package_name: str path: str original_file_path: str @@ -1884,26 +2037,45 @@ class Disabled(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config14] = Field(None, title='SeedConfig') + config: Optional[Config14] = Field(None, title='TestConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns9]] = None + columns: Optional[Dict[str, Columns12]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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[DependsOn11] = Field(None, title='MacroDependsOn') - defer_relation: Optional[DeferRelation3] = 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[DependsOn11] = 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[Contract18] = Field(None, title='Contract') -class Config16(BaseParserModel): +class Contract20(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config15(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1928,22 +2100,22 @@ class Config16(BaseParserModel): 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') + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract20] = Field(None, title='ContractConfig') -class Constraint11(BaseParserModel): +class Constraint14(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns10(BaseParserModel): +class Columns13(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -1951,21 +2123,13 @@ class Columns10(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint11]] = None + constraints: Optional[List[Constraint14]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class DependsOn12(BaseParserModel): - model_config = ConfigDict( - extra='forbid', - ) - macros: Optional[List[str]] = None - nodes: Optional[List[str]] = None - - -class Contract19(BaseParserModel): +class Contract21(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -1974,14 +2138,14 @@ class Contract19(BaseParserModel): checksum: Optional[str] = None -class Disabled1(BaseParserModel): +class Disabled2(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['analysis'] + resource_type: Literal['operation'] package_name: str path: str original_file_path: str @@ -1989,15 +2153,17 @@ class Disabled1(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config16] = Field(None, title='NodeConfig') + config: Optional[Config15] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns10]] = None + columns: Optional[Dict[str, Columns13]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2007,53 +2173,67 @@ class Disabled1(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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') + contract: Optional[Contract21] = Field(None, title='Contract') + index: Optional[int] = None -class Config17(BaseParserModel): +class Contract22(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +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('dbt_test__audit', alias='schema') + 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] = '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' + materialized: Optional[str] = 'view' + incremental_strategy: Optional[str] = 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[Docs20] = Field(None, title='Docs') + contract: Optional[Contract22] = Field(None, title='ContractConfig') + access: Optional[Access] = 'protected' -class Constraint12(BaseParserModel): +class Constraint15(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns11(BaseParserModel): +class Columns14(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2061,20 +2241,41 @@ class Columns11(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint12]] = None + constraints: Optional[List[Constraint15]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Disabled2(BaseParserModel): +class Contract23(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Constraint16(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + type: Type14 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + columns: Optional[List[str]] = None + + +class Disabled3(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['test'] + resource_type: Literal['model'] package_name: str path: str original_file_path: str @@ -2082,15 +2283,17 @@ class Disabled2(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config17] = Field(None, title='TestConfig') + config: Optional[Config16] = Field(None, title='ModelConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns11]] = None + columns: Optional[Dict[str, Columns14]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2100,17 +2303,23 @@ class Disabled2(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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') + contract: Optional[Contract23] = Field(None, title='Contract') + access: Optional[Access] = 'protected' + constraints: Optional[List[Constraint16]] = 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 Contract21(BaseParserModel): +class Contract24(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2118,7 +2327,7 @@ class Contract21(BaseParserModel): alias_types: Optional[bool] = True -class Config18(BaseParserModel): +class Config17(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2143,22 +2352,22 @@ class Config18(BaseParserModel): 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') + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract24] = Field(None, title='ContractConfig') -class Constraint13(BaseParserModel): +class Constraint17(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns12(BaseParserModel): +class Columns15(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2166,13 +2375,13 @@ class Columns12(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint13]] = None + constraints: Optional[List[Constraint17]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Contract22(BaseParserModel): +class Contract25(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2181,14 +2390,14 @@ class Contract22(BaseParserModel): checksum: Optional[str] = None -class Disabled3(BaseParserModel): +class Disabled4(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['operation'] + resource_type: Literal['rpc'] package_name: str path: str original_file_path: str @@ -2196,15 +2405,17 @@ class Disabled3(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config18] = Field(None, title='NodeConfig') + config: Optional[Config17] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns12]] = None + columns: Optional[Dict[str, Columns15]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2214,18 +2425,17 @@ class Disabled3(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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 + contract: Optional[Contract25] = Field(None, title='Contract') -class Contract23(BaseParserModel): +class Contract26(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2233,7 +2443,7 @@ class Contract23(BaseParserModel): alias_types: Optional[bool] = True -class Config19(BaseParserModel): +class Config18(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2258,23 +2468,22 @@ class Config19(BaseParserModel): 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') - access: Optional[Access] = 'protected' + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract26] = Field(None, title='ContractConfig') -class Constraint14(BaseParserModel): +class Constraint18(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns13(BaseParserModel): +class Columns16(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2282,13 +2491,13 @@ class Columns13(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint14]] = None + constraints: Optional[List[Constraint18]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Contract24(BaseParserModel): +class Contract27(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2297,80 +2506,110 @@ class Contract24(BaseParserModel): 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 - columns: Optional[List[str]] = None - - -class Contract25(BaseParserModel): +class Disabled5(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - enforced: Optional[bool] = False - alias_types: Optional[bool] = True + 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[Config18] = Field(None, title='NodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') + 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[Docs20] = Field(None, title='Docs') + 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[Ref]] = None + sources: Optional[List[List[str]]] = None + metrics: Optional[List[List[str]]] = None + depends_on: Optional[DependsOn11] = 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 Config20(BaseParserModel): +class Config19(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') + 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] = 'view' - incremental_strategy: Optional[str] = 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') + 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 DeferRelation4(BaseParserModel): +class Constraint19(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 + type: Type14 + name: Optional[str] = None + expression: Optional[str] = None + warn_unenforced: Optional[bool] = True + warn_unsupported: Optional[bool] = True + + +class Columns17(BaseParserModel): + model_config = ConfigDict( + extra='allow', + ) name: str - description: str - compiled_code: Optional[str] = None - meta: Dict[str, Any] - tags: List[str] - config: Optional[Config20] = None + description: Optional[str] = '' + meta: Optional[Dict[str, Any]] = None + data_type: Optional[str] = None + constraints: Optional[List[Constraint19]] = None + quote: Optional[bool] = None + tags: Optional[List[str]] = None + field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Disabled4(BaseParserModel): +class Disabled6(BaseParserModel): model_config = ConfigDict( extra='forbid', ) + test_metadata: TestMetadata = Field(..., title='TestMetadata') database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['model'] + resource_type: Literal['test'] package_name: str path: str original_file_path: str @@ -2378,15 +2617,17 @@ class Disabled4(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config19] = Field(None, title='ModelConfig') + config: Optional[Config19] = Field(None, title='TestConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns13]] = None + columns: Optional[Dict[str, Columns17]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2396,24 +2637,28 @@ class Disabled4(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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') - 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 + contract: Optional[Contract27] = Field(None, title='Contract') + column_name: Optional[str] = None + file_key_name: Optional[str] = None + attached_node: Optional[str] = None -class Config21(BaseParserModel): +class Contract29(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config20(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2425,7 +2670,7 @@ class Config21(BaseParserModel): tags: Optional[Union[List[str], str]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - materialized: Optional[str] = 'view' + materialized: Optional[str] = 'snapshot' incremental_strategy: Optional[str] = None persist_docs: Optional[Dict[str, Any]] = None post_hook: Optional[List[PostHookItem]] = Field(None, alias='post-hook') @@ -2433,27 +2678,32 @@ class Config21(BaseParserModel): 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 + 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[Docs19] = Field(None, title='Docs') - contract: Optional[Contract25] = Field(None, title='ContractConfig') + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract29] = Field(None, title='ContractConfig') + 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 Constraint16(BaseParserModel): +class Constraint20(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns14(BaseParserModel): +class Columns18(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2461,13 +2711,13 @@ class Columns14(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint16]] = None + constraints: Optional[List[Constraint20]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Contract27(BaseParserModel): +class Contract30(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2476,14 +2726,14 @@ class Contract27(BaseParserModel): checksum: Optional[str] = None -class Disabled5(BaseParserModel): +class Disabled7(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['sql_operation'] + resource_type: Literal['snapshot'] package_name: str path: str original_file_path: str @@ -2491,15 +2741,17 @@ class Disabled5(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config21] = Field(None, title='NodeConfig') + config: Config20 = Field(..., title='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, Columns14]] = None + columns: Optional[Dict[str, Columns18]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2509,53 +2761,67 @@ class Disabled5(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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') + contract: Optional[Contract30] = Field(None, title='Contract') + defer_relation: Optional[DeferRelation] = None -class Config22(BaseParserModel): +class Contract31(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + + +class Config21(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') + 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] = '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' + materialized: Optional[str] = 'view' + incremental_strategy: Optional[str] = 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[Docs20] = Field(None, title='Docs') + contract: Optional[Contract31] = Field(None, title='ContractConfig') + expected_rows: Optional[List[Dict[str, Any]]] = None -class Constraint17(BaseParserModel): +class Constraint21(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns15(BaseParserModel): +class Columns19(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2563,20 +2829,29 @@ class Columns15(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint17]] = None + constraints: Optional[List[Constraint21]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Disabled6(BaseParserModel): +class Contract32(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + enforced: Optional[bool] = False + alias_types: Optional[bool] = True + checksum: Optional[str] = None + + +class Disabled8(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['test'] + resource_type: Literal['unit_test'] package_name: str path: str original_file_path: str @@ -2584,15 +2859,17 @@ class Disabled6(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Optional[Config22] = Field(None, title='TestConfig') + config: Optional[Config21] = Field(None, title='UnitTestNodeConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns15]] = None + columns: Optional[Dict[str, Columns19]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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 @@ -2602,21 +2879,20 @@ class Disabled6(BaseParserModel): 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') + depends_on: Optional[DependsOn11] = 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') + contract: Optional[Contract32] = Field(None, title='Contract') + tested_node_unique_id: Optional[str] = None + this_input_node_unique_id: Optional[str] = None + overrides: Optional[Overrides] = None -class Contract29(BaseParserModel): +class Contract33(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2624,7 +2900,7 @@ class Contract29(BaseParserModel): alias_types: Optional[bool] = True -class Config23(BaseParserModel): +class Config22(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2636,7 +2912,7 @@ class Config23(BaseParserModel): tags: Optional[Union[List[str], str]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - materialized: Optional[str] = 'snapshot' + materialized: Optional[str] = 'seed' incremental_strategy: Optional[str] = None persist_docs: Optional[Dict[str, Any]] = None post_hook: Optional[List[PostHookItem]] = Field(None, alias='post-hook') @@ -2644,32 +2920,29 @@ class Config23(BaseParserModel): quoting: Optional[Dict[str, Any]] = None column_types: Optional[Dict[str, Any]] = None full_refresh: Optional[bool] = None - unique_key: Optional[str] = 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') - 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 + docs: Optional[Docs20] = Field(None, title='Docs') + contract: Optional[Contract33] = Field(None, title='ContractConfig') + delimiter: Optional[str] = ',' + quote_columns: Optional[bool] = None -class Constraint18(BaseParserModel): +class Constraint22(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns16(BaseParserModel): +class Columns20(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2677,83 +2950,27 @@ class Columns16(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint18]] = None + constraints: Optional[List[Constraint22]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -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 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] = 'view' - incremental_strategy: Optional[str] = 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') - - -class DeferRelation5(BaseParserModel): +class DependsOn22(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[Config24] = None + macros: Optional[List[str]] = None -class Disabled7(BaseParserModel): +class Disabled9(BaseParserModel): model_config = ConfigDict( extra='forbid', ) database: Optional[str] = None schema_: str = Field(..., alias='schema') name: str - resource_type: Literal['snapshot'] + resource_type: Literal['seed'] package_name: str path: str original_file_path: str @@ -2761,33 +2978,25 @@ class Disabled7(BaseParserModel): fqn: List[str] alias: str checksum: Checksum = Field(..., title='FileHash') - config: Config23 = Field(..., title='SnapshotConfig') + config: Optional[Config22] = Field(None, title='SeedConfig') + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') tags: Optional[List[str]] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns16]] = None + columns: Optional[Dict[str, Columns20]] = None meta: Optional[Dict[str, Any]] = None group: Optional[str] = None - docs: Optional[Docs19] = Field(None, title='Docs') + docs: Optional[Docs20] = Field(None, title='Docs') 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[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 + root_path: Optional[str] = None + depends_on: Optional[DependsOn22] = Field(None, title='MacroDependsOn') + defer_relation: Optional[DeferRelation] = None class WarnAfter1(BaseParserModel): @@ -2827,18 +3036,18 @@ class External1(BaseParserModel): partitions: Optional[Union[List[str], List[Partition]]] = None -class Constraint19(BaseParserModel): +class Constraint23(BaseParserModel): model_config = ConfigDict( extra='forbid', ) - type: Type12 + type: Type14 name: Optional[str] = None expression: Optional[str] = None warn_unenforced: Optional[bool] = True warn_unsupported: Optional[bool] = True -class Columns17(BaseParserModel): +class Columns21(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2846,13 +3055,13 @@ class Columns17(BaseParserModel): description: Optional[str] = '' meta: Optional[Dict[str, Any]] = None data_type: Optional[str] = None - constraints: Optional[List[Constraint19]] = None + constraints: Optional[List[Constraint23]] = None quote: Optional[bool] = None tags: Optional[List[str]] = None field_extra: Optional[Dict[str, Any]] = Field(None, alias='_extra') -class Config25(BaseParserModel): +class Config23(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -2860,7 +3069,7 @@ class Config25(BaseParserModel): enabled: Optional[bool] = True -class Disabled8(BaseParserModel): +class Disabled10(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2877,23 +3086,24 @@ class Disabled8(BaseParserModel): source_description: str loader: str identifier: str + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') quoting: Optional[Quoting] = Field(None, title='Quoting') loaded_at_field: Optional[str] = None freshness: Optional[Freshness1] = None external: Optional[External1] = None description: Optional[str] = '' - columns: Optional[Dict[str, Columns17]] = None + columns: Optional[Dict[str, Columns21]] = None meta: Optional[Dict[str, Any]] = None source_meta: Optional[Dict[str, Any]] = None tags: Optional[List[str]] = None - config: Optional[Config25] = Field(None, title='SourceConfig') + config: Optional[Config23] = 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 -class Type22(Enum): +class Type26(Enum): dashboard = 'dashboard' notebook = 'notebook' analysis = 'analysis' @@ -2901,7 +3111,15 @@ class Type22(Enum): application = 'application' -class Disabled9(BaseParserModel): +class DependsOn23(BaseParserModel): + model_config = ConfigDict( + extra='forbid', + ) + macros: Optional[List[str]] = None + nodes: Optional[List[str]] = None + + +class Disabled11(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -2912,24 +3130,24 @@ class Disabled9(BaseParserModel): original_file_path: str unique_id: str fqn: List[str] - type: Type22 + type: Type26 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[Config25] = Field(None, title='ExposureConfig') + config: Optional[Config23] = Field(None, title='ExposureConfig') unrendered_config: Optional[Dict[str, Any]] = None url: Optional[str] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn23] = 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): +class Type27(Enum): simple = 'simple' ratio = 'ratio' cumulative = 'cumulative' @@ -3145,17 +3363,16 @@ class Metadata2(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Config27(BaseParserModel): +class Config25(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): +class Disabled12(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -3168,22 +3385,43 @@ class Disabled10(BaseParserModel): fqn: List[str] description: str label: str - type: Type23 + type: Type27 type_params: TypeParams1 = Field(..., title='MetricTypeParams') filter: Optional[Filter15] = None metadata: Optional[Metadata2] = None meta: Optional[Dict[str, Any]] = None tags: Optional[List[str]] = None - config: Optional[Config27] = Field(None, title='MetricConfig') + config: Optional[Config25] = 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') + depends_on: Optional[DependsOn23] = 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 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 Where(BaseParserModel): model_config = ConfigDict( extra='forbid', @@ -3205,14 +3443,13 @@ class ExportAs(Enum): view = 'view' -class Config28(BaseParserModel): +class Config26(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): @@ -3220,7 +3457,7 @@ class Export(BaseParserModel): extra='forbid', ) name: str - config: Config28 = Field(..., title='ExportConfig') + config: Config26 = Field(..., title='ExportConfig') class Metadata3(BaseParserModel): @@ -3231,14 +3468,7 @@ class Metadata3(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Cache(BaseParserModel): - model_config = ConfigDict( - extra='forbid', - ) - enabled: Optional[bool] = False - - -class Config29(BaseParserModel): +class Config27(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3248,10 +3478,9 @@ class Config29(BaseParserModel): 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): +class Disabled13(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -3264,13 +3493,14 @@ class Disabled11(BaseParserModel): fqn: List[str] query_params: QueryParams = Field(..., title='QueryParams') exports: List[Export] + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') description: Optional[str] = None label: Optional[str] = None metadata: Optional[Metadata3] = None - config: Optional[Config29] = Field(None, title='SavedQueryConfig') + config: Optional[Config27] = Field(None, title='SavedQueryConfig') unrendered_config: Optional[Dict[str, Any]] = None group: Optional[str] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') created_at: Optional[float] = None refs: Optional[List[Ref]] = None @@ -3282,7 +3512,7 @@ class NodeRelation(BaseParserModel): alias: str schema_name: str database: Optional[str] = None - relation_name: Optional[str] = '' + relation_name: Optional[str] = None class Defaults(BaseParserModel): @@ -3292,7 +3522,7 @@ class Defaults(BaseParserModel): agg_time_dimension: Optional[str] = None -class Type24(Enum): +class Type28(Enum): foreign = 'foreign' natural = 'natural' primary = 'primary' @@ -3304,7 +3534,7 @@ class Entity(BaseParserModel): extra='forbid', ) name: str - type: Type24 + type: Type28 description: Optional[str] = None label: Optional[str] = None role: Optional[str] = None @@ -3368,7 +3598,7 @@ class Measure2(BaseParserModel): agg_time_dimension: Optional[str] = None -class Type25(Enum): +class Type29(Enum): categorical = 'categorical' time = 'time' @@ -3410,7 +3640,7 @@ class Dimension(BaseParserModel): extra='forbid', ) name: str - type: Type25 + type: Type29 description: Optional[str] = None label: Optional[str] = None is_partition: Optional[bool] = False @@ -3427,7 +3657,7 @@ class Metadata5(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Config30(BaseParserModel): +class Config28(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3437,7 +3667,7 @@ class Config30(BaseParserModel): meta: Optional[Dict[str, Any]] = None -class Disabled12(BaseParserModel): +class Disabled14(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -3457,10 +3687,10 @@ class Disabled12(BaseParserModel): measures: Optional[List[Measure2]] = None dimensions: Optional[List[Dimension]] = None metadata: Optional[Metadata5] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') refs: Optional[List[Ref]] = None created_at: Optional[float] = None - config: Optional[Config30] = Field(None, title='SemanticModelConfig') + config: Optional[Config28] = Field(None, title='SemanticModelConfig') unrendered_config: Optional[Dict[str, Any]] = None primary_entity: Optional[str] = None group: Optional[str] = None @@ -3469,7 +3699,6 @@ class Disabled12(BaseParserModel): class Format(Enum): csv = 'csv' dict = 'dict' - sql = 'sql' class GivenItem(BaseParserModel): @@ -3491,16 +3720,7 @@ class Expect(BaseParserModel): 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 Config31(BaseParserModel): +class Config29(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3509,15 +3729,7 @@ class Config31(BaseParserModel): meta: Optional[Dict[str, Any]] = None -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): +class Disabled15(BaseParserModel): model_config = ConfigDict( extra='forbid', ) @@ -3531,15 +3743,13 @@ class Disabled13(BaseParserModel): original_file_path: str unique_id: str fqn: List[str] + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') description: Optional[str] = '' overrides: Optional[Overrides] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') - config: Optional[Config31] = Field(None, title='UnitTestConfig') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') + config: Optional[Config29] = 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): @@ -3558,14 +3768,13 @@ class QueryParams1(BaseParserModel): where: Optional[Where1] = None -class Config32(BaseParserModel): +class Config30(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): @@ -3573,7 +3782,7 @@ class Export1(BaseParserModel): extra='forbid', ) name: str - config: Config32 = Field(..., title='ExportConfig') + config: Config30 = Field(..., title='ExportConfig') class Metadata6(BaseParserModel): @@ -3584,7 +3793,7 @@ class Metadata6(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Config33(BaseParserModel): +class Config31(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3594,7 +3803,6 @@ class Config33(BaseParserModel): 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): @@ -3610,18 +3818,19 @@ class SavedQueries(BaseParserModel): fqn: List[str] query_params: QueryParams1 = Field(..., title='QueryParams') exports: List[Export1] + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') description: Optional[str] = None label: Optional[str] = None metadata: Optional[Metadata6] = None - config: Optional[Config33] = Field(None, title='SavedQueryConfig') + config: Optional[Config31] = Field(None, title='SavedQueryConfig') unrendered_config: Optional[Dict[str, Any]] = None group: Optional[str] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') created_at: Optional[float] = None refs: Optional[List[Ref]] = None -class Type26(Enum): +class Type30(Enum): foreign = 'foreign' natural = 'natural' primary = 'primary' @@ -3633,7 +3842,7 @@ class Entity1(BaseParserModel): extra='forbid', ) name: str - type: Type26 + type: Type30 description: Optional[str] = None label: Optional[str] = None role: Optional[str] = None @@ -3664,7 +3873,7 @@ class Measure3(BaseParserModel): agg_time_dimension: Optional[str] = None -class Type27(Enum): +class Type31(Enum): categorical = 'categorical' time = 'time' @@ -3690,7 +3899,7 @@ class Dimension1(BaseParserModel): extra='forbid', ) name: str - type: Type27 + type: Type31 description: Optional[str] = None label: Optional[str] = None is_partition: Optional[bool] = False @@ -3707,7 +3916,7 @@ class Metadata8(BaseParserModel): file_slice: FileSlice = Field(..., title='FileSlice') -class Config34(BaseParserModel): +class Config32(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3737,10 +3946,10 @@ class SemanticModels(BaseParserModel): measures: Optional[List[Measure3]] = None dimensions: Optional[List[Dimension1]] = None metadata: Optional[Metadata8] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') refs: Optional[List[Ref]] = None created_at: Optional[float] = None - config: Optional[Config34] = Field(None, title='SemanticModelConfig') + config: Optional[Config32] = Field(None, title='SemanticModelConfig') unrendered_config: Optional[Dict[str, Any]] = None primary_entity: Optional[str] = None group: Optional[str] = None @@ -3765,7 +3974,7 @@ class Expect1(BaseParserModel): fixture: Optional[str] = None -class Config35(BaseParserModel): +class Config33(BaseParserModel): model_config = ConfigDict( extra='allow', ) @@ -3788,15 +3997,13 @@ class UnitTests(BaseParserModel): original_file_path: str unique_id: str fqn: List[str] + field_event_status: Optional[Dict[str, Any]] = Field(None, alias='_event_status') description: Optional[str] = '' overrides: Optional[Overrides] = None - depends_on: Optional[DependsOn12] = Field(None, title='DependsOn') - config: Optional[Config35] = Field(None, title='UnitTestConfig') + depends_on: Optional[DependsOn23] = Field(None, title='DependsOn') + config: Optional[Config33] = 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): @@ -3807,7 +4014,19 @@ class ManifestV12(BaseParserModel): ..., description='Metadata about the manifest', title='ManifestMetadata' ) nodes: Dict[ - str, Union[Nodes, Nodes1, Nodes2, Nodes3, Nodes4, Nodes5, Nodes6, Nodes7] + str, + Union[ + Nodes, + Nodes1, + Nodes2, + Nodes3, + Nodes4, + Nodes5, + Nodes6, + Nodes7, + Nodes8, + Nodes9, + ], ] = Field( ..., description='The nodes defined in the dbt project and its dependencies' ) @@ -3817,7 +4036,7 @@ class ManifestV12(BaseParserModel): macros: Dict[str, Macros] = Field( ..., description='The macros defined in the dbt project and its dependencies' ) - docs: Dict[str, Docs18] = Field( + docs: Dict[str, Docs19] = Field( ..., description='The docs defined in the dbt project and its dependencies' ) exposures: Dict[str, Exposures] = Field( @@ -3851,6 +4070,8 @@ class ManifestV12(BaseParserModel): Disabled11, Disabled12, Disabled13, + Disabled14, + Disabled15, ] ], ] diff --git a/dbt_artifacts_parser/resources/manifest/manifest_v12.json b/dbt_artifacts_parser/resources/manifest/manifest_v12.json index 6da1ede..6c4040e 100644 --- a/dbt_artifacts_parser/resources/manifest/manifest_v12.json +++ b/dbt_artifacts_parser/resources/manifest/manifest_v12.json @@ -13,7 +13,7 @@ }, "dbt_version": { "type": "string", - "default": "1.8.0b3" + "default": "1.8.0a1" }, "generated_at": { "type": "string" @@ -108,7 +108,7 @@ "anyOf": [ { "type": "object", - "title": "Seed", + "title": "AnalysisNode", "properties": { "database": { "anyOf": [ @@ -127,7 +127,7 @@ "type": "string" }, "resource_type": { - "const": "seed" + "const": "analysis" }, "package_name": { "type": "string" @@ -169,7 +169,7 @@ }, "config": { "type": "object", - "title": "SeedConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -246,7 +246,7 @@ }, "materialized": { "type": "string", - "default": "seed" + "default": "view" }, "incremental_strategy": { "anyOf": [ @@ -433,25 +433,16 @@ } }, "additionalProperties": false - }, - "delimiter": { - "type": "string", - "default": "," - }, - "quote_columns": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "default": null } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -639,6 +630,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -669,410 +664,174 @@ "type": "string", "default": "" }, - "root_path": { - "anyOf": [ - { - "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 + } }, - { - "type": "null" + "additionalProperties": false, + "required": [ + "name" + ] + } + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" } - ], - "default": null + } + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + } }, "depends_on": { "type": "object", - "title": "MacroDependsOn", + "title": "DependsOn", "properties": { "macros": { "type": "array", "items": { "type": "string" } + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false }, - "defer_relation": { + "compiled_path": { "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" + }, + { + "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" }, - "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 - }, - "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 - } - }, - "additionalProperties": true - }, - { - "type": "null" - } - ] + { + "type": "null" } - }, - "additionalProperties": false, - "required": [ - "database", - "schema", - "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" - ] - }, - { - "type": "null" + ], + "default": null } - ], - "default": null + }, + "additionalProperties": false } }, "additionalProperties": false, @@ -1092,7 +851,7 @@ }, { "type": "object", - "title": "Analysis", + "title": "SingularTestNode", "properties": { "database": { "anyOf": [ @@ -1111,7 +870,7 @@ "type": "string" }, "resource_type": { - "const": "analysis" + "const": "test" }, "package_name": { "type": "string" @@ -1153,7 +912,7 @@ }, "config": { "type": "object", - "title": "NodeConfig", + "title": "TestConfig", "properties": { "_extra": { "type": "object", @@ -1185,7 +944,7 @@ "type": "null" } ], - "default": null + "default": "dbt_test__audit" }, "database": { "anyOf": [ @@ -1230,12 +989,17 @@ }, "materialized": { "type": "string", - "default": "view" + "default": "test" }, - "incremental_strategy": { + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" @@ -1243,184 +1007,60 @@ ], "default": null }, - "persist_docs": { - "type": "object", - "propertyNames": { - "type": "string" - } + "store_failures_as": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null }, - "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": { + "where": { "anyOf": [ { "type": "string" }, - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "null" } ], "default": null }, - "on_schema_change": { + "limit": { "anyOf": [ { - "type": "string" + "type": "integer" }, { "type": "null" } ], - "default": "ignore" - }, - "on_configuration_change": { - "enum": [ - "apply", - "continue", - "fail" - ] - }, - "grants": { - "type": "object", - "propertyNames": { - "type": "string" - } + "default": null }, - "packages": { - "type": "array", - "items": { - "type": "string" - } + "fail_calc": { + "type": "string", + "default": "count(*)" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + "warn_if": { + "type": "string", + "default": "!= 0" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + "error_if": { + "type": "string", + "default": "!= 0" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -1608,6 +1248,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -1825,7 +1469,7 @@ }, { "type": "object", - "title": "SingularTest", + "title": "HookNode", "properties": { "database": { "anyOf": [ @@ -1844,7 +1488,7 @@ "type": "string" }, "resource_type": { - "const": "test" + "const": "operation" }, "package_name": { "type": "string" @@ -1886,7 +1530,7 @@ }, "config": { "type": "object", - "title": "TestConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -1918,7 +1562,7 @@ "type": "null" } ], - "default": "dbt_test__audit" + "default": null }, "database": { "anyOf": [ @@ -1963,25 +1607,9 @@ }, "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 + "default": "view" }, - "store_failures_as": { + "incremental_strategy": { "anyOf": [ { "type": "string" @@ -1992,43 +1620,190 @@ ], "default": null }, - "where": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + "persist_docs": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "limit": { - "anyOf": [ - { - "type": "integer" + "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 + } }, - { - "type": "null" - } - ], - "default": null - }, - "fail_calc": { - "type": "string", - "default": "count(*)" - }, - "warn_if": { - "type": "string", - "default": "!= 0" + "additionalProperties": false, + "required": [ + "sql" + ] + } }, - "error_if": { - "type": "string", - "default": "!= 0" + "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 } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -2216,6 +1991,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -2414,6 +2193,17 @@ } }, "additionalProperties": false + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null } }, "additionalProperties": false, @@ -2433,7 +2223,7 @@ }, { "type": "object", - "title": "HookNode", + "title": "ModelNode", "properties": { "database": { "anyOf": [ @@ -2452,7 +2242,7 @@ "type": "string" }, "resource_type": { - "const": "operation" + "const": "model" }, "package_name": { "type": "string" @@ -2494,7 +2284,7 @@ }, "config": { "type": "object", - "title": "NodeConfig", + "title": "ModelConfig", "properties": { "_extra": { "type": "object", @@ -2758,10 +2548,24 @@ } }, "additionalProperties": false + }, + "access": { + "enum": [ + "private", + "protected", + "public" + ], + "default": "protected" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -2949,6 +2753,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -3148,21 +2956,163 @@ }, "additionalProperties": false }, - "index": { + "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 + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + } + }, + "version": { "anyOf": [ { - "type": "integer" + "type": "string" + }, + { + "type": "number" }, { "type": "null" } ], "default": null - } - }, - "additionalProperties": false, - "required": [ - "database", + }, + "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" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name" + ] + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": false, + "required": [ + "database", "schema", "name", "resource_type", @@ -3177,7 +3127,7 @@ }, { "type": "object", - "title": "Model", + "title": "RPCNode", "properties": { "database": { "anyOf": [ @@ -3196,7 +3146,7 @@ "type": "string" }, "resource_type": { - "const": "model" + "const": "rpc" }, "package_name": { "type": "string" @@ -3238,7 +3188,7 @@ }, "config": { "type": "object", - "title": "ModelConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -3502,18 +3452,16 @@ } }, "additionalProperties": false - }, - "access": { - "enum": [ - "private", - "protected", - "public" - ], - "default": "protected" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -3701,6 +3649,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -3899,600 +3851,512 @@ } }, "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 - }, - "columns": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "type" - ] - } - }, - "version": { + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "type": "object", + "title": "SqlNode", + "properties": { + "database": { "anyOf": [ { "type": "string" }, - { - "type": "number" - }, { "type": "null" } - ], - "default": null + ] }, - "latest_version": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "null" - } - ], - "default": null + "schema": { + "type": "string" }, - "deprecation_date": { - "anyOf": [ - { + "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" }, - { - "type": "null" + "checksum": { + "type": "string" } - ], - "default": null + }, + "additionalProperties": false, + "required": [ + "name", + "checksum" + ] }, - "defer_relation": { - "anyOf": [ - { + "config": { + "type": "object", + "title": "NodeConfig", + "properties": { + "_extra": { "type": "object", - "title": "DeferRelation", - "properties": { - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { + "propertyNames": { + "type": "string" + } + }, + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "anyOf": [ + { "type": "string" }, - "alias": { + { + "type": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { "type": "string" }, - "relation_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { + "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" - ] + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } }, - "name": { + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { "type": "string" }, - "description": { + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "anyOf": [ + { "type": "string" }, - "compiled_code": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + { + "type": "null" + } + ], + "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 + } }, - "meta": { - "type": "object", - "propertyNames": { + "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 } }, - "tags": { + "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" } }, - "config": { + { + "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": "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": { - "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 - } - }, - "additionalProperties": true + "type": "string" }, { "type": "null" } - ] + ], + "default": null } }, - "additionalProperties": false, - "required": [ - "database", - "schema", - "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" - ] + "additionalProperties": false }, - { - "type": "null" + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false } - ], - "default": null + }, + "additionalProperties": true }, - "primary_key": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "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" + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "fqn": { + "tags": { "type": "array", "items": { "type": "string" } }, - "alias": { - "type": "string" + "description": { + "type": "string", + "default": "" }, - "checksum": { + "columns": { "type": "object", - "title": "FileHash", - "properties": { - "name": { - "type": "string" + "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 + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } + } }, - "checksum": { + "additionalProperties": true, + "required": [ + "name" + ] + }, + "propertyNames": { + "type": "string" + } + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { "type": "string" + }, + { + "type": "null" } - }, - "additionalProperties": false, - "required": [ - "name", - "checksum" - ] + ], + "default": null }, - "config": { + "docs": { "type": "object", - "title": "NodeConfig", + "title": "Docs", "properties": { - "_extra": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "enabled": { + "show": { "type": "boolean", "default": true }, - "alias": { + "node_color": { "anyOf": [ { "type": "string" @@ -4502,49 +4366,222 @@ } ], "default": null + } + }, + "additionalProperties": false + }, + "patch_path": { + "anyOf": [ + { + "type": "string" }, - "schema": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + { + "type": "null" + } + ], + "default": null + }, + "build_path": { + "anyOf": [ + { + "type": "string" }, - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + { + "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" }, - "tags": { - "anyOf": [ - { - "type": "array", - "items": { + { + "type": "null" + } + ], + "default": null + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "type": "object", + "title": "RefArgs", + "properties": { + "name": { + "type": "string" + }, + "package": { + "anyOf": [ + { "type": "string" + }, + { + "type": "null" } - }, - { - "type": "string" - } - ] + ], + "default": null + }, + "version": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ], + "default": null + } }, - "meta": { - "type": "object", - "propertyNames": { + "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" } }, - "group": { + "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" @@ -4554,12 +4591,44 @@ } ], "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": "GenericTestNode", + "properties": { + "test_metadata": { + "type": "object", + "title": "TestMetadata", + "properties": { + "name": { + "type": "string" }, - "materialized": { - "type": "string", - "default": "view" + "kwargs": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "incremental_strategy": { + "namespace": { "anyOf": [ { "type": "string" @@ -4569,91 +4638,88 @@ } ], "default": null + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "database": { + "anyOf": [ + { + "type": "string" }, - "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" - ] - } + { + "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" }, - "quoting": { + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "name", + "checksum" + ] + }, + "config": { + "type": "object", + "title": "TestConfig", + "properties": { + "_extra": { "type": "object", "propertyNames": { "type": "string" } }, - "column_types": { - "type": "object", - "propertyNames": { - "type": "string" - } + "enabled": { + "type": "boolean", + "default": true }, - "full_refresh": { + "alias": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" @@ -4661,24 +4727,18 @@ ], "default": null }, - "unique_key": { + "schema": { "anyOf": [ { "type": "string" }, - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "null" } ], - "default": null + "default": "dbt_test__audit" }, - "on_schema_change": { + "database": { "anyOf": [ { "type": "string" @@ -4687,87 +4747,132 @@ "type": "null" } ], - "default": "ignore" + "default": null }, - "on_configuration_change": { - "enum": [ - "apply", - "continue", - "fail" + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } ] }, - "grants": { + "meta": { "type": "object", "propertyNames": { "type": "string" } }, - "packages": { - "type": "array", - "items": { - "type": "string" - } + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true + "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" }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + { + "type": "null" } - }, - "additionalProperties": false + ], + "default": null }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false + "store_failures_as": { + "anyOf": [ + { + "type": "string" }, - "alias_types": { - "type": "boolean", - "default": true + { + "type": "null" } - }, - "additionalProperties": false - } - }, - "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": { + ], + "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 + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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": "" }, @@ -4935,6 +5040,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -5133,10 +5242,44 @@ } }, "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 } }, "additionalProperties": false, "required": [ + "test_metadata", "database", "schema", "name", @@ -5152,7 +5295,7 @@ }, { "type": "object", - "title": "GenericTest", + "title": "SnapshotNode", "properties": { "database": { "anyOf": [ @@ -5171,7 +5314,7 @@ "type": "string" }, "resource_type": { - "const": "test" + "const": "snapshot" }, "package_name": { "type": "string" @@ -5213,7 +5356,7 @@ }, "config": { "type": "object", - "title": "TestConfig", + "title": "SnapshotConfig", "properties": { "_extra": { "type": "object", @@ -5245,7 +5388,7 @@ "type": "null" } ], - "default": "dbt_test__audit" + "default": null }, "database": { "anyOf": [ @@ -5290,17 +5433,12 @@ }, "materialized": { "type": "string", - "default": "test" - }, - "severity": { - "type": "string", - "default": "ERROR", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + "default": "snapshot" }, - "store_failures": { + "incremental_strategy": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" @@ -5308,10 +5446,90 @@ ], "default": null }, - "store_failures_as": { + "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": "string" + "type": "boolean" }, { "type": "null" @@ -5319,7 +5537,7 @@ ], "default": null }, - "where": { + "unique_key": { "anyOf": [ { "type": "string" @@ -5330,52 +5548,163 @@ ], "default": null }, - "limit": { + "on_schema_change": { "anyOf": [ { - "type": "integer" + "type": "string" }, { "type": "null" } ], - "default": null + "default": "ignore" }, - "fail_calc": { - "type": "string", - "default": "count(*)" + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] }, - "warn_if": { - "type": "string", - "default": "!= 0" + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "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": { + "packages": { + "type": "array", + "items": { "type": "string" - }, - "description": { + } + }, + "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 + }, + "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 + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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": "" }, @@ -5543,6 +5872,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -5742,66 +6075,52 @@ }, "additionalProperties": false }, - "column_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "file_key_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "attached_node": { + "defer_relation": { "anyOf": [ { - "type": "string" + "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" + ] }, { "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, @@ -5816,12 +6135,13 @@ "unique_id", "fqn", "alias", - "checksum" + "checksum", + "config" ] }, { "type": "object", - "title": "Snapshot", + "title": "UnitTestNode", "properties": { "database": { "anyOf": [ @@ -5840,7 +6160,7 @@ "type": "string" }, "resource_type": { - "const": "snapshot" + "const": "unit_test" }, "package_name": { "type": "string" @@ -5882,7 +6202,7 @@ }, "config": { "type": "object", - "title": "SnapshotConfig", + "title": "UnitTestNodeConfig", "properties": { "_extra": { "type": "object", @@ -5959,7 +6279,7 @@ }, "materialized": { "type": "string", - "default": "snapshot" + "default": "view" }, "incremental_strategy": { "anyOf": [ @@ -6068,6 +6388,12 @@ { "type": "string" }, + { + "type": "array", + "items": { + "type": "string" + } + }, { "type": "null" } @@ -6141,70 +6467,24 @@ }, "additionalProperties": false }, - "strategy": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "target_schema": { - "anyOf": [ - { + "expected_rows": { + "type": "array", + "items": { + "type": "object", + "propertyNames": { "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 }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -6392,6 +6672,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -6591,359 +6875,700 @@ }, "additionalProperties": false }, - "defer_relation": { + "tested_node_unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "this_input_node_unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "overrides": { "anyOf": [ { "type": "object", - "title": "DeferRelation", + "title": "UnitTestOverrides", "properties": { - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "macros": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "schema": { - "type": "string" + "vars": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "alias": { + "env_vars": { + "type": "object", + "propertyNames": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + { + "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": "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": { + "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" }, - "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": "null" + } + ], + "default": null + }, + "schema": { + "anyOf": [ + { "type": "string" }, - "description": { + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { "type": "string" }, - "compiled_code": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "meta": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "tags": { + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { "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 - }, - "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" - } + { + "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": { + "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 + }, + "delimiter": { + "type": "string", + "default": "," + }, + "quote_columns": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + { + "type": "null" } - }, - "additionalProperties": true + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "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 + }, + "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": { + "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" @@ -6956,14 +7581,7 @@ "database", "schema", "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" + "relation_name" ] }, { @@ -6985,8 +7603,7 @@ "unique_id", "fqn", "alias", - "checksum", - "config" + "checksum" ] } ] @@ -7051,6 +7668,12 @@ "identifier": { "type": "string" }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "quoting": { "type": "object", "title": "Quoting", @@ -8951,12 +9574,6 @@ } ], "default": null - }, - "meta": { - "type": "object", - "propertyNames": { - "type": "string" - } } }, "additionalProperties": true @@ -9173,7 +9790,7 @@ "anyOf": [ { "type": "object", - "title": "Seed", + "title": "AnalysisNode", "properties": { "database": { "anyOf": [ @@ -9192,7 +9809,7 @@ "type": "string" }, "resource_type": { - "const": "seed" + "const": "analysis" }, "package_name": { "type": "string" @@ -9234,7 +9851,7 @@ }, "config": { "type": "object", - "title": "SeedConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -9311,7 +9928,7 @@ }, "materialized": { "type": "string", - "default": "seed" + "default": "view" }, "incremental_strategy": { "anyOf": [ @@ -9385,125 +10002,26 @@ ], "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 + }, + "additionalProperties": false, + "required": [ + "sql" + ] + } }, - "delimiter": { - "type": "string", - "default": "," + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "quote_columns": { + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { "anyOf": [ { "type": "boolean" @@ -9513,162 +10031,25 @@ } ], "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": { + }, + "unique_key": { + "anyOf": [ + { "type": "string" - } - }, - "data_type": { - "anyOf": [ - { + }, + { + "type": "array", + "items": { "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 - } - }, - "additionalProperties": false, - "required": [ - "type" - ] - } - }, - "quote": { - "anyOf": [ - { - "type": "boolean" - }, - { - "type": "null" } - ], - "default": null - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } - }, - "_extra": { - "type": "object", - "propertyNames": { - "type": "string" + }, + { + "type": "null" } - } - }, - "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 + ], + "default": null }, - "node_color": { + "on_schema_change": { "anyOf": [ { "type": "string" @@ -9677,148 +10058,36 @@ "type": "null" } ], - "default": null - } - }, - "additionalProperties": false - }, - "patch_path": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "build_path": { - "anyOf": [ - { - "type": "string" + "default": "ignore" }, - { - "type": "null" - } - ], - "default": null - }, - "unrendered_config": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "created_at": { - "type": "number" - }, - "config_call_dict": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "relation_name": { - "anyOf": [ - { - "type": "string" + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] }, - { - "type": "null" - } - ], - "default": null - }, - "raw_code": { - "type": "string", - "default": "" - }, - "root_path": { - "anyOf": [ - { - "type": "string" + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - { - "type": "null" - } - ], - "default": null - }, - "depends_on": { - "type": "object", - "title": "MacroDependsOn", - "properties": { - "macros": { + "packages": { "type": "array", "items": { "type": "string" } - } - }, - "additionalProperties": false - }, - "defer_relation": { - "anyOf": [ - { + }, + "docs": { "type": "object", - "title": "DeferRelation", + "title": "Docs", "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" + "show": { + "type": "boolean", + "default": true }, - "compiled_code": { + "node_color": { "anyOf": [ { "type": "string" @@ -9826,318 +10095,425 @@ { "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 - }, - "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" - } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + } + }, + "additionalProperties": true + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + { + "type": "null" } - }, - "additionalProperties": true + ], + "default": null }, - { - "type": "null" + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true } + }, + "additionalProperties": false, + "required": [ + "type" ] } }, - "additionalProperties": false, - "required": [ - "database", - "schema", - "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" - ] + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "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 + }, + "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": { + "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, @@ -10157,7 +10533,7 @@ }, { "type": "object", - "title": "Analysis", + "title": "SingularTestNode", "properties": { "database": { "anyOf": [ @@ -10176,7 +10552,7 @@ "type": "string" }, "resource_type": { - "const": "analysis" + "const": "test" }, "package_name": { "type": "string" @@ -10218,7 +10594,7 @@ }, "config": { "type": "object", - "title": "NodeConfig", + "title": "TestConfig", "properties": { "_extra": { "type": "object", @@ -10250,7 +10626,7 @@ "type": "null" } ], - "default": null + "default": "dbt_test__audit" }, "database": { "anyOf": [ @@ -10260,135 +10636,49 @@ { "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": { - "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": { + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { "type": "string" - }, - "transaction": { - "type": "boolean", - "default": true - }, - "index": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "default": null } }, - "additionalProperties": false, - "required": [ - "sql" - ] - } + { + "type": "string" + } + ] }, - "quoting": { + "meta": { "type": "object", "propertyNames": { "type": "string" } }, - "column_types": { - "type": "object", - "propertyNames": { - "type": "string" - } + "group": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null }, - "full_refresh": { + "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" @@ -10399,24 +10689,18 @@ ], "default": null }, - "unique_key": { + "store_failures_as": { "anyOf": [ { "type": "string" }, - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "null" } ], "default": null }, - "on_schema_change": { + "where": { "anyOf": [ { "type": "string" @@ -10425,67 +10709,40 @@ "type": "null" } ], - "default": "ignore" - }, - "on_configuration_change": { - "enum": [ - "apply", - "continue", - "fail" - ] - }, - "grants": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "packages": { - "type": "array", - "items": { - "type": "string" - } + "default": null }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true + "limit": { + "anyOf": [ + { + "type": "integer" }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + { + "type": "null" } - }, - "additionalProperties": false + ], + "default": null }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -10673,6 +10930,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -10890,7 +11151,7 @@ }, { "type": "object", - "title": "SingularTest", + "title": "HookNode", "properties": { "database": { "anyOf": [ @@ -10909,7 +11170,7 @@ "type": "string" }, "resource_type": { - "const": "test" + "const": "operation" }, "package_name": { "type": "string" @@ -10951,7 +11212,7 @@ }, "config": { "type": "object", - "title": "TestConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -10983,7 +11244,7 @@ "type": "null" } ], - "default": "dbt_test__audit" + "default": null }, "database": { "anyOf": [ @@ -11009,33 +11270,119 @@ } ] }, - "meta": { + "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": { + "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" } }, - "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])$" + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "store_failures": { + "full_refresh": { "anyOf": [ { "type": "boolean" @@ -11046,21 +11393,16 @@ ], "default": null }, - "store_failures_as": { + "unique_key": { "anyOf": [ { "type": "string" }, { - "type": "null" - } - ], - "default": null - }, - "where": { - "anyOf": [ - { - "type": "string" + "type": "array", + "items": { + "type": "string" + } }, { "type": "null" @@ -11068,32 +11410,82 @@ ], "default": null }, - "limit": { + "on_schema_change": { "anyOf": [ { - "type": "integer" + "type": "string" }, { "type": "null" } ], - "default": null + "default": "ignore" }, - "fail_calc": { - "type": "string", - "default": "count(*)" + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" + ] }, - "warn_if": { - "type": "string", - "default": "!= 0" + "grants": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "error_if": { - "type": "string", - "default": "!= 0" + "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 } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -11281,6 +11673,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -11479,6 +11875,17 @@ } }, "additionalProperties": false + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null } }, "additionalProperties": false, @@ -11498,7 +11905,7 @@ }, { "type": "object", - "title": "HookNode", + "title": "ModelNode", "properties": { "database": { "anyOf": [ @@ -11517,7 +11924,7 @@ "type": "string" }, "resource_type": { - "const": "operation" + "const": "model" }, "package_name": { "type": "string" @@ -11559,7 +11966,7 @@ }, "config": { "type": "object", - "title": "NodeConfig", + "title": "ModelConfig", "properties": { "_extra": { "type": "object", @@ -11823,10 +12230,24 @@ } }, "additionalProperties": false + }, + "access": { + "enum": [ + "private", + "protected", + "public" + ], + "default": "protected" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -12014,6 +12435,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -12176,47 +12601,189 @@ ] } }, - "_pre_injected_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 + }, + "columns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + } + }, + "version": { "anyOf": [ { "type": "string" }, + { + "type": "number" + }, { "type": "null" } ], "default": null }, - "contract": { - "type": "object", - "title": "Contract", - "properties": { - "enforced": { - "type": "boolean", - "default": false + "latest_version": { + "anyOf": [ + { + "type": "string" }, - "alias_types": { - "type": "boolean", - "default": true + { + "type": "number" }, - "checksum": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null + { + "type": "null" } - }, - "additionalProperties": false + ], + "default": null }, - "index": { + "deprecation_date": { "anyOf": [ { - "type": "integer" + "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" + } + ] + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name" + ] }, { "type": "null" @@ -12242,7 +12809,7 @@ }, { "type": "object", - "title": "Model", + "title": "RPCNode", "properties": { "database": { "anyOf": [ @@ -12261,7 +12828,7 @@ "type": "string" }, "resource_type": { - "const": "model" + "const": "rpc" }, "package_name": { "type": "string" @@ -12303,7 +12870,7 @@ }, "config": { "type": "object", - "title": "ModelConfig", + "title": "NodeConfig", "properties": { "_extra": { "type": "object", @@ -12567,18 +13134,16 @@ } }, "additionalProperties": false - }, - "access": { - "enum": [ - "private", - "protected", - "public" - ], - "default": "protected" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -12766,6 +13331,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -12947,11 +13516,168 @@ "type": "boolean", "default": false }, - "alias_types": { - "type": "boolean", - "default": true + "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": "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": { + "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" + } }, - "checksum": { + "group": { "anyOf": [ { "type": "string" @@ -12961,177 +13687,169 @@ } ], "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": [ - { + }, + "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": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { "type": "string" }, - { - "type": "null" + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null } - ], - "default": null - }, - "expression": { - "anyOf": [ - { + }, + "additionalProperties": false, + "required": [ + "sql" + ] + } + }, + "pre-hook": { + "type": "array", + "items": { + "type": "object", + "title": "Hook", + "properties": { + "sql": { "type": "string" }, - { - "type": "null" + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ], + "default": null } - ], - "default": null - }, - "warn_unenforced": { - "type": "boolean", - "default": true - }, - "warn_unsupported": { - "type": "boolean", - "default": true - }, - "columns": { - "type": "array", - "items": { - "type": "string" - } + }, + "additionalProperties": false, + "required": [ + "sql" + ] } }, - "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" + "quoting": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - { - "type": "null" - } - ], - "default": null - }, - "defer_relation": { - "anyOf": [ - { + "column_types": { "type": "object", - "title": "DeferRelation", - "properties": { - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" + "propertyNames": { + "type": "string" + } + }, + "full_refresh": { + "anyOf": [ + { + "type": "boolean" }, - "alias": { + { + "type": "null" + } + ], + "default": null + }, + "unique_key": { + "anyOf": [ + { "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" - ] + { + "type": "array", + "items": { + "type": "string" + } }, - "name": { + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { "type": "string" }, - "description": { - "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 }, - "compiled_code": { + "node_color": { "anyOf": [ { "type": "string" @@ -13139,312 +13857,343 @@ { "type": "null" } - ] - }, - "meta": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false }, - "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 - }, - "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" - } + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + } + }, + "additionalProperties": true + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + { + "type": "null" } - }, - "additionalProperties": true + ], + "default": null }, - { - "type": "null" + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true } + }, + "additionalProperties": false, + "required": [ + "type" ] } }, - "additionalProperties": false, - "required": [ - "database", - "schema", - "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" - ] + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "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 + }, + "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": { + "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" @@ -13452,19 +14201,81 @@ ], "default": null }, - "primary_key": { + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "anyOf": [ { - "type": "array", - "items": { + "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, @@ -13484,8 +14295,38 @@ }, { "type": "object", - "title": "SqlOperation", + "title": "GenericTestNode", "properties": { + "test_metadata": { + "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" + ] + }, "database": { "anyOf": [ { @@ -13503,7 +14344,7 @@ "type": "string" }, "resource_type": { - "const": "sql_operation" + "const": "test" }, "package_name": { "type": "string" @@ -13545,7 +14386,7 @@ }, "config": { "type": "object", - "title": "NodeConfig", + "title": "TestConfig", "properties": { "_extra": { "type": "object", @@ -13577,7 +14418,7 @@ "type": "null" } ], - "default": null + "default": "dbt_test__audit" }, "database": { "anyOf": [ @@ -13622,12 +14463,17 @@ }, "materialized": { "type": "string", - "default": "view" + "default": "test" }, - "incremental_strategy": { + "severity": { + "type": "string", + "default": "ERROR", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" + }, + "store_failures": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" @@ -13635,90 +14481,10 @@ ], "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": { + "store_failures_as": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" @@ -13726,93 +14492,49 @@ ], "default": null }, - "unique_key": { + "where": { "anyOf": [ { "type": "string" }, - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "null" } ], "default": null }, - "on_schema_change": { + "limit": { "anyOf": [ { - "type": "string" + "type": "integer" }, { "type": "null" } ], - "default": "ignore" - }, - "on_configuration_change": { - "enum": [ - "apply", - "continue", - "fail" - ] - }, - "grants": { - "type": "object", - "propertyNames": { - "type": "string" - } + "default": null }, - "packages": { - "type": "array", - "items": { - "type": "string" - } + "fail_calc": { + "type": "string", + "default": "count(*)" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + "warn_if": { + "type": "string", + "default": "!= 0" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + "error_if": { + "type": "string", + "default": "!= 0" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -14000,6 +14722,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -14198,10 +14924,44 @@ } }, "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 } }, "additionalProperties": false, "required": [ + "test_metadata", "database", "schema", "name", @@ -14217,7 +14977,7 @@ }, { "type": "object", - "title": "GenericTest", + "title": "SnapshotNode", "properties": { "database": { "anyOf": [ @@ -14236,7 +14996,7 @@ "type": "string" }, "resource_type": { - "const": "test" + "const": "snapshot" }, "package_name": { "type": "string" @@ -14266,34 +15026,192 @@ "name": { "type": "string" }, - "checksum": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "name", - "checksum" - ] - }, - "config": { - "type": "object", - "title": "TestConfig", - "properties": { - "_extra": { + "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 + }, + "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" } }, - "enabled": { - "type": "boolean", - "default": true + "column_types": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "alias": { + "full_refresh": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" @@ -14301,7 +15219,7 @@ ], "default": null }, - "schema": { + "unique_key": { "anyOf": [ { "type": "string" @@ -14310,9 +15228,9 @@ "type": "null" } ], - "default": "dbt_test__audit" + "default": null }, - "database": { + "on_schema_change": { "anyOf": [ { "type": "string" @@ -14321,28 +15239,65 @@ "type": "null" } ], - "default": null + "default": "ignore" }, - "tags": { - "anyOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } + "on_configuration_change": { + "enum": [ + "apply", + "continue", + "fail" ] }, - "meta": { + "grants": { "type": "object", "propertyNames": { "type": "string" } }, - "group": { + "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 + }, + "strategy": { "anyOf": [ { "type": "string" @@ -14353,19 +15308,10 @@ ], "default": null }, - "materialized": { - "type": "string", - "default": "test" - }, - "severity": { - "type": "string", - "default": "ERROR", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$" - }, - "store_failures": { + "target_schema": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" @@ -14373,7 +15319,7 @@ ], "default": null }, - "store_failures_as": { + "target_database": { "anyOf": [ { "type": "string" @@ -14384,7 +15330,7 @@ ], "default": null }, - "where": { + "updated_at": { "anyOf": [ { "type": "string" @@ -14395,32 +15341,32 @@ ], "default": null }, - "limit": { + "check_cols": { "anyOf": [ { - "type": "integer" + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } }, { "type": "null" } ], "default": null - }, - "fail_calc": { - "type": "string", - "default": "count(*)" - }, - "warn_if": { - "type": "string", - "default": "!= 0" - }, - "error_if": { - "type": "string", - "default": "!= 0" } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -14608,6 +15554,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -14807,66 +15757,52 @@ }, "additionalProperties": false }, - "column_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "file_key_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - }, - "attached_node": { + "defer_relation": { "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": [ - { + "title": "DeferRelation", + "properties": { + "database": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { "type": "string" }, - { - "type": "null" + "alias": { + "type": "string" + }, + "relation_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } - ], - "default": null + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "alias", + "relation_name" + ] + }, + { + "type": "null" } - }, - "additionalProperties": false + ], + "default": null } }, "additionalProperties": false, @@ -14881,12 +15817,13 @@ "unique_id", "fqn", "alias", - "checksum" + "checksum", + "config" ] }, { "type": "object", - "title": "Snapshot", + "title": "UnitTestNode", "properties": { "database": { "anyOf": [ @@ -14905,7 +15842,7 @@ "type": "string" }, "resource_type": { - "const": "snapshot" + "const": "unit_test" }, "package_name": { "type": "string" @@ -14947,7 +15884,7 @@ }, "config": { "type": "object", - "title": "SnapshotConfig", + "title": "UnitTestNodeConfig", "properties": { "_extra": { "type": "object", @@ -15024,7 +15961,7 @@ }, "materialized": { "type": "string", - "default": "snapshot" + "default": "view" }, "incremental_strategy": { "anyOf": [ @@ -15133,6 +16070,12 @@ { "type": "string" }, + { + "type": "array", + "items": { + "type": "string" + } + }, { "type": "null" } @@ -15206,70 +16149,24 @@ }, "additionalProperties": false }, - "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": [ - { + "expected_rows": { + "type": "array", + "items": { + "type": "object", + "propertyNames": { "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" } - ], - "default": null + } } }, "additionalProperties": true }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "tags": { "type": "array", "items": { @@ -15457,6 +16354,10 @@ ], "default": null }, + "deferred": { + "type": "boolean", + "default": false + }, "unrendered_config": { "type": "object", "propertyNames": { @@ -15595,54 +16496,214 @@ ], "default": null }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "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 + }, + "tested_node_unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "this_input_node_unique_id": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "database", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ] + }, + { + "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" }, - "extra_ctes": { + "fqn": { "type": "array", "items": { - "type": "object", - "title": "InjectedCTE", - "properties": { - "id": { - "type": "string" - }, - "sql": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "id", - "sql" - ] + "type": "string" } }, - "_pre_injected_sql": { - "anyOf": [ - { + "alias": { + "type": "string" + }, + "checksum": { + "type": "object", + "title": "FileHash", + "properties": { + "name": { "type": "string" }, - { - "type": "null" + "checksum": { + "type": "string" } - ], - "default": null + }, + "additionalProperties": false, + "required": [ + "name", + "checksum" + ] }, - "contract": { + "config": { "type": "object", - "title": "Contract", + "title": "SeedConfig", "properties": { - "enforced": { - "type": "boolean", - "default": false + "_extra": { + "type": "object", + "propertyNames": { + "type": "string" + } }, - "alias_types": { + "enabled": { "type": "boolean", "default": true }, - "checksum": { + "alias": { "anyOf": [ { "type": "string" @@ -15652,71 +16713,221 @@ } ], "default": null - } - }, - "additionalProperties": false - }, - "defer_relation": { - "anyOf": [ - { - "type": "object", - "title": "DeferRelation", - "properties": { - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + }, + "schema": { + "anyOf": [ + { + "type": "string" }, - "schema": { + { + "type": "null" + } + ], + "default": null + }, + "database": { + "anyOf": [ + { "type": "string" }, - "alias": { + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ] + }, + "meta": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "group": { + "anyOf": [ + { "type": "string" }, - "relation_name": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + { + "type": "null" + } + ], + "default": null + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "anyOf": [ + { + "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" - ] + { + "type": "null" + } + ], + "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" + } }, - "name": { + { + "type": "null" + } + ], + "default": null + }, + "on_schema_change": { + "anyOf": [ + { "type": "string" }, - "description": { - "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 }, - "compiled_code": { + "node_color": { "anyOf": [ { "type": "string" @@ -15724,291 +16935,322 @@ { "type": "null" } - ] - }, - "meta": { - "type": "object", - "propertyNames": { - "type": "string" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - } + ], + "default": null + } + }, + "additionalProperties": false + }, + "contract": { + "type": "object", + "title": "ContractConfig", + "properties": { + "enforced": { + "type": "boolean", + "default": false }, - "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 - }, - "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" - } + "alias_types": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false + }, + "delimiter": { + "type": "string", + "default": "," + }, + "quote_columns": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + } + }, + "additionalProperties": true + }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, + "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" }, - "docs": { - "type": "object", - "title": "Docs", - "properties": { - "show": { - "type": "boolean", - "default": true - }, - "node_color": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null - } - }, - "additionalProperties": false + { + "type": "null" + } + ], + "default": null + }, + "expression": { + "anyOf": [ + { + "type": "string" }, - "contract": { - "type": "object", - "title": "ContractConfig", - "properties": { - "enforced": { - "type": "boolean", - "default": false - }, - "alias_types": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false + { + "type": "null" } - }, - "additionalProperties": true + ], + "default": null + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "type" + ] + } + }, + "quote": { + "anyOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "default": null + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "_extra": { + "type": "object", + "propertyNames": { + "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 + }, + "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": { + "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" @@ -16021,14 +17263,7 @@ "database", "schema", "alias", - "relation_name", - "resource_type", - "name", - "description", - "compiled_code", - "meta", - "tags", - "config" + "relation_name" ] }, { @@ -16050,8 +17285,7 @@ "unique_id", "fqn", "alias", - "checksum", - "config" + "checksum" ] }, { @@ -16107,6 +17341,12 @@ "identifier": { "type": "string" }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "quoting": { "type": "object", "title": "Quoting", @@ -17798,12 +19038,6 @@ } ], "default": null - }, - "meta": { - "type": "object", - "propertyNames": { - "type": "string" - } } }, "additionalProperties": true @@ -18066,17 +19300,6 @@ } ], "default": null - }, - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null } }, "additionalProperties": false, @@ -18092,6 +19315,12 @@ ] } }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "description": { "anyOf": [ { @@ -18216,17 +19445,6 @@ } ], "default": null - }, - "cache": { - "type": "object", - "title": "SavedQueryCache", - "properties": { - "enabled": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false } }, "additionalProperties": true @@ -18407,7 +19625,7 @@ "type": "null" } ], - "default": "" + "default": null } }, "additionalProperties": false, @@ -19074,8 +20292,7 @@ "format": { "enum": [ "csv", - "dict", - "sql" + "dict" ], "default": "dict" }, @@ -19124,8 +20341,7 @@ "format": { "enum": [ "csv", - "dict", - "sql" + "dict" ], "default": "dict" }, @@ -19186,6 +20402,12 @@ "type": "string" } }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "description": { "type": "string", "default": "" @@ -19295,80 +20517,6 @@ } ], "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, @@ -19604,17 +20752,6 @@ } ], "default": null - }, - "database": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": null } }, "additionalProperties": false, @@ -19630,6 +20767,12 @@ ] } }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "description": { "anyOf": [ { @@ -19754,17 +20897,6 @@ } ], "default": null - }, - "cache": { - "type": "object", - "title": "SavedQueryCache", - "properties": { - "enabled": { - "type": "boolean", - "default": false - } - }, - "additionalProperties": false } }, "additionalProperties": true @@ -19952,7 +21084,7 @@ "type": "null" } ], - "default": "" + "default": null } }, "additionalProperties": false, @@ -20626,8 +21758,7 @@ "format": { "enum": [ "csv", - "dict", - "sql" + "dict" ], "default": "dict" }, @@ -20676,8 +21807,7 @@ "format": { "enum": [ "csv", - "dict", - "sql" + "dict" ], "default": "dict" }, @@ -20738,6 +21868,12 @@ "type": "string" } }, + "_event_status": { + "type": "object", + "propertyNames": { + "type": "string" + } + }, "description": { "type": "string", "default": "" @@ -20847,80 +21983,6 @@ } ], "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, From be59892792ddc0c7a116820d176c8ac7c2c7d7b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:19:32 +0900 Subject: [PATCH 5/5] Bump build from 1.2.1 to 1.2.2 (#111) Bumps [build](https://github.com/pypa/build) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.2.1...1.2.2) --- updated-dependencies: - dependency-name: build dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index acdd892..d2de204 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,7 @@ test = [ ] dev = [ "flit ==3.9.0", - "build ==1.2.1", + "build ==1.2.2", "yapf >=0.29.0", "pyyaml >=5.3", "pdoc3 >=0.9.2",