tcex 5.0.0.dev4__tar.gz → 5.0.1.dev0__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-5.0.0.dev4/tcex.egg-info → tcex-5.0.1.dev0}/PKG-INFO +15 -15
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/pyproject.toml +29 -28
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/__metadata__.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_abc.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +29 -12
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/batch_cleaner.py +8 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +11 -6
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen_object_abc.py +8 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/groups/group_filter.py +0 -32
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/groups/group_model.py +18 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicators/indicator_model.py +10 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/object_abc.py +14 -8
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/v3_model_abc.py +2 -2
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/benchmark.py +4 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/advanced_request.py +4 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/playbook_create.py +4 -5
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/binary.py +10 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/edit_choice.py +7 -3
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/integer.py +12 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/ip_address.py +6 -2
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/sensitive.py +9 -5
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/string.py +10 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0/tcex.egg-info}/PKG-INFO +15 -15
- tcex-5.0.1.dev0/tcex.egg-info/requires.txt +16 -0
- tcex-5.0.0.dev4/tcex.egg-info/requires.txt +0 -16
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/LICENSE +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/README.md +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/setup.cfg +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/api.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/tc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/ti_transform.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_builder/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/util/threat_intel_util.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/batch_writer.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen_args_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_gen_model_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_options_data.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/model/_extra_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/model/_filter_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifact_types/artifact_type.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifacts/artifact.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/artifacts/artifact_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attribute_types/attribute_type.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_attributes/case_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/case_management/case_management.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/cases/case.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/cases/case_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/cases/case_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/group_attributes/group_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/groups/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicators/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/indicators/indicator_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/categories/category.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/results/result.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/results/result_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/notes/note.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/notes/note_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/object_collection_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/assignee_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/assignee_user_group_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/assignee_user_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owners/owner.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/owners/owner_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/system_roles/system_role.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/system_roles/system_role_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/task_assignee_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/user_groups/user_group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/user_groups/user_group_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/users/user.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security/users/user_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security_labels/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/security_labels/security_label_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tags/tag_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tasks/task.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tasks/task_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_assets/victim_asset.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victims/victim.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/victims/victim_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_events/workflow_event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/app.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/app_spec_yml.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/install_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/install_json_update.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/job_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/layout_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/app_spec_yml_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/install_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/job_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/layout_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/permutation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/tcex_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/debug.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/fail_on_output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/on_exception.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/on_success.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/decorator/output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/key_value_redis.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/playbook.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/playbook/playbook_read.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/api_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/common_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/common_service_trigger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/mqtt_message_broker.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/service/webhook_trigger_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/token/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/app/token/token.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/exit/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/exit/error_code.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/exit/exit.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/choice.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/datetime.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/exception.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/key_value.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/field_type/validator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/input.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/api_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_external_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_system_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/batch_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/cert_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/common_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/create_config_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/logging_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/model_map.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/module_app_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/organization_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/path_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/playbook_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/proxy_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/api_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/cache_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/logger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/logger/trace_logger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/cached_property.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/cached_property_filesystem.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/exception_thread.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_custom.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_array_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_base.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_math_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/jmespath_functions_string_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/none_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/proxies.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/scoped_property.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/pleb/singleton.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/registry.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_external/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_external/external_session.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_external/requests_external.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/auth/hmac_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/auth/tc_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/auth/token_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/requests_tc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/requests_tc/tc_session.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/tcex.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/aes_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/code_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/datetime_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/file_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/render/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/render/render.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/render/render_panel.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/render/render_prompt.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/render/render_table.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/requests_to_curl.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/string_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/util.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/util/variable.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex.egg-info/SOURCES.txt +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tcex
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.1.dev0
|
|
4
4
|
Summary: ThreatConnect Exchange App Framework
|
|
5
5
|
Author-email: ThreatConnect <support@threatconnect.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,22 +20,22 @@ 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
|
|
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
30
|
Requires-Dist: pydantic-core<3.0.0,>=2.10.0
|
|
31
31
|
Requires-Dist: pydantic<3.0.0,>=2.10.0
|
|
32
|
-
Requires-Dist: python-dateutil~=2.9
|
|
33
|
-
Requires-Dist: pyyaml~=6.0
|
|
34
|
-
Requires-Dist: redis~=8.0
|
|
35
|
-
Requires-Dist: requests~=2.34
|
|
36
|
-
Requires-Dist: rich~=15.0
|
|
37
|
-
Requires-Dist: semantic-version~=2.10
|
|
38
|
-
Requires-Dist: wrapt~=2.2
|
|
32
|
+
Requires-Dist: python-dateutil~=2.9
|
|
33
|
+
Requires-Dist: pyyaml~=6.0
|
|
34
|
+
Requires-Dist: redis~=8.0
|
|
35
|
+
Requires-Dist: requests~=2.34
|
|
36
|
+
Requires-Dist: rich~=15.0
|
|
37
|
+
Requires-Dist: semantic-version~=2.10
|
|
38
|
+
Requires-Dist: wrapt~=2.2
|
|
39
39
|
Dynamic: license-file
|
|
40
40
|
|
|
41
41
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -24,22 +24,22 @@ 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
|
|
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
34
|
"pydantic-core>=2.10.0,<3.0.0",
|
|
35
35
|
"pydantic>=2.10.0,<3.0.0",
|
|
36
|
-
"python-dateutil~=2.9
|
|
37
|
-
"pyyaml~=6.0
|
|
38
|
-
"redis~=8.0
|
|
39
|
-
"requests~=2.34
|
|
40
|
-
"rich~=15.0
|
|
41
|
-
"semantic-version~=2.10
|
|
42
|
-
"wrapt~=2.2
|
|
36
|
+
"python-dateutil~=2.9",
|
|
37
|
+
"pyyaml~=6.0",
|
|
38
|
+
"redis~=8.0",
|
|
39
|
+
"requests~=2.34",
|
|
40
|
+
"rich~=15.0",
|
|
41
|
+
"semantic-version~=2.10",
|
|
42
|
+
"wrapt~=2.2",
|
|
43
43
|
]
|
|
44
44
|
|
|
45
45
|
# Short description of the project
|
|
@@ -70,23 +70,23 @@ Source = "https://github.com/ThreatConnect-Inc/tcex"
|
|
|
70
70
|
# Dependency groups for development and testing
|
|
71
71
|
[dependency-groups]
|
|
72
72
|
dev = [
|
|
73
|
-
"bandit>=1.9
|
|
74
|
-
"pre-commit>=4.6
|
|
75
|
-
"pyupgrade>=3.21
|
|
76
|
-
"ruff>=0.15
|
|
77
|
-
"ty
|
|
78
|
-
"typer>=0.26
|
|
73
|
+
"bandit>=1.9",
|
|
74
|
+
"pre-commit>=4.6",
|
|
75
|
+
"pyupgrade>=3.21",
|
|
76
|
+
"ruff>=0.15",
|
|
77
|
+
"ty==0.0.51",
|
|
78
|
+
"typer>=0.26",
|
|
79
79
|
]
|
|
80
80
|
|
|
81
81
|
test = [
|
|
82
|
-
"deepdiff>=9.1
|
|
83
|
-
"fakeredis>=2.36
|
|
84
|
-
"pytest>=9.0
|
|
85
|
-
"pytest-cov>=7.1
|
|
86
|
-
"pytest-html>=4.2
|
|
82
|
+
"deepdiff>=9.1",
|
|
83
|
+
"fakeredis>=2.36",
|
|
84
|
+
"pytest>=9.0",
|
|
85
|
+
"pytest-cov>=7.1",
|
|
86
|
+
"pytest-html>=4.2",
|
|
87
87
|
"pytest-ordering>=0.6",
|
|
88
|
-
"pytest-xdist>=3.8
|
|
89
|
-
"python-dotenv>=1.2
|
|
88
|
+
"pytest-xdist>=3.8",
|
|
89
|
+
"python-dotenv>=1.2",
|
|
90
90
|
]
|
|
91
91
|
|
|
92
92
|
# Dynamic configuration for setuptools
|
|
@@ -129,7 +129,7 @@ commit = false
|
|
|
129
129
|
# Additional arguments to pass to the git commit command
|
|
130
130
|
commit_args = "--no-verify"
|
|
131
131
|
# The current version of the project
|
|
132
|
-
current_version = "5.0.
|
|
132
|
+
current_version = "5.0.1-dev0"
|
|
133
133
|
# The commit message template used when committing version bumps
|
|
134
134
|
message = "Version updated from {current_version} to {new_version}"
|
|
135
135
|
# Regular expression for parsing version strings
|
|
@@ -250,6 +250,7 @@ ignore = [
|
|
|
250
250
|
"PLR0912", # Too many branches
|
|
251
251
|
"PLR0913", # Too many arguments in function definition
|
|
252
252
|
"PLR0915", # Too many statements
|
|
253
|
+
"PLR0917", # Too many positional arguments in function definition
|
|
253
254
|
"PT006", # Wrong name(s) type in ..., expected ...
|
|
254
255
|
"TC001", # Move application import ... into a type-checking block
|
|
255
256
|
"TC003", # Move standard library import ... into a type-checking block
|
|
@@ -683,7 +683,7 @@ class TransformABC(ABC):
|
|
|
683
683
|
|
|
684
684
|
def _transform_value_callable(
|
|
685
685
|
self, value: dict | list | str, c: Callable | PredefinedFunctionModel, kwargs=None
|
|
686
|
-
) -> str |
|
|
686
|
+
) -> str | list[str] | None:
|
|
687
687
|
"""Transform values in the TI data."""
|
|
688
688
|
# find signature of method and call with correct args
|
|
689
689
|
if isinstance(c, PredefinedFunctionModel):
|
{tcex-5.0.0.dev4 → tcex-5.0.1.dev0}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py
RENAMED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"""Utility to load transform files."""
|
|
2
2
|
|
|
3
3
|
# ruff: noqa: TRY301
|
|
4
|
+
# standard library
|
|
4
5
|
import json
|
|
5
6
|
import logging
|
|
6
7
|
from inspect import signature
|
|
7
|
-
from typing import Literal
|
|
8
|
+
from typing import Any, Literal
|
|
8
9
|
|
|
10
|
+
# first-party
|
|
9
11
|
from tcex.api.tc.ti_transform.model.transform_model import (
|
|
12
|
+
AssociatedIndicatorFromGroupTransform,
|
|
13
|
+
AssociatedIndicatorFromIndicatorTransform,
|
|
14
|
+
AttributeTransformModel,
|
|
15
|
+
FileOccurrenceTransformModel,
|
|
10
16
|
GroupTransformModel,
|
|
11
17
|
IndicatorTransformModel,
|
|
12
18
|
)
|
|
@@ -34,25 +40,24 @@ class LoadTransform:
|
|
|
34
40
|
def load_transform(
|
|
35
41
|
self,
|
|
36
42
|
mapping_json: dict,
|
|
37
|
-
) -> GroupTransformModel | IndicatorTransformModel:
|
|
43
|
+
) -> GroupTransformModel | IndicatorTransformModel: # type: ignore
|
|
38
44
|
"""Load and process the transform mapping JSON."""
|
|
39
45
|
metadata = mapping_json.pop('metadata', {})
|
|
40
46
|
ti_type = metadata['threatIntelType']
|
|
41
47
|
# transformSchemaVersion = metadata.get('transformSchemaVersion', '1')
|
|
42
48
|
match ti_type:
|
|
43
49
|
case 'group':
|
|
44
|
-
return GroupTransformModel(
|
|
50
|
+
return GroupTransformModel(
|
|
51
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
52
|
+
)
|
|
45
53
|
case 'indicator':
|
|
46
54
|
return IndicatorTransformModel(
|
|
47
|
-
**self._transform_data(self._normalize(mapping_json))
|
|
55
|
+
**self._transform_data(self._normalize(mapping_json), ti_type)
|
|
48
56
|
)
|
|
49
|
-
case _:
|
|
50
|
-
msg = f'Unknown transform type: {ti_type}'
|
|
51
|
-
raise TypeError(msg)
|
|
52
57
|
|
|
53
|
-
def _normalize(self, data: dict) -> dict:
|
|
58
|
+
def _normalize(self, data: dict) -> dict[str, Any]:
|
|
54
59
|
"""Normalize the transform data."""
|
|
55
|
-
normalized = {}
|
|
60
|
+
normalized: dict[str, Any] = {}
|
|
56
61
|
for key, value in data.items():
|
|
57
62
|
normalized_key = self.util.camel_to_snake(key)
|
|
58
63
|
if isinstance(value, dict):
|
|
@@ -66,9 +71,9 @@ class LoadTransform:
|
|
|
66
71
|
|
|
67
72
|
return normalized
|
|
68
73
|
|
|
69
|
-
def _transform_data(self, body: dict) -> dict:
|
|
74
|
+
def _transform_data(self, body: dict[str, Any], ti_type: str) -> dict:
|
|
70
75
|
"""Transform the data."""
|
|
71
|
-
fields_copy = {**body}
|
|
76
|
+
fields_copy: dict[str, Any] = {**body}
|
|
72
77
|
fields_copy.pop('associated_indicators', None)
|
|
73
78
|
|
|
74
79
|
transform_data = {}
|
|
@@ -114,6 +119,7 @@ class LoadTransform:
|
|
|
114
119
|
af
|
|
115
120
|
in (
|
|
116
121
|
'type',
|
|
122
|
+
'indicator_type',
|
|
117
123
|
'value',
|
|
118
124
|
'summary',
|
|
119
125
|
'association_type',
|
|
@@ -140,6 +146,17 @@ class LoadTransform:
|
|
|
140
146
|
|
|
141
147
|
self._translate_processing_function(field[af])
|
|
142
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
|
+
|
|
143
160
|
transform_data.setdefault(field_key, []).append(field)
|
|
144
161
|
except Exception:
|
|
145
162
|
# best effort to continue processing other items
|
|
@@ -248,7 +265,7 @@ class LoadTransform:
|
|
|
248
265
|
"""Translate a function definition in transform builder/API format to an actual function."""
|
|
249
266
|
# convert transform function names to callables
|
|
250
267
|
transforms_with_callable = []
|
|
251
|
-
for function in mapping.get('transform'
|
|
268
|
+
for function in mapping.get('transform') or []:
|
|
252
269
|
transforms_with_callable.append(self._function_name_to_callable(function))
|
|
253
270
|
if transforms_with_callable:
|
|
254
271
|
mapping['transform'] = transforms_with_callable
|
|
@@ -180,9 +180,16 @@ class BatchCleaner:
|
|
|
180
180
|
if fname:
|
|
181
181
|
keys.add(f'filename:{fname.lower()}')
|
|
182
182
|
return keys
|
|
183
|
+
|
|
183
184
|
if self.deduplicate_indicators:
|
|
185
|
+
# some IOC values are not case-senstive, handle those seperately.
|
|
186
|
+
if item.get('type') in {'ASN', 'CIDR', 'Hashtag', 'Host'}:
|
|
187
|
+
summary = item.get('summary')
|
|
188
|
+
return {summary.casefold()} if summary else set()
|
|
189
|
+
|
|
184
190
|
summary = item.get('summary')
|
|
185
191
|
return {summary} if summary else set()
|
|
192
|
+
|
|
186
193
|
return set()
|
|
187
194
|
|
|
188
195
|
@staticmethod
|
|
@@ -441,7 +448,7 @@ class BatchCleaner:
|
|
|
441
448
|
Returns:
|
|
442
449
|
A set of individual hash strings with whitespace stripped.
|
|
443
450
|
"""
|
|
444
|
-
return {h.strip() for h in summary.split(' : ') if h.strip()}
|
|
451
|
+
return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
|
|
445
452
|
|
|
446
453
|
@cached_property
|
|
447
454
|
def naics_tags(self) -> NAICSTags:
|
|
@@ -138,8 +138,11 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
138
138
|
)
|
|
139
139
|
_code.extend(
|
|
140
140
|
[
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
(
|
|
142
|
+
f"""{self.i2}{filter_data.keyword.snake_case()} = self.util."""
|
|
143
|
+
f"""any_to_datetime({filter_data.keyword.snake_case()})"""
|
|
144
|
+
f""".strftime('%Y-%m-%d %H:%M:%S')"""
|
|
145
|
+
)
|
|
143
146
|
]
|
|
144
147
|
)
|
|
145
148
|
|
|
@@ -150,10 +153,12 @@ class GenerateFilterABC(GenerateABC, ABC):
|
|
|
150
153
|
f"""{self.i2}if isinstance({filter_data.keyword.snake_case()}, list) """
|
|
151
154
|
"""and operator not in self.list_types:"""
|
|
152
155
|
),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
(
|
|
157
|
+
f"""{self.i3}ex_msg = ("""
|
|
158
|
+
f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
|
|
159
|
+
f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
|
|
160
|
+
f"""{self.i4})"""
|
|
161
|
+
),
|
|
157
162
|
f"""{self.i3}raise RuntimeError(ex_msg)""",
|
|
158
163
|
'',
|
|
159
164
|
]
|
|
@@ -513,8 +513,10 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
513
513
|
f'{self.i2}if all(isinstance(item, ({model_class} | ObjectABC)) for item in data):',
|
|
514
514
|
f'{self.i3}transformed_data = data',
|
|
515
515
|
f'{self.i2}elif all(isinstance(item, dict) for item in data):',
|
|
516
|
-
|
|
517
|
-
|
|
516
|
+
(
|
|
517
|
+
f'{self.i3}transformed_data = '
|
|
518
|
+
f'[{model_class}(**d) for d in data] # ty: ignore[invalid-argument-type]'
|
|
519
|
+
),
|
|
518
520
|
f'{self.i2}else:',
|
|
519
521
|
f'{self.i3}ex_msg = "Invalid data to replace_{model_type.singular()}"',
|
|
520
522
|
f'{self.i3}raise ValueError(ex_msg)',
|
|
@@ -700,8 +702,10 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
700
702
|
f'{self.i2}if isinstance(data, AssigneeModel):',
|
|
701
703
|
f'{self.i3}self.model.assignee = data',
|
|
702
704
|
f'{self.i2}elif isinstance(',
|
|
703
|
-
|
|
704
|
-
|
|
705
|
+
(
|
|
706
|
+
f'{self.i3}data, AssigneeUserModel | AssigneeUserGroupModel '
|
|
707
|
+
f'| UserModel | UserGroupModel'
|
|
708
|
+
),
|
|
705
709
|
f'{self.i2}):',
|
|
706
710
|
f'{self.i3}self.model.assignee.data = data # type: ignore',
|
|
707
711
|
# f'{self.i2}data._staged = True
|
|
@@ -205,22 +205,6 @@ class GroupFilter(FilterABC):
|
|
|
205
205
|
|
|
206
206
|
self._tql.add_filter('documentType', operator, document_type, TqlType.STRING)
|
|
207
207
|
|
|
208
|
-
def downvote_count(self, operator: Enum, downvote_count: int | list):
|
|
209
|
-
"""Filter Downvote Count based on **downvoteCount** keyword.
|
|
210
|
-
|
|
211
|
-
Args:
|
|
212
|
-
operator: The operator enum for the filter.
|
|
213
|
-
downvote_count: The number of downvotes the group has received.
|
|
214
|
-
"""
|
|
215
|
-
if isinstance(downvote_count, list) and operator not in self.list_types:
|
|
216
|
-
ex_msg = (
|
|
217
|
-
'Operator must be CONTAINS, NOT_CONTAINS, IN'
|
|
218
|
-
'or NOT_IN when filtering on a list of values.'
|
|
219
|
-
)
|
|
220
|
-
raise RuntimeError(ex_msg)
|
|
221
|
-
|
|
222
|
-
self._tql.add_filter('downvoteCount', operator, downvote_count, TqlType.INTEGER)
|
|
223
|
-
|
|
224
208
|
def email_date(self, operator: Enum, email_date: Arrow | datetime | int | str):
|
|
225
209
|
"""Filter Date (Email) based on **emailDate** keyword.
|
|
226
210
|
|
|
@@ -981,22 +965,6 @@ class GroupFilter(FilterABC):
|
|
|
981
965
|
|
|
982
966
|
self._tql.add_filter('typeName', operator, type_name, TqlType.STRING)
|
|
983
967
|
|
|
984
|
-
def upvote_count(self, operator: Enum, upvote_count: int | list):
|
|
985
|
-
"""Filter Upvote Count based on **upvoteCount** keyword.
|
|
986
|
-
|
|
987
|
-
Args:
|
|
988
|
-
operator: The operator enum for the filter.
|
|
989
|
-
upvote_count: The number of upvotes the group has received.
|
|
990
|
-
"""
|
|
991
|
-
if isinstance(upvote_count, list) and operator not in self.list_types:
|
|
992
|
-
ex_msg = (
|
|
993
|
-
'Operator must be CONTAINS, NOT_CONTAINS, IN'
|
|
994
|
-
'or NOT_IN when filtering on a list of values.'
|
|
995
|
-
)
|
|
996
|
-
raise RuntimeError(ex_msg)
|
|
997
|
-
|
|
998
|
-
self._tql.add_filter('upvoteCount', operator, upvote_count, TqlType.INTEGER)
|
|
999
|
-
|
|
1000
968
|
def victim_asset(self, operator: Enum, victim_asset: list | str):
|
|
1001
969
|
"""Filter victimAsset based on **victimAsset** keyword.
|
|
1002
970
|
|
|
@@ -24,6 +24,24 @@ class GroupModel(
|
|
|
24
24
|
_shared_type: bool = PrivateAttr(default=False)
|
|
25
25
|
_staged: bool = PrivateAttr(default=False)
|
|
26
26
|
|
|
27
|
+
ai_last_retrieval_date: datetime | None = Field(
|
|
28
|
+
default=None,
|
|
29
|
+
description='The date and time that the AI insight was produced in the external system.',
|
|
30
|
+
title='aiLastRetrievalDate',
|
|
31
|
+
validate_default=True,
|
|
32
|
+
json_schema_extra={
|
|
33
|
+
'applies_to': ['Document', 'Report', 'Event'],
|
|
34
|
+
'methods': ['POST', 'PUT'],
|
|
35
|
+
},
|
|
36
|
+
)
|
|
37
|
+
ai_provider: str | None = Field(
|
|
38
|
+
default=None,
|
|
39
|
+
description='The provider of the AI generated insights.',
|
|
40
|
+
frozen=True,
|
|
41
|
+
title='aiProvider',
|
|
42
|
+
validate_default=True,
|
|
43
|
+
json_schema_extra={'applies_to': ['Document', 'Report', 'Event']},
|
|
44
|
+
)
|
|
27
45
|
assignments: TaskAssigneesModel | None = Field(
|
|
28
46
|
default=None,
|
|
29
47
|
description=(
|
|
@@ -87,6 +87,16 @@ class IndicatorModel(
|
|
|
87
87
|
validate_default=True,
|
|
88
88
|
json_schema_extra={'methods': ['POST', 'PUT']},
|
|
89
89
|
)
|
|
90
|
+
cal_last_checked: datetime | None = Field(
|
|
91
|
+
default=None,
|
|
92
|
+
description=(
|
|
93
|
+
'The date/time CAL was last consulted for this indicator; null means CAL has never been'
|
|
94
|
+
' checked.'
|
|
95
|
+
),
|
|
96
|
+
frozen=True,
|
|
97
|
+
title='calLastChecked',
|
|
98
|
+
validate_default=True,
|
|
99
|
+
)
|
|
90
100
|
cal_score: int | None = Field(
|
|
91
101
|
default=None,
|
|
92
102
|
description='The CAL score for this indicator.',
|
|
@@ -60,7 +60,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
60
60
|
ex_msg = 'Child class must implement this property.'
|
|
61
61
|
raise NotImplementedError(ex_msg)
|
|
62
62
|
|
|
63
|
-
def _calculate_unique_id(self) -> dict[str, int | str]:
|
|
63
|
+
def _calculate_unique_id(self, encode_value: bool = False) -> dict[str, int | str]:
|
|
64
64
|
if self.model.id:
|
|
65
65
|
return {'filter': 'id', 'value': self.model.id}
|
|
66
66
|
|
|
@@ -69,7 +69,10 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
69
69
|
return {'filter': 'xid', 'value': cast('str', self.model.xid)}
|
|
70
70
|
|
|
71
71
|
if self.type_.lower() in ['indicator']:
|
|
72
|
-
|
|
72
|
+
value = self.model.summary # type: ignore
|
|
73
|
+
if encode_value and value is not None:
|
|
74
|
+
value = urllib.parse.quote(str(value), safe='')
|
|
75
|
+
return {'filter': 'summary', 'value': value}
|
|
73
76
|
|
|
74
77
|
return {}
|
|
75
78
|
|
|
@@ -96,12 +99,15 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
96
99
|
unique_id_data.get('filter'), # type: ignore
|
|
97
100
|
)(TqlOperator.EQ, unique_id_data.get('value'))
|
|
98
101
|
|
|
102
|
+
# unique_id is later spliced into a URL by the generated remove() method - must be encoded.
|
|
103
|
+
parent_unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
104
|
+
|
|
99
105
|
# return the sub object, injecting the parent data
|
|
100
106
|
for obj in sublist:
|
|
101
107
|
obj._parent_data = { # noqa: SLF001
|
|
102
108
|
'api_endpoint': self._api_endpoint,
|
|
103
109
|
'type': self.type_,
|
|
104
|
-
'unique_id':
|
|
110
|
+
'unique_id': parent_unique_id,
|
|
105
111
|
}
|
|
106
112
|
yield obj
|
|
107
113
|
self.request = sublist.request
|
|
@@ -218,7 +224,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
218
224
|
body = self.model.gen_body_json(method)
|
|
219
225
|
|
|
220
226
|
# get the unique id value for id, xid, summary, etc ...
|
|
221
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
227
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
222
228
|
|
|
223
229
|
# validate an id is available
|
|
224
230
|
self._validate_id(unique_id, self.url(method, unique_id))
|
|
@@ -282,7 +288,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
282
288
|
params = self.gen_params(params) if params else None
|
|
283
289
|
|
|
284
290
|
# get the unique id value for id, xid, summary, etc ...
|
|
285
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
291
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
286
292
|
|
|
287
293
|
# validate an id is available
|
|
288
294
|
self._validate_id(unique_id, self.url(method, unique_id))
|
|
@@ -412,10 +418,10 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
412
418
|
params = self.gen_params(params) if params else None
|
|
413
419
|
|
|
414
420
|
# get the unique id value for id, xid, summary, etc ...
|
|
415
|
-
unique_id = self._calculate_unique_id().get('value')
|
|
421
|
+
unique_id = self._calculate_unique_id(encode_value=True).get('value')
|
|
416
422
|
|
|
417
423
|
# validate an id is available
|
|
418
|
-
self._validate_id(unique_id, self.url(method))
|
|
424
|
+
self._validate_id(unique_id, self.url(method, unique_id))
|
|
419
425
|
|
|
420
426
|
self._request(
|
|
421
427
|
method,
|
|
@@ -434,7 +440,7 @@ class ObjectABC(ABC): # noqa: B024
|
|
|
434
440
|
|
|
435
441
|
def url(self, method: str, unique_id: int | str | None = None) -> str:
|
|
436
442
|
"""Return the proper URL."""
|
|
437
|
-
unique_id = unique_id or self._calculate_unique_id().get('value')
|
|
443
|
+
unique_id = unique_id or self._calculate_unique_id(encode_value=True).get('value')
|
|
438
444
|
if method in ['DELETE', 'GET', 'PUT']:
|
|
439
445
|
return f'{self._api_endpoint}/{unique_id}'
|
|
440
446
|
return self._api_endpoint
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
|
-
import datetime
|
|
3
|
+
import datetime as dt
|
|
4
4
|
import hashlib
|
|
5
5
|
import json
|
|
6
6
|
import logging
|
|
@@ -28,7 +28,7 @@ class CustomJSONEncoder(JSONEncoder):
|
|
|
28
28
|
'Please verify that the object has been converted to a dictionary.'
|
|
29
29
|
)
|
|
30
30
|
raise ValueError(ex_msg) # noqa: TRY004
|
|
31
|
-
if isinstance(o,
|
|
31
|
+
if isinstance(o, dt.date | dt.datetime):
|
|
32
32
|
return o.isoformat()
|
|
33
33
|
return o
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
|
-
import datetime
|
|
3
|
+
import datetime as dt
|
|
4
4
|
import logging
|
|
5
5
|
from types import FunctionType
|
|
6
6
|
from typing import TYPE_CHECKING, Any, cast
|
|
@@ -76,11 +76,11 @@ class Benchmark:
|
|
|
76
76
|
**kwargs: Additional keyword arguments.
|
|
77
77
|
"""
|
|
78
78
|
|
|
79
|
-
before =
|
|
79
|
+
before = dt.datetime.now(dt.UTC)
|
|
80
80
|
data = wrapped(*args, **kwargs)
|
|
81
|
-
after =
|
|
81
|
+
after = dt.datetime.now(dt.UTC)
|
|
82
82
|
delta = after - before
|
|
83
|
-
if delta >
|
|
83
|
+
if delta > dt.timedelta(
|
|
84
84
|
microseconds=self.microseconds, milliseconds=self.milliseconds, seconds=self.seconds
|
|
85
85
|
):
|
|
86
86
|
# wrapt always wraps a function/method, which has __name__; cast for ty
|
|
@@ -117,13 +117,16 @@ class AdvancedRequest:
|
|
|
117
117
|
# configure params
|
|
118
118
|
self.configure_params()
|
|
119
119
|
|
|
120
|
+
# coerce the HTTP method (EditChoice | None) to a plain str
|
|
121
|
+
method = str(self.model.tc_adv_req_http_method or 'GET')
|
|
122
|
+
|
|
120
123
|
# make http request
|
|
121
124
|
try:
|
|
122
125
|
response = self.session.request(
|
|
123
126
|
allow_redirects=self.allow_redirects,
|
|
124
127
|
data=self.data,
|
|
125
128
|
headers=self.headers,
|
|
126
|
-
method=
|
|
129
|
+
method=method,
|
|
127
130
|
params=self.params,
|
|
128
131
|
timeout=self.timeout,
|
|
129
132
|
url=self.model.tc_adv_req_path,
|
|
@@ -167,12 +167,11 @@ class PlaybookCreate:
|
|
|
167
167
|
|
|
168
168
|
if isinstance(value, BaseModel):
|
|
169
169
|
# Support both Pydantic v1 and v2
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
value =
|
|
170
|
+
model_dump = getattr(value, 'model_dump', None)
|
|
171
|
+
if callable(model_dump):
|
|
172
|
+
value = model_dump(exclude_unset=True) # Pydantic v2
|
|
173
173
|
else:
|
|
174
|
-
# Pydantic v1
|
|
175
|
-
value = value.dict(exclude_unset=True)
|
|
174
|
+
value = value.dict(exclude_unset=True) # Pydantic v1
|
|
176
175
|
|
|
177
176
|
# due to the need to support pydantic v1 and v2, the type checker cannot determine
|
|
178
177
|
# that value is a dict at this point.
|
|
@@ -32,11 +32,17 @@ class Binary(bytes):
|
|
|
32
32
|
@classmethod
|
|
33
33
|
def __get_pydantic_core_schema__(
|
|
34
34
|
cls, source: type[Any], handler: GetCoreSchemaHandler
|
|
35
|
-
) -> core_schema.
|
|
35
|
+
) -> core_schema.CoreSchema:
|
|
36
36
|
"""Run validators / modifiers on input."""
|
|
37
|
+
if isinstance(source, type) and issubclass(source, bytes):
|
|
38
|
+
base_schema: core_schema.CoreSchema = core_schema.bytes_schema(
|
|
39
|
+
max_length=cls.max_length, min_length=cls.min_length
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
base_schema = handler(source)
|
|
37
43
|
return core_schema.with_info_after_validator_function(
|
|
38
44
|
cls._validate,
|
|
39
|
-
|
|
45
|
+
base_schema,
|
|
40
46
|
field_name=handler.field_name,
|
|
41
47
|
)
|
|
42
48
|
|
|
@@ -55,10 +61,10 @@ class Binary(bytes):
|
|
|
55
61
|
return value
|
|
56
62
|
|
|
57
63
|
@classmethod
|
|
58
|
-
def validate_type(cls, value:
|
|
64
|
+
def validate_type(cls, value: object, field_name: str) -> bytes:
|
|
59
65
|
"""Raise exception if value is not a Binary type."""
|
|
60
66
|
if not isinstance(value, bytes):
|
|
61
|
-
raise InvalidType(field_name, type(value))
|
|
67
|
+
raise InvalidType(field_name, 'bytes', type(value).__name__)
|
|
62
68
|
return value
|
|
63
69
|
|
|
64
70
|
|
|
@@ -149,9 +149,13 @@ class EditChoice(str):
|
|
|
149
149
|
- Ensures field_name is available during validation for error reporting
|
|
150
150
|
- Integrates seamlessly with Pydantic's validation system
|
|
151
151
|
"""
|
|
152
|
+
if isinstance(source, type) and issubclass(source, str):
|
|
153
|
+
base_schema: core_schema.CoreSchema = core_schema.str_schema()
|
|
154
|
+
else:
|
|
155
|
+
base_schema = handler(source)
|
|
152
156
|
return core_schema.with_info_after_validator_function(
|
|
153
157
|
cls._validate,
|
|
154
|
-
|
|
158
|
+
base_schema,
|
|
155
159
|
field_name=handler.field_name,
|
|
156
160
|
)
|
|
157
161
|
|
|
@@ -186,7 +190,7 @@ class EditChoice(str):
|
|
|
186
190
|
return value.strip()
|
|
187
191
|
|
|
188
192
|
@classmethod
|
|
189
|
-
def validate_type(cls, value:
|
|
193
|
+
def validate_type(cls, value: object, field_name: str) -> str:
|
|
190
194
|
"""Validate that the input value is of string type.
|
|
191
195
|
|
|
192
196
|
This method performs type validation to ensure that the input value is
|
|
@@ -225,7 +229,7 @@ class EditChoice(str):
|
|
|
225
229
|
raise InvalidType(
|
|
226
230
|
field_name=field_name,
|
|
227
231
|
expected_types='(str)',
|
|
228
|
-
provided_type=type(value),
|
|
232
|
+
provided_type=type(value).__name__,
|
|
229
233
|
)
|
|
230
234
|
return value
|
|
231
235
|
|