tcex 5.0.0.dev4__tar.gz → 5.0.1__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}/PKG-INFO +15 -15
- {tcex-5.0.0.dev4 → tcex-5.0.1}/pyproject.toml +29 -28
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/__metadata__.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_abc.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +29 -12
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_cleaner.py +52 -6
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_args_abc.py +2 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +11 -6
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_object_abc.py +14 -6
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_management/case_management.py +7 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/cases/case.py +4 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/groups/group_filter.py +0 -32
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/groups/group_model.py +18 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator_model.py +10 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/object_abc.py +14 -8
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner.py +3 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task.py +4 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/v3_model_abc.py +2 -2
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/benchmark.py +4 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/advanced_request.py +4 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/playbook_create.py +4 -3
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/binary.py +10 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/edit_choice.py +7 -3
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/integer.py +12 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/ip_address.py +6 -2
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/sensitive.py +9 -5
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/string.py +10 -4
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/input.py +1 -1
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/cached_property.py +8 -3
- {tcex-5.0.0.dev4 → tcex-5.0.1/tcex.egg-info}/PKG-INFO +15 -15
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex.egg-info/SOURCES.txt +4 -1
- tcex-5.0.1/tcex.egg-info/requires.txt +16 -0
- tcex-5.0.1/tests/test_instance_data.py +413 -0
- tcex-5.0.1/tests/test_mock_app_service_id.py +171 -0
- tcex-5.0.1/tests/test_mock_app_token_url.py +126 -0
- tcex-5.0.0.dev4/tcex.egg-info/requires.txt +0 -16
- {tcex-5.0.0.dev4 → tcex-5.0.1}/LICENSE +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/README.md +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/setup.cfg +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/api.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/tc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/ti_transform.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/util/threat_intel_util.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/batch_writer.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/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}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_gen_model_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_extra_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_filter_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/artifacts/artifact_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/cases/case_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/cases/case_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/groups/group.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/indicators/indicator_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/results/result_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/notes/note.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/notes/note_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/object_collection_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_user_group_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/assignee_user_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/owners/owner_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/system_roles/system_role_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/task_assignee_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/user_groups/user_group_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security/users/user_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/security_labels/security_label_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tags/tag_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tasks/task_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/victims/victim_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/app.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/app_spec_yml.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/install_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/install_json_update.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/job_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/layout_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/app_spec_yml_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/install_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/job_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/layout_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/permutation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/tcex_json.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/debug.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/fail_on_output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/on_exception.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/on_success.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/decorator/output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/key_value_redis.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/playbook.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/playbook/playbook_read.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/api_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/common_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/common_service_trigger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/mqtt_message_broker.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/service/webhook_trigger_service.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/token/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/app/token/token.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/exit/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/exit/error_code.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/exit/exit.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/choice.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/datetime.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/exception.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/key_value.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/field_type/validator.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/api_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_external_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_system_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/batch_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/cert_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/common_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/create_config_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/logging_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/model_map.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/module_app_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/organization_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/path_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/playbook_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/proxy_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/service_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/api_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/cache_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/logger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/logger/trace_logger.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/cached_property_filesystem.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/event.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/exception_thread.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_custom.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_array_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_base.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_math_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/jmespath_functions_string_mixin.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/none_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/proxies.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/scoped_property.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/pleb/singleton.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/registry.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_external/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_external/external_session.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_external/requests_external.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/auth/hmac_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/auth/tc_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/auth/token_auth.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/requests_tc.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/requests_tc/tc_session.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/tcex.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/aes_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/code_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/datetime_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/file_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/model/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/render/__init__.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/render/render.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/render/render_panel.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/render/render_prompt.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/render/render_table.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/requests_to_curl.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/string_operation.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/util.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex/util/variable.py +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-5.0.0.dev4 → tcex-5.0.1}/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
|
|
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"
|
|
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}/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-sensitive, handle those separately.
|
|
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
|
|
@@ -224,6 +231,38 @@ class BatchCleaner:
|
|
|
224
231
|
if formatted:
|
|
225
232
|
tag['name'] = formatted
|
|
226
233
|
|
|
234
|
+
@staticmethod
|
|
235
|
+
def _utf16_length(value: str) -> int:
|
|
236
|
+
"""Return the length of a string in UTF-16 code units.
|
|
237
|
+
|
|
238
|
+
ThreatConnect enforces attribute length in UTF-16 code units (like Java
|
|
239
|
+
``String.length``), not Python code points. Characters outside the BMP (emoji,
|
|
240
|
+
math alphanumerics) are one Python character but two UTF-16 code units.
|
|
241
|
+
|
|
242
|
+
Args:
|
|
243
|
+
value: The string to measure.
|
|
244
|
+
|
|
245
|
+
Returns:
|
|
246
|
+
The number of UTF-16 code units. Lone surrogates are counted, not rejected.
|
|
247
|
+
"""
|
|
248
|
+
return len(value.encode('utf-16-le', 'surrogatepass')) // 2
|
|
249
|
+
|
|
250
|
+
@staticmethod
|
|
251
|
+
def _utf16_cut(value: str, units: int) -> str:
|
|
252
|
+
"""Return the longest prefix of value that fits in the given UTF-16 code units.
|
|
253
|
+
|
|
254
|
+
A surrogate pair is never split; a dangling high surrogate is dropped.
|
|
255
|
+
|
|
256
|
+
Args:
|
|
257
|
+
value: The string to cut.
|
|
258
|
+
units: The maximum number of UTF-16 code units to keep.
|
|
259
|
+
|
|
260
|
+
Returns:
|
|
261
|
+
The prefix, at most ``units`` UTF-16 code units long.
|
|
262
|
+
"""
|
|
263
|
+
encoded = value.encode('utf-16-le', 'surrogatepass')[: max(units, 0) * 2]
|
|
264
|
+
return encoded.decode('utf-16-le', errors='ignore')
|
|
265
|
+
|
|
227
266
|
@staticmethod
|
|
228
267
|
def auto_truncate_attribute(
|
|
229
268
|
attribute_type: str,
|
|
@@ -233,6 +272,11 @@ class BatchCleaner:
|
|
|
233
272
|
) -> str:
|
|
234
273
|
"""Truncate attribute value if it exceeds the maximum length for its type.
|
|
235
274
|
|
|
275
|
+
Length is measured and cut in UTF-16 code units, not Python code points, because
|
|
276
|
+
ThreatConnect enforces the limit in UTF-16 code units. Measuring in code points
|
|
277
|
+
would leave values containing astral characters (emoji, math alphanumerics) over
|
|
278
|
+
the limit after truncation.
|
|
279
|
+
|
|
236
280
|
Args:
|
|
237
281
|
attribute_type: The name of the attribute type.
|
|
238
282
|
attribute_value: The attribute value to potentially truncate.
|
|
@@ -240,7 +284,8 @@ class BatchCleaner:
|
|
|
240
284
|
ellipsis: The string to append when truncating. Defaults to '...'.
|
|
241
285
|
|
|
242
286
|
Returns:
|
|
243
|
-
The original value if within limits, or the truncated
|
|
287
|
+
The original value if within limits (in UTF-16 code units), or the truncated
|
|
288
|
+
value with ellipsis, never exceeding the limit in UTF-16 code units.
|
|
244
289
|
"""
|
|
245
290
|
config = attribute_config.get(attribute_type)
|
|
246
291
|
if not config:
|
|
@@ -253,13 +298,14 @@ class BatchCleaner:
|
|
|
253
298
|
if not isinstance(attribute_value, str):
|
|
254
299
|
return attribute_value
|
|
255
300
|
|
|
256
|
-
if
|
|
301
|
+
if BatchCleaner._utf16_length(attribute_value) <= max_length:
|
|
257
302
|
return attribute_value
|
|
258
303
|
|
|
259
|
-
|
|
260
|
-
|
|
304
|
+
ellipsis_length = BatchCleaner._utf16_length(ellipsis)
|
|
305
|
+
if max_length <= ellipsis_length:
|
|
306
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length)
|
|
261
307
|
|
|
262
|
-
return attribute_value
|
|
308
|
+
return BatchCleaner._utf16_cut(attribute_value, max_length - ellipsis_length) + ellipsis
|
|
263
309
|
|
|
264
310
|
@staticmethod
|
|
265
311
|
def clean_attributes(
|
|
@@ -441,7 +487,7 @@ class BatchCleaner:
|
|
|
441
487
|
Returns:
|
|
442
488
|
A set of individual hash strings with whitespace stripped.
|
|
443
489
|
"""
|
|
444
|
-
return {h.strip() for h in summary.split(' : ') if h.strip()}
|
|
490
|
+
return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
|
|
445
491
|
|
|
446
492
|
@cached_property
|
|
447
493
|
def naics_tags(self) -> NAICSTags:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
3
|
import importlib
|
|
4
|
+
import json
|
|
4
5
|
from abc import ABC
|
|
5
6
|
from typing import Any
|
|
6
7
|
|
|
@@ -69,7 +70,7 @@ class GenerateArgsABC(GenerateABC, ABC):
|
|
|
69
70
|
elif 'properties' in schema:
|
|
70
71
|
properties = schema['properties']
|
|
71
72
|
else:
|
|
72
|
-
Render.panel.failure(
|
|
73
|
+
Render.panel.failure(json.dumps(schema, indent=2))
|
|
73
74
|
|
|
74
75
|
# iterate over properties to build docstring
|
|
75
76
|
for arg, prop_data in properties.items():
|
|
@@ -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
|
]
|
|
@@ -59,7 +59,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
59
59
|
def cached_dict(self) -> dict[str, dict]:
|
|
60
60
|
'''Return cached data as a dict keyed by name.'''
|
|
61
61
|
return {
|
|
62
|
-
at.model.name: at.model.
|
|
62
|
+
at.model.name: at.model.model_dump()
|
|
63
63
|
for at in self.iterate(base_class=AttributeType)
|
|
64
64
|
if at.model.name
|
|
65
65
|
}
|
|
@@ -83,7 +83,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
83
83
|
f'{self.i1}def cached_dict(self) -> dict[str, dict]:',
|
|
84
84
|
f'{self.i2}"""Return cached data as a dict keyed by name."""',
|
|
85
85
|
f'{self.i2}return {{',
|
|
86
|
-
f'{self.i3}at.model.{key_field}: at.model.
|
|
86
|
+
f'{self.i3}at.model.{key_field}: at.model.model_dump()',
|
|
87
87
|
f'{self.i3}for at in self.iterate(base_class={base_class})',
|
|
88
88
|
f'{self.i3}if at.model.{key_field}',
|
|
89
89
|
f'{self.i2}}}',
|
|
@@ -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,9 +702,15 @@ 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}):',
|
|
710
|
+
f'{self.i3}if type.lower() == "user":',
|
|
711
|
+
f'{self.i4}self.model.assignee.type = "User" # type: ignore',
|
|
712
|
+
f'{self.i3}elif type.lower() == "group":',
|
|
713
|
+
f'{self.i4}self.model.assignee.type = "Group" # type: ignore',
|
|
706
714
|
f'{self.i3}self.model.assignee.data = data # type: ignore',
|
|
707
715
|
# f'{self.i2}data._staged = True
|
|
708
716
|
# f'{self.i2}self.model.assignee._staged = True
|
|
@@ -87,7 +87,7 @@ class AttributeTypes(ObjectCollectionABC):
|
|
|
87
87
|
def cached_dict(self) -> dict[str, dict]:
|
|
88
88
|
"""Return cached data as a dict keyed by name."""
|
|
89
89
|
return {
|
|
90
|
-
at.model.name: at.model.
|
|
90
|
+
at.model.name: at.model.model_dump()
|
|
91
91
|
for at in self.iterate(base_class=AttributeType)
|
|
92
92
|
if at.model.name
|
|
93
93
|
}
|
|
@@ -23,7 +23,13 @@ class CaseManagement:
|
|
|
23
23
|
>>> from tcex.api.tc.v3.case_management.model.artifact_model import (
|
|
24
24
|
... ArtifactModel,
|
|
25
25
|
... )
|
|
26
|
-
>>>
|
|
26
|
+
>>> import json
|
|
27
|
+
>>> print(
|
|
28
|
+
... json.dumps(
|
|
29
|
+
... ArtifactModel.model_json_schema(by_alias=False),
|
|
30
|
+
... indent=2,
|
|
31
|
+
... )
|
|
32
|
+
... )
|
|
27
33
|
|
|
28
34
|
Args:
|
|
29
35
|
**kwargs: Additional keyword arguments.
|
|
@@ -178,6 +178,10 @@ class Case(ObjectABC):
|
|
|
178
178
|
elif isinstance(
|
|
179
179
|
data, AssigneeUserModel | AssigneeUserGroupModel | UserModel | UserGroupModel
|
|
180
180
|
):
|
|
181
|
+
if type.lower() == 'user':
|
|
182
|
+
self.model.assignee.type = 'User' # type: ignore
|
|
183
|
+
elif type.lower() == 'group':
|
|
184
|
+
self.model.assignee.type = 'Group' # type: ignore
|
|
181
185
|
self.model.assignee.data = data # type: ignore
|
|
182
186
|
self.model.assignee.data._staged = True # type: ignore # noqa: SLF001
|
|
183
187
|
|
|
@@ -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
|