tcex 5.0.0.dev4__py3-none-any.whl → 5.0.1.dev0__py3-none-any.whl

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/__metadata__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  """TcEx Framework Module"""
2
2
 
3
3
  __license__ = 'Apache-2.0'
4
- __version__ = '5.0.0-dev4'
4
+ __version__ = '5.0.1-dev0'
@@ -683,7 +683,7 @@ class TransformABC(ABC):
683
683
 
684
684
  def _transform_value_callable(
685
685
  self, value: dict | list | str, c: Callable | PredefinedFunctionModel, kwargs=None
686
- ) -> str | None | list[str]:
686
+ ) -> str | list[str] | None:
687
687
  """Transform values in the TI data."""
688
688
  # find signature of method and call with correct args
689
689
  if isinstance(c, PredefinedFunctionModel):
@@ -1,12 +1,18 @@
1
1
  """Utility to load transform files."""
2
2
 
3
3
  # ruff: noqa: TRY301
4
+ # standard library
4
5
  import json
5
6
  import logging
6
7
  from inspect import signature
7
- from typing import Literal
8
+ from typing import Any, Literal
8
9
 
10
+ # first-party
9
11
  from tcex.api.tc.ti_transform.model.transform_model import (
12
+ AssociatedIndicatorFromGroupTransform,
13
+ AssociatedIndicatorFromIndicatorTransform,
14
+ AttributeTransformModel,
15
+ FileOccurrenceTransformModel,
10
16
  GroupTransformModel,
11
17
  IndicatorTransformModel,
12
18
  )
@@ -34,25 +40,24 @@ class LoadTransform:
34
40
  def load_transform(
35
41
  self,
36
42
  mapping_json: dict,
37
- ) -> GroupTransformModel | IndicatorTransformModel:
43
+ ) -> GroupTransformModel | IndicatorTransformModel: # type: ignore
38
44
  """Load and process the transform mapping JSON."""
39
45
  metadata = mapping_json.pop('metadata', {})
40
46
  ti_type = metadata['threatIntelType']
41
47
  # transformSchemaVersion = metadata.get('transformSchemaVersion', '1')
42
48
  match ti_type:
43
49
  case 'group':
44
- return GroupTransformModel(**self._transform_data(self._normalize(mapping_json)))
50
+ return GroupTransformModel(
51
+ **self._transform_data(self._normalize(mapping_json), ti_type)
52
+ )
45
53
  case 'indicator':
46
54
  return IndicatorTransformModel(
47
- **self._transform_data(self._normalize(mapping_json))
55
+ **self._transform_data(self._normalize(mapping_json), ti_type)
48
56
  )
49
- case _:
50
- msg = f'Unknown transform type: {ti_type}'
51
- raise TypeError(msg)
52
57
 
53
- def _normalize(self, data: dict) -> dict:
58
+ def _normalize(self, data: dict) -> dict[str, Any]:
54
59
  """Normalize the transform data."""
55
- normalized = {}
60
+ normalized: dict[str, Any] = {}
56
61
  for key, value in data.items():
57
62
  normalized_key = self.util.camel_to_snake(key)
58
63
  if isinstance(value, dict):
@@ -66,9 +71,9 @@ class LoadTransform:
66
71
 
67
72
  return normalized
68
73
 
69
- def _transform_data(self, body: dict) -> dict:
74
+ def _transform_data(self, body: dict[str, Any], ti_type: str) -> dict:
70
75
  """Transform the data."""
71
- fields_copy = {**body}
76
+ fields_copy: dict[str, Any] = {**body}
72
77
  fields_copy.pop('associated_indicators', None)
73
78
 
74
79
  transform_data = {}
@@ -114,6 +119,7 @@ class LoadTransform:
114
119
  af
115
120
  in (
116
121
  'type',
122
+ 'indicator_type',
117
123
  'value',
118
124
  'summary',
119
125
  'association_type',
@@ -140,6 +146,17 @@ class LoadTransform:
140
146
 
141
147
  self._translate_processing_function(field[af])
142
148
 
149
+ match field_key:
150
+ case 'attributes':
151
+ AttributeTransformModel(**field)
152
+ case 'file_occurrences':
153
+ FileOccurrenceTransformModel(**field)
154
+ case 'associated_indicators':
155
+ if ti_type.lower() == 'group':
156
+ AssociatedIndicatorFromGroupTransform(**field)
157
+ else:
158
+ AssociatedIndicatorFromIndicatorTransform(**field)
159
+
143
160
  transform_data.setdefault(field_key, []).append(field)
144
161
  except Exception:
145
162
  # best effort to continue processing other items
@@ -248,7 +265,7 @@ class LoadTransform:
248
265
  """Translate a function definition in transform builder/API format to an actual function."""
249
266
  # convert transform function names to callables
250
267
  transforms_with_callable = []
251
- for function in mapping.get('transform', []):
268
+ for function in mapping.get('transform') or []:
252
269
  transforms_with_callable.append(self._function_name_to_callable(function))
253
270
  if transforms_with_callable:
254
271
  mapping['transform'] = transforms_with_callable
@@ -180,9 +180,16 @@ class BatchCleaner:
180
180
  if fname:
181
181
  keys.add(f'filename:{fname.lower()}')
182
182
  return keys
183
+
183
184
  if self.deduplicate_indicators:
185
+ # some IOC values are not case-senstive, handle those seperately.
186
+ if item.get('type') in {'ASN', 'CIDR', 'Hashtag', 'Host'}:
187
+ summary = item.get('summary')
188
+ return {summary.casefold()} if summary else set()
189
+
184
190
  summary = item.get('summary')
185
191
  return {summary} if summary else set()
192
+
186
193
  return set()
187
194
 
188
195
  @staticmethod
@@ -441,7 +448,7 @@ class BatchCleaner:
441
448
  Returns:
442
449
  A set of individual hash strings with whitespace stripped.
443
450
  """
444
- return {h.strip() for h in summary.split(' : ') if h.strip()}
451
+ return {h.strip().casefold() for h in summary.split(' : ') if h.strip()}
445
452
 
446
453
  @cached_property
447
454
  def naics_tags(self) -> NAICSTags:
@@ -138,8 +138,11 @@ class GenerateFilterABC(GenerateABC, ABC):
138
138
  )
139
139
  _code.extend(
140
140
  [
141
- f"""{self.i2}{filter_data.keyword.snake_case()} = self.util.any_to_datetime"""
142
- f"""({filter_data.keyword.snake_case()}).strftime('%Y-%m-%d %H:%M:%S')"""
141
+ (
142
+ f"""{self.i2}{filter_data.keyword.snake_case()} = self.util."""
143
+ f"""any_to_datetime({filter_data.keyword.snake_case()})"""
144
+ f""".strftime('%Y-%m-%d %H:%M:%S')"""
145
+ )
143
146
  ]
144
147
  )
145
148
 
@@ -150,10 +153,12 @@ class GenerateFilterABC(GenerateABC, ABC):
150
153
  f"""{self.i2}if isinstance({filter_data.keyword.snake_case()}, list) """
151
154
  """and operator not in self.list_types:"""
152
155
  ),
153
- f"""{self.i3}ex_msg = ("""
154
- f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
155
- f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
156
- f"""{self.i4})""",
156
+ (
157
+ f"""{self.i3}ex_msg = ("""
158
+ f"""{self.i5}'Operator must be CONTAINS, NOT_CONTAINS, IN\'"""
159
+ f"""{self.i5}'or NOT_IN when filtering on a list of values.\'"""
160
+ f"""{self.i4})"""
161
+ ),
157
162
  f"""{self.i3}raise RuntimeError(ex_msg)""",
158
163
  '',
159
164
  ]
@@ -513,8 +513,10 @@ class GenerateObjectABC(GenerateABC, ABC):
513
513
  f'{self.i2}if all(isinstance(item, ({model_class} | ObjectABC)) for item in data):',
514
514
  f'{self.i3}transformed_data = data',
515
515
  f'{self.i2}elif all(isinstance(item, dict) for item in data):',
516
- f'{self.i3}transformed_data = '
517
- f'[{model_class}(**d) for d in data] # ty: ignore[invalid-argument-type]',
516
+ (
517
+ f'{self.i3}transformed_data = '
518
+ f'[{model_class}(**d) for d in data] # ty: ignore[invalid-argument-type]'
519
+ ),
518
520
  f'{self.i2}else:',
519
521
  f'{self.i3}ex_msg = "Invalid data to replace_{model_type.singular()}"',
520
522
  f'{self.i3}raise ValueError(ex_msg)',
@@ -700,8 +702,10 @@ class GenerateObjectABC(GenerateABC, ABC):
700
702
  f'{self.i2}if isinstance(data, AssigneeModel):',
701
703
  f'{self.i3}self.model.assignee = data',
702
704
  f'{self.i2}elif isinstance(',
703
- f'{self.i3}data, AssigneeUserModel | AssigneeUserGroupModel '
704
- f'| UserModel | UserGroupModel',
705
+ (
706
+ f'{self.i3}data, AssigneeUserModel | AssigneeUserGroupModel '
707
+ f'| UserModel | UserGroupModel'
708
+ ),
705
709
  f'{self.i2}):',
706
710
  f'{self.i3}self.model.assignee.data = data # type: ignore',
707
711
  # f'{self.i2}data._staged = True
@@ -205,22 +205,6 @@ class GroupFilter(FilterABC):
205
205
 
206
206
  self._tql.add_filter('documentType', operator, document_type, TqlType.STRING)
207
207
 
208
- def downvote_count(self, operator: Enum, downvote_count: int | list):
209
- """Filter Downvote Count based on **downvoteCount** keyword.
210
-
211
- Args:
212
- operator: The operator enum for the filter.
213
- downvote_count: The number of downvotes the group has received.
214
- """
215
- if isinstance(downvote_count, list) and operator not in self.list_types:
216
- ex_msg = (
217
- 'Operator must be CONTAINS, NOT_CONTAINS, IN'
218
- 'or NOT_IN when filtering on a list of values.'
219
- )
220
- raise RuntimeError(ex_msg)
221
-
222
- self._tql.add_filter('downvoteCount', operator, downvote_count, TqlType.INTEGER)
223
-
224
208
  def email_date(self, operator: Enum, email_date: Arrow | datetime | int | str):
225
209
  """Filter Date (Email) based on **emailDate** keyword.
226
210
 
@@ -981,22 +965,6 @@ class GroupFilter(FilterABC):
981
965
 
982
966
  self._tql.add_filter('typeName', operator, type_name, TqlType.STRING)
983
967
 
984
- def upvote_count(self, operator: Enum, upvote_count: int | list):
985
- """Filter Upvote Count based on **upvoteCount** keyword.
986
-
987
- Args:
988
- operator: The operator enum for the filter.
989
- upvote_count: The number of upvotes the group has received.
990
- """
991
- if isinstance(upvote_count, list) and operator not in self.list_types:
992
- ex_msg = (
993
- 'Operator must be CONTAINS, NOT_CONTAINS, IN'
994
- 'or NOT_IN when filtering on a list of values.'
995
- )
996
- raise RuntimeError(ex_msg)
997
-
998
- self._tql.add_filter('upvoteCount', operator, upvote_count, TqlType.INTEGER)
999
-
1000
968
  def victim_asset(self, operator: Enum, victim_asset: list | str):
1001
969
  """Filter victimAsset based on **victimAsset** keyword.
1002
970
 
@@ -24,6 +24,24 @@ class GroupModel(
24
24
  _shared_type: bool = PrivateAttr(default=False)
25
25
  _staged: bool = PrivateAttr(default=False)
26
26
 
27
+ ai_last_retrieval_date: datetime | None = Field(
28
+ default=None,
29
+ description='The date and time that the AI insight was produced in the external system.',
30
+ title='aiLastRetrievalDate',
31
+ validate_default=True,
32
+ json_schema_extra={
33
+ 'applies_to': ['Document', 'Report', 'Event'],
34
+ 'methods': ['POST', 'PUT'],
35
+ },
36
+ )
37
+ ai_provider: str | None = Field(
38
+ default=None,
39
+ description='The provider of the AI generated insights.',
40
+ frozen=True,
41
+ title='aiProvider',
42
+ validate_default=True,
43
+ json_schema_extra={'applies_to': ['Document', 'Report', 'Event']},
44
+ )
27
45
  assignments: TaskAssigneesModel | None = Field(
28
46
  default=None,
29
47
  description=(
@@ -87,6 +87,16 @@ class IndicatorModel(
87
87
  validate_default=True,
88
88
  json_schema_extra={'methods': ['POST', 'PUT']},
89
89
  )
90
+ cal_last_checked: datetime | None = Field(
91
+ default=None,
92
+ description=(
93
+ 'The date/time CAL was last consulted for this indicator; null means CAL has never been'
94
+ ' checked.'
95
+ ),
96
+ frozen=True,
97
+ title='calLastChecked',
98
+ validate_default=True,
99
+ )
90
100
  cal_score: int | None = Field(
91
101
  default=None,
92
102
  description='The CAL score for this indicator.',
@@ -60,7 +60,7 @@ class ObjectABC(ABC): # noqa: B024
60
60
  ex_msg = 'Child class must implement this property.'
61
61
  raise NotImplementedError(ex_msg)
62
62
 
63
- def _calculate_unique_id(self) -> dict[str, int | str]:
63
+ def _calculate_unique_id(self, encode_value: bool = False) -> dict[str, int | str]:
64
64
  if self.model.id:
65
65
  return {'filter': 'id', 'value': self.model.id}
66
66
 
@@ -69,7 +69,10 @@ class ObjectABC(ABC): # noqa: B024
69
69
  return {'filter': 'xid', 'value': cast('str', self.model.xid)}
70
70
 
71
71
  if self.type_.lower() in ['indicator']:
72
- return {'filter': 'summary', 'value': self.model.summary} # type: ignore
72
+ value = self.model.summary # type: ignore
73
+ if encode_value and value is not None:
74
+ value = urllib.parse.quote(str(value), safe='')
75
+ return {'filter': 'summary', 'value': value}
73
76
 
74
77
  return {}
75
78
 
@@ -96,12 +99,15 @@ class ObjectABC(ABC): # noqa: B024
96
99
  unique_id_data.get('filter'), # type: ignore
97
100
  )(TqlOperator.EQ, unique_id_data.get('value'))
98
101
 
102
+ # unique_id is later spliced into a URL by the generated remove() method - must be encoded.
103
+ parent_unique_id = self._calculate_unique_id(encode_value=True).get('value')
104
+
99
105
  # return the sub object, injecting the parent data
100
106
  for obj in sublist:
101
107
  obj._parent_data = { # noqa: SLF001
102
108
  'api_endpoint': self._api_endpoint,
103
109
  'type': self.type_,
104
- 'unique_id': unique_id_data.get('value'),
110
+ 'unique_id': parent_unique_id,
105
111
  }
106
112
  yield obj
107
113
  self.request = sublist.request
@@ -218,7 +224,7 @@ class ObjectABC(ABC): # noqa: B024
218
224
  body = self.model.gen_body_json(method)
219
225
 
220
226
  # get the unique id value for id, xid, summary, etc ...
221
- unique_id = self._calculate_unique_id().get('value')
227
+ unique_id = self._calculate_unique_id(encode_value=True).get('value')
222
228
 
223
229
  # validate an id is available
224
230
  self._validate_id(unique_id, self.url(method, unique_id))
@@ -282,7 +288,7 @@ class ObjectABC(ABC): # noqa: B024
282
288
  params = self.gen_params(params) if params else None
283
289
 
284
290
  # get the unique id value for id, xid, summary, etc ...
285
- unique_id = self._calculate_unique_id().get('value')
291
+ unique_id = self._calculate_unique_id(encode_value=True).get('value')
286
292
 
287
293
  # validate an id is available
288
294
  self._validate_id(unique_id, self.url(method, unique_id))
@@ -412,10 +418,10 @@ class ObjectABC(ABC): # noqa: B024
412
418
  params = self.gen_params(params) if params else None
413
419
 
414
420
  # get the unique id value for id, xid, summary, etc ...
415
- unique_id = self._calculate_unique_id().get('value')
421
+ unique_id = self._calculate_unique_id(encode_value=True).get('value')
416
422
 
417
423
  # validate an id is available
418
- self._validate_id(unique_id, self.url(method))
424
+ self._validate_id(unique_id, self.url(method, unique_id))
419
425
 
420
426
  self._request(
421
427
  method,
@@ -434,7 +440,7 @@ class ObjectABC(ABC): # noqa: B024
434
440
 
435
441
  def url(self, method: str, unique_id: int | str | None = None) -> str:
436
442
  """Return the proper URL."""
437
- unique_id = unique_id or self._calculate_unique_id().get('value')
443
+ unique_id = unique_id or self._calculate_unique_id(encode_value=True).get('value')
438
444
  if method in ['DELETE', 'GET', 'PUT']:
439
445
  return f'{self._api_endpoint}/{unique_id}'
440
446
  return self._api_endpoint
@@ -1,6 +1,6 @@
1
1
  """TcEx Framework Module"""
2
2
 
3
- import datetime
3
+ import datetime as dt
4
4
  import hashlib
5
5
  import json
6
6
  import logging
@@ -28,7 +28,7 @@ class CustomJSONEncoder(JSONEncoder):
28
28
  'Please verify that the object has been converted to a dictionary.'
29
29
  )
30
30
  raise ValueError(ex_msg) # noqa: TRY004
31
- if isinstance(o, datetime.date | datetime.datetime):
31
+ if isinstance(o, dt.date | dt.datetime):
32
32
  return o.isoformat()
33
33
  return o
34
34
 
@@ -1,6 +1,6 @@
1
1
  """TcEx Framework Module"""
2
2
 
3
- import datetime
3
+ import datetime as dt
4
4
  import logging
5
5
  from types import FunctionType
6
6
  from typing import TYPE_CHECKING, Any, cast
@@ -76,11 +76,11 @@ class Benchmark:
76
76
  **kwargs: Additional keyword arguments.
77
77
  """
78
78
 
79
- before = datetime.datetime.now(datetime.UTC)
79
+ before = dt.datetime.now(dt.UTC)
80
80
  data = wrapped(*args, **kwargs)
81
- after = datetime.datetime.now(datetime.UTC)
81
+ after = dt.datetime.now(dt.UTC)
82
82
  delta = after - before
83
- if delta > datetime.timedelta(
83
+ if delta > dt.timedelta(
84
84
  microseconds=self.microseconds, milliseconds=self.milliseconds, seconds=self.seconds
85
85
  ):
86
86
  # wrapt always wraps a function/method, which has __name__; cast for ty
@@ -117,13 +117,16 @@ class AdvancedRequest:
117
117
  # configure params
118
118
  self.configure_params()
119
119
 
120
+ # coerce the HTTP method (EditChoice | None) to a plain str
121
+ method = str(self.model.tc_adv_req_http_method or 'GET')
122
+
120
123
  # make http request
121
124
  try:
122
125
  response = self.session.request(
123
126
  allow_redirects=self.allow_redirects,
124
127
  data=self.data,
125
128
  headers=self.headers,
126
- method=cast('str', self.model.tc_adv_req_http_method),
129
+ method=method,
127
130
  params=self.params,
128
131
  timeout=self.timeout,
129
132
  url=self.model.tc_adv_req_path,
@@ -167,12 +167,11 @@ class PlaybookCreate:
167
167
 
168
168
  if isinstance(value, BaseModel):
169
169
  # Support both Pydantic v1 and v2
170
- if hasattr(value, 'model_dump'):
171
- # Pydantic v2
172
- value = value.model_dump(exclude_unset=True) # type: ignore
170
+ model_dump = getattr(value, 'model_dump', None)
171
+ if callable(model_dump):
172
+ value = model_dump(exclude_unset=True) # Pydantic v2
173
173
  else:
174
- # Pydantic v1
175
- value = value.dict(exclude_unset=True)
174
+ value = value.dict(exclude_unset=True) # Pydantic v1
176
175
 
177
176
  # due to the need to support pydantic v1 and v2, the type checker cannot determine
178
177
  # that value is a dict at this point.
@@ -32,11 +32,17 @@ class Binary(bytes):
32
32
  @classmethod
33
33
  def __get_pydantic_core_schema__(
34
34
  cls, source: type[Any], handler: GetCoreSchemaHandler
35
- ) -> core_schema.AfterValidatorFunctionSchema:
35
+ ) -> core_schema.CoreSchema:
36
36
  """Run validators / modifiers on input."""
37
+ if isinstance(source, type) and issubclass(source, bytes):
38
+ base_schema: core_schema.CoreSchema = core_schema.bytes_schema(
39
+ max_length=cls.max_length, min_length=cls.min_length
40
+ )
41
+ else:
42
+ base_schema = handler(source)
37
43
  return core_schema.with_info_after_validator_function(
38
44
  cls._validate,
39
- core_schema.bytes_schema(max_length=cls.max_length, min_length=cls.min_length),
45
+ base_schema,
40
46
  field_name=handler.field_name,
41
47
  )
42
48
 
@@ -55,10 +61,10 @@ class Binary(bytes):
55
61
  return value
56
62
 
57
63
  @classmethod
58
- def validate_type(cls, value: bytes, field_name: str) -> bytes:
64
+ def validate_type(cls, value: object, field_name: str) -> bytes:
59
65
  """Raise exception if value is not a Binary type."""
60
66
  if not isinstance(value, bytes):
61
- raise InvalidType(field_name, type(value))
67
+ raise InvalidType(field_name, 'bytes', type(value).__name__)
62
68
  return value
63
69
 
64
70
 
@@ -149,9 +149,13 @@ class EditChoice(str):
149
149
  - Ensures field_name is available during validation for error reporting
150
150
  - Integrates seamlessly with Pydantic's validation system
151
151
  """
152
+ if isinstance(source, type) and issubclass(source, str):
153
+ base_schema: core_schema.CoreSchema = core_schema.str_schema()
154
+ else:
155
+ base_schema = handler(source)
152
156
  return core_schema.with_info_after_validator_function(
153
157
  cls._validate,
154
- core_schema.str_schema(),
158
+ base_schema,
155
159
  field_name=handler.field_name,
156
160
  )
157
161
 
@@ -186,7 +190,7 @@ class EditChoice(str):
186
190
  return value.strip()
187
191
 
188
192
  @classmethod
189
- def validate_type(cls, value: str, field_name: str) -> str:
193
+ def validate_type(cls, value: object, field_name: str) -> str:
190
194
  """Validate that the input value is of string type.
191
195
 
192
196
  This method performs type validation to ensure that the input value is
@@ -225,7 +229,7 @@ class EditChoice(str):
225
229
  raise InvalidType(
226
230
  field_name=field_name,
227
231
  expected_types='(str)',
228
- provided_type=type(value),
232
+ provided_type=type(value).__name__,
229
233
  )
230
234
  return value
231
235
 
@@ -27,20 +27,28 @@ class Integer(int):
27
27
  @classmethod
28
28
  def __get_pydantic_core_schema__(
29
29
  cls, source: type[Any], handler: GetCoreSchemaHandler
30
- ) -> core_schema.AfterValidatorFunctionSchema:
30
+ ) -> core_schema.CoreSchema:
31
31
  """Run validators / modifiers on input."""
32
+ if isinstance(source, type) and issubclass(source, int):
33
+ base_schema: core_schema.CoreSchema = core_schema.int_schema(
34
+ ge=cls.ge, gt=cls.gt, le=cls.le, lt=cls.lt
35
+ )
36
+ else:
37
+ base_schema = handler(source)
32
38
  return core_schema.with_info_after_validator_function(
33
39
  cls._validate,
34
- core_schema.int_schema(ge=cls.ge, gt=cls.gt, le=cls.le, lt=cls.lt),
40
+ base_schema,
35
41
  field_name=handler.field_name,
36
42
  )
37
43
 
38
44
  @classmethod
39
- def validate_type(cls, value: int | str, field_name: str) -> int:
45
+ def validate_type(cls, value: object, field_name: str) -> int:
40
46
  """Raise exception if value is not a String type."""
41
47
  if not isinstance(value, int | str):
42
48
  raise InvalidType(
43
- field_name=field_name, expected_types='(int, str)', provided_type=type(value)
49
+ field_name=field_name,
50
+ expected_types='(int, str)',
51
+ provided_type=type(value).__name__,
44
52
  )
45
53
  return int(value)
46
54
 
@@ -25,11 +25,15 @@ class IpAddress(str):
25
25
  @classmethod
26
26
  def __get_pydantic_core_schema__(
27
27
  cls, source: type[Any], handler: GetCoreSchemaHandler
28
- ) -> core_schema.AfterValidatorFunctionSchema:
28
+ ) -> core_schema.CoreSchema:
29
29
  """Run validators / modifiers on input."""
30
+ if isinstance(source, type) and issubclass(source, str):
31
+ base_schema: core_schema.CoreSchema = core_schema.str_schema()
32
+ else:
33
+ base_schema = handler(source)
30
34
  return core_schema.with_info_after_validator_function(
31
35
  cls._validate,
32
- core_schema.str_schema(),
36
+ base_schema,
33
37
  field_name=handler.field_name,
34
38
  )
35
39
 
@@ -45,16 +45,20 @@ class Sensitive:
45
45
  @classmethod
46
46
  def __get_pydantic_core_schema__(
47
47
  cls, source: type[Any], handler: GetCoreSchemaHandler
48
- ) -> core_schema.AfterValidatorFunctionSchema:
48
+ ) -> core_schema.CoreSchema:
49
49
  """Run validators / modifiers on input."""
50
- return core_schema.with_info_after_validator_function(
51
- cls._validate,
52
- core_schema.str_schema(
50
+ if isinstance(source, type) and issubclass(source, str | bytes | Sensitive):
51
+ base_schema: core_schema.CoreSchema = core_schema.str_schema(
53
52
  coerce_numbers_to_str=True,
54
53
  max_length=cls.max_length,
55
54
  min_length=cls.min_length,
56
55
  strict=False,
57
- ),
56
+ )
57
+ else:
58
+ base_schema = handler(source)
59
+ return core_schema.with_info_after_validator_function(
60
+ cls._validate,
61
+ base_schema,
58
62
  field_name=handler.field_name,
59
63
  )
60
64
 
@@ -31,11 +31,17 @@ class String(str):
31
31
  @classmethod
32
32
  def __get_pydantic_core_schema__(
33
33
  cls, source: type[Any], handler: GetCoreSchemaHandler
34
- ) -> core_schema.AfterValidatorFunctionSchema:
34
+ ) -> core_schema.CoreSchema:
35
35
  """Run validators / modifiers on input."""
36
+ if isinstance(source, type) and issubclass(source, str):
37
+ base_schema: core_schema.CoreSchema = core_schema.str_schema(
38
+ max_length=cls.max_length, min_length=cls.min_length
39
+ )
40
+ else:
41
+ base_schema = handler(source)
36
42
  return core_schema.with_info_after_validator_function(
37
43
  cls._validate,
38
- core_schema.str_schema(max_length=cls.max_length, min_length=cls.min_length),
44
+ base_schema,
39
45
  field_name=handler.field_name,
40
46
  )
41
47
 
@@ -61,10 +67,10 @@ class String(str):
61
67
  return value
62
68
 
63
69
  @classmethod
64
- def validate_type(cls, value: str, field_name: str) -> str:
70
+ def validate_type(cls, value: object, field_name: str) -> str:
65
71
  """Raise exception if value is not a Binary type."""
66
72
  if not isinstance(value, str):
67
- raise InvalidType(field_name, type(value))
73
+ raise InvalidType(field_name, 'str', type(value).__name__)
68
74
  return value
69
75
 
70
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcex
3
- Version: 5.0.0.dev4
3
+ Version: 5.0.1.dev0
4
4
  Summary: ThreatConnect Exchange App Framework
5
5
  Author-email: ThreatConnect <support@threatconnect.com>
6
6
  License-Expression: Apache-2.0
@@ -20,22 +20,22 @@ Classifier: Topic :: Security
20
20
  Requires-Python: >=3.11
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: arrow~=1.4.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
23
+ Requires-Dist: arrow~=1.4
24
+ Requires-Dist: black~=26.5
25
+ Requires-Dist: inflection~=0.5
26
+ Requires-Dist: isort~=8.0
27
+ Requires-Dist: jmespath~=1.1
28
+ Requires-Dist: paho-mqtt~=2.1
29
+ Requires-Dist: pyaes~=1.6
30
30
  Requires-Dist: pydantic-core<3.0.0,>=2.10.0
31
31
  Requires-Dist: pydantic<3.0.0,>=2.10.0
32
- Requires-Dist: python-dateutil~=2.9.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
32
+ Requires-Dist: python-dateutil~=2.9
33
+ Requires-Dist: pyyaml~=6.0
34
+ Requires-Dist: redis~=8.0
35
+ Requires-Dist: requests~=2.34
36
+ Requires-Dist: rich~=15.0
37
+ Requires-Dist: semantic-version~=2.10
38
+ Requires-Dist: wrapt~=2.2
39
39
  Dynamic: license-file
40
40
 
41
41
  # tcex - ThreatConnect Exchange App Framework
@@ -1,5 +1,5 @@
1
1
  tcex/__init__.py,sha256=1Q7PfghjBldPAMuM3MEjozrMp449T3Wkei3yBkdSEO4,1071
2
- tcex/__metadata__.py,sha256=ENINnX5W9kLuwLX4VV02I7QZxujyvCdHCwo3PcEfDRk,83
2
+ tcex/__metadata__.py,sha256=wAhzwRWgyanoFKUTOcUUHjAd-jtZlW1kqw7OBrpNc_g,83
3
3
  tcex/registry.py,sha256=36DZykN9-oyQBPwQt8w3lzFVCR5UblAxJ5eN1OhbDPI,7367
4
4
  tcex/tcex.py,sha256=t6-uQXjqstIUSFBIqecnSuanNc9Ah_vfnHkdt5Zh_qg,6346
5
5
  tcex/api/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
@@ -9,13 +9,13 @@ tcex/api/tc/tc.py,sha256=hcJX07xd-U8xH3oVVGzorKgw2rf5IgiR7WABu_a6usw,2484
9
9
  tcex/api/tc/ti_transform/__init__.py,sha256=dkM4Q6mP2PGLQGAVWwaX7I-ezU4jv--YzllxFkjNLE0,363
10
10
  tcex/api/tc/ti_transform/ti_predefined_functions.py,sha256=-vUHUtqaVk3Mur0aKtljWhvIL2JSAoKDWQJ3-HiGt0k,13177
11
11
  tcex/api/tc/ti_transform/ti_transform.py,sha256=kDu61u-MYScFOhPnNp1mz3F9vNZnDV_D8nE0-f_Y9Yk,13719
12
- tcex/api/tc/ti_transform/transform_abc.py,sha256=-vOETOW9egXqH_zAfQ2rCnOj_R3hfl1FeJqOVyzq65U,37734
12
+ tcex/api/tc/ti_transform/transform_abc.py,sha256=cA6-u2Vl0h6BdKPYe2FEvKC-rDGq7Gp2F4m80egPhr0,37734
13
13
  tcex/api/tc/ti_transform/model/__init__.py,sha256=OVG8XG6UjjX4mqWFBJOddjWTnOJrVikF_qj0ugqqGsI,599
14
14
  tcex/api/tc/ti_transform/model/transform_model.py,sha256=bx0JvD70D1ENTMTIC1HJgJR8HkF3QGb7EIZjpHHomok,11509
15
15
  tcex/api/tc/ti_transform/transform_builder/__init__.py,sha256=jWSFvqdy-wGBkJLODHnGpJfqEulRsnF9NXZ7CkHQuHo,1142
16
16
  tcex/api/tc/ti_transform/transform_builder/v2/__init__.py,sha256=AaCK7noda34YT62J_Rwp4heNwkPDs07zdRyLT9mpLTQ,119
17
17
  tcex/api/tc/ti_transform/transform_builder/v2/errors.py,sha256=RTLUTJwwsYsCfurmJKIjVov1qCG_qprk2XUzOOeT5Co,881
18
- tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py,sha256=s2guek9M99xa-BLmzbyRe7GfrvpXtZPLRBQxdEQ_9Wg,14141
18
+ tcex/api/tc/ti_transform/transform_builder/v2/load_transform.py,sha256=boCrPqExMbG7XEdDaZYvQFPh8-1z_jVCO9aUAw48qGY,15064
19
19
  tcex/api/tc/util/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
20
20
  tcex/api/tc/util/threat_intel_util.py,sha256=_sCmUjRApLYA-gOiT1H0Lj7_Q8oIdYOSOlxsUnu9Ifs,14903
21
21
  tcex/api/tc/v2/__init__.py,sha256=_JGT2MQVPhUmkCSR0VuHuK0_ee_G9fYKntObMnsYDRY,80
@@ -24,7 +24,7 @@ tcex/api/tc/v2/batch/__init__.py,sha256=T0Qtm7cG3BHMZEaqv2qEL3TUOGAOfs3fpaP1367s
24
24
  tcex/api/tc/v2/batch/association.py,sha256=Vb_xUwE_DyR8g253n8prHoY_lSPYSFkyYVEHkY0XSTU,2509
25
25
  tcex/api/tc/v2/batch/attribute.py,sha256=fhs9lvIzZr7CiuEcBk3xjTHe27lvj-g91u90gkLTTXM,2786
26
26
  tcex/api/tc/v2/batch/batch.py,sha256=AI8wpaL6zlBbipxwjLjt8DkA26KtbZLLlpokj7XOCTA,47690
27
- tcex/api/tc/v2/batch/batch_cleaner.py,sha256=jHNoEoz3iTSKqSx066tBPxuKgZlIhJRUdhG2b2KmRXQ,16611
27
+ tcex/api/tc/v2/batch/batch_cleaner.py,sha256=-OKJMRecxqtXzSpIFa6a6ZagxTX5lfYTcxjMlTxE0R4,16886
28
28
  tcex/api/tc/v2/batch/batch_submit.py,sha256=Z3TxgmOV_g-X55U2LDqJj-vpX7cytTra-oFJ3PUqr4c,20837
29
29
  tcex/api/tc/v2/batch/batch_writer.py,sha256=IKi8u198n0I7IhAi5v0krgad8kmQM1jUtycgBULviT0,53317
30
30
  tcex/api/tc/v2/batch/group.py,sha256=LfRuQxXgJQqKQjY4dyTYjuxI2457Nm1DKiIy58peQSk,27475
@@ -80,18 +80,18 @@ tcex/api/tc/v2/threat_intelligence/mapping/indicator/indicator_type/url.py,sha25
80
80
  tcex/api/tc/v3/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
81
81
  tcex/api/tc/v3/api_endpoints.py,sha256=lgIapl1pMJleiIJp8r_fj_PbWofS3cGXtiaUHWv1ExY,1223
82
82
  tcex/api/tc/v3/filter_abc.py,sha256=QT_MPxqLwEuXljoUGu6psqjPo6MceYvjDkKkMP9IUMo,1701
83
- tcex/api/tc/v3/object_abc.py,sha256=0p5qm4vIo1zqQpEFjPR6-5wFDT_fnbeQhneE6EbYERU,15514
83
+ tcex/api/tc/v3/object_abc.py,sha256=XIs4CjurLMpjzvvRZCrcYfGzmX7p1DVc_Z9BERrrZYw,15937
84
84
  tcex/api/tc/v3/object_collection_abc.py,sha256=-V3vlXpytW2Glyv9RE-1ufZQpLUrl8XM9GRMPtcLD8M,9648
85
85
  tcex/api/tc/v3/v3.py,sha256=GlrVnz-5bRnXQ0fv-qWw7NKPIkJ6GJ5zaJXddDjGUt8,1575
86
- tcex/api/tc/v3/v3_model_abc.py,sha256=MbnlbVgnGs_mNJomnvJ-KB42ZPMrZY2UuGZ3umaotVs,19528
86
+ tcex/api/tc/v3/v3_model_abc.py,sha256=1HS16QnWO_dKoyqFcnwTTBQtasrSZ5oYhC70cbR4In4,19522
87
87
  tcex/api/tc/v3/v3_types.py,sha256=67siiRyLg9bKj4DjRFYEIdUMvKuzjvp5ovLMtxgyRgQ,1596
88
88
  tcex/api/tc/v3/_gen/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
89
89
  tcex/api/tc/v3/_gen/_gen.py,sha256=niGpsG3n9qVxle_MqFCR3v7H80vqcK5IXFhIopVzKUQ,9431
90
90
  tcex/api/tc/v3/_gen/_gen_abc.py,sha256=r2P420Ffx2XdJlazU1NHu1bJiblznlM2GW7ubKJnjRQ,6095
91
91
  tcex/api/tc/v3/_gen/_gen_args_abc.py,sha256=BX73rS_ra09HcbtxMcEz_6avMIMWsajGGW5vpjfTbvo,3574
92
- tcex/api/tc/v3/_gen/_gen_filter_abc.py,sha256=YduXBUnYOZXEqh2VY1-l8J0dES4bpTg_jb8QIHoIT-Q,22382
92
+ tcex/api/tc/v3/_gen/_gen_filter_abc.py,sha256=JdbBvwV-gWCfzTK76_n_W2FWhrdoV0qClH9UAf09new,22526
93
93
  tcex/api/tc/v3/_gen/_gen_model_abc.py,sha256=dMz6PLC3E63ccB5COY_XunrD2Wla5Iht59hAUi5vCOI,17875
94
- tcex/api/tc/v3/_gen/_gen_object_abc.py,sha256=HrNmkzhLn9u6xA3_9m7QCpfCDxQLI4FgSNdKc5fcdLU,46841
94
+ tcex/api/tc/v3/_gen/_gen_object_abc.py,sha256=UbfwO7PwLcO5q-N-PvNJzVTJ1V8Un8C5Hylv-guPRiA,46921
95
95
  tcex/api/tc/v3/_gen/_options_abc.py,sha256=fkDTUQjcyw610OeRHUiooNaKNwPFxXbHvTtUrlXvBBY,718
96
96
  tcex/api/tc/v3/_gen/_options_data.py,sha256=AJEndX0KpaqJX8Y1JwSWs8XWIPCP8ifIperh7c6aWUw,16016
97
97
  tcex/api/tc/v3/_gen/_options_data_filter.py,sha256=0lIeKXbVlLQxlO62mqhm_Pvp7vk4Y_1VHf-JxmGAn3U,3496
@@ -135,8 +135,8 @@ tcex/api/tc/v3/group_attributes/group_attribute_filter.py,sha256=YaOF_-lg9cXFQzW
135
135
  tcex/api/tc/v3/group_attributes/group_attribute_model.py,sha256=O6LbjBVDg7XtbUOyC77m6bVaBdI7z12RGliI_E9MVvY,5559
136
136
  tcex/api/tc/v3/groups/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
137
137
  tcex/api/tc/v3/groups/group.py,sha256=V4D8F6aeR08jdJbGsRLr_xs9g_QXmzeVFkm7IJy3fIo,13406
138
- tcex/api/tc/v3/groups/group_filter.py,sha256=CVzdXELLv-VfJSN9xYt-jEd7vrPszjoBi5SDCFh7H4Y,40762
139
- tcex/api/tc/v3/groups/group_model.py,sha256=xGcJMaPldWgPIRoM3x-PUF6Z3u15oQirHuz8QGUOkfY,20611
138
+ tcex/api/tc/v3/groups/group_filter.py,sha256=n9JXdRB8JSattAAPCQ3mURNxZan9mhlAlEXCLC_4rnE,39428
139
+ tcex/api/tc/v3/groups/group_model.py,sha256=e5UJWxF_Nrmm1QdsZIDeC3zCBwus1Yu3XUGNhRlPrJ0,21282
140
140
  tcex/api/tc/v3/indicator_attributes/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
141
141
  tcex/api/tc/v3/indicator_attributes/indicator_attribute.py,sha256=5VqeOs8sS6xCvOCT2QDvQ2J0IKvYjN-YbOLpz1yo7Z8,4300
142
142
  tcex/api/tc/v3/indicator_attributes/indicator_attribute_filter.py,sha256=QPPtMjT3MlqWr6LLBeApfQddtttC3P2rj3N5HfEkH1A,11647
@@ -144,7 +144,7 @@ tcex/api/tc/v3/indicator_attributes/indicator_attribute_model.py,sha256=gdr1hk-w
144
144
  tcex/api/tc/v3/indicators/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
145
145
  tcex/api/tc/v3/indicators/indicator.py,sha256=OJfmkYu4ROmvxkO9_X0ZWbQAZU2fXIZmOZKqSC1sei4,13077
146
146
  tcex/api/tc/v3/indicators/indicator_filter.py,sha256=BSosTEfwkVKgQ7PpKmEhrLVRMwu-If5gW_4ry7Wf1T4,42279
147
- tcex/api/tc/v3/indicators/indicator_model.py,sha256=5uIalXsS5OeBTnGkLll7ckgBK3W7cYrBAj9SbigUkeo,20932
147
+ tcex/api/tc/v3/indicators/indicator_model.py,sha256=d6E_y1sS2lQTEyAN5WIPs9DZKDAsXT9Ht5JXaBzo_zE,21249
148
148
  tcex/api/tc/v3/intel_requirement/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
149
149
  tcex/api/tc/v3/intel_requirement/ir.py,sha256=n-6Pp5IRSb6V29B9Fo_b9PBYX24CZHUlvMvgKGhchJU,1961
150
150
  tcex/api/tc/v3/intel_requirements/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
@@ -260,7 +260,7 @@ tcex/app/config/model/job_json_model.py,sha256=B0x68EmlU_ebY8_oHpXI37D9nm8gEFoMf
260
260
  tcex/app/config/model/layout_json_model.py,sha256=1ofeFtX2u2ZR5nq6LAJzCvQycBiLxzFVIw4X3uO0MEA,2577
261
261
  tcex/app/config/model/tcex_json_model.py,sha256=f3Z1Ufv7yzJL4Unep2FARSS3SME7UH3LLjczTAkJOpM,955
262
262
  tcex/app/decorator/__init__.py,sha256=kXWtqseVmlD5Gg7Xu23rWvGrKBYi31gneb8wUs37kio,423
263
- tcex/app/decorator/benchmark.py,sha256=1uEJ-Mo5LlJWJDW8C34STwzsKDkNQpiVw1wOg96er3w,3020
263
+ tcex/app/decorator/benchmark.py,sha256=BwcquZEmng1OBb0-PEPt4qs1_Npj8GVhoYzdLFC4jLA,2996
264
264
  tcex/app/decorator/debug.py,sha256=8m57eZp7bI-Ospsg5T4bOG4JK7L0jTE9yvheDXLYIKA,2064
265
265
  tcex/app/decorator/fail_on_output.py,sha256=foHbL6AA3SRcZr7ahyuVqYPMhBgBZwhD8tWCLoO_8Mo,4906
266
266
  tcex/app/decorator/on_exception.py,sha256=RBhQzAq1Nws6zJbVPi7ZSlPp7r5icdM9nlhIrv3J5_U,3878
@@ -275,9 +275,9 @@ tcex/app/key_value_store/key_value_store.py,sha256=G-3GwFRuhUqg0XNejajhMOTwEmHRR
275
275
  tcex/app/key_value_store/redis_client.py,sha256=88O8zZYCwHfngEeg_hB06DK_7ZqG9EoZl3sgv1uF5hc,1388
276
276
  tcex/app/key_value_store/redis_client_ssl.py,sha256=n5MfKeP34N4ZAveqdzPjf1c2hXvA894zgyQoR3Bhjg4,2332
277
277
  tcex/app/playbook/__init__.py,sha256=V5IjC1DUad-H_ZKSP07MBZFxPfms7ktco-JR5RSbntY,84
278
- tcex/app/playbook/advanced_request.py,sha256=gxyVEgZuRwbeXVQImFpXfuSg4MfLFkY4Kfr4OjUEQlk,5937
278
+ tcex/app/playbook/advanced_request.py,sha256=Zq4Jmt6mqMgHOCbtI_kYwqfQmpi4yLzBqAjbUS3e9_o,6031
279
279
  tcex/app/playbook/playbook.py,sha256=Qs23-9_obxOMPT4j1fNSXg9k9Mvx_pNlZZ0jaApOQeg,3943
280
- tcex/app/playbook/playbook_create.py,sha256=XiHF2kNhEUKG7Rdw5gLzJQocFVNGVzTc1Ji5UsoVq98,22978
280
+ tcex/app/playbook/playbook_create.py,sha256=WVdmoQ8y5n8N4jQbbckQXsJ64rzHsfLzj_1UhUH-2to,22978
281
281
  tcex/app/playbook/playbook_delete.py,sha256=N9O9LPv6ZKIoBEvDDmLtU_buK5wv0mBIj2Z0ecQbOEw,940
282
282
  tcex/app/playbook/playbook_output.py,sha256=D6pXkEq7MTayOnSA3KrfesWb7yGXq02TLxsKuxIc0Qs,589
283
283
  tcex/app/playbook/playbook_read.py,sha256=MCU4uuw21l7vnVne4nJMPY5tScGR_dG7GRihT02MWPI,25128
@@ -295,19 +295,19 @@ tcex/exit/exit.py,sha256=7-2D8bdkAXYtYf0aVQeevxTNBqorNYvHxWWKm0mgT9c,5479
295
295
  tcex/input/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
296
296
  tcex/input/input.py,sha256=YoBCvjAv_T2upc1YKydpGnB0UofAZ_xanX5gc9gS2ag,16268
297
297
  tcex/input/field_type/__init__.py,sha256=48iGttT5Se2_jz8b4JQz2TEuwt7b23yE91XIRpyls7M,1917
298
- tcex/input/field_type/binary.py,sha256=9t2_kRAvKlykgtGk6qKi6XoEe4wGeQc8bK5PbvW2r3o,2589
298
+ tcex/input/field_type/binary.py,sha256=1ao0FfqCxnWF62S_LhgCx8X-Gm-rXFG6_FH3P9sf84Y,2805
299
299
  tcex/input/field_type/case_management_entity.py,sha256=e2bZTFMTyYYwlqVNW7UdUVis1hL5aayrxb-FTbrZdaw,2348
300
300
  tcex/input/field_type/choice.py,sha256=jIyd3742sNuURnaDbxo3y5QJs3dNGlnXTf6rvNepYMw,2712
301
301
  tcex/input/field_type/datetime.py,sha256=wo03QZNTCWk0vKmtEtZgRssEFs72Ds7VuIu1Aa79cW0,1089
302
- tcex/input/field_type/edit_choice.py,sha256=C8QoRHZD6fJ3qqnciEeegDOSmnlseGVY2jYxSYPD5II,17797
302
+ tcex/input/field_type/edit_choice.py,sha256=ewPg6FJBb7zeGy49Gl1Mm4Zupn1zqDyY_DmSKc5Kce4,17992
303
303
  tcex/input/field_type/exception.py,sha256=qJmx-_B9bgwlMzRmQCIfvPFLuq8IsKoLnHx74xiii-4,3277
304
304
  tcex/input/field_type/group_entity.py,sha256=n6Zny4M9sQKA_SRu7fVm7Vzv8i2lnlw_LpgxSj3RPfc,2489
305
305
  tcex/input/field_type/indicator_entity.py,sha256=ejttw0BN0agZPTwRS3vieJBwrCgf6CiM7-7rQ0V3_2U,2148
306
- tcex/input/field_type/integer.py,sha256=sTAmWokT_NKOF_DviNleabe28avQIjGdv0x7R_diySs,1881
307
- tcex/input/field_type/ip_address.py,sha256=vteTzK6rsjNPimoRh03oiUSRiy5UE1VL_irYvxl3jv4,2280
306
+ tcex/input/field_type/integer.py,sha256=_Ogvg12v3aSLoaBTwz9d8pGGtrhsaKaZRS6qHs7tfQg,2115
307
+ tcex/input/field_type/ip_address.py,sha256=jGSlfvipQTmRR7uXCTFITHaY9DMCF5_LtuCeqKXRtKk,2445
308
308
  tcex/input/field_type/key_value.py,sha256=tp9CLBAidWyukWHxlaZX4ImQwWDlduK2mCwKtmxfFZE,1846
309
- tcex/input/field_type/sensitive.py,sha256=2nIHTzk55W1JFyjb8kP-o4TNg2bmMuTy0pTyQip2UVE,5641
310
- tcex/input/field_type/string.py,sha256=yDTqxlZ8fp7MS11HdpVM2XjlMgQGMgwbH7p4kS7WS0U,2984
309
+ tcex/input/field_type/sensitive.py,sha256=bbB0Bh8RlRSY8oL4_vllyfs8EXMIvPlhWWdwr3hVk8I,5826
310
+ tcex/input/field_type/string.py,sha256=EJUXYCPX-b83y1Dv_aNMukcYJvImpROBK5hOYiiKZ8c,3198
311
311
  tcex/input/field_type/tc_entity.py,sha256=I7ij9oVty91G2XAlVbCnvXNIGOyK4RQ5lT4kbD2gb3s,1081
312
312
  tcex/input/field_type/validator.py,sha256=Lzmc-ViRjEW5z0Gu5LFfdSpLgv5dSR49D8mQ0FT5160,9368
313
313
  tcex/input/model/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
@@ -390,8 +390,8 @@ tcex/util/render/render.py,sha256=6DAvUQ_BigSVGPq8d-rebQT4CAkMcwfAmAY38JMEmXA,43
390
390
  tcex/util/render/render_panel.py,sha256=tSlidE0FzZYsxw-Ja7PnutzBjHwL3b1tYQvdvNQ9Uho,4622
391
391
  tcex/util/render/render_prompt.py,sha256=taUlf0cbYF9LNJWaIOlx_vRGw1tSZcCaTdoFQkCs4V4,1185
392
392
  tcex/util/render/render_table.py,sha256=EUImEEPxaMVdUJoRczBLiJmPZs3eclpwbW-Rs6pBC7M,1826
393
- tcex-5.0.0.dev4.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
394
- tcex-5.0.0.dev4.dist-info/METADATA,sha256=QP7VVxNSqNqHrjccuV7wDY32tKUIZ6v3rpXNE6Z5GGE,3515
395
- tcex-5.0.0.dev4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
396
- tcex-5.0.0.dev4.dist-info/top_level.txt,sha256=wpTUYXfrIrxjY6_ZdsV5rCOGQy79QDA9m-T_YW2-mRQ,5
397
- tcex-5.0.0.dev4.dist-info/RECORD,,
393
+ tcex-5.0.1.dev0.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
394
+ tcex-5.0.1.dev0.dist-info/METADATA,sha256=b3e3jD8YLxXs1Ni7LGHUlOF6UzS7PpDSLKS7VkEhdDk,3481
395
+ tcex-5.0.1.dev0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
396
+ tcex-5.0.1.dev0.dist-info/top_level.txt,sha256=wpTUYXfrIrxjY6_ZdsV5rCOGQy79QDA9m-T_YW2-mRQ,5
397
+ tcex-5.0.1.dev0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5