onetrust-api 1.3.1__tar.gz → 1.3.3__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.
- {onetrust_api-1.3.1/onetrust_api.egg-info → onetrust_api-1.3.3}/PKG-INFO +4 -4
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/README.md +1 -1
- onetrust_api-1.3.3/onetrust_api/connector_sources.py +254 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp_server.py +1 -1
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/certification.json +0 -3
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/onetrust.ttl +10 -5
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/prompts/consent_cookie_specialist.json +0 -2
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/prompts/privacy_governance_specialist.json +0 -2
- {onetrust_api-1.3.1 → onetrust_api-1.3.3/onetrust_api.egg-info}/PKG-INFO +4 -4
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api.egg-info/SOURCES.txt +2 -2
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api.egg-info/entry_points.txt +0 -3
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api.egg-info/requires.txt +2 -2
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/pyproject.toml +3 -6
- onetrust_api-1.3.3/tests/test_default_content_surfaces.py +43 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_fleet_name.py +2 -13
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_kg_ingest.py +1 -1
- onetrust_api-1.3.1/onetrust_api/connectors/mcp_source_presets.json +0 -33
- onetrust_api-1.3.1/onetrust_api/connectors/tool_schema_fingerprints.json +0 -9
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/LICENSE +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/MANIFEST.in +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/__main__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/_operation_manifest.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_access_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_ai_governance.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_assessments.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_audit_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_base.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_bulk_export.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cmp.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_compliance_automation.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_consent_interfaces.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_consent_receipts.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cookie_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cookie_consent_legacy.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cookie_domain_data.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cross_device_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_data_catalog.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_data_discovery.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_data_discovery_worker.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_data_mapping.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_data_mapping_legacy.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_documents.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_dsar.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_esg.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_incidents.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_integrations.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_inventory.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_issues_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_it_risk_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_mobile_app_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_object_manager.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_policy_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_privacy_notices.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_task_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_tprm.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_training.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_universal_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_user_provisioning.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api_client.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/auth.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/connectors/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/kg_ingest.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_access_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_ai_governance.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_assessments.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_audit_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_bulk_export.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_cmp.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_compliance_automation.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_consent_interfaces.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_consent_receipts.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_cookie_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_cookie_consent_legacy.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_cookie_domain_data.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_cross_device_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_custom_api.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_data_catalog.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_data_discovery.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_data_discovery_worker.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_data_mapping.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_data_mapping_legacy.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_documents.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_dsar.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_esg.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_incidents.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_integrations.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_inventory.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_issues_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_it_risk_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_mobile_app_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_object_manager.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_policy_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_privacy_notices.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_task_management.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_tprm.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_training.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_universal_consent.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/mcp/mcp_user_provisioning.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/onetrust_models.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/fixtures/records.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/mappings/source.yaml +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/migrations/manifest.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/ontology/shapes/connector.shacl.ttl +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/prompts/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-api-operations/SKILL.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-api-operations/agents/openai.yaml +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-api-operations/references/catalog.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-cookie-consent/SKILL.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-cookie-consent/WORKFLOW.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-data-mapping/SKILL.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-data-mapping/WORKFLOW.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-privacy-assessments/SKILL.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/skills/onetrust-privacy-assessments/WORKFLOW.md +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/ai-governance.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-consent-interfaces.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-consent-management-platform-cmp.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-consent-receipts.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-cookie-consent-swagger.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-cookie-consent.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-cookie-domain-data.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-cross-device-consent.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-mobile-app-consent.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-policy-notice-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/consent-preferences-universal-consent-preference-management-oas.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/data-use-governance-data-catalog.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/data-use-governance-data-discovery-worker-node.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/data-use-governance-data-discovery.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/esg-program-reporting-disclosures.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-access-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-bulk-export.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-documents.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-integrations.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-inventory.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-object-manager.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-task-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/platform-user-provisioning.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/privacy-automation-assessment-automation.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/privacy-automation-data-mapping-automation-swagger.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/privacy-automation-data-mapping-automation.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/privacy-automation-data-subject-request-dsr-automation.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/privacy-automation-incident-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-audit-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-compliance-automation.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-enterprise-policy-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-issues-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-it-risk-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/tech-risk-compliance-training.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/specs/third-party-management-third-party-risk-management.json +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api.egg-info/dependency_links.txt +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api.egg-info/top_level.txt +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/requirements.txt +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/scripts/generate_from_openapi.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/scripts/security_sanitizer.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/setup.cfg +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/__init__.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/conftest.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_api_client_base.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_auth.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_cxa_fl_onetrustapi_01_characterization.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_generate_from_openapi.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_mcp_server.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_onetrust_api_brute_force_coverage.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_onetrust_coverage.py +0 -0
- {onetrust_api-1.3.1 → onetrust_api-1.3.3}/tests/test_startup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onetrust-api
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: OneTrust API + MCP Server + A2A Agent — 100% API coverage
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: >=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
15
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
16
16
|
Requires-Dist: python-dotenv>=1.2.4
|
|
17
17
|
Requires-Dist: requests>=2.34.2
|
|
18
18
|
Provides-Extra: mcp
|
|
19
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
19
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
20
20
|
Provides-Extra: all
|
|
21
21
|
Requires-Dist: onetrust-api[mcp]>=1.3.0; extra == "all"
|
|
22
22
|
Provides-Extra: test
|
|
@@ -49,7 +49,7 @@ Dynamic: license-file
|
|
|
49
49
|

|
|
50
50
|

|
|
51
51
|
|
|
52
|
-
*Version: 1.3.
|
|
52
|
+
*Version: 1.3.3*
|
|
53
53
|
|
|
54
54
|
## Overview
|
|
55
55
|
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"""Data sources of this connector, declared by tool name (generated by connector-ontology-map migrate).
|
|
2
|
+
|
|
3
|
+
Served live as ``connector://resources``. Regenerate by editing the declarations, not the tools.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
# ruff: noqa: E501
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from agent_connector_sdk.ingest.live_declaration import source_meta
|
|
10
|
+
from agent_connector_sdk.ingest.sources import IngestSourceDeclaration, IngestSourceSpec
|
|
11
|
+
|
|
12
|
+
CONNECTOR = "onetrust-mcp"
|
|
13
|
+
|
|
14
|
+
SOURCES = (
|
|
15
|
+
source_meta(
|
|
16
|
+
tool="onetrust_get_all_assessment_basic_details_using_get",
|
|
17
|
+
source_id="onetrust-assessments",
|
|
18
|
+
record_type="Assessment",
|
|
19
|
+
id_field="assessmentId",
|
|
20
|
+
cursor_field="lastUpdated",
|
|
21
|
+
page_param="page",
|
|
22
|
+
page_size_param="size",
|
|
23
|
+
pagination="page",
|
|
24
|
+
preset={
|
|
25
|
+
"doc_type": "assessment",
|
|
26
|
+
"page_kind": "number",
|
|
27
|
+
"params_style": "args",
|
|
28
|
+
},
|
|
29
|
+
records_path="data",
|
|
30
|
+
server="onetrust-mcp",
|
|
31
|
+
text_field="templateName",
|
|
32
|
+
title_field="name",
|
|
33
|
+
),
|
|
34
|
+
source_meta(
|
|
35
|
+
tool="onetrust_get_list_of_inventories_using_get",
|
|
36
|
+
source_id="onetrust-inventory",
|
|
37
|
+
record_type="Inventory",
|
|
38
|
+
id_field="id",
|
|
39
|
+
cursor_field="lastUpdated",
|
|
40
|
+
page_param="page",
|
|
41
|
+
page_size_param="size",
|
|
42
|
+
pagination="page",
|
|
43
|
+
preset={
|
|
44
|
+
"doc_type": "inventory",
|
|
45
|
+
"page_kind": "number",
|
|
46
|
+
"params_style": "args",
|
|
47
|
+
},
|
|
48
|
+
records_path="data",
|
|
49
|
+
server="onetrust-mcp",
|
|
50
|
+
text_field="description",
|
|
51
|
+
title_field="name",
|
|
52
|
+
),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
SCHEMA_MAPPINGS = {
|
|
56
|
+
"Assessment": {
|
|
57
|
+
"fields": {
|
|
58
|
+
"cookieCategory": "xsd:string",
|
|
59
|
+
"deadline": "xsd:string",
|
|
60
|
+
"externalId": "xsd:string",
|
|
61
|
+
"host": "xsd:string",
|
|
62
|
+
"inventoryType": "xsd:string",
|
|
63
|
+
"lifespan": "xsd:string",
|
|
64
|
+
"number": "xsd:string",
|
|
65
|
+
"result": "xsd:string",
|
|
66
|
+
"riskLevel": "xsd:string",
|
|
67
|
+
"riskScore": "xsd:decimal",
|
|
68
|
+
"status": "xsd:string",
|
|
69
|
+
"thirdParty": "xsd:boolean",
|
|
70
|
+
},
|
|
71
|
+
"ontology_class": None,
|
|
72
|
+
},
|
|
73
|
+
"AssessmentTemplate": {
|
|
74
|
+
"fields": {
|
|
75
|
+
"cookieCategory": "xsd:string",
|
|
76
|
+
"deadline": "xsd:string",
|
|
77
|
+
"externalId": "xsd:string",
|
|
78
|
+
"host": "xsd:string",
|
|
79
|
+
"inventoryType": "xsd:string",
|
|
80
|
+
"lifespan": "xsd:string",
|
|
81
|
+
"number": "xsd:string",
|
|
82
|
+
"result": "xsd:string",
|
|
83
|
+
"riskLevel": "xsd:string",
|
|
84
|
+
"riskScore": "xsd:decimal",
|
|
85
|
+
"status": "xsd:string",
|
|
86
|
+
"thirdParty": "xsd:boolean",
|
|
87
|
+
},
|
|
88
|
+
"ontology_class": None,
|
|
89
|
+
},
|
|
90
|
+
"ConsentReceipt": {
|
|
91
|
+
"fields": {
|
|
92
|
+
"cookieCategory": "xsd:string",
|
|
93
|
+
"deadline": "xsd:string",
|
|
94
|
+
"externalId": "xsd:string",
|
|
95
|
+
"host": "xsd:string",
|
|
96
|
+
"inventoryType": "xsd:string",
|
|
97
|
+
"lifespan": "xsd:string",
|
|
98
|
+
"number": "xsd:string",
|
|
99
|
+
"result": "xsd:string",
|
|
100
|
+
"riskLevel": "xsd:string",
|
|
101
|
+
"riskScore": "xsd:decimal",
|
|
102
|
+
"status": "xsd:string",
|
|
103
|
+
"thirdParty": "xsd:boolean",
|
|
104
|
+
},
|
|
105
|
+
"ontology_class": None,
|
|
106
|
+
},
|
|
107
|
+
"Cookie": {
|
|
108
|
+
"fields": {
|
|
109
|
+
"cookieCategory": "xsd:string",
|
|
110
|
+
"deadline": "xsd:string",
|
|
111
|
+
"externalId": "xsd:string",
|
|
112
|
+
"host": "xsd:string",
|
|
113
|
+
"inventoryType": "xsd:string",
|
|
114
|
+
"lifespan": "xsd:string",
|
|
115
|
+
"number": "xsd:string",
|
|
116
|
+
"result": "xsd:string",
|
|
117
|
+
"riskLevel": "xsd:string",
|
|
118
|
+
"riskScore": "xsd:decimal",
|
|
119
|
+
"status": "xsd:string",
|
|
120
|
+
"thirdParty": "xsd:boolean",
|
|
121
|
+
},
|
|
122
|
+
"ontology_class": None,
|
|
123
|
+
},
|
|
124
|
+
"CookieDomain": {
|
|
125
|
+
"fields": {
|
|
126
|
+
"cookieCategory": "xsd:string",
|
|
127
|
+
"deadline": "xsd:string",
|
|
128
|
+
"externalId": "xsd:string",
|
|
129
|
+
"host": "xsd:string",
|
|
130
|
+
"inventoryType": "xsd:string",
|
|
131
|
+
"lifespan": "xsd:string",
|
|
132
|
+
"number": "xsd:string",
|
|
133
|
+
"result": "xsd:string",
|
|
134
|
+
"riskLevel": "xsd:string",
|
|
135
|
+
"riskScore": "xsd:decimal",
|
|
136
|
+
"status": "xsd:string",
|
|
137
|
+
"thirdParty": "xsd:boolean",
|
|
138
|
+
},
|
|
139
|
+
"ontology_class": None,
|
|
140
|
+
},
|
|
141
|
+
"DataElement": {
|
|
142
|
+
"fields": {
|
|
143
|
+
"cookieCategory": "xsd:string",
|
|
144
|
+
"deadline": "xsd:string",
|
|
145
|
+
"externalId": "xsd:string",
|
|
146
|
+
"host": "xsd:string",
|
|
147
|
+
"inventoryType": "xsd:string",
|
|
148
|
+
"lifespan": "xsd:string",
|
|
149
|
+
"number": "xsd:string",
|
|
150
|
+
"result": "xsd:string",
|
|
151
|
+
"riskLevel": "xsd:string",
|
|
152
|
+
"riskScore": "xsd:decimal",
|
|
153
|
+
"status": "xsd:string",
|
|
154
|
+
"thirdParty": "xsd:boolean",
|
|
155
|
+
},
|
|
156
|
+
"ontology_class": None,
|
|
157
|
+
},
|
|
158
|
+
"DataSubject": {
|
|
159
|
+
"fields": {
|
|
160
|
+
"cookieCategory": "xsd:string",
|
|
161
|
+
"deadline": "xsd:string",
|
|
162
|
+
"externalId": "xsd:string",
|
|
163
|
+
"host": "xsd:string",
|
|
164
|
+
"inventoryType": "xsd:string",
|
|
165
|
+
"lifespan": "xsd:string",
|
|
166
|
+
"number": "xsd:string",
|
|
167
|
+
"result": "xsd:string",
|
|
168
|
+
"riskLevel": "xsd:string",
|
|
169
|
+
"riskScore": "xsd:decimal",
|
|
170
|
+
"status": "xsd:string",
|
|
171
|
+
"thirdParty": "xsd:boolean",
|
|
172
|
+
},
|
|
173
|
+
"ontology_class": None,
|
|
174
|
+
},
|
|
175
|
+
"Inventory": {
|
|
176
|
+
"fields": {
|
|
177
|
+
"cookieCategory": "xsd:string",
|
|
178
|
+
"deadline": "xsd:string",
|
|
179
|
+
"externalId": "xsd:string",
|
|
180
|
+
"host": "xsd:string",
|
|
181
|
+
"inventoryType": "xsd:string",
|
|
182
|
+
"lifespan": "xsd:string",
|
|
183
|
+
"number": "xsd:string",
|
|
184
|
+
"result": "xsd:string",
|
|
185
|
+
"riskLevel": "xsd:string",
|
|
186
|
+
"riskScore": "xsd:decimal",
|
|
187
|
+
"status": "xsd:string",
|
|
188
|
+
"thirdParty": "xsd:boolean",
|
|
189
|
+
},
|
|
190
|
+
"ontology_class": None,
|
|
191
|
+
},
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
RESOURCES = (
|
|
195
|
+
{
|
|
196
|
+
"id_prefix": "assessment",
|
|
197
|
+
"label": "Assessment",
|
|
198
|
+
"name": "Assessment",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id_prefix": "assessmenttemplate",
|
|
202
|
+
"label": "Assessment Template",
|
|
203
|
+
"name": "AssessmentTemplate",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id_prefix": "consentreceipt",
|
|
207
|
+
"label": "Consent Receipt",
|
|
208
|
+
"name": "ConsentReceipt",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id_prefix": "cookie",
|
|
212
|
+
"label": "Cookie",
|
|
213
|
+
"name": "Cookie",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"id_prefix": "cookiedomain",
|
|
217
|
+
"label": "Cookie Domain",
|
|
218
|
+
"name": "CookieDomain",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id_prefix": "dataelement",
|
|
222
|
+
"label": "Data Element",
|
|
223
|
+
"name": "DataElement",
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"id_prefix": "datasubject",
|
|
227
|
+
"label": "Data Subject",
|
|
228
|
+
"name": "DataSubject",
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id_prefix": "inventory",
|
|
232
|
+
"label": "Inventory Record",
|
|
233
|
+
"name": "Inventory",
|
|
234
|
+
},
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def declaration() -> IngestSourceDeclaration:
|
|
239
|
+
"""The declaration the server assembles from this module."""
|
|
240
|
+
specs = []
|
|
241
|
+
for item in SOURCES:
|
|
242
|
+
for entry in item["connector_sources"]:
|
|
243
|
+
body = {k: v for k, v in entry.items() if k not in ("tool", "mapping")}
|
|
244
|
+
specs.append(
|
|
245
|
+
IngestSourceSpec.model_validate({**body, "tools": (entry["tool"],)})
|
|
246
|
+
)
|
|
247
|
+
return IngestSourceDeclaration.model_validate(
|
|
248
|
+
{
|
|
249
|
+
"connector": CONNECTOR,
|
|
250
|
+
"sources": specs,
|
|
251
|
+
"schema_mappings": SCHEMA_MAPPINGS,
|
|
252
|
+
"resources": RESOURCES,
|
|
253
|
+
}
|
|
254
|
+
)
|
|
@@ -14,7 +14,7 @@ from onetrust_api.api._operation_manifest import OPERATIONS
|
|
|
14
14
|
from onetrust_api.api_client import Api
|
|
15
15
|
from onetrust_api.auth import get_client
|
|
16
16
|
|
|
17
|
-
__version__ = "1.3.
|
|
17
|
+
__version__ = "1.3.3"
|
|
18
18
|
|
|
19
19
|
# Redirect logging to stderr to prevent MCP stdout corruption
|
|
20
20
|
logger = get_logger(name="onetrust_mcp")
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_version": "arbora.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"connector_manifest.yml": "1a8b73faace7484546029f7106e1f2f8d1068f32405b57541909519415f6fbb9",
|
|
5
|
-
"onetrust_api/connectors/mcp_source_presets.json": "468df6da898dd721ccdd65a5d418c569f1607c984a8e2397c002e086c9b01296",
|
|
6
|
-
"onetrust_api/connectors/tool_schema_fingerprints.json": "283f2cc283103148a312741a4bb60e94a58dc3693cefbdd2c6ef2a0b57d34c9d",
|
|
7
4
|
"onetrust_api/ontology/fixtures/records.json": "2477764beb1371ec2a6644e015135e2f7088a2bec6697052a4a402e06cb5b87d",
|
|
8
5
|
"onetrust_api/ontology/mappings/source.yaml": "6aaaf1e64fcd9c12284a3f6121be43c6086d626b277fd5056949c3a022354074",
|
|
9
6
|
"onetrust_api/ontology/migrations/manifest.json": "3a2a2b64f7038569b8e096313e70789bad95387e2b97ecb2f17c00d993c4d894",
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
# --- classes (owl:Class) ---
|
|
17
17
|
|
|
18
|
-
:Assessment a owl:Class
|
|
19
|
-
|
|
20
|
-
rdfs:comment "A OneTrust privacy/risk assessment instance (PIA/DPIA/TRA) launched from a template (onetrust_assessments)." .
|
|
18
|
+
:Assessment a owl:Class .
|
|
19
|
+
|
|
21
20
|
|
|
22
21
|
:AssessmentTemplate a owl:Class ;
|
|
23
22
|
rdfs:label "Assessment Template" ;
|
|
@@ -164,5 +163,11 @@
|
|
|
164
163
|
rdfs:comment """OneTrust trust-governance model — privacy/risk assessments (PIA/DPIA)
|
|
165
164
|
and their templates, the data inventory and its data elements + data subjects, and
|
|
166
165
|
cookie-consent scan results (cookies and the domains they were found on) — federated
|
|
167
|
-
into the agent-connector-sdk knowledge-graph hub's enterprise layer."""
|
|
168
|
-
|
|
166
|
+
into the agent-connector-sdk knowledge-graph hub's enterprise layer.""" .
|
|
167
|
+
|
|
168
|
+
# ontology-codemod R3
|
|
169
|
+
<http://knuckles.team/kg#AssessmentTemplate> rdfs:subClassOf <http://knuckles.team/kg#Template> .
|
|
170
|
+
|
|
171
|
+
# ontology-codemod R4
|
|
172
|
+
<http://knuckles.team/kg#Cookie> rdfs:subClassOf <http://knuckles.team/kg#Artifact> .
|
|
173
|
+
<http://knuckles.team/kg#CookieDomain> rdfs:subClassOf <http://knuckles.team/kg#Place> .
|
{onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/prompts/consent_cookie_specialist.json
RENAMED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
"schema_version": "1.0",
|
|
5
5
|
"prompt_version": "0.1.0",
|
|
6
6
|
"source": "onetrust-api",
|
|
7
|
-
"extends": "agent-connector-sdk:base",
|
|
8
|
-
"compose": "append",
|
|
9
7
|
"description": "OneTrust consent & cookie specialist: cookie scanning, categorization, and consent-script publishing over the onetrust-api MCP server.",
|
|
10
8
|
"metadata": {
|
|
11
9
|
"topic": "OneTrust Cookie Consent",
|
{onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/prompts/privacy_governance_specialist.json
RENAMED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
"schema_version": "1.0",
|
|
5
5
|
"prompt_version": "0.1.0",
|
|
6
6
|
"source": "onetrust-api",
|
|
7
|
-
"extends": "agent-connector-sdk:base",
|
|
8
|
-
"compose": "append",
|
|
9
7
|
"description": "OneTrust privacy-governance specialist: privacy/risk assessments and the data inventory over the onetrust-api MCP server.",
|
|
10
8
|
"metadata": {
|
|
11
9
|
"topic": "OneTrust Privacy Governance",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: onetrust-api
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.3
|
|
4
4
|
Summary: OneTrust API + MCP Server + A2A Agent — 100% API coverage
|
|
5
5
|
Author-email: Project Maintainers <maintainers@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Requires-Python: >=3.12
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
15
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
16
16
|
Requires-Dist: python-dotenv>=1.2.4
|
|
17
17
|
Requires-Dist: requests>=2.34.2
|
|
18
18
|
Provides-Extra: mcp
|
|
19
|
-
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
19
|
+
Requires-Dist: agent-connector-sdk[mcp]<1.0.0,>=0.4.1; extra == "mcp"
|
|
20
20
|
Provides-Extra: all
|
|
21
21
|
Requires-Dist: onetrust-api[mcp]>=1.3.0; extra == "all"
|
|
22
22
|
Provides-Extra: test
|
|
@@ -49,7 +49,7 @@ Dynamic: license-file
|
|
|
49
49
|

|
|
50
50
|

|
|
51
51
|
|
|
52
|
-
*Version: 1.3.
|
|
52
|
+
*Version: 1.3.3*
|
|
53
53
|
|
|
54
54
|
## Overview
|
|
55
55
|
|
|
@@ -7,6 +7,7 @@ onetrust_api/__init__.py
|
|
|
7
7
|
onetrust_api/__main__.py
|
|
8
8
|
onetrust_api/api_client.py
|
|
9
9
|
onetrust_api/auth.py
|
|
10
|
+
onetrust_api/connector_sources.py
|
|
10
11
|
onetrust_api/kg_ingest.py
|
|
11
12
|
onetrust_api/mcp_server.py
|
|
12
13
|
onetrust_api/onetrust_models.py
|
|
@@ -55,8 +56,6 @@ onetrust_api/api/api_client_training.py
|
|
|
55
56
|
onetrust_api/api/api_client_universal_consent.py
|
|
56
57
|
onetrust_api/api/api_client_user_provisioning.py
|
|
57
58
|
onetrust_api/connectors/__init__.py
|
|
58
|
-
onetrust_api/connectors/mcp_source_presets.json
|
|
59
|
-
onetrust_api/connectors/tool_schema_fingerprints.json
|
|
60
59
|
onetrust_api/mcp/__init__.py
|
|
61
60
|
onetrust_api/mcp/mcp_access_management.py
|
|
62
61
|
onetrust_api/mcp/mcp_ai_governance.py
|
|
@@ -156,6 +155,7 @@ tests/conftest.py
|
|
|
156
155
|
tests/test_api_client_base.py
|
|
157
156
|
tests/test_auth.py
|
|
158
157
|
tests/test_cxa_fl_onetrustapi_01_characterization.py
|
|
158
|
+
tests/test_default_content_surfaces.py
|
|
159
159
|
tests/test_fleet_name.py
|
|
160
160
|
tests/test_generate_from_openapi.py
|
|
161
161
|
tests/test_kg_ingest.py
|
|
@@ -10,8 +10,5 @@ onetrust-api = onetrust_api.prompts
|
|
|
10
10
|
[agent_connector_sdk.skill_providers]
|
|
11
11
|
onetrust-api = onetrust_api.skills
|
|
12
12
|
|
|
13
|
-
[agent_connector_sdk.source_connector_providers]
|
|
14
|
-
onetrust-api = onetrust_api.connectors
|
|
15
|
-
|
|
16
13
|
[console_scripts]
|
|
17
14
|
onetrust-mcp = onetrust_api.mcp_server:mcp_server
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
1
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
2
2
|
python-dotenv>=1.2.4
|
|
3
3
|
requests>=2.34.2
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ requests>=2.34.2
|
|
|
6
6
|
onetrust-api[mcp]>=1.3.0
|
|
7
7
|
|
|
8
8
|
[mcp]
|
|
9
|
-
agent-connector-sdk[mcp]<1.0.0,>=0.
|
|
9
|
+
agent-connector-sdk[mcp]<1.0.0,>=0.4.1
|
|
10
10
|
|
|
11
11
|
[test]
|
|
12
12
|
pytest-xdist>=3.8.0
|
|
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "onetrust-api"
|
|
7
|
-
version = "1.3.
|
|
7
|
+
version = "1.3.3"
|
|
8
8
|
description = "OneTrust API + MCP Server + A2A Agent — 100% API coverage"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Environment :: Console", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3",]
|
|
11
11
|
requires-python = ">=3.12"
|
|
12
|
-
dependencies = [ "agent-connector-sdk[mcp]>=0.
|
|
12
|
+
dependencies = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0", "python-dotenv>=1.2.4", "requests>=2.34.2",]
|
|
13
13
|
[[project.authors]]
|
|
14
14
|
name = "Project Maintainers"
|
|
15
15
|
email = "maintainers@users.noreply.github.com"
|
|
@@ -18,7 +18,7 @@ email = "maintainers@users.noreply.github.com"
|
|
|
18
18
|
text = "MIT"
|
|
19
19
|
|
|
20
20
|
[project.optional-dependencies]
|
|
21
|
-
mcp = [ "agent-connector-sdk[mcp]>=0.
|
|
21
|
+
mcp = [ "agent-connector-sdk[mcp]>=0.4.1,<1.0.0",]
|
|
22
22
|
all = [ "onetrust-api[mcp]>=1.3.0",]
|
|
23
23
|
test = [
|
|
24
24
|
"pytest-xdist>=3.8.0", "pytest>=9.1.1", "pytest-asyncio>=1.4.0", "pytest-cov>=7.1.0",]
|
|
@@ -32,9 +32,6 @@ onetrust-api = "onetrust_api.skills"
|
|
|
32
32
|
[project.entry-points."agent_connector_sdk.ontology_providers"]
|
|
33
33
|
onetrust-api = "onetrust_api.ontology"
|
|
34
34
|
|
|
35
|
-
[project.entry-points."agent_connector_sdk.source_connector_providers"]
|
|
36
|
-
onetrust-api = "onetrust_api.connectors"
|
|
37
|
-
|
|
38
35
|
[project.entry-points."agent_connector_sdk.prompt_providers"]
|
|
39
36
|
onetrust-api = "onetrust_api.prompts"
|
|
40
37
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""CONN-ONETRUST-API-CONNECTOR-CONTENT-R001: the server lists its packaged skills, ontology and prompts by default."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import asyncio
|
|
6
|
+
import importlib
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
from fastmcp import Client
|
|
11
|
+
|
|
12
|
+
PACKAGE = "onetrust_api"
|
|
13
|
+
ROOT = Path(list(importlib.import_module(PACKAGE).__path__)[0])
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.spec("CONN-ONETRUST-API-CONNECTOR-CONTENT-R001")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _server():
|
|
19
|
+
namespace = {"__name__": PACKAGE + ".mcp_server"}
|
|
20
|
+
exec(
|
|
21
|
+
"from agent_connector_sdk.mcp.server import create_mcp_server\n"
|
|
22
|
+
"result = create_mcp_server('onetrust-mcp', version='0', command_args=[])",
|
|
23
|
+
namespace,
|
|
24
|
+
)
|
|
25
|
+
return namespace["result"][1]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def _listings():
|
|
29
|
+
async with Client(_server()) as client:
|
|
30
|
+
resources = {str(r.uri) for r in await client.list_resources()}
|
|
31
|
+
prompts = {p.name for p in await client.list_prompts()}
|
|
32
|
+
return resources, prompts
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def test_default_content_surfaces() -> None:
|
|
36
|
+
resources, prompts = asyncio.run(_listings())
|
|
37
|
+
if list(ROOT.glob("skills/*/SKILL.md")):
|
|
38
|
+
assert any(u.startswith("skill://") for u in resources)
|
|
39
|
+
if list(ROOT.glob("ontology/*.ttl")):
|
|
40
|
+
assert any(u.startswith("ontology://onetrust-mcp/") for u in resources)
|
|
41
|
+
for path in ROOT.glob("prompts/*.json"):
|
|
42
|
+
if not path.name.startswith("_"):
|
|
43
|
+
assert path.stem in prompts
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from agent_connector_sdk.connector_identity import connector_name
|
|
5
6
|
import ast
|
|
6
|
-
import json
|
|
7
|
-
import re
|
|
8
7
|
import tomllib
|
|
9
8
|
from pathlib import Path
|
|
10
9
|
|
|
@@ -38,16 +37,6 @@ def test_connector_name_is_the_fleet_name() -> None:
|
|
|
38
37
|
assert pyproject["project"]["entry-points"]["agent_connector_sdk.connector"] == {
|
|
39
38
|
FLEET: "onetrust_api"
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
if not manifest_path.is_file():
|
|
43
|
-
manifest_path = ROOT / "connector_manifest.yml"
|
|
44
|
-
manifest = manifest_path.read_text(encoding="utf-8")
|
|
45
|
-
match = re.search(r'^\s*"?connector"?\s*:\s*"?([^"\s,]+)', manifest, re.MULTILINE)
|
|
46
|
-
assert match is not None and match.group(1) == FLEET
|
|
47
|
-
fingerprints = PACKAGE / "connectors" / "tool_schema_fingerprints.json"
|
|
48
|
-
if fingerprints.is_file():
|
|
49
|
-
assert (
|
|
50
|
-
json.loads(fingerprints.read_text(encoding="utf-8"))["connector"] == FLEET
|
|
51
|
-
)
|
|
40
|
+
assert connector_name("onetrust_api") == FLEET
|
|
52
41
|
for module in sorted(PACKAGE.glob("*.py")):
|
|
53
42
|
assert all(name == FLEET for name in _call_connectors(module)), module.name
|
|
@@ -75,7 +75,7 @@ async def test_ingest_entities_writes_nodes_and_edges(ingest):
|
|
|
75
75
|
a_record = next(r for r in request.records if r.record_id == "a")
|
|
76
76
|
assert a_record.payload["name"] == "PIA"
|
|
77
77
|
assert request.relationships[0].relation_reference.endswith(
|
|
78
|
-
"
|
|
78
|
+
"relations/Assessment/usesTemplate"
|
|
79
79
|
)
|
|
80
80
|
|
|
81
81
|
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Tier-1 mcp_tool source presets for onetrust-api (AU-KG.ingest.mcp-tool-connector). Sync OneTrust privacy records into the KG via the onetrust-api MCP server. Contributed presets win over the central MCP_TOOL_PRESETS. Native typed-node ingestion is done by the onetrust_ingest_* tools; these declarative presets cover document-style sync.",
|
|
3
|
-
"onetrust-assessments": {
|
|
4
|
-
"server": "onetrust-mcp",
|
|
5
|
-
"tool": "onetrust_get_all_assessment_basic_details_using_get",
|
|
6
|
-
"records_path": "data",
|
|
7
|
-
"id_field": "assessmentId",
|
|
8
|
-
"title_field": "name",
|
|
9
|
-
"text_field": "templateName",
|
|
10
|
-
"updated_field": "lastUpdated",
|
|
11
|
-
"pagination": "page",
|
|
12
|
-
"page_kind": "number",
|
|
13
|
-
"page_param": "page",
|
|
14
|
-
"page_size_param": "size",
|
|
15
|
-
"doc_type": "assessment",
|
|
16
|
-
"params_style": "args"
|
|
17
|
-
},
|
|
18
|
-
"onetrust-inventory": {
|
|
19
|
-
"server": "onetrust-mcp",
|
|
20
|
-
"tool": "onetrust_get_list_of_inventories_using_get",
|
|
21
|
-
"records_path": "data",
|
|
22
|
-
"id_field": "id",
|
|
23
|
-
"title_field": "name",
|
|
24
|
-
"text_field": "description",
|
|
25
|
-
"updated_field": "lastUpdated",
|
|
26
|
-
"pagination": "page",
|
|
27
|
-
"page_kind": "number",
|
|
28
|
-
"page_param": "page",
|
|
29
|
-
"page_size_param": "size",
|
|
30
|
-
"doc_type": "inventory",
|
|
31
|
-
"params_style": "args"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"algorithm": "agent-connector-sdk:mcp-tool-contract-compat:v2",
|
|
3
|
-
"connector": "onetrust-mcp",
|
|
4
|
-
"schema_version": "1",
|
|
5
|
-
"tools": {
|
|
6
|
-
"onetrust_get_all_assessment_basic_details_using_get": "70b39bc71d145fcf42efa9d84304d49aa033b51b8054b8a91ee758e6dbb584ed",
|
|
7
|
-
"onetrust_get_list_of_inventories_using_get": "e502ef38b55a3d9a58534022a1cbcd2139bbddff9e44f122267675ffbb137b8e"
|
|
8
|
-
}
|
|
9
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_compliance_automation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cookie_consent_legacy.py
RENAMED
|
File without changes
|
|
File without changes
|
{onetrust_api-1.3.1 → onetrust_api-1.3.3}/onetrust_api/api/api_client_cross_device_consent.py
RENAMED
|
File without changes
|