tcex 5.0.0.dev3__tar.gz → 5.0.0.dev4__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.dev3/tcex.egg-info → tcex-5.0.0.dev4}/PKG-INFO +16 -16
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/README.md +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/pyproject.toml +35 -36
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/__metadata__.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/ti_transform.py +8 -8
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/transform_abc.py +6 -5
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/util/threat_intel_util.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/batch_cleaner.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen_abc.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen_model_abc.py +9 -11
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen_object_abc.py +15 -14
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/model/_filter_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifact_types/artifact_type.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifact_types/artifact_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifacts/artifact.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifacts/artifact_model.py +7 -7
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attribute_types/attribute_type.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attribute_types/attribute_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_attributes/case_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_attributes/case_attribute_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/cases/case.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/cases/case_filter.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/cases/case_model.py +14 -14
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/file_occurrences/file_occurrence_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/group_attributes/group_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/group_attributes/group_attribute_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/groups/group.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/groups/group_filter.py +36 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/groups/group_model.py +25 -20
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicator_attributes/indicator_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicators/indicator.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicators/indicator_filter.py +16 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicators/indicator_model.py +10 -10
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/categories/category.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/categories/category_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/intel_req_type_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/intel_requirement.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/intel_requirement_model.py +10 -10
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/results/result.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/results/result_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/subtypes/subtype.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/notes/note.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/notes/note_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/object_abc.py +4 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/object_collection_abc.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/assignee_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/assignee_user_group_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/assignee_user_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owner_roles/owner_role.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owner_roles/owner_role_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owners/owner.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owners/owner_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/system_roles/system_role.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/system_roles/system_role_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/task_assignee_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/user_groups/user_group.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/user_groups/user_group_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/users/user.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/users/user_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security_labels/security_label.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security_labels/security_label_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/tag.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/tag_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tasks/task.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tasks/task_model.py +5 -5
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/v3_model_abc.py +16 -16
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_assets/victim_asset.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_assets/victim_asset_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_attributes/victim_attribute.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_attributes/victim_attribute_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victims/victim.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victims/victim_model.py +6 -6
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_events/workflow_event.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_events/workflow_event_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_templates/workflow_template.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_templates/workflow_template_model.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/app_spec_yml.py +22 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/install_json.py +34 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/layout_json.py +17 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/app_spec_yml_model.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/install_json_model.py +4 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/job_json_model.py +8 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/layout_json_model.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/permutation.py +8 -8
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/tcex_json.py +16 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/benchmark.py +6 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/debug.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/fail_on_output.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/on_exception.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/on_success.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/output.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/key_value_redis.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/advanced_request.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/playbook_create.py +12 -13
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/playbook_read.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/common_service_trigger.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/mqtt_message_broker.py +6 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/webhook_trigger_service.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/token/token.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/edit_choice.py +4 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/key_value.py +3 -15
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/validator.py +9 -8
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/cached_property.py +3 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/cached_property_filesystem.py +3 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_custom.py +1 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_array_mixin.py +9 -9
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_base.py +6 -6
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_math_mixin.py +5 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_string_mixin.py +10 -10
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/proxies.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/registry.py +5 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_external/external_session.py +6 -5
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/auth/hmac_auth.py +6 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/auth/tc_auth.py +2 -2
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/auth/token_auth.py +6 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/requests_tc.py +5 -3
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/tc_session.py +13 -13
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/code_operation.py +2 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/datetime_operation.py +2 -1
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/requests_to_curl.py +6 -4
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4/tcex.egg-info}/PKG-INFO +16 -16
- tcex-5.0.0.dev4/tcex.egg-info/requires.txt +16 -0
- tcex-5.0.0.dev3/tcex.egg-info/requires.txt +0 -16
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/LICENSE +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/setup.cfg +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/api.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/tc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/model/transform_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/ti_predefined_functions.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/transform_builder/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/transform_builder/v2/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/transform_builder/v2/errors.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/util/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/association.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/attribute.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/batch.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/batch_submit.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/batch_writer.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/group.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/indicator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/security_label.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/batch/tag.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/datastore/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/datastore/cache.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/datastore/datastore.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/metric/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/metric/metric.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/notification/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/notification/notification.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/filters.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/adversary.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/attack_pattern.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/campaign.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/course_of_action.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/document.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/email.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/event.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/incident.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/intrusion_set.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/malware.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/report.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/signature.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tactic.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/threat.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/tool.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/group/group_type/vulnerability.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/address.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/email_address.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/file.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/host.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/mapping.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/owner.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/security_label.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/tag.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/task.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/mapping/victim.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/tcex_ti_tc_request.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v2/v2.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen_args_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_gen_filter_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_options_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_options_data.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_options_data_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/_options_data_object.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/model/_extra_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/_gen/model/_property_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/adversary_assets/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/api_endpoints.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifact_types/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifact_types/artifact_type_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifacts/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/artifacts/artifact_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attribute_types/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attribute_types/attribute_type_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/attributes/attribute_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_attributes/case_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_management/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/case_management/case_management.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/cases/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/file_actions/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/file_actions/file_action_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/file_occurrences/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/filter_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/group_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/group_attributes/group_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/groups/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicator_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/indicators/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirement/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirement/ir.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/categories/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/categories/category_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/intel_requirement_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/keyword_sections/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/keyword_sections/keyword_section_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/results/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/results/result_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/subtypes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/intel_requirements/subtypes/subtype_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/notes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/notes/note_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/exclusion_lists/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owner_roles/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owner_roles/owner_role_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owners/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/owners/owner_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/security.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/system_roles/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/system_roles/system_role_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/user_groups/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/user_groups/user_group_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/users/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security/users/user_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security_labels/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/security_labels/security_label_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/default_naics_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/mitre_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/naics_tags.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tags/tag_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tasks/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tasks/task_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/threat_intelligence/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/threat_intelligence/threat_intelligence.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tql/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tql/tql.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tql/tql_operator.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/tql/tql_type.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/v3.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/v3_types.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_assets/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_assets/victim_asset_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_attributes/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victim_attributes/victim_attribute_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victims/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/victims/victim_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_events/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_events/workflow_event_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_templates/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/api/tc/v3/workflow_templates/workflow_template_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/app.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/install_json_update.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/install_json_validate.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/job_json.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/model/tcex_json_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/config/tcex_json_update.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/decorator/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/key_value_abc.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/key_value_api.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/key_value_mock.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/key_value_store.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/redis_client.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/key_value_store/redis_client_ssl.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/playbook.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/playbook_delete.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/playbook/playbook_output.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/api_service.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/service/common_service.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/app/token/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/exit/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/exit/error_code.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/exit/exit.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/binary.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/case_management_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/choice.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/datetime.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/exception.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/group_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/indicator_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/integer.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/ip_address.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/sensitive.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/string.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/field_type/tc_entity.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/input.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/advanced_request_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/api_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_api_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_external_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_feed_api_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_organization_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_playbook_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_system_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/app_webhook_trigger_service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/batch_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/cal_setting_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/cert_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/common_advanced_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/common_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/create_config_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/logging_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/model_map.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/module_app_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/module_requests_session_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/organization_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/path_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/playbook_common_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/playbook_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/proxy_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/service_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/input/model/smtp_setting_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/api_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/cache_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/logger.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/rotating_file_handler_custom.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/sensitive_filter.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/logger/trace_logger.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/event.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/exception_thread.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_control_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_crypto_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_datetime_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/jmespath_functions_object_mixin.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/none_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/scoped_property.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/pleb/singleton.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_external/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_external/rate_limit_handler.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_external/requests_external.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/requests_tc/auth/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/tcex.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/aes_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/file_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/model/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/model/playbook_variable_model.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/render/__init__.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/render/render.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/render/render_panel.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/render/render_prompt.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/render/render_table.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/string_operation.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/util.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex/util/variable.py +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex.egg-info/SOURCES.txt +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/tcex.egg-info/dependency_links.txt +0 -0
- {tcex-5.0.0.dev3 → tcex-5.0.0.dev4}/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.0.
|
|
3
|
+
Version: 5.0.0.dev4
|
|
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
|
|
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
|
|
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
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
|
|
33
|
-
Requires-Dist: pyyaml
|
|
34
|
-
Requires-Dist: redis
|
|
35
|
-
Requires-Dist: requests
|
|
36
|
-
Requires-Dist: rich
|
|
37
|
-
Requires-Dist: semantic-version
|
|
38
|
-
Requires-Dist: wrapt
|
|
32
|
+
Requires-Dist: python-dateutil~=2.9.0.post0
|
|
33
|
+
Requires-Dist: pyyaml~=6.0.3
|
|
34
|
+
Requires-Dist: redis~=8.0.0
|
|
35
|
+
Requires-Dist: requests~=2.34.2
|
|
36
|
+
Requires-Dist: rich~=15.0.0
|
|
37
|
+
Requires-Dist: semantic-version~=2.10.0
|
|
38
|
+
Requires-Dist: wrapt~=2.2.1
|
|
39
39
|
Dynamic: license-file
|
|
40
40
|
|
|
41
41
|
# tcex - ThreatConnect Exchange App Framework
|
|
@@ -64,9 +64,9 @@ The ThreatConnect™ TcEx App Framework provides functionality for writing T
|
|
|
64
64
|
|
|
65
65
|
* bandit (https://pypi.org/project/bandit/)
|
|
66
66
|
* pre-commit (https://pypi.org/project/pre-commit/)
|
|
67
|
-
* pyright (https://pypi.org/project/pyright/)
|
|
68
67
|
* pyupgrade (https://pypi.org/project/pyupgrade/)
|
|
69
68
|
* ruff (https://pypi.org/project/ruff/)
|
|
69
|
+
* ty (https://pypi.org/project/ty/)
|
|
70
70
|
* typer (https://pypi.python.org/pypi/typer/)
|
|
71
71
|
|
|
72
72
|
### Test Requirements
|
|
@@ -24,9 +24,9 @@ The ThreatConnect™ TcEx App Framework provides functionality for writing T
|
|
|
24
24
|
|
|
25
25
|
* bandit (https://pypi.org/project/bandit/)
|
|
26
26
|
* pre-commit (https://pypi.org/project/pre-commit/)
|
|
27
|
-
* pyright (https://pypi.org/project/pyright/)
|
|
28
27
|
* pyupgrade (https://pypi.org/project/pyupgrade/)
|
|
29
28
|
* ruff (https://pypi.org/project/ruff/)
|
|
29
|
+
* ty (https://pypi.org/project/ty/)
|
|
30
30
|
* typer (https://pypi.python.org/pypi/typer/)
|
|
31
31
|
|
|
32
32
|
### Test Requirements
|
|
@@ -24,22 +24,22 @@ 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
|
|
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
34
|
"pydantic-core>=2.10.0,<3.0.0",
|
|
35
35
|
"pydantic>=2.10.0,<3.0.0",
|
|
36
|
-
"python-dateutil
|
|
37
|
-
"pyyaml
|
|
38
|
-
"redis
|
|
39
|
-
"requests
|
|
40
|
-
"rich
|
|
41
|
-
"semantic-version
|
|
42
|
-
"wrapt
|
|
36
|
+
"python-dateutil~=2.9.0.post0",
|
|
37
|
+
"pyyaml~=6.0.3",
|
|
38
|
+
"redis~=8.0.0",
|
|
39
|
+
"requests~=2.34.2",
|
|
40
|
+
"rich~=15.0.0",
|
|
41
|
+
"semantic-version~=2.10.0",
|
|
42
|
+
"wrapt~=2.2.1",
|
|
43
43
|
]
|
|
44
44
|
|
|
45
45
|
# Short description of the project
|
|
@@ -70,22 +70,22 @@ 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.
|
|
74
|
-
"pre-commit>=4.
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"typer>=0.
|
|
73
|
+
"bandit>=1.9.4",
|
|
74
|
+
"pre-commit>=4.6.0",
|
|
75
|
+
"pyupgrade>=3.21.2",
|
|
76
|
+
"ruff>=0.15.16",
|
|
77
|
+
"ty>=0.0.43",
|
|
78
|
+
"typer>=0.26.7",
|
|
79
79
|
]
|
|
80
|
+
|
|
80
81
|
test = [
|
|
81
|
-
"deepdiff>=
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"pytest>=
|
|
85
|
-
"pytest-
|
|
86
|
-
"pytest-html>=4.1.1",
|
|
82
|
+
"deepdiff>=9.1.0",
|
|
83
|
+
"fakeredis>=2.36.0",
|
|
84
|
+
"pytest>=9.0.3",
|
|
85
|
+
"pytest-cov>=7.1.0",
|
|
86
|
+
"pytest-html>=4.2.0",
|
|
87
87
|
"pytest-ordering>=0.6",
|
|
88
|
-
"pytest-xdist>=3.
|
|
88
|
+
"pytest-xdist>=3.8.0",
|
|
89
89
|
"python-dotenv>=1.2.1",
|
|
90
90
|
]
|
|
91
91
|
|
|
@@ -168,11 +168,15 @@ filename = "tcex/__metadata__.py"
|
|
|
168
168
|
[tool.codespell]
|
|
169
169
|
# https://streetsidesoftware.com/vscode-spell-checker/
|
|
170
170
|
ignore-words-list = "ore"
|
|
171
|
-
skip = "*.cspell*,*.history,*local,uv.lock"
|
|
171
|
+
skip = "*.cspell*,*.history,*local,uv.lock,*enforce_us_spelling.sh"
|
|
172
|
+
|
|
173
|
+
# Configuration for ty type checker
|
|
174
|
+
# https://docs.astral.sh/ty/reference/configuration/
|
|
175
|
+
[tool.ty.environment]
|
|
176
|
+
python-platform = "linux"
|
|
177
|
+
python-version = "3.11"
|
|
172
178
|
|
|
173
|
-
|
|
174
|
-
[tool.pyright]
|
|
175
|
-
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
|
|
179
|
+
[tool.ty.src]
|
|
176
180
|
exclude = [
|
|
177
181
|
"**/.history",
|
|
178
182
|
"**/__pycache__",
|
|
@@ -180,11 +184,6 @@ exclude = [
|
|
|
180
184
|
"tcex/api/tc/v2",
|
|
181
185
|
"tests",
|
|
182
186
|
]
|
|
183
|
-
pythonPlatform = "Linux"
|
|
184
|
-
pythonVersion = "3.11"
|
|
185
|
-
reportIncompatibleMethodOverride = false
|
|
186
|
-
reportIncompatibleVariableOverride = false
|
|
187
|
-
reportPrivateImportUsage = false
|
|
188
187
|
|
|
189
188
|
# Configuration for pytest test runner
|
|
190
189
|
[tool.pytest.ini_options]
|
|
@@ -154,7 +154,7 @@ class TiTransform(TransformABC):
|
|
|
154
154
|
{'summary': summary, 'indicatorType': indicator_type}
|
|
155
155
|
)
|
|
156
156
|
|
|
157
|
-
def add_associated_group(self,
|
|
157
|
+
def add_associated_group(self, group_xid: str):
|
|
158
158
|
"""Add an associated group.
|
|
159
159
|
|
|
160
160
|
{
|
|
@@ -165,33 +165,33 @@ class TiTransform(TransformABC):
|
|
|
165
165
|
if not self.separate_batch_associations:
|
|
166
166
|
# process type specific data
|
|
167
167
|
if isinstance(self.transform, GroupTransformModel):
|
|
168
|
-
self.transformed_item.setdefault('associatedGroupXid', []).append(
|
|
168
|
+
self.transformed_item.setdefault('associatedGroupXid', []).append(group_xid)
|
|
169
169
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
170
|
-
associated_group = {'groupXid':
|
|
170
|
+
associated_group = {'groupXid': group_xid}
|
|
171
171
|
self.transformed_item.setdefault('associatedGroups', []).append(associated_group)
|
|
172
172
|
elif isinstance(self.transform, GroupTransformModel):
|
|
173
173
|
self.transformed_item.setdefault('association', []).append(
|
|
174
174
|
{
|
|
175
|
-
'ref_1':
|
|
175
|
+
'ref_1': group_xid,
|
|
176
176
|
'ref_2': self.transformed_item['xid'],
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
self.log.trace(
|
|
180
180
|
'Added associated group with xid: %s to %s',
|
|
181
|
-
|
|
181
|
+
group_xid,
|
|
182
182
|
self.transformed_item['xid'],
|
|
183
183
|
)
|
|
184
184
|
elif isinstance(self.transform, IndicatorTransformModel):
|
|
185
185
|
self.transformed_item.setdefault('association', []).append(
|
|
186
186
|
{
|
|
187
|
-
'ref_1':
|
|
187
|
+
'ref_1': group_xid,
|
|
188
188
|
'ref_2': self.transformed_item['summary'],
|
|
189
189
|
'type_2': self.transformed_item['type'],
|
|
190
190
|
}
|
|
191
191
|
)
|
|
192
192
|
self.log.trace(
|
|
193
193
|
'Added associated group with xid: %s to %s',
|
|
194
|
-
|
|
194
|
+
group_xid,
|
|
195
195
|
self.transformed_item['summary'],
|
|
196
196
|
)
|
|
197
197
|
|
|
@@ -264,7 +264,7 @@ class TiTransform(TransformABC):
|
|
|
264
264
|
"""
|
|
265
265
|
self.adhoc_indicators.append(indicator_data)
|
|
266
266
|
|
|
267
|
-
def add_metadata(self, key: str, value: str):
|
|
267
|
+
def add_metadata(self, key: str, value: str | int):
|
|
268
268
|
"""Add name to the transformed item."""
|
|
269
269
|
if all([key, value]):
|
|
270
270
|
self.transformed_item[key] = value
|
|
@@ -320,7 +320,7 @@ class TransformABC(ABC):
|
|
|
320
320
|
bool,
|
|
321
321
|
[v for v in self._process_metadata_transform_model(association.value) if v],
|
|
322
322
|
):
|
|
323
|
-
self.add_associated_group(value)
|
|
323
|
+
self.add_associated_group(value)
|
|
324
324
|
except Exception as ex:
|
|
325
325
|
ex_msg = f'Associated Group [{i}]'
|
|
326
326
|
raise TransformException(ex_msg, ex, context=association.model_dump()) from ex
|
|
@@ -602,7 +602,7 @@ class TransformABC(ABC):
|
|
|
602
602
|
for i, tag in enumerate(tags or [], 1):
|
|
603
603
|
try:
|
|
604
604
|
for value in filter(bool, self._process_metadata_transform_model(tag.value)):
|
|
605
|
-
self.add_tag(name=value)
|
|
605
|
+
self.add_tag(name=value)
|
|
606
606
|
except Exception as ex:
|
|
607
607
|
ex_msg = f'Tags [{i}]'
|
|
608
608
|
raise TransformException(ex_msg, ex, context=tag.model_dump()) from ex
|
|
@@ -766,7 +766,7 @@ class TransformABC(ABC):
|
|
|
766
766
|
if v_ is not None:
|
|
767
767
|
_values.append(v_)
|
|
768
768
|
value = _values
|
|
769
|
-
#
|
|
769
|
+
# type-checker miss - None check for value already performed above
|
|
770
770
|
elif callable(t.method) and value is not None:
|
|
771
771
|
value = self._transform_value_callable(value, t.method, t.kwargs)
|
|
772
772
|
elif callable(t.for_each):
|
|
@@ -775,8 +775,9 @@ class TransformABC(ABC):
|
|
|
775
775
|
for v in self._always_array(value)
|
|
776
776
|
]
|
|
777
777
|
|
|
778
|
-
# the output should be an array of strings or empty array
|
|
779
|
-
|
|
778
|
+
# the output should be an array of strings or empty array; the accumulator may transiently
|
|
779
|
+
# hold non-string members (e.g. a numeric metadata.default) before stringification.
|
|
780
|
+
_value: list[Any] = []
|
|
780
781
|
for v in self._always_array(value):
|
|
781
782
|
if v in [None, '']:
|
|
782
783
|
if metadata.default is not None:
|
|
@@ -194,14 +194,14 @@ class ThreatIntelUtil:
|
|
|
194
194
|
"""
|
|
195
195
|
return list(self.indicator_types_data.keys())
|
|
196
196
|
|
|
197
|
-
def resolve_variables(self, inputs: list[str]) -> list[str]:
|
|
197
|
+
def resolve_variables(self, inputs: list[str]) -> list[str | None]:
|
|
198
198
|
"""Resolve all of the provided inputs if appropriate.
|
|
199
199
|
|
|
200
200
|
Args:
|
|
201
201
|
inputs: A list of strings to resolve if string matches a entry in the
|
|
202
202
|
"resolved_variables" dict.
|
|
203
203
|
"""
|
|
204
|
-
resolved_inputs = []
|
|
204
|
+
resolved_inputs: list[str | None] = []
|
|
205
205
|
for input_ in inputs:
|
|
206
206
|
# handle null inputs
|
|
207
207
|
if not input_:
|
|
@@ -246,7 +246,7 @@ class BatchCleaner:
|
|
|
246
246
|
if not config:
|
|
247
247
|
return attribute_value
|
|
248
248
|
|
|
249
|
-
max_length = config.get('
|
|
249
|
+
max_length = config.get('max_size')
|
|
250
250
|
if not max_length:
|
|
251
251
|
return attribute_value
|
|
252
252
|
|
|
@@ -275,7 +275,7 @@ class BatchCleaner:
|
|
|
275
275
|
item: A single group or indicator dictionary.
|
|
276
276
|
attribute_types: Attribute type config dict keyed by name.
|
|
277
277
|
deduplicate: Whether to remove duplicate attributes.
|
|
278
|
-
truncate: Whether to truncate attributes based on
|
|
278
|
+
truncate: Whether to truncate attributes based on max_size.
|
|
279
279
|
truncated_types: A shared set tracking attribute types that have already
|
|
280
280
|
been logged as truncated, to avoid duplicate log warnings. If None,
|
|
281
281
|
warnings are logged for every truncation.
|
|
@@ -128,7 +128,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
128
128
|
_imports = [] # temp store for imports so they can be sorted
|
|
129
129
|
for lib in libs:
|
|
130
130
|
if isinstance(lib, dict):
|
|
131
|
-
imports = ', '.join(sorted(lib.get('imports')))
|
|
131
|
+
imports = ', '.join(sorted(lib.get('imports')))
|
|
132
132
|
_imports.append(f'{indent}from {lib.get("module")} import {imports}{comment}')
|
|
133
133
|
elif isinstance(lib, str):
|
|
134
134
|
_imports.append(f'{indent}{lib}{comment}')
|
|
@@ -138,7 +138,7 @@ class GenerateABC(ABC): # noqa: B024
|
|
|
138
138
|
_libs.append('') # add newline
|
|
139
139
|
|
|
140
140
|
# This is the last part of the requirements generated.
|
|
141
|
-
return '\n'.join(_libs)
|
|
141
|
+
return '\n'.join(_libs)
|
|
142
142
|
|
|
143
143
|
def tap(self, type_: str):
|
|
144
144
|
"""Return the TcEx Api Path."""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from abc import ABC
|
|
4
4
|
from textwrap import TextWrapper
|
|
5
|
+
from typing import Any
|
|
5
6
|
|
|
6
7
|
from tcex.api.tc.v3._gen._gen_abc import GenerateABC
|
|
7
8
|
from tcex.util.string_operation import SnakeString
|
|
@@ -14,8 +15,9 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
14
15
|
"""Initialize instance properties."""
|
|
15
16
|
super().__init__(type_)
|
|
16
17
|
|
|
17
|
-
# properties
|
|
18
|
-
|
|
18
|
+
# properties; buckets hold heterogeneous entries (plain import strings vs. module/imports
|
|
19
|
+
# dicts), so type the values as list[Any] for the dynamically-built accumulator.
|
|
20
|
+
self.requirements: dict[str, list[Any]] = {
|
|
19
21
|
'standard library': ['from __future__ import annotations'],
|
|
20
22
|
'third-party': [
|
|
21
23
|
{'module': 'pydantic', 'imports': ['BaseModel', 'Field']},
|
|
@@ -26,7 +28,7 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
26
28
|
],
|
|
27
29
|
'first-party-forward-reference': [],
|
|
28
30
|
}
|
|
29
|
-
self.validators = {}
|
|
31
|
+
self.validators: dict[str, dict[str, Any]] = {}
|
|
30
32
|
|
|
31
33
|
def _add_module_class(self, from_: str, module: str, class_: str):
|
|
32
34
|
"""Add pydantic validator only when required."""
|
|
@@ -62,14 +64,14 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
62
64
|
f'{self.i1}@classmethod',
|
|
63
65
|
f'{self.i1}def _validate_{type_.snake_case()}(cls, v):',
|
|
64
66
|
f'{self.i2}if not v:',
|
|
65
|
-
f'{self.i3}return {typing_type}()
|
|
67
|
+
f'{self.i3}return {typing_type}()',
|
|
66
68
|
f'{self.i2}return v',
|
|
67
69
|
'',
|
|
68
70
|
]
|
|
69
71
|
)
|
|
70
72
|
|
|
71
73
|
# TODO: [low] bsummers - research combining this method with parent method
|
|
72
|
-
def
|
|
74
|
+
def _format_model_description(self, description: str, length: int) -> str:
|
|
73
75
|
"""Format description for field."""
|
|
74
76
|
# fix descriptions coming from core API endpoint
|
|
75
77
|
if description[-1] not in ('.', '?', '!'):
|
|
@@ -311,12 +313,8 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
311
313
|
self.validators[prop.type]['typing_type'] = prop.extra.typing_type
|
|
312
314
|
|
|
313
315
|
# update model
|
|
314
|
-
comment = ''
|
|
315
|
-
if prop.extra.alias.snake_case() in ['id']:
|
|
316
|
-
comment = ' # type: ignore'
|
|
317
316
|
_model.append(
|
|
318
|
-
f'{self.i1}{prop.extra.alias.snake_case()}: '
|
|
319
|
-
f'{prop.extra.typing_type} = Field({comment}'
|
|
317
|
+
f'{self.i1}{prop.extra.alias.snake_case()}: {prop.extra.typing_type} = Field('
|
|
320
318
|
)
|
|
321
319
|
_model.append(f'{self.i2}default=None,') # the default value
|
|
322
320
|
|
|
@@ -326,7 +324,7 @@ class GenerateModelABC(GenerateABC, ABC):
|
|
|
326
324
|
|
|
327
325
|
# description - Use the TC provided description
|
|
328
326
|
# if available, otherwise use a default format.
|
|
329
|
-
field_description = self.
|
|
327
|
+
field_description = self._format_model_description(
|
|
330
328
|
(
|
|
331
329
|
prop.description
|
|
332
330
|
or (
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""TcEx Framework Module"""
|
|
2
2
|
|
|
3
3
|
from abc import ABC
|
|
4
|
+
from typing import Any
|
|
4
5
|
|
|
5
6
|
from tcex.api.tc.v3._gen._gen_abc import GenerateABC
|
|
6
7
|
from tcex.api.tc.v3._gen._gen_args_abc import GenerateArgsABC
|
|
@@ -18,8 +19,9 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
18
19
|
"""Initialize instance properties."""
|
|
19
20
|
super().__init__(type_)
|
|
20
21
|
|
|
21
|
-
# properties
|
|
22
|
-
|
|
22
|
+
# properties; buckets hold heterogeneous entries (plain import strings vs. module/imports
|
|
23
|
+
# dicts), so type the values as list[Any] for the dynamically-built accumulator.
|
|
24
|
+
self.requirements: dict[str, list[Any]] = {
|
|
23
25
|
'standard library': [],
|
|
24
26
|
'third-party': [],
|
|
25
27
|
'first-party': [
|
|
@@ -143,11 +145,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
143
145
|
f'Iterator[{self.type_.singular().pascal_case()}]:'
|
|
144
146
|
),
|
|
145
147
|
f'{self.i2}"""Return CM objects."""',
|
|
146
|
-
(
|
|
147
|
-
f'{self.i2}return self.iterate(base_class='
|
|
148
|
-
f'{self.type_.singular().pascal_case()})'
|
|
149
|
-
' # type: ignore'
|
|
150
|
-
),
|
|
148
|
+
(f'{self.i2}return self.iterate(base_class={self.type_.singular().pascal_case()})'),
|
|
151
149
|
'',
|
|
152
150
|
'',
|
|
153
151
|
]
|
|
@@ -510,17 +508,20 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
510
508
|
f'{self.i2}if not isinstance(data, list):',
|
|
511
509
|
f'{self.i3}data = [data]',
|
|
512
510
|
'',
|
|
513
|
-
|
|
511
|
+
# the runtime all(isinstance(...)) guards establish the element type, but ty cannot
|
|
512
|
+
# narrow through them; the targeted ignores below reflect correct-but-uninferable code.
|
|
513
|
+
f'{self.i2}if all(isinstance(item, ({model_class} | ObjectABC)) for item in data):',
|
|
514
514
|
f'{self.i3}transformed_data = data',
|
|
515
|
-
f'{self.i2}elif all(isinstance(item, dict) for item in data):'
|
|
516
|
-
f'{self.i3}transformed_data =
|
|
515
|
+
f'{self.i2}elif all(isinstance(item, dict) for item in data):',
|
|
516
|
+
f'{self.i3}transformed_data = '
|
|
517
|
+
f'[{model_class}(**d) for d in data] # ty: ignore[invalid-argument-type]',
|
|
517
518
|
f'{self.i2}else:',
|
|
518
519
|
f'{self.i3}ex_msg = "Invalid data to replace_{model_type.singular()}"',
|
|
519
520
|
f'{self.i3}raise ValueError(ex_msg)',
|
|
520
521
|
'',
|
|
521
522
|
'',
|
|
522
523
|
f'{self.i2}for item in transformed_data:',
|
|
523
|
-
f'{self.i3}item._staged = True # noqa: SLF001',
|
|
524
|
+
f'{self.i3}item._staged = True # ty: ignore[unresolved-attribute] # noqa: SLF001',
|
|
524
525
|
'',
|
|
525
526
|
f'{self.i2}self.model.{model_reference} = transformed_data # type: ignore',
|
|
526
527
|
'',
|
|
@@ -707,7 +708,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
707
708
|
# f'{self.i2}self.model.assignee._staged = True
|
|
708
709
|
# f'{self.i2}self.model.assignee.type = type',
|
|
709
710
|
# pylance shows a warning on type here, but it in not handling inheritance properly.
|
|
710
|
-
#
|
|
711
|
+
# (dead template line removed; it previously embedded a type-ignore directive)
|
|
711
712
|
f'{self.i2}self.model.assignee.data._staged = True # type: ignore # noqa: SLF001',
|
|
712
713
|
'',
|
|
713
714
|
'',
|
|
@@ -813,7 +814,7 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
813
814
|
_code.extend(
|
|
814
815
|
[
|
|
815
816
|
f'{self.i4}continue',
|
|
816
|
-
f'{self.i3}yield {type_.singular()}
|
|
817
|
+
f'{self.i3}yield {type_.singular()}',
|
|
817
818
|
]
|
|
818
819
|
)
|
|
819
820
|
else:
|
|
@@ -1156,6 +1157,6 @@ class GenerateObjectABC(GenerateABC, ABC):
|
|
|
1156
1157
|
):
|
|
1157
1158
|
"""Return the requirements code."""
|
|
1158
1159
|
class_string = ', '.join(classes)
|
|
1159
|
-
self.requirements[from_].append(
|
|
1160
|
+
self.requirements[from_].append(
|
|
1160
1161
|
f'from {self.tap(type_)}.{type_.plural()}.{filename} import {class_string}'
|
|
1161
1162
|
)
|
|
@@ -63,7 +63,7 @@ class FilterModel(
|
|
|
63
63
|
"""Return the extra model."""
|
|
64
64
|
extra_data = self.__extra_data()
|
|
65
65
|
# print(self.name, self.type, extra_data)
|
|
66
|
-
return ExtraModel(**extra_data)
|
|
66
|
+
return ExtraModel(**extra_data)
|
|
67
67
|
|
|
68
68
|
def __extra_data(self) -> dict:
|
|
69
69
|
"""Return the extra data."""
|
|
@@ -79,7 +79,7 @@ class ArtifactTypes(ObjectCollectionABC):
|
|
|
79
79
|
|
|
80
80
|
def __iter__(self) -> Iterator[ArtifactType]:
|
|
81
81
|
"""Return CM objects."""
|
|
82
|
-
return self.iterate(base_class=ArtifactType)
|
|
82
|
+
return self.iterate(base_class=ArtifactType)
|
|
83
83
|
|
|
84
84
|
@property
|
|
85
85
|
def _api_endpoint(self) -> str:
|
|
@@ -148,7 +148,7 @@ class Artifacts(ObjectCollectionABC):
|
|
|
148
148
|
|
|
149
149
|
def __iter__(self) -> Iterator[Artifact]:
|
|
150
150
|
"""Return CM objects."""
|
|
151
|
-
return self.iterate(base_class=Artifact)
|
|
151
|
+
return self.iterate(base_class=Artifact)
|
|
152
152
|
|
|
153
153
|
@property
|
|
154
154
|
def _api_endpoint(self) -> str:
|
|
@@ -132,7 +132,7 @@ class ArtifactModel(
|
|
|
132
132
|
validate_default=True,
|
|
133
133
|
json_schema_extra={'methods': ['POST']},
|
|
134
134
|
)
|
|
135
|
-
id: int | None = Field(
|
|
135
|
+
id: int | None = Field(
|
|
136
136
|
default=None,
|
|
137
137
|
description='The ID of the item.',
|
|
138
138
|
title='id',
|
|
@@ -213,42 +213,42 @@ class ArtifactModel(
|
|
|
213
213
|
@classmethod
|
|
214
214
|
def _validate_artifact_type(cls, v):
|
|
215
215
|
if not v:
|
|
216
|
-
return ArtifactTypeModel()
|
|
216
|
+
return ArtifactTypeModel()
|
|
217
217
|
return v
|
|
218
218
|
|
|
219
219
|
@field_validator('parent_case', mode='before')
|
|
220
220
|
@classmethod
|
|
221
221
|
def _validate_case(cls, v):
|
|
222
222
|
if not v:
|
|
223
|
-
return CaseModel()
|
|
223
|
+
return CaseModel()
|
|
224
224
|
return v
|
|
225
225
|
|
|
226
226
|
@field_validator('associated_groups', mode='before')
|
|
227
227
|
@classmethod
|
|
228
228
|
def _validate_groups(cls, v):
|
|
229
229
|
if not v:
|
|
230
|
-
return GroupsModel()
|
|
230
|
+
return GroupsModel()
|
|
231
231
|
return v
|
|
232
232
|
|
|
233
233
|
@field_validator('associated_indicators', mode='before')
|
|
234
234
|
@classmethod
|
|
235
235
|
def _validate_indicators(cls, v):
|
|
236
236
|
if not v:
|
|
237
|
-
return IndicatorsModel()
|
|
237
|
+
return IndicatorsModel()
|
|
238
238
|
return v
|
|
239
239
|
|
|
240
240
|
@field_validator('notes', mode='before')
|
|
241
241
|
@classmethod
|
|
242
242
|
def _validate_notes(cls, v):
|
|
243
243
|
if not v:
|
|
244
|
-
return NotesModel()
|
|
244
|
+
return NotesModel()
|
|
245
245
|
return v
|
|
246
246
|
|
|
247
247
|
@field_validator('task', mode='before')
|
|
248
248
|
@classmethod
|
|
249
249
|
def _validate_task(cls, v):
|
|
250
250
|
if not v:
|
|
251
|
-
return TaskModel()
|
|
251
|
+
return TaskModel()
|
|
252
252
|
return v
|
|
253
253
|
|
|
254
254
|
|
|
@@ -76,7 +76,7 @@ class AttributeTypes(ObjectCollectionABC):
|
|
|
76
76
|
|
|
77
77
|
def __iter__(self) -> Iterator[AttributeType]:
|
|
78
78
|
"""Return CM objects."""
|
|
79
|
-
return self.iterate(base_class=AttributeType)
|
|
79
|
+
return self.iterate(base_class=AttributeType)
|
|
80
80
|
|
|
81
81
|
@property
|
|
82
82
|
def _api_endpoint(self) -> str:
|
|
@@ -100,7 +100,7 @@ class CaseAttributes(ObjectCollectionABC):
|
|
|
100
100
|
|
|
101
101
|
def __iter__(self) -> Iterator[CaseAttribute]:
|
|
102
102
|
"""Return CM objects."""
|
|
103
|
-
return self.iterate(base_class=CaseAttribute)
|
|
103
|
+
return self.iterate(base_class=CaseAttribute)
|
|
104
104
|
|
|
105
105
|
@property
|
|
106
106
|
def _api_endpoint(self) -> str:
|
|
@@ -55,7 +55,7 @@ class CaseAttributeModel(
|
|
|
55
55
|
validate_default=True,
|
|
56
56
|
json_schema_extra={'methods': ['POST', 'PUT']},
|
|
57
57
|
)
|
|
58
|
-
id: int | None = Field(
|
|
58
|
+
id: int | None = Field(
|
|
59
59
|
default=None,
|
|
60
60
|
description='The ID of the item.',
|
|
61
61
|
title='id',
|
|
@@ -118,14 +118,14 @@ class CaseAttributeModel(
|
|
|
118
118
|
@classmethod
|
|
119
119
|
def _validate_security_labels(cls, v):
|
|
120
120
|
if not v:
|
|
121
|
-
return SecurityLabelsModel()
|
|
121
|
+
return SecurityLabelsModel()
|
|
122
122
|
return v
|
|
123
123
|
|
|
124
124
|
@field_validator('created_by', mode='before')
|
|
125
125
|
@classmethod
|
|
126
126
|
def _validate_user(cls, v):
|
|
127
127
|
if not v:
|
|
128
|
-
return UserModel()
|
|
128
|
+
return UserModel()
|
|
129
129
|
return v
|
|
130
130
|
|
|
131
131
|
|