tcex 4.0.11.dev5__tar.gz → 4.0.11.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tcex-4.0.11.dev5/tcex.egg-info → tcex-4.0.11.dev6}/PKG-INFO +16 -16
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/pyproject.toml +36 -37
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/__metadata__.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/ti_transform.py +8 -8
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_abc.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_builder/__init__.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/util/threat_intel_util.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/batch_cleaner.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/batch_writer.py +30 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen_abc.py +4 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen_args_abc.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen_model_abc.py +3 -5
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen_object_abc.py +6 -10
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/model/_filter_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifact_types/artifact_type.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifacts/artifact.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifacts/artifact_model.py +7 -7
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attribute_types/attribute_type.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_attributes/case_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/cases/case.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/cases/case_filter.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/cases/case_model.py +14 -14
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/group_attributes/group_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/groups/group.py +4 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/groups/group_filter.py +36 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/groups/group_model.py +23 -20
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicators/indicator.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicators/indicator_filter.py +16 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicators/indicator_model.py +10 -10
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/categories/category.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +10 -10
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/results/result.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/results/result_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/notes/note.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/notes/note_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/object_abc.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/object_collection_abc.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owner_roles/owner_role.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owners/owner.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owners/owner_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/system_roles/system_role.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/system_roles/system_role_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/task_assignee_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/user_groups/user_group.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/user_groups/user_group_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/users/user.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/users/user_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security_labels/security_label.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security_labels/security_label_model.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/tag.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/tag_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tasks/task.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tasks/task_model.py +5 -5
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/v3_model_abc.py +13 -13
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_assets/victim_asset.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victims/victim.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victims/victim_model.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_events/workflow_event.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +4 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_templates/workflow_template.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/layout_json.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/app_spec_yml_model.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/install_json_model.py +4 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/permutation.py +8 -8
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/benchmark.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/key_value_redis.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/advanced_request.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/playbook_create.py +12 -13
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/playbook_read.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/common_service_trigger.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/mqtt_message_broker.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/webhook_trigger_service.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/token/token.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/edit_choice.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/key_value.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/validator.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/input.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/api_handler.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/cached_property.py +3 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/cached_property_filesystem.py +3 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_custom.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_array_mixin.py +9 -9
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_base.py +6 -6
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_math_mixin.py +5 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_string_mixin.py +10 -10
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/proxies.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/registry.py +1 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_external/external_session.py +8 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/auth/hmac_auth.py +6 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/auth/tc_auth.py +2 -2
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/auth/token_auth.py +6 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/requests_tc.py +5 -3
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/tc_session.py +13 -13
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/code_operation.py +2 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/datetime_operation.py +2 -1
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/requests_to_curl.py +6 -4
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6/tcex.egg-info}/PKG-INFO +16 -16
- tcex-4.0.11.dev6/tcex.egg-info/requires.txt +15 -0
- tcex-4.0.11.dev5/tcex.egg-info/requires.txt +0 -15
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/LICENSE +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/README.md +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/setup.cfg +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/api.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/tc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_management/case_management.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/assignee_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/assignee_user_group_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/assignee_user_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/app.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/app_spec_yml.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/install_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/install_json_update.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/job_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/job_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/layout_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/tcex_json.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/debug.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/fail_on_output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/on_exception.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/on_success.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/decorator/output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/playbook.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/api_service.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/service/common_service.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/app/token/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/exit/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/exit/error_code.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/exit/exit.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/binary.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/choice.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/datetime.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/exception.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/integer.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/ip_address.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/sensitive.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/string.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/api_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_external_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_system_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/batch_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/cert_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/common_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/create_config_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/logging_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/model_map.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/module_app_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/organization_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/path_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/playbook_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/proxy_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/service_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/cache_handler.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/logger.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/logger/trace_logger.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/event.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/exception_thread.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/none_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/scoped_property.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/pleb/singleton.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_external/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_external/requests_external.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/tcex.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/aes_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/file_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/model/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/render/__init__.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/render/render.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/render/render_panel.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/render/render_prompt.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/render/render_table.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/string_operation.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/util.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/util/variable.py +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex.egg-info/SOURCES.txt +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tcex
|
|
3
|
-
Version: 4.0.11.
|
|
3
|
+
Version: 4.0.11.dev6
|
|
4
4
|
Summary: ThreatConnect Exchange App Framework
|
|
5
5
|
Author-email: ThreatConnect <support@threatconnect.com>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -20,21 +20,21 @@ Classifier: Topic :: Security
|
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
|
-
Requires-Dist: arrow
|
|
24
|
-
Requires-Dist: black
|
|
25
|
-
Requires-Dist: inflection
|
|
26
|
-
Requires-Dist: isort
|
|
27
|
-
Requires-Dist: jmespath
|
|
28
|
-
Requires-Dist: paho-mqtt
|
|
29
|
-
Requires-Dist: pyaes
|
|
30
|
-
Requires-Dist: pydantic
|
|
31
|
-
Requires-Dist: python-dateutil
|
|
32
|
-
Requires-Dist: pyyaml
|
|
33
|
-
Requires-Dist: redis
|
|
34
|
-
Requires-Dist: requests
|
|
35
|
-
Requires-Dist: rich
|
|
36
|
-
Requires-Dist: semantic-version
|
|
37
|
-
Requires-Dist: wrapt
|
|
23
|
+
Requires-Dist: arrow~=1.4.0
|
|
24
|
+
Requires-Dist: black~=26.5.1
|
|
25
|
+
Requires-Dist: inflection~=0.5.1
|
|
26
|
+
Requires-Dist: isort~=8.0.1
|
|
27
|
+
Requires-Dist: jmespath~=1.1.0
|
|
28
|
+
Requires-Dist: paho-mqtt~=2.1.0
|
|
29
|
+
Requires-Dist: pyaes~=1.6.1
|
|
30
|
+
Requires-Dist: pydantic~=1.10.26
|
|
31
|
+
Requires-Dist: python-dateutil~=2.9.0.post0
|
|
32
|
+
Requires-Dist: pyyaml~=6.0.3
|
|
33
|
+
Requires-Dist: redis~=8.0.0
|
|
34
|
+
Requires-Dist: requests~=2.34.2
|
|
35
|
+
Requires-Dist: rich~=15.0.0
|
|
36
|
+
Requires-Dist: semantic-version~=2.10.0
|
|
37
|
+
Requires-Dist: wrapt~=2.2.1
|
|
38
38
|
Dynamic: license-file
|
|
39
39
|
|
|
40
40
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -24,21 +24,21 @@ classifiers = [
|
|
|
24
24
|
|
|
25
25
|
# List of runtime dependencies
|
|
26
26
|
dependencies = [
|
|
27
|
-
"arrow
|
|
28
|
-
"black
|
|
29
|
-
"inflection
|
|
30
|
-
"isort
|
|
31
|
-
"jmespath
|
|
32
|
-
"paho-mqtt
|
|
33
|
-
"pyaes
|
|
34
|
-
"pydantic
|
|
35
|
-
"python-dateutil
|
|
36
|
-
"pyyaml
|
|
37
|
-
"redis
|
|
38
|
-
"requests
|
|
39
|
-
"rich
|
|
40
|
-
"semantic-version
|
|
41
|
-
"wrapt
|
|
27
|
+
"arrow~=1.4.0",
|
|
28
|
+
"black~=26.5.1",
|
|
29
|
+
"inflection~=0.5.1",
|
|
30
|
+
"isort~=8.0.1",
|
|
31
|
+
"jmespath~=1.1.0",
|
|
32
|
+
"paho-mqtt~=2.1.0",
|
|
33
|
+
"pyaes~=1.6.1",
|
|
34
|
+
"pydantic~=1.10.26",
|
|
35
|
+
"python-dateutil~=2.9.0.post0",
|
|
36
|
+
"pyyaml~=6.0.3",
|
|
37
|
+
"redis~=8.0.0",
|
|
38
|
+
"requests~=2.34.2",
|
|
39
|
+
"rich~=15.0.0",
|
|
40
|
+
"semantic-version~=2.10.0",
|
|
41
|
+
"wrapt~=2.2.1",
|
|
42
42
|
]
|
|
43
43
|
|
|
44
44
|
# Short description of the project
|
|
@@ -69,21 +69,21 @@ Source = "https://github.com/ThreatConnect-Inc/tcex"
|
|
|
69
69
|
# Dependency groups for development and testing
|
|
70
70
|
[dependency-groups]
|
|
71
71
|
dev = [
|
|
72
|
-
"bandit>=1.
|
|
73
|
-
"pre-commit>=4.
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"typer>=0.
|
|
72
|
+
"bandit>=1.9.4",
|
|
73
|
+
"pre-commit>=4.6.0",
|
|
74
|
+
"pyupgrade>=3.21.2",
|
|
75
|
+
"ruff>=0.15.16",
|
|
76
|
+
"ty>=0.0.43",
|
|
77
|
+
"typer>=0.26.7",
|
|
78
78
|
]
|
|
79
79
|
test = [
|
|
80
|
-
"deepdiff>=
|
|
81
|
-
"fakeredis>=2.
|
|
82
|
-
"pytest>=
|
|
83
|
-
"pytest-cov>=
|
|
84
|
-
"pytest-html>=4.
|
|
80
|
+
"deepdiff>=9.1.0",
|
|
81
|
+
"fakeredis>=2.36.0",
|
|
82
|
+
"pytest>=9.0.3",
|
|
83
|
+
"pytest-cov>=7.1.0",
|
|
84
|
+
"pytest-html>=4.2.0",
|
|
85
85
|
"pytest-ordering>=0.6",
|
|
86
|
-
"pytest-xdist>=3.
|
|
86
|
+
"pytest-xdist>=3.8.0",
|
|
87
87
|
]
|
|
88
88
|
|
|
89
89
|
# Dynamic configuration for setuptools
|
|
@@ -108,7 +108,7 @@ commit = false
|
|
|
108
108
|
# Additional arguments to pass to the git commit command
|
|
109
109
|
commit_args = "--no-verify"
|
|
110
110
|
# The current version of the project
|
|
111
|
-
current_version = "4.0.11-
|
|
111
|
+
current_version = "4.0.11-dev6"
|
|
112
112
|
# The commit message template used when committing version bumps
|
|
113
113
|
message = "Version updated from {current_version} to {new_version}"
|
|
114
114
|
# Regular expression for parsing version strings
|
|
@@ -147,7 +147,7 @@ filename = "tcex/__metadata__.py"
|
|
|
147
147
|
[tool.codespell]
|
|
148
148
|
# https://streetsidesoftware.com/vscode-spell-checker/
|
|
149
149
|
ignore-words-list = "ore"
|
|
150
|
-
skip = "*.cspell*,*.history,*local,uv.lock"
|
|
150
|
+
skip = "*.cspell*,*.history,*local,uv.lock,*enforce_us_spelling.sh"
|
|
151
151
|
|
|
152
152
|
# Configuration for isort import sorter
|
|
153
153
|
[tool.isort]
|
|
@@ -162,9 +162,13 @@ known_third_party = ""
|
|
|
162
162
|
line_length = 100
|
|
163
163
|
profile = "black"
|
|
164
164
|
|
|
165
|
-
# Configuration for
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
# Configuration for ty type checker
|
|
166
|
+
# https://docs.astral.sh/ty/reference/configuration/
|
|
167
|
+
[tool.ty.environment]
|
|
168
|
+
python-platform = "linux"
|
|
169
|
+
python-version = "3.11"
|
|
170
|
+
|
|
171
|
+
[tool.ty.src]
|
|
168
172
|
exclude = [
|
|
169
173
|
"**/.history",
|
|
170
174
|
"**/__pycache__",
|
|
@@ -172,11 +176,6 @@ exclude = [
|
|
|
172
176
|
"tcex/api/tc/v2",
|
|
173
177
|
"tests",
|
|
174
178
|
]
|
|
175
|
-
pythonPlatform = "Linux"
|
|
176
|
-
pythonVersion = "3.11"
|
|
177
|
-
reportIncompatibleMethodOverride = false
|
|
178
|
-
reportIncompatibleVariableOverride = false
|
|
179
|
-
reportPrivateImportUsage = false
|
|
180
179
|
|
|
181
180
|
# Configuration for pytest test runner
|
|
182
181
|
[tool.pytest.ini_options]
|
|
@@ -155,7 +155,7 @@ class TiTransform(TransformABC):
|
|
|
155
155
|
{'summary': summary, 'indicatorType': indicator_type}
|
|
156
156
|
)
|
|
157
157
|
|
|
158
|
-
def add_associated_group(self,
|
|
158
|
+
def add_associated_group(self, group_xid: str):
|
|
159
159
|
"""Add an associated group.
|
|
160
160
|
|
|
161
161
|
{
|
|
@@ -166,33 +166,33 @@ class TiTransform(TransformABC):
|
|
|
166
166
|
if not self.separate_batch_associations:
|
|
167
167
|
# process type specific data
|
|
168
168
|
if isinstance(self.transform, GroupTransformModel):
|
|
169
|
-
self.transformed_item.setdefault('associatedGroupXid', []).append(
|
|
169
|
+
self.transformed_item.setdefault('associatedGroupXid', []).append(group_xid)
|
|
170
170
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
171
|
-
associated_group = {'groupXid':
|
|
171
|
+
associated_group = {'groupXid': group_xid}
|
|
172
172
|
self.transformed_item.setdefault('associatedGroups', []).append(associated_group)
|
|
173
173
|
elif isinstance(self.transform, GroupTransformModel):
|
|
174
174
|
self.transformed_item.setdefault('association', []).append(
|
|
175
175
|
{
|
|
176
|
-
'ref_1':
|
|
176
|
+
'ref_1': group_xid,
|
|
177
177
|
'ref_2': self.transformed_item['xid'],
|
|
178
178
|
}
|
|
179
179
|
)
|
|
180
180
|
self.log.trace(
|
|
181
181
|
'Added associated group with xid: %s to %s',
|
|
182
|
-
|
|
182
|
+
group_xid,
|
|
183
183
|
self.transformed_item['xid'],
|
|
184
184
|
)
|
|
185
185
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
186
186
|
self.transformed_item.setdefault('association', []).append(
|
|
187
187
|
{
|
|
188
|
-
'ref_1':
|
|
188
|
+
'ref_1': group_xid,
|
|
189
189
|
'ref_2': self.transformed_item['summary'],
|
|
190
190
|
'type_2': self.transformed_item['type'],
|
|
191
191
|
}
|
|
192
192
|
)
|
|
193
193
|
self.log.trace(
|
|
194
194
|
'Added associated group with xid: %s to %s',
|
|
195
|
-
|
|
195
|
+
group_xid,
|
|
196
196
|
self.transformed_item['summary'],
|
|
197
197
|
)
|
|
198
198
|
|
|
@@ -265,7 +265,7 @@ class TiTransform(TransformABC):
|
|
|
265
265
|
"""
|
|
266
266
|
self.adhoc_indicators.append(indicator_data)
|
|
267
267
|
|
|
268
|
-
def add_metadata(self, key: str, value: str):
|
|
268
|
+
def add_metadata(self, key: str, value: str | int):
|
|
269
269
|
"""Add name to the transformed item."""
|
|
270
270
|
if all([key, value]):
|
|
271
271
|
self.transformed_item[key] = value
|
|
@@ -322,7 +322,7 @@ class TransformABC(ABC):
|
|
|
322
322
|
bool,
|
|
323
323
|
[v for v in self._process_metadata_transform_model(association.value) if v],
|
|
324
324
|
):
|
|
325
|
-
self.add_associated_group(value)
|
|
325
|
+
self.add_associated_group(value)
|
|
326
326
|
except Exception as ex:
|
|
327
327
|
ex_msg = f'Associated Group [{i}]'
|
|
328
328
|
raise TransformException(ex_msg, ex, context=association.dict()) from ex
|
|
@@ -600,7 +600,7 @@ class TransformABC(ABC):
|
|
|
600
600
|
for i, tag in enumerate(tags or [], 1):
|
|
601
601
|
try:
|
|
602
602
|
for value in filter(bool, self._process_metadata_transform_model(tag.value)):
|
|
603
|
-
self.add_tag(name=value)
|
|
603
|
+
self.add_tag(name=value)
|
|
604
604
|
except Exception as ex:
|
|
605
605
|
ex_msg = f'Tags [{i}]'
|
|
606
606
|
raise TransformException(ex_msg, ex, context=tag.dict()) from ex
|
{tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/ti_transform/transform_builder/__init__.py
RENAMED
|
@@ -19,7 +19,7 @@ from tcex.api.tc.ti_transform.transform_builder.v2.load_transform import LoadTra
|
|
|
19
19
|
def load(
|
|
20
20
|
transform: dict,
|
|
21
21
|
processing_functions: 'ProcessingFunctions',
|
|
22
|
-
) -> IndicatorTransformModel | GroupTransformModel:
|
|
22
|
+
) -> IndicatorTransformModel | GroupTransformModel:
|
|
23
23
|
"""Convert a transform from Transform Builder to one of the tcex transform models."""
|
|
24
24
|
|
|
25
25
|
match transform:
|
|
@@ -197,7 +197,7 @@ class ThreatIntelUtil:
|
|
|
197
197
|
"""
|
|
198
198
|
return list(self.indicator_types_data.keys())
|
|
199
199
|
|
|
200
|
-
def resolve_variables(self, inputs: list[str]) -> list[str]:
|
|
200
|
+
def resolve_variables(self, inputs: list[str]) -> list[str | None]:
|
|
201
201
|
"""Resolve all of the provided inputs if appropriate.
|
|
202
202
|
|
|
203
203
|
Args:
|
|
@@ -248,7 +248,7 @@ class BatchCleaner:
|
|
|
248
248
|
if not config:
|
|
249
249
|
return attribute_value
|
|
250
250
|
|
|
251
|
-
max_length = config.get('
|
|
251
|
+
max_length = config.get('max_size')
|
|
252
252
|
if not max_length:
|
|
253
253
|
return attribute_value
|
|
254
254
|
|
|
@@ -277,7 +277,7 @@ class BatchCleaner:
|
|
|
277
277
|
item: A single group or indicator dictionary.
|
|
278
278
|
attribute_types: Attribute type config dict keyed by name.
|
|
279
279
|
deduplicate: Whether to remove duplicate attributes.
|
|
280
|
-
truncate: Whether to truncate attributes based on
|
|
280
|
+
truncate: Whether to truncate attributes based on max_size.
|
|
281
281
|
truncated_types: A shared set tracking attribute types that have already
|
|
282
282
|
been logged as truncated, to avoid duplicate log warnings. If None,
|
|
283
283
|
warnings are logged for every truncation.
|
|
@@ -879,6 +879,36 @@ class BatchWriter:
|
|
|
879
879
|
identifier = hashlib.sha256(identifier.encode('utf-8')).hexdigest()
|
|
880
880
|
return hashlib.sha256(identifier.encode('utf-8')).hexdigest()
|
|
881
881
|
|
|
882
|
+
@staticmethod
|
|
883
|
+
def generate_xid2(identifier: list | str | None = None) -> str:
|
|
884
|
+
"""Generate a reproducible xid using UUID5 from the provided identifier(s).
|
|
885
|
+
|
|
886
|
+
Use this method when the raw identifier value cannot be used directly as an xid — for
|
|
887
|
+
example, when the same numeric or short id could appear across multiple object types in
|
|
888
|
+
the same batch (e.g., two different groups both having an id of ``123``), or when the
|
|
889
|
+
source system uses integer/short-string ids that are not globally unique on their own.
|
|
890
|
+
|
|
891
|
+
Common use cases:
|
|
892
|
+
- Source ids that are numeric or otherwise short (e.g., ``123``, ``"abc"``).
|
|
893
|
+
- Ids that are unique within a single type but may collide across types in the same batch.
|
|
894
|
+
- Composite keys built from multiple fields (pass as a list to combine them).
|
|
895
|
+
- Any situation where the raw id must be namespaced or scoped to avoid collisions.
|
|
896
|
+
|
|
897
|
+
.. Note:: If the incoming identifier is already a UUID (v4 or otherwise), this method
|
|
898
|
+
should generally **not** be used — pass the UUID directly as the xid instead,
|
|
899
|
+
as wrapping it in UUID5 provides no collision-avoidance benefit and breaks
|
|
900
|
+
the 1-to-1 mapping between source id and xid.
|
|
901
|
+
|
|
902
|
+
Args:
|
|
903
|
+
identifier: Value(s) to be used to make a unique and reproducible xid.
|
|
904
|
+
|
|
905
|
+
"""
|
|
906
|
+
if identifier is None:
|
|
907
|
+
identifier = str(uuid.uuid4())
|
|
908
|
+
elif isinstance(identifier, list):
|
|
909
|
+
identifier = '-'.join([str(i) for i in identifier])
|
|
910
|
+
return str(uuid.uuid5(uuid.NAMESPACE_X500, identifier))
|
|
911
|
+
|
|
882
912
|
def group(self, group_type: str, name: str, **kwargs) -> GroupType | dict:
|
|
883
913
|
"""Add Group data to Batch.
|
|
884
914
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# standard library
|
|
4
4
|
import os
|
|
5
|
-
from enum import
|
|
5
|
+
from enum import StrEnum
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
8
|
# third-party
|
|
@@ -197,7 +197,7 @@ def gen_object(type_: SnakeString):
|
|
|
197
197
|
#
|
|
198
198
|
|
|
199
199
|
|
|
200
|
-
class ObjectTypes(
|
|
200
|
+
class ObjectTypes(StrEnum):
|
|
201
201
|
"""Object Types"""
|
|
202
202
|
|
|
203
203
|
# shared
|
|
@@ -239,7 +239,7 @@ class ObjectTypes(str, Enum):
|
|
|
239
239
|
victim_attributes = 'victim_attributes'
|
|
240
240
|
|
|
241
241
|
|
|
242
|
-
class GenTypes(
|
|
242
|
+
class GenTypes(StrEnum):
|
|
243
243
|
"""Object Types"""
|
|
244
244
|
|
|
245
245
|
all = 'all'
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import os
|
|
5
5
|
from abc import ABC
|
|
6
6
|
from textwrap import TextWrapper
|
|
7
|
+
from typing import Any
|
|
7
8
|
|
|
8
9
|
# first-party
|
|
9
10
|
from tcex.util import Util
|
|
@@ -26,7 +27,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
26
27
|
self.i4 = ' ' * 16 # indent level 4
|
|
27
28
|
self.i5 = ' ' * 20 # indent level 5
|
|
28
29
|
self.messages = []
|
|
29
|
-
self.requirements = {}
|
|
30
|
+
self.requirements: dict[str, list[Any]] = {}
|
|
30
31
|
self.util = Util()
|
|
31
32
|
|
|
32
33
|
@staticmethod
|
|
@@ -116,7 +117,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
116
117
|
_imports = [] # temp store for imports so they can be sorted
|
|
117
118
|
for lib in libs:
|
|
118
119
|
if isinstance(lib, dict):
|
|
119
|
-
imports = ', '.join(sorted(lib.get('imports')))
|
|
120
|
+
imports = ', '.join(sorted(lib.get('imports')))
|
|
120
121
|
_imports.append(f'{indent}from {lib.get("module")} import {imports}{comment}')
|
|
121
122
|
elif isinstance(lib, str):
|
|
122
123
|
_imports.append(f'{indent}{lib}{comment}')
|
|
@@ -126,7 +127,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
126
127
|
_libs.append('') # add newline
|
|
127
128
|
|
|
128
129
|
# This is the last part of the requirements generated.
|
|
129
|
-
return '\n'.join(_libs)
|
|
130
|
+
return '\n'.join(_libs)
|
|
130
131
|
|
|
131
132
|
def tap(self, type_: str):
|
|
132
133
|
"""Return the TcEx Api Path."""
|
|
@@ -29,7 +29,7 @@ class GenerateArgsABC(GenerateABC, ABC):
|
|
|
29
29
|
prop_type = self._prop_type_map(prop_data.get('type')) # type: ignore
|
|
30
30
|
elif 'allOf' in prop_data and prop_data.get('allOf'):
|
|
31
31
|
ref: str = prop_data.get('allOf')[0].get('$ref') # type: ignore
|
|
32
|
-
prop_type = ref.
|
|
32
|
+
prop_type = ref.rsplit('/', maxsplit=1)[-1].replace('Model', '')
|
|
33
33
|
elif 'items' in prop_data and prop_data.get('items'):
|
|
34
34
|
ref: str = prop_data.get('items', {}).get('$ref') # type: ignore
|
|
35
35
|
prop_type = ref.split('/')[-1].replace('Model', '')
|
|
@@ -78,14 +78,14 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
78
78
|
f'{self.i1}@classmethod',
|
|
79
79
|
f'{self.i1}def _validate_{type_.snake_case()}(cls, v):',
|
|
80
80
|
f'{self.i2}if not v:',
|
|
81
|
-
f'{self.i3}return {typing_type}()
|
|
81
|
+
f'{self.i3}return {typing_type}()',
|
|
82
82
|
f'{self.i2}return v',
|
|
83
83
|
'',
|
|
84
84
|
]
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
# TODO: [low] bsummers - research combining this method with parent method
|
|
88
|
-
def
|
|
88
|
+
def _format_model_description(self, description: str, length: int) -> str:
|
|
89
89
|
"""Format description for field."""
|
|
90
90
|
# fix descriptions coming from core API endpoint
|
|
91
91
|
if description[-1] not in ('.', '?', '!'):
|
|
@@ -333,8 +333,6 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
333
333
|
|
|
334
334
|
# update model
|
|
335
335
|
comment = ''
|
|
336
|
-
if prop.extra.alias.snake_case() in ['id']:
|
|
337
|
-
comment = ' # type: ignore'
|
|
338
336
|
_model.append(
|
|
339
337
|
f"""{self.i1}{prop.extra.alias.snake_case()}: """
|
|
340
338
|
f"""{prop.extra.typing_type} = Field({comment}"""
|
|
@@ -363,7 +361,7 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
363
361
|
|
|
364
362
|
# description - Use the TC provided description
|
|
365
363
|
# if available, otherwise use a default format.
|
|
366
|
-
field_description = self.
|
|
364
|
+
field_description = self._format_model_description(
|
|
367
365
|
(
|
|
368
366
|
prop.description
|
|
369
367
|
or (
|
|
@@ -159,11 +159,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
159
159
|
f'Iterator[{self.type_.singular().pascal_case()}]:'
|
|
160
160
|
),
|
|
161
161
|
f'{self.i2}"""Return CM objects."""',
|
|
162
|
-
(
|
|
163
|
-
f'{self.i2}return self.iterate(base_class='
|
|
164
|
-
f'{self.type_.singular().pascal_case()})'
|
|
165
|
-
' # type: ignore'
|
|
166
|
-
),
|
|
162
|
+
(f'{self.i2}return self.iterate(base_class={self.type_.singular().pascal_case()})'),
|
|
167
163
|
'',
|
|
168
164
|
'',
|
|
169
165
|
]
|
|
@@ -529,14 +525,14 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
529
525
|
f'{self.i2}if all(isinstance(item, ({model_class} | ObjectABC)) for item in data):'
|
|
530
526
|
f'{self.i3}transformed_data = data',
|
|
531
527
|
f'{self.i2}elif all(isinstance(item, dict) for item in data):'
|
|
532
|
-
f'{self.i3}transformed_data = [{model_class}(**d) for d in data]',
|
|
528
|
+
f'{self.i3}transformed_data = [{model_class}(**d) for d in data] # type: ignore',
|
|
533
529
|
f'{self.i2}else:',
|
|
534
530
|
f'{self.i3}ex_msg = "Invalid data to replace_{model_type.singular()}"',
|
|
535
531
|
f'{self.i3}raise ValueError(ex_msg)',
|
|
536
532
|
'',
|
|
537
533
|
'',
|
|
538
534
|
f'{self.i2}for item in transformed_data:',
|
|
539
|
-
f'{self.i3}item._staged = True # noqa: SLF001',
|
|
535
|
+
f'{self.i3}item._staged = True # type: ignore # noqa: SLF001',
|
|
540
536
|
'',
|
|
541
537
|
f'{self.i2}self.model.{model_reference} = transformed_data # type: ignore',
|
|
542
538
|
'',
|
|
@@ -723,7 +719,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
723
719
|
# f'{self.i2}self.model.assignee._staged = True
|
|
724
720
|
# f'{self.i2}self.model.assignee.type = type',
|
|
725
721
|
# pylance shows a warning on type here, but it in not handling inheritance properly.
|
|
726
|
-
# f'{self.i2}self.model.assignee.data = data
|
|
722
|
+
# f'{self.i2}self.model.assignee.data = data',
|
|
727
723
|
f'{self.i2}self.model.assignee.data._staged = True # type: ignore # noqa: SLF001',
|
|
728
724
|
'',
|
|
729
725
|
'',
|
|
@@ -830,7 +826,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
830
826
|
_code.extend(
|
|
831
827
|
[
|
|
832
828
|
f'{self.i4}continue',
|
|
833
|
-
f'{self.i3}yield {type_.singular()}
|
|
829
|
+
f'{self.i3}yield {type_.singular()}',
|
|
834
830
|
]
|
|
835
831
|
)
|
|
836
832
|
else:
|
|
@@ -1173,6 +1169,6 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
1173
1169
|
):
|
|
1174
1170
|
"""Return the requirements code."""
|
|
1175
1171
|
class_string = ', '.join(classes)
|
|
1176
|
-
self.requirements[from_].append(
|
|
1172
|
+
self.requirements[from_].append(
|
|
1177
1173
|
f'from {self.tap(type_)}.{type_.plural()}.{filename} import {class_string}'
|
|
1178
1174
|
)
|
|
@@ -66,7 +66,7 @@ class FilterModel(
|
|
|
66
66
|
"""Return the extra model."""
|
|
67
67
|
extra_data = self.__extra_data()
|
|
68
68
|
# print(self.name, self.type, extra_data)
|
|
69
|
-
return ExtraModel(**extra_data)
|
|
69
|
+
return ExtraModel(**extra_data)
|
|
70
70
|
|
|
71
71
|
def __extra_data(self) -> dict:
|
|
72
72
|
"""Return the extra data."""
|
|
@@ -81,7 +81,7 @@ class ArtifactTypes(ObjectCollectionABC):
|
|
|
81
81
|
|
|
82
82
|
def __iter__(self) -> Iterator[ArtifactType]:
|
|
83
83
|
"""Return CM objects."""
|
|
84
|
-
return self.iterate(base_class=ArtifactType)
|
|
84
|
+
return self.iterate(base_class=ArtifactType)
|
|
85
85
|
|
|
86
86
|
@property
|
|
87
87
|
def _api_endpoint(self) -> str:
|
|
@@ -174,7 +174,7 @@ class Artifacts(ObjectCollectionABC):
|
|
|
174
174
|
|
|
175
175
|
def __iter__(self) -> Iterator[Artifact]:
|
|
176
176
|
"""Return CM objects."""
|
|
177
|
-
return self.iterate(base_class=Artifact)
|
|
177
|
+
return self.iterate(base_class=Artifact)
|
|
178
178
|
|
|
179
179
|
@property
|
|
180
180
|
def _api_endpoint(self) -> str:
|
|
@@ -135,7 +135,7 @@ class ArtifactModel(
|
|
|
135
135
|
read_only=False,
|
|
136
136
|
title='hashCode',
|
|
137
137
|
)
|
|
138
|
-
id: int | None = Field(
|
|
138
|
+
id: int | None = Field(
|
|
139
139
|
None,
|
|
140
140
|
description='The ID of the item.',
|
|
141
141
|
read_only=True,
|
|
@@ -216,42 +216,42 @@ class ArtifactModel(
|
|
|
216
216
|
@classmethod
|
|
217
217
|
def _validate_artifact_type(cls, v):
|
|
218
218
|
if not v:
|
|
219
|
-
return ArtifactTypeModel()
|
|
219
|
+
return ArtifactTypeModel()
|
|
220
220
|
return v
|
|
221
221
|
|
|
222
222
|
@validator('parent_case', always=True, pre=True)
|
|
223
223
|
@classmethod
|
|
224
224
|
def _validate_case(cls, v):
|
|
225
225
|
if not v:
|
|
226
|
-
return CaseModel()
|
|
226
|
+
return CaseModel()
|
|
227
227
|
return v
|
|
228
228
|
|
|
229
229
|
@validator('associated_groups', always=True, pre=True)
|
|
230
230
|
@classmethod
|
|
231
231
|
def _validate_groups(cls, v):
|
|
232
232
|
if not v:
|
|
233
|
-
return GroupsModel()
|
|
233
|
+
return GroupsModel()
|
|
234
234
|
return v
|
|
235
235
|
|
|
236
236
|
@validator('associated_indicators', always=True, pre=True)
|
|
237
237
|
@classmethod
|
|
238
238
|
def _validate_indicators(cls, v):
|
|
239
239
|
if not v:
|
|
240
|
-
return IndicatorsModel()
|
|
240
|
+
return IndicatorsModel()
|
|
241
241
|
return v
|
|
242
242
|
|
|
243
243
|
@validator('notes', always=True, pre=True)
|
|
244
244
|
@classmethod
|
|
245
245
|
def _validate_notes(cls, v):
|
|
246
246
|
if not v:
|
|
247
|
-
return NotesModel()
|
|
247
|
+
return NotesModel()
|
|
248
248
|
return v
|
|
249
249
|
|
|
250
250
|
@validator('task', always=True, pre=True)
|
|
251
251
|
@classmethod
|
|
252
252
|
def _validate_task(cls, v):
|
|
253
253
|
if not v:
|
|
254
|
-
return TaskModel()
|
|
254
|
+
return TaskModel()
|
|
255
255
|
return v
|
|
256
256
|
|
|
257
257
|
|
|
@@ -88,7 +88,7 @@ class AttributeTypes(ObjectCollectionABC):
|
|
|
88
88
|
|
|
89
89
|
def __iter__(self) -> Iterator[AttributeType]:
|
|
90
90
|
"""Return CM objects."""
|
|
91
|
-
return self.iterate(base_class=AttributeType)
|
|
91
|
+
return self.iterate(base_class=AttributeType)
|
|
92
92
|
|
|
93
93
|
@property
|
|
94
94
|
def _api_endpoint(self) -> str:
|
|
@@ -117,7 +117,7 @@ class CaseAttributes(ObjectCollectionABC):
|
|
|
117
117
|
|
|
118
118
|
def __iter__(self) -> Iterator[CaseAttribute]:
|
|
119
119
|
"""Return CM objects."""
|
|
120
|
-
return self.iterate(base_class=CaseAttribute)
|
|
120
|
+
return self.iterate(base_class=CaseAttribute)
|
|
121
121
|
|
|
122
122
|
@property
|
|
123
123
|
def _api_endpoint(self) -> str:
|
{tcex-4.0.11.dev5 → tcex-4.0.11.dev6}/tcex/api/tc/v3/case_attributes/case_attribute_model.py
RENAMED
|
@@ -56,7 +56,7 @@ class CaseAttributeModel(
|
|
|
56
56
|
read_only=False,
|
|
57
57
|
title='default',
|
|
58
58
|
)
|
|
59
|
-
id: int | None = Field(
|
|
59
|
+
id: int | None = Field(
|
|
60
60
|
None,
|
|
61
61
|
description='The ID of the item.',
|
|
62
62
|
read_only=True,
|
|
@@ -119,14 +119,14 @@ class CaseAttributeModel(
|
|
|
119
119
|
@classmethod
|
|
120
120
|
def _validate_security_labels(cls, v):
|
|
121
121
|
if not v:
|
|
122
|
-
return SecurityLabelsModel()
|
|
122
|
+
return SecurityLabelsModel()
|
|
123
123
|
return v
|
|
124
124
|
|
|
125
125
|
@validator('created_by', always=True, pre=True)
|
|
126
126
|
@classmethod
|
|
127
127
|
def _validate_user(cls, v):
|
|
128
128
|
if not v:
|
|
129
|
-
return UserModel()
|
|
129
|
+
return UserModel()
|
|
130
130
|
return v
|
|
131
131
|
|
|
132
132
|
|