decentriq-platform 0.40.3.dev0__tar.gz → 0.41.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/PKG-INFO +2 -2
- decentriq_platform-0.41.0/decentriq_platform/admin/__init__.py +7 -0
- decentriq_platform-0.41.0/decentriq_platform/admin/media.py +147 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/api.py +9 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/__init__.py +3 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/client.py +311 -10
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/compute_job.py +14 -3
- decentriq_platform-0.41.0/decentriq_platform/archv2/materialization.py +95 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/session.py +37 -3
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/attestation.py +17 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/client.py +59 -8
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/data_lab.py +6 -0
- decentriq_platform-0.41.0/decentriq_platform/legacy/proto/attestation_pb2.py +66 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/__init__.py +7 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/action.py +133 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/api/__init__.py +15 -1
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/compute_job.py +88 -33
- decentriq_platform-0.41.0/decentriq_platform/media/exclusion_targeting_audience_builder.py +91 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/media.py +141 -9
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/validation_reports.py +6 -3
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/__init__.py +2 -0
- decentriq_platform-0.41.0/decentriq_platform/proto/attestation_pb2.py +66 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/attestation_pb2.pyi +31 -3
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/gcg_pb2.py +74 -70
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/gcg_pb2.pyi +54 -6
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/metering_pb2.py +76 -68
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/metering_pb2.pyi +118 -3
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/verification.py +18 -4
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/pyproject.toml +2 -2
- decentriq_platform-0.40.3.dev0/decentriq_platform/legacy/proto/attestation_pb2.py +0 -64
- decentriq_platform-0.40.3.dev0/decentriq_platform/proto/attestation_pb2.py +0 -64
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/README.md +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/5.root.json +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/analytics_dcr.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/dataset_sink_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/existing_builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/high_level_node.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/matching_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/node_definitions.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/preview_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/proxy.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/python_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/python_environment_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/r_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/raw_data_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/s3_sink_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/script.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/sql_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/sql_helper.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/sqlite_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/synthetic_compute_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/table_data_nodes.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/analytics/version.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/release_policy_builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/secret.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/authentication.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/certs.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/channel.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/config.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/connection.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/aws/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/aws/connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/aws/credentials.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/azure_blob_storage/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/azure_blob_storage/credentials.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/azure_blob_storage/export_connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/azure_blob_storage/import_connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/export_dependency_types.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/gcs/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/gcs/credentials.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/gcs/export_connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/gcs/import_connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/snowflake/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/snowflake/connector.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_connectors/snowflake/credentials.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/api/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/check_data_lab_type.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/compute_job.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/configs.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/data_lab_interface.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/data_lab/validation_reports.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/decoder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/endorsement.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/graphql.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/helpers.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/adform_dsp/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/adform_dsp/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/adform_dsp/proto/adform_dsp_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/adform_dsp/proto/adform_dsp_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/api.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/attestation.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/authentication.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/azure_blob_storage/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/azure_blob_storage/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/azure_blob_storage/proto/azure_blob_storage_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/azure_blob_storage/proto/azure_blob_storage_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/builders.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/compute.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/config.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/compute.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/helpers.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/proto/compute_container_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/container/proto/compute_container_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_lab/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_lab/data_lab.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_science/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/proto/compute_sql_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/proto/compute_sql_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/proto/data_source_s3_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_s3/proto/data_source_s3_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_snowflake/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_snowflake/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_snowflake/proto/data_source_snowflake_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/data_source_snowflake/proto/data_source_snowflake_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/dataset_sink/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/dataset_sink/helpers.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/dataset_sink/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/dataset_sink/proto/dataset_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/dataset_sink/proto/dataset_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_ad_manager/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_ad_manager/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_ad_manager/proto/google_ad_manager_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_ad_manager/proto/google_ad_manager_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_dv_360_sink/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_dv_360_sink/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_dv_360_sink/proto/google_dv_360_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/google_dv_360_sink/proto/google_dv_360_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/helpers.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/lookup_tables.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/meta_sink/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/meta_sink/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/meta_sink/proto/meta_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/meta_sink/proto/meta_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/microsoft_dsp/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/microsoft_dsp/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/microsoft_dsp/proto/microsoft_dsp_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/microsoft_dsp/proto/microsoft_dsp_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/node.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/permission.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/permutive/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/permutive/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/permutive/proto/permutive_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/permutive/proto/permutive_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/proto/compute_sql_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/proto/data_room_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/proto/length_delimited.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/s3_sink/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/s3_sink/compute.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/s3_sink/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/s3_sink/proto/compute_s3_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/s3_sink/proto/compute_s3_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/salesforce/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/salesforce/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/salesforce/proto/salesforce_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/salesforce/proto/salesforce_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/session.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/compute.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/helpers.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/proto/__init__.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/proto/compute_sql_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/sql/proto/compute_sql_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/storage.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/types.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/upload.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/legacy/verification.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/logger.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/audience_statistics_result.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/audiences.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/helper.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/lookalike_audience_builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/participant.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/remarketing_audience_builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/media/rule_based_builder.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/adform_dsp_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/adform_dsp_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/amazon_amc_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/amazon_amc_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/archv2_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/archv2_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/azure_blob_storage_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/azure_blob_storage_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_container_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_container_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_post_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_post_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_s3_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_s3_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_sql_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/compute_sql_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_room_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_room_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_source_s3_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_source_s3_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_source_snowflake_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/data_source_snowflake_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/dataset_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/dataset_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/delta_enclave_api_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/delta_enclave_api_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/google_ad_manager_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/google_ad_manager_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/google_dv_360_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/google_dv_360_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/identity_endorsement_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/identity_endorsement_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/integrity_store_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/integrity_store_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/length_delimited.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/meta_sink_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/meta_sink_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/microsoft_dsp_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/microsoft_dsp_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/permutive_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/permutive_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/release_policy_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/release_policy_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/salesforce_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/salesforce_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/secret_store_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/secret_store_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/synth_data_pb2.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/proto/synth_data_pb2.pyi +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/session.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/storage.py +0 -0
- {decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: decentriq-platform
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.41.0
|
|
4
4
|
Summary: Python client library for the Decentriq platform
|
|
5
5
|
Author: decentriq
|
|
6
6
|
Author-email: opensource@decentriq.com
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
13
13
|
Requires-Dist: asn1crypto (>=1.5.1,<2.0.0)
|
|
14
14
|
Requires-Dist: chily (>=0.9.0,<0.10.0)
|
|
15
15
|
Requires-Dist: cryptography (>=48.0.1,<49)
|
|
16
|
-
Requires-Dist: decentriq-dcr-compiler (==0.
|
|
16
|
+
Requires-Dist: decentriq-dcr-compiler (==0.22.0)
|
|
17
17
|
Requires-Dist: decentriq-transparency-verification (==0.2.0)
|
|
18
18
|
Requires-Dist: deprecated (>=1.3.1,<2.0.0)
|
|
19
19
|
Requires-Dist: pem (>=21.2.0,<22.0.0)
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import List, TYPE_CHECKING, Union
|
|
4
|
+
|
|
5
|
+
from ..archv2.client import DataRoomAuditLog
|
|
6
|
+
from ..media.api import CustomAudience, SeedAudience
|
|
7
|
+
from ..media.audiences import AudienceType
|
|
8
|
+
from ..media.compute_job import (
|
|
9
|
+
MediaAudiencesValidationReportJob,
|
|
10
|
+
MediaBaseAudienceValidationReportsJob,
|
|
11
|
+
MediaDataAttributesJob,
|
|
12
|
+
MediaEstimateAudienceSizeJob,
|
|
13
|
+
MediaGetAudiencesJob,
|
|
14
|
+
MediaInsightsJob,
|
|
15
|
+
MediaLookalikeAudienceStatisticsJob,
|
|
16
|
+
MediaOverlapStatisticsJob,
|
|
17
|
+
)
|
|
18
|
+
from ..media.media import DcrConfiguration, MediaDcr
|
|
19
|
+
from ..media.participant import Participant
|
|
20
|
+
|
|
21
|
+
if TYPE_CHECKING:
|
|
22
|
+
from ..client import Client
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AdminMediaDcr:
|
|
26
|
+
"""Admin-only view of a Media DCR.
|
|
27
|
+
|
|
28
|
+
Restricts usage to DQ admins only.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
def __init__(self, dcr_id: str, client: Client):
|
|
32
|
+
role = client._get_user_role()
|
|
33
|
+
if role != "SUPER_ADMIN":
|
|
34
|
+
raise PermissionError(
|
|
35
|
+
f"AdminMediaDcr is restricted to Decentriq SUPER_ADMINs. Current user role is '{role}'."
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
self._media_dcr = MediaDcr(client=client, _existing_dcr_id=dcr_id)
|
|
39
|
+
self.id = dcr_id
|
|
40
|
+
self.client = client
|
|
41
|
+
self.client_v2 = client.client_v2
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_existing(cls, dcr_id: str, client: Client) -> "AdminMediaDcr":
|
|
45
|
+
"""Load an existing MDCR for admin inspection and compute."""
|
|
46
|
+
return cls(dcr_id, client)
|
|
47
|
+
|
|
48
|
+
def get_owner_email(self) -> str:
|
|
49
|
+
return self._media_dcr.get_owner_email()
|
|
50
|
+
|
|
51
|
+
def get_participants(self) -> List[Participant]:
|
|
52
|
+
return self._media_dcr.get_participants()
|
|
53
|
+
|
|
54
|
+
def get_configuration(self) -> DcrConfiguration:
|
|
55
|
+
return self._media_dcr.get_configuration()
|
|
56
|
+
|
|
57
|
+
def get_audit_log(self) -> List[DataRoomAuditLog]:
|
|
58
|
+
return self._media_dcr.get_audit_log()
|
|
59
|
+
|
|
60
|
+
def is_base_audience_provisioned(self) -> bool:
|
|
61
|
+
return self._media_dcr.is_base_audience_provisioned()
|
|
62
|
+
|
|
63
|
+
def are_seed_audiences_provisioned(self) -> bool:
|
|
64
|
+
return self._media_dcr.are_seed_audiences_provisioned()
|
|
65
|
+
|
|
66
|
+
def get_insights(self) -> MediaInsightsJob:
|
|
67
|
+
return self._run_job(
|
|
68
|
+
MediaInsightsJob(self.id, self.client, as_decentriq_admin=True)
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
def get_overlap_statistics(self) -> MediaOverlapStatisticsJob:
|
|
72
|
+
return self._run_job(
|
|
73
|
+
MediaOverlapStatisticsJob(self.id, self.client, as_decentriq_admin=True)
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
def get_base_audience_validation_reports(
|
|
77
|
+
self,
|
|
78
|
+
) -> MediaBaseAudienceValidationReportsJob:
|
|
79
|
+
job = MediaBaseAudienceValidationReportsJob(
|
|
80
|
+
self.id, self.client, as_decentriq_admin=True
|
|
81
|
+
)
|
|
82
|
+
job.run()
|
|
83
|
+
return job
|
|
84
|
+
|
|
85
|
+
def get_seed_audiences_validation_report(
|
|
86
|
+
self,
|
|
87
|
+
) -> MediaAudiencesValidationReportJob:
|
|
88
|
+
return self._run_job(
|
|
89
|
+
MediaAudiencesValidationReportJob(
|
|
90
|
+
self.id, self.client, as_decentriq_admin=True
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
def get_data_attributes(self) -> MediaDataAttributesJob:
|
|
95
|
+
return self._run_job(
|
|
96
|
+
MediaDataAttributesJob(self.id, self.client, as_decentriq_admin=True)
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
def get_lookalike_audience_statistics(
|
|
100
|
+
self, audience: AudienceType
|
|
101
|
+
) -> MediaLookalikeAudienceStatisticsJob:
|
|
102
|
+
return self._run_job(
|
|
103
|
+
MediaLookalikeAudienceStatisticsJob(
|
|
104
|
+
self.id, audience, self.client, as_decentriq_admin=True
|
|
105
|
+
)
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
def get_audiences(self, as_participant_email: str) -> MediaGetAudiencesJob:
|
|
109
|
+
"""Get audiences from a specific participant's perspective.
|
|
110
|
+
|
|
111
|
+
Unlike the participant-facing `MediaDcr.get_audiences()`, the admin
|
|
112
|
+
is not itself a participant, so the caller must declare which
|
|
113
|
+
participant's view to retrieve. Use `get_owner_email()` or
|
|
114
|
+
`get_participants()` to pick one.
|
|
115
|
+
"""
|
|
116
|
+
participants = self.get_participants()
|
|
117
|
+
participant_id = None
|
|
118
|
+
for participant in participants:
|
|
119
|
+
if as_participant_email in participant.emails:
|
|
120
|
+
participant_id = participant.id
|
|
121
|
+
break
|
|
122
|
+
if participant_id is None:
|
|
123
|
+
raise Exception(
|
|
124
|
+
f"{as_participant_email} does not appear in any of the participants"
|
|
125
|
+
)
|
|
126
|
+
job = MediaGetAudiencesJob(
|
|
127
|
+
self.id,
|
|
128
|
+
as_participant_email,
|
|
129
|
+
self.client,
|
|
130
|
+
participant_id=participant_id,
|
|
131
|
+
as_decentriq_admin=True,
|
|
132
|
+
)
|
|
133
|
+
job.run()
|
|
134
|
+
return job
|
|
135
|
+
|
|
136
|
+
def get_audience_size(
|
|
137
|
+
self, audience: Union[SeedAudience, CustomAudience]
|
|
138
|
+
) -> MediaEstimateAudienceSizeJob:
|
|
139
|
+
return self._run_job(
|
|
140
|
+
MediaEstimateAudienceSizeJob(
|
|
141
|
+
self.id, audience, self.client, as_decentriq_admin=True
|
|
142
|
+
)
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
def _run_job(self, job):
|
|
146
|
+
job.run()
|
|
147
|
+
return job
|
|
@@ -25,20 +25,29 @@ class Endpoints(str, Enum):
|
|
|
25
25
|
ORGANIZATION_DATA_ROOMS_COLLECTION = "/organizations/:organization_id/datarooms"
|
|
26
26
|
USER_DATA_ROOMS_COLLECTION = "/users/:user_id/datarooms"
|
|
27
27
|
USER_DATA_LABS_COLLECTION = "/users/:user_id/datalabs"
|
|
28
|
+
USER_IMPORT_CONNECTORS_COLLECTION = "/users/:user_id/import-connectors"
|
|
29
|
+
USER_MATERIALIZATIONS_COLLECTION = "/users/:user_id/materializations"
|
|
28
30
|
DATA_ROOMS_COLLECTION = f"/datarooms"
|
|
29
31
|
DATA_ROOM = f"/datarooms/:data_room_id"
|
|
30
32
|
DATA_ROOM_ACTIONS = f"/datarooms/:data_room_id/actions"
|
|
31
33
|
DATA_ROOM_AUDIT_LOG = f"/datarooms/:data_room_id/auditlog"
|
|
32
34
|
DATA_ROOM_POLICIES = f"/datarooms/:data_room_id/policies"
|
|
33
35
|
DATA_ROOM_STOP = f"/datarooms/:data_room_id/stop"
|
|
36
|
+
DATA_ROOM_RUNS_COLLECTION = f"/datarooms/:data_room_id/runs"
|
|
34
37
|
ACTIONS_COLLECTION = "/actions"
|
|
35
38
|
JOBS_COLLECTION = "/jobs"
|
|
36
39
|
JOB = "/jobs/:job_id"
|
|
37
40
|
JOB_FRESHNESS = "/jobs/:job_id/freshness"
|
|
38
41
|
JOB_STATUS = "/jobs/:job_id/status"
|
|
39
42
|
JOB_TASKS_COLLECTION = "/jobs/:job_id/tasks"
|
|
43
|
+
JOB_RUNS_COLLECTION = "/jobs/:job_id/runs"
|
|
40
44
|
JOB_RESULT_CHUNKS_STREAM = "/jobs/:job_id/result/:task_result_hash/chunks"
|
|
41
45
|
JOB_RAW_ERRORS_RESULT = "/jobs/:job_id/raw_errors"
|
|
46
|
+
JOB_RESULTS_AS_DECENTRIQ_USER = "/jobs/:job_id/results"
|
|
47
|
+
RUN = "/runs/:run_id"
|
|
48
|
+
MATERIALIZATION = "/materializations/:materialization_id"
|
|
49
|
+
IMPORT_CONNECTORS_COLLECTION = "/import-connectors"
|
|
50
|
+
IMPORT_CONNECTOR = "/import-connectors/:import_connector_id"
|
|
42
51
|
DATASET_CHUNKS_STREAM = "/datasets/:manifest_hash/chunks"
|
|
43
52
|
CHECK_DATA_LABS_COMPATIBILITY = "/compatibility/check-data-labs-compatibility"
|
|
44
53
|
DATA_LABS_COLLECTION = "/datalabs"
|
{decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/__init__.py
RENAMED
|
@@ -2,6 +2,7 @@ from .session import SessionV2
|
|
|
2
2
|
from .secret import Secret
|
|
3
3
|
from .client import ClientV2, JobStatus, DataLabV2
|
|
4
4
|
from .compute_job import ComputeJob
|
|
5
|
+
from .materialization import MaterializationSource, MaterializationDataset
|
|
5
6
|
|
|
6
7
|
__all__ = [
|
|
7
8
|
"SessionV2",
|
|
@@ -10,4 +11,6 @@ __all__ = [
|
|
|
10
11
|
"JobStatus",
|
|
11
12
|
"DataLabV2",
|
|
12
13
|
"ComputeJob",
|
|
14
|
+
"MaterializationSource",
|
|
15
|
+
"MaterializationDataset",
|
|
13
16
|
]
|
{decentriq_platform-0.40.3.dev0 → decentriq_platform-0.41.0}/decentriq_platform/archv2/client.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from enum import Enum
|
|
2
2
|
import json
|
|
3
3
|
from cryptography.hazmat.primitives.asymmetric import ed25519
|
|
4
|
-
from typing import Literal, TypedDict, Dict, List, Union
|
|
4
|
+
from typing import Literal, Optional, TypedDict, Dict, List, Union
|
|
5
5
|
|
|
6
6
|
from ..types import JSONType
|
|
7
7
|
from ..api import Api, Endpoints
|
|
@@ -43,6 +43,26 @@ class Job(TypedDict):
|
|
|
43
43
|
id: str
|
|
44
44
|
|
|
45
45
|
|
|
46
|
+
class RunStatus(str, Enum):
|
|
47
|
+
"""View-only status of a run (the per-firing execution unit), distinct from
|
|
48
|
+
the compute-level ``JobStatus``. ``MATERIALIZATION_FAILED`` means compute
|
|
49
|
+
succeeded but at least one materialization permanently failed."""
|
|
50
|
+
|
|
51
|
+
COMPUTING = "COMPUTING"
|
|
52
|
+
MATERIALIZING = "MATERIALIZING"
|
|
53
|
+
COMPLETED = "COMPLETED"
|
|
54
|
+
MATERIALIZATION_FAILED = "MATERIALIZATION_FAILED"
|
|
55
|
+
FAILED = "FAILED"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class CreatedJob(Job):
|
|
59
|
+
"""A `Job` plus the run created (or joined) by firing it. `run_status` is
|
|
60
|
+
COMPLETED iff an ``if_stale`` firing reused an existing run."""
|
|
61
|
+
|
|
62
|
+
run_id: str
|
|
63
|
+
run_status: RunStatus
|
|
64
|
+
|
|
65
|
+
|
|
46
66
|
class TaskView(TypedDict):
|
|
47
67
|
name: str
|
|
48
68
|
results: Dict[str, str]
|
|
@@ -67,6 +87,110 @@ class JobStatusView(TypedDict):
|
|
|
67
87
|
completed_at: str
|
|
68
88
|
|
|
69
89
|
|
|
90
|
+
class MaterializationStatus(str, Enum):
|
|
91
|
+
PENDING = "PENDING"
|
|
92
|
+
RUNNING = "RUNNING"
|
|
93
|
+
SUCCESS = "SUCCESS"
|
|
94
|
+
SKIPPED = "SKIPPED"
|
|
95
|
+
FAILED = "FAILED"
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class MaterializationExecution(TypedDict):
|
|
99
|
+
"""One execution of a materialization on a run. The dataset it produced is
|
|
100
|
+
provenance-linked on the dataset side, not here."""
|
|
101
|
+
|
|
102
|
+
runId: str
|
|
103
|
+
status: MaterializationStatus
|
|
104
|
+
completedAt: Optional[str]
|
|
105
|
+
failureReason: Optional[str]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class MaterializationView(TypedDict):
|
|
109
|
+
"""A materialization + its full execution history (GET /materializations/:id).
|
|
110
|
+
Owner-scoped: the per-materialization detail does not live on the run.
|
|
111
|
+
|
|
112
|
+
The signed Materialization entity is returned encoded in ``signedContent`` so
|
|
113
|
+
the caller can verify the enclave signature and decode its fields (source,
|
|
114
|
+
createdBy, …) themselves — mirroring the job/dataroom endpoints. Only
|
|
115
|
+
``executions`` (the run-side ledger, not part of the entry) is a separate field.
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
id: str
|
|
119
|
+
signedContent: SignedContent
|
|
120
|
+
executions: List[MaterializationExecution]
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class MaterializationSummaryView(TypedDict):
|
|
124
|
+
"""A materialization list item (GET /users/:user_id/materializations).
|
|
125
|
+
Omits the execution history — fetch it per materialization via
|
|
126
|
+
``get_materialization``."""
|
|
127
|
+
|
|
128
|
+
id: str
|
|
129
|
+
signedContent: SignedContent
|
|
130
|
+
createdAt: str
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class ImportConnector(TypedDict):
|
|
134
|
+
"""A finalized import-connector DCR together with the single materialization
|
|
135
|
+
whose source is that DCR (``GET /import-connectors/:id``). Only finalized
|
|
136
|
+
(``ready``) connectors are served here; a draft connector is a plain DCR
|
|
137
|
+
fetched via ``get_data_room``."""
|
|
138
|
+
|
|
139
|
+
dataRoom: DataRoom
|
|
140
|
+
materialization: MaterializationView
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class RunTriggerKind(str, Enum):
|
|
144
|
+
USER = "USER"
|
|
145
|
+
ADMIN_RETRIGGER = "ADMIN_RETRIGGER"
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
class UserTrigger(TypedDict):
|
|
149
|
+
type: Literal[RunTriggerKind.USER]
|
|
150
|
+
userId: str
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class AdminRetriggerTrigger(TypedDict):
|
|
154
|
+
type: Literal[RunTriggerKind.ADMIN_RETRIGGER]
|
|
155
|
+
userId: str
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
# What triggered a run, discriminated by `type`.
|
|
159
|
+
RunTrigger = Union[UserTrigger, AdminRetriggerTrigger]
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class RunView(TypedDict):
|
|
163
|
+
"""The compute lifecycle of a run."""
|
|
164
|
+
|
|
165
|
+
runId: str
|
|
166
|
+
jobId: str
|
|
167
|
+
status: RunStatus
|
|
168
|
+
trigger: RunTrigger
|
|
169
|
+
triggeredAt: str
|
|
170
|
+
completedAt: Optional[str]
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class PaginationMetadata(TypedDict):
|
|
174
|
+
"""Cursors for the neighboring pages; a null nextCursor means the last page."""
|
|
175
|
+
|
|
176
|
+
nextCursor: Optional[str]
|
|
177
|
+
prevCursor: Optional[str]
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
class RunsPage(TypedDict):
|
|
181
|
+
"""One page of runs plus pagination cursors."""
|
|
182
|
+
|
|
183
|
+
data: List[RunView]
|
|
184
|
+
metadata: Optional[PaginationMetadata]
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
class MaterializationsPage(TypedDict):
|
|
188
|
+
"""One page of a user's materializations plus pagination cursors."""
|
|
189
|
+
|
|
190
|
+
data: List[MaterializationSummaryView]
|
|
191
|
+
metadata: Optional[PaginationMetadata]
|
|
192
|
+
|
|
193
|
+
|
|
70
194
|
class RawError(TypedDict):
|
|
71
195
|
task_name: str
|
|
72
196
|
error_message: str
|
|
@@ -97,11 +221,6 @@ class DataLabCompatibilityResponse(TypedDict):
|
|
|
97
221
|
errorsByDataLab: Dict[str, List[str]]
|
|
98
222
|
|
|
99
223
|
|
|
100
|
-
class PaginationMetadata(TypedDict):
|
|
101
|
-
nextCursor: str
|
|
102
|
-
prevCursor: str
|
|
103
|
-
|
|
104
|
-
|
|
105
224
|
class PaginatedDataLabsResponse(TypedDict):
|
|
106
225
|
data: List[DataLabV2]
|
|
107
226
|
metadata: PaginationMetadata
|
|
@@ -337,25 +456,207 @@ class ClientV2:
|
|
|
337
456
|
Job API
|
|
338
457
|
"""
|
|
339
458
|
|
|
340
|
-
def create_job(
|
|
459
|
+
def create_job(
|
|
460
|
+
self,
|
|
461
|
+
data_room_id: str,
|
|
462
|
+
data_room_compute_action: JSONType,
|
|
463
|
+
freshness_token: Optional[str] = None,
|
|
464
|
+
mode: Optional[Literal["always", "if_stale"]] = None,
|
|
465
|
+
) -> CreatedJob:
|
|
466
|
+
"""Fire a compute action.
|
|
467
|
+
|
|
468
|
+
`mode="if_stale"` reuses the action's newest completed run when it
|
|
469
|
+
belongs to the job the current state derives (that state's
|
|
470
|
+
materialization is the current one) instead of running again; the
|
|
471
|
+
returned `run_status` is COMPLETED iff a run was reused."""
|
|
341
472
|
body = {
|
|
342
473
|
"payload": json.dumps(data_room_compute_action),
|
|
343
474
|
"data_room_id": data_room_id,
|
|
344
475
|
}
|
|
476
|
+
if freshness_token is not None:
|
|
477
|
+
body["freshness_token"] = freshness_token
|
|
478
|
+
if mode is not None:
|
|
479
|
+
body["mode"] = mode
|
|
345
480
|
response = self.api.post(
|
|
346
481
|
endpoint=Endpoints.JOBS_COLLECTION,
|
|
347
482
|
req_body=json.dumps(body),
|
|
348
483
|
headers={"Content-type": "application/json"},
|
|
349
484
|
)
|
|
485
|
+
if response.status_code != 201:
|
|
486
|
+
raise Exception(
|
|
487
|
+
f"Failed to create job: {response.status_code} {response.text}"
|
|
488
|
+
)
|
|
489
|
+
payload = response.json()
|
|
490
|
+
return CreatedJob(
|
|
491
|
+
id=payload["jobId"],
|
|
492
|
+
run_id=payload["runId"],
|
|
493
|
+
run_status=payload["runStatus"],
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
def get_run_status(self, run_id: str) -> RunView:
|
|
497
|
+
endpoint = Endpoints.RUN.replace(":run_id", run_id)
|
|
498
|
+
response: RunView = self.api.get(
|
|
499
|
+
endpoint=endpoint,
|
|
500
|
+
).json()
|
|
501
|
+
return response
|
|
502
|
+
|
|
503
|
+
def get_job_results_as_decentriq_user(self, job_id: str) -> bytes:
|
|
504
|
+
"""Fetch the result zip via `GET /jobs/:job_id/results`.
|
|
505
|
+
|
|
506
|
+
Requires a Decentriq SuperAdmin (or SuperAdminReadOnly) token
|
|
507
|
+
and an MDCR created with `share_aggregated_results=True`. The
|
|
508
|
+
enclave enforces `check_api_platform_user_permission_for_result`.
|
|
509
|
+
"""
|
|
510
|
+
endpoint = Endpoints.JOB_RESULTS_AS_DECENTRIQ_USER.replace(
|
|
511
|
+
":job_id", job_id
|
|
512
|
+
)
|
|
513
|
+
response = self.api.get(endpoint=endpoint)
|
|
514
|
+
if response.status_code != 200:
|
|
515
|
+
raise Exception(
|
|
516
|
+
f"Failed to fetch results as Decentriq user: "
|
|
517
|
+
f"{response.status_code} {response.text}"
|
|
518
|
+
)
|
|
519
|
+
return response.content
|
|
520
|
+
|
|
521
|
+
def get_materialization(self, materialization_id: str) -> MaterializationView:
|
|
522
|
+
"""Fetch a materialization and its execution history. Owner-scoped:
|
|
523
|
+
visible to the creator, their org, or an admin."""
|
|
524
|
+
endpoint = Endpoints.MATERIALIZATION.replace(
|
|
525
|
+
":materialization_id", materialization_id
|
|
526
|
+
)
|
|
527
|
+
response: MaterializationView = self.api.get(
|
|
528
|
+
endpoint=endpoint,
|
|
529
|
+
).json()
|
|
530
|
+
return response
|
|
531
|
+
|
|
532
|
+
def revoke_materialization(self, materialization_id: str) -> None:
|
|
533
|
+
"""Revoke a materialization (tombstone it). Only the creator or a
|
|
534
|
+
super admin may revoke; the enclave stops honoring it on the next run."""
|
|
535
|
+
endpoint = Endpoints.MATERIALIZATION.replace(
|
|
536
|
+
":materialization_id", materialization_id
|
|
537
|
+
)
|
|
538
|
+
self.api.delete(endpoint=endpoint)
|
|
539
|
+
|
|
540
|
+
def list_materializations(
|
|
541
|
+
self,
|
|
542
|
+
user_id: str,
|
|
543
|
+
limit: Optional[int] = None,
|
|
544
|
+
next_cursor: Optional[str] = None,
|
|
545
|
+
prev_cursor: Optional[str] = None,
|
|
546
|
+
) -> MaterializationsPage:
|
|
547
|
+
"""List one page of the materializations created by the user, newest
|
|
548
|
+
first, cursor-paginated. Owner-scoped like `get_materialization`:
|
|
549
|
+
visible to the user, their org, or an admin. Execution history is
|
|
550
|
+
omitted from list items — fetch it via `get_materialization`."""
|
|
551
|
+
endpoint = Endpoints.USER_MATERIALIZATIONS_COLLECTION.replace(
|
|
552
|
+
":user_id", user_id
|
|
553
|
+
)
|
|
554
|
+
params = {}
|
|
555
|
+
if limit is not None:
|
|
556
|
+
params["limit"] = limit
|
|
557
|
+
if next_cursor is not None:
|
|
558
|
+
params["next_cursor"] = next_cursor
|
|
559
|
+
if prev_cursor is not None:
|
|
560
|
+
params["prev_cursor"] = prev_cursor
|
|
561
|
+
response: MaterializationsPage = self.api.get(
|
|
562
|
+
endpoint=endpoint,
|
|
563
|
+
params=params or None,
|
|
564
|
+
).json()
|
|
565
|
+
return response
|
|
566
|
+
|
|
567
|
+
"""
|
|
568
|
+
Import Connector API
|
|
569
|
+
"""
|
|
570
|
+
|
|
571
|
+
def create_import_connector(
|
|
572
|
+
self, create_import_connector: JSONType, verification_key: bytes
|
|
573
|
+
) -> DataRoom:
|
|
574
|
+
"""Create an import-connector DCR through the dedicated endpoint (which
|
|
575
|
+
tags it with the ImportConnector purpose, so it appears in
|
|
576
|
+
`get_import_connectors`). Returns the created connector as a draft DCR:
|
|
577
|
+
it has no materialization yet, so it is a plain DCR until the
|
|
578
|
+
configuration wizard finalizes it — fetch the full connector via
|
|
579
|
+
`get_import_connector` once it is `ready`."""
|
|
580
|
+
body = {"payload": json.dumps(create_import_connector)}
|
|
581
|
+
response = self.api.post(
|
|
582
|
+
endpoint=Endpoints.IMPORT_CONNECTORS_COLLECTION,
|
|
583
|
+
req_body=json.dumps(body),
|
|
584
|
+
headers={"Content-type": "application/json"},
|
|
585
|
+
)
|
|
350
586
|
if response.status_code == 201 and "Location" in response.headers:
|
|
351
587
|
location = response.headers["Location"]
|
|
352
|
-
|
|
353
|
-
return self.
|
|
588
|
+
import_connector_id = location.split("/")[-1]
|
|
589
|
+
return self.get_data_room(import_connector_id, verification_key)
|
|
354
590
|
else:
|
|
355
591
|
raise Exception(
|
|
356
|
-
f"Failed to create
|
|
592
|
+
f"Failed to create import connector: {response.status_code} {response.text}"
|
|
357
593
|
)
|
|
358
594
|
|
|
595
|
+
def get_import_connector(
|
|
596
|
+
self, import_connector_id: str, verification_key: bytes
|
|
597
|
+
) -> ImportConnector:
|
|
598
|
+
"""Fetch a finalized import-connector DCR together with its single
|
|
599
|
+
materialization. The DCR's signed content is verified; the
|
|
600
|
+
materialization body is returned as received (verify via its signed
|
|
601
|
+
content). 404s for a draft connector — fetch that via ``get_data_room``."""
|
|
602
|
+
endpoint = Endpoints.IMPORT_CONNECTOR.replace(
|
|
603
|
+
":import_connector_id", import_connector_id
|
|
604
|
+
)
|
|
605
|
+
unverified: ImportConnector = self.api.get(endpoint=endpoint).json()
|
|
606
|
+
return ImportConnector(
|
|
607
|
+
dataRoom=self._verify_data_room(unverified["dataRoom"], verification_key),
|
|
608
|
+
materialization=unverified["materialization"],
|
|
609
|
+
)
|
|
610
|
+
|
|
611
|
+
def get_import_connectors(
|
|
612
|
+
self, user_id: str, verification_key: bytes
|
|
613
|
+
) -> List[DataRoom]:
|
|
614
|
+
"""List the user's import connectors. Only finalized (`ready`)
|
|
615
|
+
connectors are returned — connectors still in configuration are
|
|
616
|
+
addressed by id via `get_import_connector`."""
|
|
617
|
+
endpoint = Endpoints.USER_IMPORT_CONNECTORS_COLLECTION.replace(
|
|
618
|
+
":user_id", user_id
|
|
619
|
+
)
|
|
620
|
+
data = self.api.get(endpoint=endpoint).json()["data"]
|
|
621
|
+
return [self._verify_data_room(dcr, verification_key) for dcr in data]
|
|
622
|
+
|
|
623
|
+
def delete_import_connector(self, import_connector_id: str) -> None:
|
|
624
|
+
"""Delete an import-connector DCR. Only the owner or a super admin may
|
|
625
|
+
delete it."""
|
|
626
|
+
endpoint = Endpoints.IMPORT_CONNECTOR.replace(
|
|
627
|
+
":import_connector_id", import_connector_id
|
|
628
|
+
)
|
|
629
|
+
self.api.delete(endpoint=endpoint)
|
|
630
|
+
|
|
631
|
+
def list_data_room_runs(
|
|
632
|
+
self,
|
|
633
|
+
data_room_id: str,
|
|
634
|
+
action: Optional[JSONType] = None,
|
|
635
|
+
limit: Optional[int] = None,
|
|
636
|
+
next_cursor: Optional[str] = None,
|
|
637
|
+
prev_cursor: Optional[str] = None,
|
|
638
|
+
) -> RunsPage:
|
|
639
|
+
"""List one page of the runs fired against the data room, newest
|
|
640
|
+
first, cursor-paginated. `action` optionally narrows the listing to
|
|
641
|
+
one compute action, given as action JSON."""
|
|
642
|
+
endpoint = Endpoints.DATA_ROOM_RUNS_COLLECTION.replace(
|
|
643
|
+
":data_room_id", data_room_id
|
|
644
|
+
)
|
|
645
|
+
params = {}
|
|
646
|
+
if action is not None:
|
|
647
|
+
params["action"] = json.dumps(action)
|
|
648
|
+
if limit is not None:
|
|
649
|
+
params["limit"] = limit
|
|
650
|
+
if next_cursor is not None:
|
|
651
|
+
params["next_cursor"] = next_cursor
|
|
652
|
+
if prev_cursor is not None:
|
|
653
|
+
params["prev_cursor"] = prev_cursor
|
|
654
|
+
response: RunsPage = self.api.get(
|
|
655
|
+
endpoint=endpoint,
|
|
656
|
+
params=params or None,
|
|
657
|
+
).json()
|
|
658
|
+
return response
|
|
659
|
+
|
|
359
660
|
def get_job(self, job_id: str) -> Job:
|
|
360
661
|
endpoint = Endpoints.JOB.replace(":job_id", job_id)
|
|
361
662
|
response: Job = self.api.get(
|
|
@@ -32,6 +32,7 @@ class ComputeJob(ABC):
|
|
|
32
32
|
action: DataRoomComputeAction,
|
|
33
33
|
result_zip_file_name: str,
|
|
34
34
|
client: Client,
|
|
35
|
+
as_decentriq_admin: bool = False,
|
|
35
36
|
):
|
|
36
37
|
"""
|
|
37
38
|
Initialize a compute job.
|
|
@@ -41,6 +42,8 @@ class ComputeJob(ABC):
|
|
|
41
42
|
- `action`: The compute action to perform
|
|
42
43
|
- `result_zip_file_name`: The name of the file in the zip to get the result from
|
|
43
44
|
- `client`: The client instance for API communication
|
|
45
|
+
- `as_decentriq_admin`: When True, retrieve results via `GET /jobs/:job_id/results`.
|
|
46
|
+
Requires a Decentriq SuperAdmin token and the DCR's `share_aggregated_results=True`.
|
|
44
47
|
"""
|
|
45
48
|
self.dcr_id = dcr_id
|
|
46
49
|
self.client = client
|
|
@@ -48,6 +51,7 @@ class ComputeJob(ABC):
|
|
|
48
51
|
self.session = client.create_session_v2()
|
|
49
52
|
self.action = action
|
|
50
53
|
self.result_zip_file_name = result_zip_file_name
|
|
54
|
+
self.as_decentriq_admin = as_decentriq_admin
|
|
51
55
|
self.job_id: Optional[str] = None
|
|
52
56
|
|
|
53
57
|
def run(self) -> None:
|
|
@@ -59,9 +63,8 @@ class ComputeJob(ABC):
|
|
|
59
63
|
"""
|
|
60
64
|
if self.job_id is not None:
|
|
61
65
|
raise Exception("Computation has already been run")
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
)
|
|
66
|
+
payload = self.action.model_dump(mode="json")
|
|
67
|
+
job = self.client_v2.create_job(self.dcr_id, payload)
|
|
65
68
|
self.job_id = job["id"]
|
|
66
69
|
|
|
67
70
|
def wait_for_completion(
|
|
@@ -120,6 +123,14 @@ class ComputeJob(ABC):
|
|
|
120
123
|
if job_status["completed_at"] is None:
|
|
121
124
|
raise Exception(f"Job '{self.job_id}' is not complete")
|
|
122
125
|
|
|
126
|
+
if self.as_decentriq_admin:
|
|
127
|
+
if job_status["status"] != "Success":
|
|
128
|
+
raise Exception(
|
|
129
|
+
f"Job '{self.job_id}' has status: {job_status['status']}"
|
|
130
|
+
)
|
|
131
|
+
zip_bytes = self.client_v2.get_job_results_as_decentriq_user(self.job_id)
|
|
132
|
+
return zipfile.ZipFile(io.BytesIO(zip_bytes), "r")
|
|
133
|
+
|
|
123
134
|
job_tasks_view = self.client_v2.get_job_tasks(self.job_id)
|
|
124
135
|
if job_status["status"] == "Failed":
|
|
125
136
|
error_messages = []
|