tcex 4.0.11.dev6__tar.gz → 4.0.12__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.
- {tcex-4.0.11.dev6/tcex.egg-info → tcex-4.0.12}/PKG-INFO +16 -16
- {tcex-4.0.11.dev6 → tcex-4.0.12}/pyproject.toml +29 -28
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/__metadata__.py +1 -1
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_abc.py +1 -1
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +26 -8
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/batch_cleaner.py +52 -6
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +11 -6
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen_object_abc.py +16 -11
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/cases/case.py +4 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/groups/group.py +2 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/groups/group_filter.py +0 -32
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/groups/group_model.py +16 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicators/indicator_model.py +10 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/object_abc.py +14 -8
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tasks/task.py +4 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/v3_model_abc.py +2 -2
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/benchmark.py +4 -4
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/advanced_request.py +4 -1
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/playbook_create.py +4 -3
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/cached_property.py +8 -3
- {tcex-4.0.11.dev6 → tcex-4.0.12/tcex.egg-info}/PKG-INFO +16 -16
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex.egg-info/SOURCES.txt +4 -1
- tcex-4.0.12/tcex.egg-info/requires.txt +15 -0
- tcex-4.0.12/tests/test_instance_data.py +413 -0
- tcex-4.0.12/tests/test_mock_app_service_id.py +171 -0
- tcex-4.0.12/tests/test_mock_app_token_url.py +126 -0
- tcex-4.0.11.dev6/tcex.egg-info/requires.txt +0 -15
- {tcex-4.0.11.dev6 → tcex-4.0.12}/LICENSE +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/README.md +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/setup.cfg +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/api.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/tc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/ti_transform.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_builder/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/util/threat_intel_util.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/batch_writer.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen_args_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_gen_model_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/model/_filter_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifact_types/artifact_type.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifacts/artifact.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/artifacts/artifact_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attribute_types/attribute_type.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_attributes/case_attribute.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/case_management/case_management.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/cases/case_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/cases/case_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/group_attributes/group_attribute.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicators/indicator.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/indicators/indicator_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/categories/category.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/results/result.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/results/result_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/notes/note.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/notes/note_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/object_collection_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/assignee_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/assignee_user_group_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/assignee_user_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owner_roles/owner_role.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owners/owner.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/owners/owner_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/system_roles/system_role.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/system_roles/system_role_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/task_assignee_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/user_groups/user_group.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/user_groups/user_group_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/users/user.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security/users/user_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security_labels/security_label.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/security_labels/security_label_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/tag.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tags/tag_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tasks/task_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_assets/victim_asset.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victims/victim.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/victims/victim_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_events/workflow_event.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_templates/workflow_template.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/app.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/app_spec_yml.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/install_json.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/install_json_update.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/job_json.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/layout_json.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/app_spec_yml_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/install_json_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/job_json_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/layout_json_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/permutation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/tcex_json.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/debug.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/fail_on_output.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/on_exception.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/on_success.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/decorator/output.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/key_value_redis.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/playbook.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/playbook/playbook_read.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/api_service.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/common_service.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/common_service_trigger.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/mqtt_message_broker.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/service/webhook_trigger_service.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/token/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/app/token/token.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/exit/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/exit/error_code.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/exit/exit.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/binary.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/choice.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/datetime.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/edit_choice.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/exception.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/integer.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/ip_address.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/key_value.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/sensitive.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/string.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/field_type/validator.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/input.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/api_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_external_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_system_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/batch_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/cert_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/common_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/create_config_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/logging_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/model_map.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/module_app_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/organization_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/path_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/playbook_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/proxy_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/service_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/api_handler.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/cache_handler.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/logger.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/logger/trace_logger.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/cached_property_filesystem.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/event.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/exception_thread.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_custom.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_array_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_base.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_math_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/jmespath_functions_string_mixin.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/none_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/proxies.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/scoped_property.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/pleb/singleton.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/registry.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_external/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_external/external_session.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_external/requests_external.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/auth/hmac_auth.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/auth/tc_auth.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/auth/token_auth.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/requests_tc.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/requests_tc/tc_session.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/tcex.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/aes_operation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/code_operation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/datetime_operation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/file_operation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/model/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/render/__init__.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/render/render.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/render/render_panel.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/render/render_prompt.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/render/render_table.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/requests_to_curl.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/string_operation.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/util.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/util/variable.py +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-4.0.11.dev6 → tcex-4.0.12}/tcex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tcex
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.12
|
|
4
4
|
Summary: ThreatConnect Exchange App Framework
|
|
5
5
|
Author-email: ThreatConnect <support@threatconnect.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,21 +20,21 @@ Classifier: Topic :: Security
|
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: arrow~=1.4
|
|
24
|
-
Requires-Dist: black~=26.5
|
|
25
|
-
Requires-Dist: inflection~=0.5
|
|
26
|
-
Requires-Dist: isort~=8.0
|
|
27
|
-
Requires-Dist: jmespath~=1.1
|
|
28
|
-
Requires-Dist: paho-mqtt~=2.1
|
|
29
|
-
Requires-Dist: pyaes~=1.6
|
|
30
|
-
Requires-Dist: pydantic~=1.10
|
|
31
|
-
Requires-Dist: python-dateutil~=2.9
|
|
32
|
-
Requires-Dist: pyyaml~=6.0
|
|
33
|
-
Requires-Dist: redis~=8.0
|
|
34
|
-
Requires-Dist: requests~=2.34
|
|
35
|
-
Requires-Dist: rich~=15.0
|
|
36
|
-
Requires-Dist: semantic-version~=2.10
|
|
37
|
-
Requires-Dist: wrapt~=2.2
|
|
23
|
+
Requires-Dist: arrow~=1.4
|
|
24
|
+
Requires-Dist: black~=26.5
|
|
25
|
+
Requires-Dist: inflection~=0.5
|
|
26
|
+
Requires-Dist: isort~=8.0
|
|
27
|
+
Requires-Dist: jmespath~=1.1
|
|
28
|
+
Requires-Dist: paho-mqtt~=2.1
|
|
29
|
+
Requires-Dist: pyaes~=1.6
|
|
30
|
+
Requires-Dist: pydantic~=1.10
|
|
31
|
+
Requires-Dist: python-dateutil~=2.9
|
|
32
|
+
Requires-Dist: pyyaml~=6.0
|
|
33
|
+
Requires-Dist: redis~=8.0
|
|
34
|
+
Requires-Dist: requests~=2.34
|
|
35
|
+
Requires-Dist: rich~=15.0
|
|
36
|
+
Requires-Dist: semantic-version~=2.10
|
|
37
|
+
Requires-Dist: wrapt~=2.2
|
|
38
38
|
Dynamic: license-file
|
|
39
39
|
|
|
40
40
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -24,21 +24,21 @@ classifiers = [
|
|
|
24
24
|
|
|
25
25
|
# List of runtime dependencies
|
|
26
26
|
dependencies = [
|
|
27
|
-
"arrow~=1.4
|
|
28
|
-
"black~=26.5
|
|
29
|
-
"inflection~=0.5
|
|
30
|
-
"isort~=8.0
|
|
31
|
-
"jmespath~=1.1
|
|
32
|
-
"paho-mqtt~=2.1
|
|
33
|
-
"pyaes~=1.6
|
|
34
|
-
"pydantic~=1.10
|
|
35
|
-
"python-dateutil~=2.9
|
|
36
|
-
"pyyaml~=6.0
|
|
37
|
-
"redis~=8.0
|
|
38
|
-
"requests~=2.34
|
|
39
|
-
"rich~=15.0
|
|
40
|
-
"semantic-version~=2.10
|
|
41
|
-
"wrapt~=2.2
|
|
27
|
+
"arrow~=1.4",
|
|
28
|
+
"black~=26.5",
|
|
29
|
+
"inflection~=0.5",
|
|
30
|
+
"isort~=8.0",
|
|
31
|
+
"jmespath~=1.1",
|
|
32
|
+
"paho-mqtt~=2.1",
|
|
33
|
+
"pyaes~=1.6",
|
|
34
|
+
"pydantic~=1.10",
|
|
35
|
+
"python-dateutil~=2.9",
|
|
36
|
+
"pyyaml~=6.0",
|
|
37
|
+
"redis~=8.0",
|
|
38
|
+
"requests~=2.34",
|
|
39
|
+
"rich~=15.0",
|
|
40
|
+
"semantic-version~=2.10",
|
|
41
|
+
"wrapt~=2.2",
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
# Short description of the project
|
|
@@ -69,21 +69,21 @@ Source = "https://github.com/ThreatConnect-Inc/tcex"
|
|
|
69
69
|
# Dependency groups for development and testing
|
|
70
70
|
[dependency-groups]
|
|
71
71
|
dev = [
|
|
72
|
-
"bandit>=1.9
|
|
73
|
-
"pre-commit>=4.6
|
|
74
|
-
"pyupgrade>=3.21
|
|
75
|
-
"ruff>=0.15
|
|
76
|
-
"ty
|
|
77
|
-
"typer>=0.26
|
|
72
|
+
"bandit>=1.9",
|
|
73
|
+
"pre-commit>=4.6",
|
|
74
|
+
"pyupgrade>=3.21",
|
|
75
|
+
"ruff>=0.15",
|
|
76
|
+
"ty==0.0.51",
|
|
77
|
+
"typer>=0.26",
|
|
78
78
|
]
|
|
79
79
|
test = [
|
|
80
|
-
"deepdiff>=9.1
|
|
81
|
-
"fakeredis>=2.36
|
|
82
|
-
"pytest>=9.0
|
|
83
|
-
"pytest-cov>=7.1
|
|
84
|
-
"pytest-html>=4.2
|
|
80
|
+
"deepdiff>=9.1",
|
|
81
|
+
"fakeredis>=2.36",
|
|
82
|
+
"pytest>=9.0",
|
|
83
|
+
"pytest-cov>=7.1",
|
|
84
|
+
"pytest-html>=4.2",
|
|
85
85
|
"pytest-ordering>=0.6",
|
|
86
|
-
"pytest-xdist>=3.8
|
|
86
|
+
"pytest-xdist>=3.8",
|
|
87
87
|
]
|
|
88
88
|
|
|
89
89
|
# Dynamic configuration for setuptools
|
|
@@ -108,7 +108,7 @@ commit = false
|
|
|
108
108
|
# Additional arguments to pass to the git commit command
|
|
109
109
|
commit_args = "--no-verify"
|
|
110
110
|
# The current version of the project
|
|
111
|
-
current_version = "4.0.
|
|
111
|
+
current_version = "4.0.12"
|
|
112
112
|
# The commit message template used when committing version bumps
|
|
113
113
|
message = "Version updated from {current_version} to {new_version}"
|
|
114
114
|
# Regular expression for parsing version strings
|
|
@@ -237,6 +237,7 @@ ignore = [
|
|
|
237
237
|
"PGH004", # Use specific rule codes when using `ruff: noqa`
|
|
238
238
|
"PLR0912", # Too many branches
|
|
239
239
|
"PLR0913", # Too many arguments in function definition
|
|
240
|
+
"PLR0917", # Too many positional arguments in function definition
|
|
240
241
|
"PLR0915", # Too many statements
|
|
241
242
|
"PT006", # Wrong name(s) type in ..., expected ...
|
|
242
243
|
"TC001", # Move application import ... into a type-checking block
|
|
@@ -681,7 +681,7 @@ class TransformABC(ABC):
|
|
|
681
681
|
|
|
682
682
|
def _transform_value_callable(
|
|
683
683
|
self, value: dict | list | str, c: Callable | PredefinedFunctionModel, kwargs=None
|
|
684
|
-
) -> str |
|
|
684
|
+
) -> str | list[str] | None:
|
|
685
685
|
"""Transform values in the TI data."""
|
|
686
686
|
# find signature of method and call with correct args
|
|
687
687
|
if isinstance(c, PredefinedFunctionModel):
|
{tcex-4.0.11.dev6 → tcex-4.0.12}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py
RENAMED
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
import json
|
|
6
6
|
import logging
|
|
7
7
|
from inspect import signature
|
|
8
|
-
from typing import Literal
|
|
8
|
+
from typing import Any, Literal
|
|
9
9
|
|
|
10
10
|
# first-party
|
|
11
11
|
from tcex.api.tc.ti_transform.model.transform_model import (
|
|
12
|
+
AssociatedIndicatorFromGroupTransform,
|
|
13
|
+
AssociatedIndicatorFromIndicatorTransform,
|
|
14
|
+
AttributeTransformModel,
|
|
15
|
+
FileOccurrenceTransformModel,
|
|
12
16
|
GroupTransformModel,
|
|
13
17
|
IndicatorTransformModel,
|
|
14
18
|
)
|
|
@@ -43,15 +47,17 @@ class LoadTransform:
|
|
|
43
47
|
# transformSchemaVersion = metadata.get('transformSchemaVersion', '1')
|
|
44
48
|
match ti_type:
|
|
45
49
|
case 'group':
|
|
46
|
-
return GroupTransformModel(
|
|
50
|
+
return GroupTransformModel(
|
|
51
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
52
|
+
)
|
|
47
53
|
case 'indicator':
|
|
48
54
|
return IndicatorTransformModel(
|
|
49
|
-
**self._transform_data(self._normalize(mapping_json))
|
|
55
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
50
56
|
)
|
|
51
57
|
|
|
52
|
-
def _normalize(self, data: dict) -> dict:
|
|
58
|
+
def _normalize(self, data: dict) -> dict[str, Any]:
|
|
53
59
|
"""Normalize the transform data."""
|
|
54
|
-
normalized = {}
|
|
60
|
+
normalized: dict[str, Any] = {}
|
|
55
61
|
for key, value in data.items():
|
|
56
62
|
normalized_key = self.util.camel_to_snake(key)
|
|
57
63
|
if isinstance(value, dict):
|
|
@@ -65,9 +71,9 @@ class LoadTransform:
|
|
|
65
71
|
|
|
66
72
|
return normalized
|
|
67
73
|
|
|
68
|
-
def _transform_data(self, body: dict) -> dict:
|
|
74
|
+
def _transform_data(self, body: dict[str, Any], ti_type: str) -> dict:
|
|
69
75
|
"""Transform the data."""
|
|
70
|
-
fields_copy = {**body}
|
|
76
|
+
fields_copy: dict[str, Any] = {**body}
|
|
71
77
|
fields_copy.pop('associated_indicators', None)
|
|
72
78
|
|
|
73
79
|
transform_data = {}
|
|
@@ -113,6 +119,7 @@ class LoadTransform:
|
|
|
113
119
|
af
|
|
114
120
|
in (
|
|
115
121
|
'type',
|
|
122
|
+
'indicator_type',
|
|
116
123
|
'value',
|
|
117
124
|
'summary',
|
|
118
125
|
'association_type',
|
|
@@ -139,6 +146,17 @@ class LoadTransform:
|
|
|
139
146
|
|
|
140
147
|
self._translate_processing_function(field[af])
|
|
141
148
|
|
|
149
|
+
match field_key:
|
|
150
|
+
case 'attributes':
|
|
151
|
+
AttributeTransformModel(**field)
|
|
152
|
+
case 'file_occurrences':
|
|
153
|
+
FileOccurrenceTransformModel(**field)
|
|
154
|
+
case 'associated_indicators':
|
|
155
|
+
if ti_type.lower() == 'group':
|
|
156
|
+
AssociatedIndicatorFromGroupTransform(**field)
|
|
157
|
+
else:
|
|
158
|
+
AssociatedIndicatorFromIndicatorTransform(**field)
|
|
159
|
+
|
|
142
160
|
transform_data.setdefault(field_key, []).append(field)
|
|
143
161
|
except Exception:
|
|
144
162
|
# best effort to continue processing other items
|
|
@@ -247,7 +265,7 @@ class LoadTransform:
|
|
|
247
265
|
"""Translate a function definition in transform builder/API format to an actual function."""
|
|
248
266
|
# convert transform function names to callables
|
|
249
267
|
transforms_with_callable = []
|
|
250
|
-
for function in mapping.get('transform'
|
|
268
|
+
for function in mapping.get('transform') or []:
|
|
251
269
|
transforms_with_callable.append(self._function_name_to_callable(function))
|
|
252
270
|
if transforms_with_callable:
|
|
253
271
|
mapping['transform'] = transforms_with_callable
|
|
@@ -182,9 +182,16 @@ class BatchCleaner:
|
|
|
182
182
|
if fname:
|
|
183
183
|
keys.add(f'filename:{fname.lower()}')
|
|
184
184
|
return keys
|
|
185
|
+
|
|
185
186
|
if self.deduplicate_indicators:
|
|
187
|
+
# some IOC values are not case-sensitive, handle those separately.
|
|
188
|
+
if item.get('type') in {'ASN', 'CIDR', 'Hashtag', 'Host'}:
|
|
189
|
+
summary = item.get('summary')
|
|
190
|
+
return {summary.casefold()} if summary else set()
|
|
191
|
+
|
|
186
192
|
summary = item.get('summary')
|
|
187
193
|
return {summary} if summary else set()
|
|
194
|
+
|
|
188
195
|
return set()
|
|
189
196
|
|
|
190
197
|
@staticmethod
|
|
@@ -226,6 +233,38 @@ class BatchCleaner:
|
|
|
226
233
|
if formatted:
|
|
227
234
|
tag['name'] = formatted
|
|
228
235
|
|
|
236
|
+
@staticmethod
|
|
237
|
+
def _utf16_length(value: str) -> int:
|
|
238
|
+
"""Return the length of a string in UTF-16 code units.
|
|
239
|
+
|
|
240
|
+
ThreatConnect enforces attribute length in UTF-16 code units (like Java
|
|
241
|
+
``String.length``), not Python code points. Characters outside the BMP (emoji,
|
|
242
|
+
math alphanumerics) are one Python character but two UTF-16 code units.
|
|
243
|
+
|
|
244
|
+
Args:
|
|
245
|
+
value: The string to measure.
|
|
246
|
+
|
|
247
|
+
Returns:
|
|
248
|
+
The number of UTF-16 code units. Lone surrogates are counted, not rejected.
|
|
249
|
+
"""
|
|
250
|
+
return len(value.encode('utf-16-le', 'surrogatepass')) // 2
|
|
251
|
+
|
|
252
|
+
@staticmethod
|
|
253
|
+
def _utf16_cut(value: str, units: int) -> str:
|
|
254
|
+
"""Return the longest prefix of value that fits in the given UTF-16 code units.
|
|
255
|
+
|
|
256
|
+
A surrogate pair is never split; a dangling high surrogate is dropped.
|
|
257
|
+
|
|
258
|
+
Args:
|
|
259
|
+
value: The string to cut.
|
|
260
|
+
units: The maximum number of UTF-16 code units to keep.
|
|
261
|
+
|
|
262
|
+
Returns:
|
|
263
|
+
The prefix, at most ``units`` UTF-16 code units long.
|
|
264
|
+
"""
|
|
265
|
+
encoded = value.encode('utf-16-le', 'surrogatepass')[: max(units, 0) * 2]
|
|
266
|
+
return encoded.decode('utf-16-le', errors='ignore')
|
|
267
|
+
|
|
229
268
|
@staticmethod
|
|
230
269
|
def auto_truncate_attribute(
|
|
231
270
|
attribute_type: str,
|
|
@@ -235,6 +274,11 @@ class BatchCleaner:
|
|
|
235
274
|
) -> str:
|
|
236
275
|
"""Truncate attribute value if it exceeds the maximum length for its type.
|
|
237
276
|
|
|
277
|
+
Length is measured and cut in UTF-16 code units, not Python code points, because
|
|
278
|
+
ThreatConnect enforces the limit in UTF-16 code units. Measuring in code points
|
|
279
|
+
would leave values containing astral characters (emoji, math alphanumerics) over
|
|
280
|
+
the limit after truncation.
|
|
281
|
+
|
|
238
282
|
Args:
|
|
239
283
|
attribute_type: The name of the attribute type.
|
|
240
284
|
attribute_value: The attribute value to potentially truncate.
|
|
@@ -242,7 +286,8 @@ class BatchCleaner:
|
|
|
242
286
|
ellipsis: The string to append when truncating. Defaults to '...'.
|
|
243
287
|
|
|
244
288
|
Returns:
|
|
245
|
-
The original value if within limits, or the truncated
|
|
289
|
+
The original value if within limits (in UTF-16 code units), or the truncated
|
|
290
|
+
value with ellipsis, never exceeding the limit in UTF-16 code units.
|
|
246
291
|
"""
|
|
247
292
|
config = attribute_config.get(attribute_type)
|
|
248
293
|
if not config:
|
|
@@ -255,13 +300,14 @@ class BatchCleaner:
|
|
|
255
300
|
if not isinstance(attribute_value, str):
|
|
256
301
|
return attribute_value
|
|
257
302
|
|
|
258
|
-
if
|
|
303
|
+
if BatchCleaner._utf16_length(attribute_value) <= max_length:
|
|
259
304
|
return attribute_value
|
|
260
305
|
|
|
261
|
-
|
|
262
|
-
|
|
306
|
+
ellipsis_length = BatchCleaner._utf16_length(ellipsis)
|
|
307
|
+
if max_length <= ellipsis_length:
|
|
308
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length)
|
|
263
309
|
|
|
264
|
-
return attribute_value
|
|
310
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length - ellipsis_length) + ellipsis
|
|
265
311
|
|
|
266
312
|
@staticmethod
|
|
267
313
|
def clean_attributes(
|
|
@@ -443,7 +489,7 @@ class BatchCleaner:
|
|
|
443
489
|
Returns:
|
|
444
490
|
A set of individual hash strings with whitespace stripped.
|
|
445
491
|
"""
|
|
446
|
-
return {h.strip() for h in summary.split(' : ') if h.strip()}
|
|
492
|
+
return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
|
|
447
493
|
|
|
448
494
|
@cached_property
|
|
449
495
|
def naics_tags(self) -> NAICSTags:
|
|
@@ -84,8 +84,11 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
84
84
|
)
|
|
85
85
|
_code.extend(
|
|
86
86
|
[
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
(
|
|
88
|
+
f"""{self.i2}{filter_data.keyword.snake_case()} = """
|
|
89
|
+
f"""self.util.any_to_datetime"""
|
|
90
|
+
f"""({filter_data.keyword.snake_case()}).strftime('%Y-%m-%d %H:%M:%S')"""
|
|
91
|
+
)
|
|
89
92
|
]
|
|
90
93
|
)
|
|
91
94
|
|
|
@@ -96,10 +99,12 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
96
99
|
f"""{self.i2}if isinstance({filter_data.keyword.snake_case()}, list) """
|
|
97
100
|
"""and operator not in self.list_types:"""
|
|
98
101
|
),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
(
|
|
103
|
+
f"""{self.i3}ex_msg = ("""
|
|
104
|
+
f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
|
|
105
|
+
f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
|
|
106
|
+
f"""{self.i4})"""
|
|
107
|
+
),
|
|
103
108
|
f"""{self.i3}raise RuntimeError(ex_msg)""",
|
|
104
109
|
'',
|
|
105
110
|
]
|
|
@@ -522,10 +522,14 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
522
522
|
f'{self.i2}if not isinstance(data, list):',
|
|
523
523
|
f'{self.i3}data = [data]',
|
|
524
524
|
'',
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
525
|
+
(
|
|
526
|
+
f'{self.i2}if all(isinstance(item, ({model_class} | ObjectABC)) for item in data):'
|
|
527
|
+
f'{self.i3}transformed_data = data'
|
|
528
|
+
),
|
|
529
|
+
(
|
|
530
|
+
f'{self.i2}elif all(isinstance(item, dict) for item in data):'
|
|
531
|
+
f'{self.i3}transformed_data = [{model_class}(**d) for d in data] # type: ignore'
|
|
532
|
+
),
|
|
529
533
|
f'{self.i2}else:',
|
|
530
534
|
f'{self.i3}ex_msg = "Invalid data to replace_{model_type.singular()}"',
|
|
531
535
|
f'{self.i3}raise ValueError(ex_msg)',
|
|
@@ -711,15 +715,16 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
711
715
|
f'{self.i2}if isinstance(data, AssigneeModel):',
|
|
712
716
|
f'{self.i3}self.model.assignee = data',
|
|
713
717
|
f'{self.i2}elif isinstance(',
|
|
714
|
-
|
|
715
|
-
|
|
718
|
+
(
|
|
719
|
+
f'{self.i3}data, AssigneeUserModel | AssigneeUserGroupModel '
|
|
720
|
+
f'| UserModel | UserGroupModel'
|
|
721
|
+
),
|
|
716
722
|
f'{self.i2}):',
|
|
723
|
+
f'{self.i3}if type.lower() == "user":',
|
|
724
|
+
f'{self.i4}self.model.assignee.type = "User"',
|
|
725
|
+
f'{self.i3}elif type.lower() == "group":',
|
|
726
|
+
f'{self.i4}self.model.assignee.type = "Group"',
|
|
717
727
|
f'{self.i3}self.model.assignee.data = data # type: ignore',
|
|
718
|
-
# f'{self.i2}data._staged = True
|
|
719
|
-
# f'{self.i2}self.model.assignee._staged = True
|
|
720
|
-
# f'{self.i2}self.model.assignee.type = type',
|
|
721
|
-
# pylance shows a warning on type here, but it in not handling inheritance properly.
|
|
722
|
-
# f'{self.i2}self.model.assignee.data = data',
|
|
723
728
|
f'{self.i2}self.model.assignee.data._staged = True # type: ignore # noqa: SLF001',
|
|
724
729
|
'',
|
|
725
730
|
'',
|
|
@@ -218,6 +218,10 @@ class Case(ObjectABC):
|
|
|
218
218
|
elif isinstance(
|
|
219
219
|
data, AssigneeUserModel | AssigneeUserGroupModel | UserModel | UserGroupModel
|
|
220
220
|
):
|
|
221
|
+
if type.lower() == 'user':
|
|
222
|
+
self.model.assignee.type = 'User'
|
|
223
|
+
elif type.lower() == 'group':
|
|
224
|
+
self.model.assignee.type = 'Group'
|
|
221
225
|
self.model.assignee.data = data # type: ignore
|
|
222
226
|
self.model.assignee.data._staged = True # type: ignore # noqa: SLF001
|
|
223
227
|
|
|
@@ -37,6 +37,8 @@ class Group(ObjectABC):
|
|
|
37
37
|
"""Groups Object.
|
|
38
38
|
|
|
39
39
|
Args:
|
|
40
|
+
ai_last_retrieval_date (str, kwargs): The date and time that the AI insight was produced in
|
|
41
|
+
the external system.
|
|
40
42
|
assignments (TaskAssignees, kwargs): A list of assignees and escalatees associated with this
|
|
41
43
|
group (Task specific).
|
|
42
44
|
associated_artifacts (Artifacts, kwargs): A list of Artifacts associated with this Group.
|
|
@@ -208,22 +208,6 @@ class GroupFilter(FilterABC):
|
|
|
208
208
|
|
|
209
209
|
self._tql.add_filter('documentType', operator, document_type, TqlType.STRING)
|
|
210
210
|
|
|
211
|
-
def downvote_count(self, operator: Enum, downvote_count: int | list):
|
|
212
|
-
"""Filter Downvote Count based on **downvoteCount** keyword.
|
|
213
|
-
|
|
214
|
-
Args:
|
|
215
|
-
operator: The operator enum for the filter.
|
|
216
|
-
downvote_count: The number of downvotes the group has received.
|
|
217
|
-
"""
|
|
218
|
-
if isinstance(downvote_count, list) and operator not in self.list_types:
|
|
219
|
-
ex_msg = (
|
|
220
|
-
'Operator must be CONTAINS, NOT_CONTAINS, IN'
|
|
221
|
-
'or NOT_IN when filtering on a list of values.'
|
|
222
|
-
)
|
|
223
|
-
raise RuntimeError(ex_msg)
|
|
224
|
-
|
|
225
|
-
self._tql.add_filter('downvoteCount', operator, downvote_count, TqlType.INTEGER)
|
|
226
|
-
|
|
227
211
|
def email_date(self, operator: Enum, email_date: Arrow | datetime | int | str):
|
|
228
212
|
"""Filter Date (Email) based on **emailDate** keyword.
|
|
229
213
|
|
|
@@ -984,22 +968,6 @@ class GroupFilter(FilterABC):
|
|
|
984
968
|
|
|
985
969
|
self._tql.add_filter('typeName', operator, type_name, TqlType.STRING)
|
|
986
970
|
|
|
987
|
-
def upvote_count(self, operator: Enum, upvote_count: int | list):
|
|
988
|
-
"""Filter Upvote Count based on **upvoteCount** keyword.
|
|
989
|
-
|
|
990
|
-
Args:
|
|
991
|
-
operator: The operator enum for the filter.
|
|
992
|
-
upvote_count: The number of upvotes the group has received.
|
|
993
|
-
"""
|
|
994
|
-
if isinstance(upvote_count, list) and operator not in self.list_types:
|
|
995
|
-
ex_msg = (
|
|
996
|
-
'Operator must be CONTAINS, NOT_CONTAINS, IN'
|
|
997
|
-
'or NOT_IN when filtering on a list of values.'
|
|
998
|
-
)
|
|
999
|
-
raise RuntimeError(ex_msg)
|
|
1000
|
-
|
|
1001
|
-
self._tql.add_filter('upvoteCount', operator, upvote_count, TqlType.INTEGER)
|
|
1002
|
-
|
|
1003
971
|
def victim_asset(self, operator: Enum, victim_asset: list | str):
|
|
1004
972
|
"""Filter victimAsset based on **victimAsset** keyword.
|
|
1005
973
|
|
|
@@ -25,6 +25,22 @@ class GroupModel(
|
|
|
25
25
|
_shared_type = PrivateAttr(default=False)
|
|
26
26
|
_staged = PrivateAttr(default=False)
|
|
27
27
|
|
|
28
|
+
ai_last_retrieval_date: datetime | None = Field(
|
|
29
|
+
None,
|
|
30
|
+
applies_to=['Document', 'Report', 'Event'],
|
|
31
|
+
description='The date and time that the AI insight was produced in the external system.',
|
|
32
|
+
methods=['POST', 'PUT'],
|
|
33
|
+
read_only=False,
|
|
34
|
+
title='aiLastRetrievalDate',
|
|
35
|
+
)
|
|
36
|
+
ai_provider: str | None = Field(
|
|
37
|
+
None,
|
|
38
|
+
allow_mutation=False,
|
|
39
|
+
applies_to=['Document', 'Report', 'Event'],
|
|
40
|
+
description='The provider of the AI generated insights.',
|
|
41
|
+
read_only=True,
|
|
42
|
+
title='aiProvider',
|
|
43
|
+
)
|
|
28
44
|
assignments: 'TaskAssigneesModel' = Field(
|
|
29
45
|
None,
|
|
30
46
|
description=(
|
|
@@ -86,6 +86,16 @@ class IndicatorModel(
|
|
|
86
86
|
read_only=False,
|
|
87
87
|
title='attributes',
|
|
88
88
|
)
|
|
89
|
+
cal_last_checked: datetime | None = Field(
|
|
90
|
+
None,
|
|
91
|
+
allow_mutation=False,
|
|
92
|
+
description=(
|
|
93
|
+
'The date/time CAL was last consulted for this indicator; null means CAL has never been'
|
|
94
|
+
' checked.'
|
|
95
|
+
),
|
|
96
|
+
read_only=True,
|
|
97
|
+
title='calLastChecked',
|
|
98
|
+
)
|
|
89
99
|
cal_score: int | None = Field(
|
|
90
100
|
None,
|
|
91
101
|
allow_mutation=False,
|
|
@@ -63,7 +63,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
63
63
|
ex_msg = 'Child class must implement this property.'
|
|
64
64
|
raise NotImplementedError(ex_msg)
|
|
65
65
|
|
|
66
|
-
def _calculate_unique_id(self) -> dict[str, int | str]:
|
|
66
|
+
def _calculate_unique_id(self, encode_value: bool = False) -> dict[str, int | str]:
|
|
67
67
|
if self.model.id:
|
|
68
68
|
return {'filter': 'id', 'value': self.model.id}
|
|
69
69
|
|
|
@@ -71,7 +71,10 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
71
71
|
return {'filter': 'xid', 'value': self.model.xid} # type: ignore
|
|
72
72
|
|
|
73
73
|
if self.type_.lower() in ['indicator']:
|
|
74
|
-
|
|
74
|
+
value = self.model.summary # type: ignore
|
|
75
|
+
if encode_value and value is not None:
|
|
76
|
+
value = urllib.parse.quote(str(value), safe='')
|
|
77
|
+
return {'filter': 'summary', 'value': value}
|
|
75
78
|
|
|
76
79
|
return {}
|
|
77
80
|
|
|
@@ -98,12 +101,15 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
98
101
|
unique_id_data.get('filter'), # type: ignore
|
|
99
102
|
)(TqlOperator.EQ, unique_id_data.get('value'))
|
|
100
103
|
|
|
104
|
+
# unique_id is later spliced into a URL by the generated remove() method - must be encoded.
|
|
105
|
+
parent_unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
106
|
+
|
|
101
107
|
# return the sub object, injecting the parent data
|
|
102
108
|
for obj in sublist:
|
|
103
109
|
obj._parent_data = { # noqa: SLF001
|
|
104
110
|
'api_endpoint': self._api_endpoint,
|
|
105
111
|
'type': self.type_,
|
|
106
|
-
'unique_id':
|
|
112
|
+
'unique_id': parent_unique_id,
|
|
107
113
|
}
|
|
108
114
|
yield obj
|
|
109
115
|
self.request = sublist.request
|
|
@@ -220,7 +226,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
220
226
|
body = self.model.gen_body_json(method)
|
|
221
227
|
|
|
222
228
|
# get the unique id value for id, xid, summary, etc ...
|
|
223
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
229
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
224
230
|
|
|
225
231
|
# validate an id is available
|
|
226
232
|
self._validate_id(unique_id, self.url(method, unique_id))
|
|
@@ -284,7 +290,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
284
290
|
params = self.gen_params(params) if params else None
|
|
285
291
|
|
|
286
292
|
# get the unique id value for id, xid, summary, etc ...
|
|
287
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
293
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
288
294
|
|
|
289
295
|
# validate an id is available
|
|
290
296
|
self._validate_id(unique_id, self.url(method, unique_id))
|
|
@@ -414,10 +420,10 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
414
420
|
params = self.gen_params(params) if params else None
|
|
415
421
|
|
|
416
422
|
# get the unique id value for id, xid, summary, etc ...
|
|
417
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
423
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
418
424
|
|
|
419
425
|
# validate an id is available
|
|
420
|
-
self._validate_id(unique_id, self.url(method))
|
|
426
|
+
self._validate_id(unique_id, self.url(method, unique_id))
|
|
421
427
|
|
|
422
428
|
self._request(
|
|
423
429
|
method,
|
|
@@ -436,7 +442,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
436
442
|
|
|
437
443
|
def url(self, method: str, unique_id: int | str | None = None) -> str:
|
|
438
444
|
"""Return the proper URL."""
|
|
439
|
-
unique_id = unique_id or self._calculate_unique_id().get('value')
|
|
445
|
+
unique_id = unique_id or self._calculate_unique_id(encode_value=True).get('value')
|
|
440
446
|
if method in ['DELETE', 'GET', 'PUT']:
|
|
441
447
|
return f'{self._api_endpoint}/{unique_id}'
|
|
442
448
|
return self._api_endpoint
|
|
@@ -148,6 +148,10 @@ class Task(ObjectABC):
|
|
|
148
148
|
elif isinstance(
|
|
149
149
|
data, AssigneeUserModel | AssigneeUserGroupModel | UserModel | UserGroupModel
|
|
150
150
|
):
|
|
151
|
+
if type.lower() == 'user':
|
|
152
|
+
self.model.assignee.type = 'User'
|
|
153
|
+
elif type.lower() == 'group':
|
|
154
|
+
self.model.assignee.type = 'Group'
|
|
151
155
|
self.model.assignee.data = data # type: ignore
|
|
152
156
|
self.model.assignee.data._staged = True # type: ignore # noqa: SLF001
|
|
153
157
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
3
|
# standard library
|
|
4
|
-
import datetime
|
|
4
|
+
import datetime as dt
|
|
5
5
|
import hashlib
|
|
6
6
|
import json
|
|
7
7
|
import logging
|
|
@@ -31,7 +31,7 @@ class CustomJSONEncoder(JSONEncoder):
|
|
|
31
31
|
'Please verify that the object has been converted to a dictionary.'
|
|
32
32
|
)
|
|
33
33
|
raise ValueError(ex_msg) # noqa: TRY004
|
|
34
|
-
if isinstance(o,
|
|
34
|
+
if isinstance(o, dt.date | dt.datetime):
|
|
35
35
|
return o.isoformat()
|
|
36
36
|
return o
|
|
37
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
3
|
# standard library
|
|
4
|
-
import datetime
|
|
4
|
+
import datetime as dt
|
|
5
5
|
import logging
|
|
6
6
|
from typing import TYPE_CHECKING, Any
|
|
7
7
|
|
|
@@ -79,11 +79,11 @@ class Benchmark:
|
|
|
79
79
|
**kwargs: Additional keyword arguments.
|
|
80
80
|
"""
|
|
81
81
|
|
|
82
|
-
before =
|
|
82
|
+
before = dt.datetime.now(dt.UTC)
|
|
83
83
|
data = wrapped(*args, **kwargs)
|
|
84
|
-
after =
|
|
84
|
+
after = dt.datetime.now(dt.UTC)
|
|
85
85
|
delta = after - before
|
|
86
|
-
if delta >
|
|
86
|
+
if delta > dt.timedelta(
|
|
87
87
|
microseconds=self.microseconds, milliseconds=self.milliseconds, seconds=self.seconds
|
|
88
88
|
):
|
|
89
89
|
_logger.debug(f'function: "{wrapped.__name__}", benchmark_time: "{delta}"') # ty: ignore[unresolved-attribute]
|