tcex 5.0.0.dev1__py3-none-any.whl → 5.0.0.dev2__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-dev1'
4
+ __version__ = '5.0.0-dev2'
@@ -3,9 +3,8 @@
3
3
  from collections.abc import Callable
4
4
  from typing import Annotated, Any, TypeAlias
5
5
 
6
- from pydantic import BaseModel, Discriminator, Field, Tag, field_validator, model_validator
7
-
8
6
  from jmespath import compile as jmespath_compile
7
+ from pydantic import BaseModel, Discriminator, Field, Tag, field_validator, model_validator
9
8
 
10
9
 
11
10
  # reusable validator
@@ -129,7 +128,7 @@ class AssociatedIndicatorFromIndicatorTransform(BaseModel, extra='forbid'):
129
128
  """."""
130
129
 
131
130
  summary: str | MetadataTransformModel = Field(..., description='')
132
- type: str | MetadataTransformModel = Field(..., description='')
131
+ indicator_type: str | MetadataTransformModel = Field(..., description='')
133
132
  association_type: str | MetadataTransformModel = Field(..., description='')
134
133
 
135
134
 
@@ -333,6 +333,15 @@ class ProcessingFunctions:
333
333
  def _snake_to_titlecase(name):
334
334
  return name.replace('_', ' ').title()
335
335
 
336
+ @staticmethod
337
+ def _get_type_string_from_annotation(annotation) -> str:
338
+ """Get a string representation of a type annotation."""
339
+ if annotation is None:
340
+ return 'str'
341
+ if hasattr(annotation, '__name__'):
342
+ return annotation.__name__
343
+ return str(annotation)
344
+
336
345
  @staticmethod
337
346
  def _get_params_defs(fn) -> list[ParamDefinition]:
338
347
  """Get the arguments for a function.
@@ -352,8 +361,8 @@ class ProcessingFunctions:
352
361
  ),
353
362
  'name': p,
354
363
  'label': ProcessingFunctions._snake_to_titlecase(p),
355
- 'type': (
356
- sig.parameters[p].annotation.__name__ if sig.parameters[p].annotation else 'str'
364
+ 'type': ProcessingFunctions._get_type_string_from_annotation(
365
+ sig.parameters[p].annotation
357
366
  ),
358
367
  'help': '',
359
368
  'required': True,
@@ -9,6 +9,7 @@ from inspect import signature
9
9
  from typing import Any, cast
10
10
 
11
11
  import jmespath
12
+
12
13
  from tcex.api.tc.ti_transform import ti_predefined_functions
13
14
  from tcex.api.tc.ti_transform.model import (
14
15
  AttributeTransformModel,
@@ -270,7 +271,7 @@ class TransformABC(ABC):
270
271
  for i, association in enumerate(associations or [], 1):
271
272
  try:
272
273
  summary = self._process_metadata_transform_model(association.summary)
273
- indicator_type = self._process_metadata_transform_model(association.type)
274
+ indicator_type = self._process_metadata_transform_model(association.indicator_type)
274
275
  association_type = self._process_metadata_transform_model(
275
276
  association.association_type
276
277
  )
@@ -500,6 +501,8 @@ class TransformABC(ABC):
500
501
  self._process_metadata('dnsActive', self.transform.dns_active)
501
502
  self._process_metadata('whoisActive', self.transform.whois_active)
502
503
 
504
+ self._process_custom_association(self.transform.associated_indicators)
505
+
503
506
  def _process_indicator_values(self):
504
507
  """Process Indicator value."""
505
508
  if not isinstance(self.transform, IndicatorTransformModel):
@@ -4,9 +4,9 @@ import logging
4
4
  import re
5
5
  from urllib.parse import quote
6
6
 
7
+ import jmespath
7
8
  from requests import Session
8
9
 
9
- import jmespath
10
10
  from tcex.exit.error_code import handle_error
11
11
  from tcex.logger.trace_logger import TraceLogger
12
12
  from tcex.pleb.cached_property import cached_property
@@ -8,10 +8,11 @@
8
8
  # debugpy.wait_for_client()
9
9
 
10
10
  import os
11
- from enum import Enum
11
+ from enum import Enum, StrEnum
12
12
  from pathlib import Path
13
13
 
14
14
  import typer
15
+
15
16
  from tcex.api.tc.v3._gen._gen_args_abc import GenerateArgsABC
16
17
  from tcex.api.tc.v3._gen._gen_filter_abc import GenerateFilterABC
17
18
  from tcex.api.tc.v3._gen._gen_model_abc import GenerateModelABC
@@ -200,7 +201,7 @@ def gen_object(type_: SnakeString):
200
201
  #
201
202
 
202
203
 
203
- class ObjectTypes(str, Enum):
204
+ class ObjectTypes(StrEnum, Enum):
204
205
  """Object Types"""
205
206
 
206
207
  # shared
@@ -242,7 +243,7 @@ class ObjectTypes(str, Enum):
242
243
  victim_attributes = 'victim_attributes'
243
244
 
244
245
 
245
- class GenTypes(str, Enum):
246
+ class GenTypes(StrEnum, Enum):
246
247
  """Object Types"""
247
248
 
248
249
  all = 'all'
@@ -27,7 +27,7 @@ class GenerateArgsABC(GenerateABC, ABC):
27
27
  prop_type = self._prop_type_map(prop_data.get('type')) # type: ignore
28
28
  elif 'allOf' in prop_data and prop_data.get('allOf'):
29
29
  ref: str = prop_data.get('allOf')[0].get('$ref') # type: ignore
30
- prop_type = ref.split('/')[-1].replace('Model', '')
30
+ prop_type = ref.rsplit('/', maxsplit=1)[-1].replace('Model', '')
31
31
  elif 'items' in prop_data and prop_data.get('items'):
32
32
  ref: str = prop_data.get('items', {}).get('$ref') # type: ignore
33
33
  prop_type = ref.split('/')[-1].replace('Model', '')
@@ -0,0 +1,26 @@
1
+ """Abstract base class for all Options classes."""
2
+
3
+ import os
4
+ from abc import ABC
5
+
6
+ from requests import Session
7
+
8
+ from tcex.input.field_type.sensitive import Sensitive
9
+ from tcex.requests_tc.auth.hmac_auth import HmacAuth
10
+
11
+
12
+ class OptionsABC(ABC): # noqa: B024
13
+ """Abstract base class for all Options classes."""
14
+
15
+ def __init__(self, **kwargs):
16
+ """Initialize the OptionsABC class."""
17
+ self._options = kwargs
18
+
19
+ @property
20
+ def session(self) -> Session:
21
+ """Return Session configured for TC API."""
22
+ _session = Session()
23
+ _session.auth = HmacAuth(
24
+ os.getenv('TC_API_ACCESS_ID', ''), Sensitive(os.getenv('TC_API_SECRET_KEY', ''))
25
+ )
26
+ return _session
@@ -0,0 +1,91 @@
1
+ """TcEx Framework Module"""
2
+
3
+ # standard library
4
+ from collections.abc import Generator
5
+ from typing import Any
6
+
7
+ # third-party
8
+ from pydantic import ValidationError
9
+ from requests.exceptions import ProxyError
10
+
11
+ # first-party
12
+ from tcex.api.tc.v3._gen._options_abc import OptionsABC
13
+ from tcex.api.tc.v3._gen.model._filter_model import FilterModel
14
+ from tcex.pleb.cached_property import cached_property
15
+ from tcex.util.render.render import Render
16
+
17
+ # The OptionsData class is used to download the options data for a given object type and
18
+ # correct and/or update the data to ensure it is usable for the code generation process.
19
+ # The "plan" is to have a single class that handles downloading the data and updating it.
20
+ # The contents* methods download, update, and load to the model. The content_models method
21
+ # is typically the entry point to this class.
22
+
23
+
24
+ class OptionsDataFilter(OptionsABC):
25
+ """Gen Model Download Options Class"""
26
+
27
+ def __init__(self, api_url: str, object_type: str):
28
+ """Initialize instance properties."""
29
+ self.api_url = api_url
30
+ self.object_type = object_type
31
+
32
+ # properties
33
+ self.messages = []
34
+
35
+ @cached_property
36
+ def contents(self) -> list[dict[str, Any]]:
37
+ """Return defined API properties for the current object.
38
+
39
+ Response:
40
+ {
41
+ "keyword": "analyticsScore",
42
+ "name": "Analytics Score",
43
+ "type": "Integer",
44
+ "description": "The intel score of the artifact",
45
+ "groupable": false,
46
+ "targetable": true
47
+ }
48
+ """
49
+ _properties = []
50
+ try:
51
+ r = self.session.options(f'{self.api_url}/tql', params={})
52
+ # print(r.request.method, r.request.url, r.text)
53
+ if r.ok:
54
+ _properties = r.json().get('data', [])
55
+ except (ConnectionError, ProxyError) as ex:
56
+ Render.panel.failure(f'Failed getting types properties ({ex}).')
57
+
58
+ return _properties
59
+
60
+ @property
61
+ def contents_updated(self) -> Generator:
62
+ """Update the properties contents, fixing issues in core data."""
63
+ # Provided invalid type "BigInteger" on tql options call and correcting it to String
64
+ for filter_data in self.contents:
65
+ if self.object_type == 'indicators':
66
+ title = 'Indicator Keyword Type'
67
+ if filter_data['keyword'] == 'addressIpval' and filter_data['type'] != 'String':
68
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
69
+ filter_data['type'] = 'String'
70
+ else:
71
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
72
+
73
+ if self.object_type == 'cases' and 'description' in filter_data:
74
+ # fix misspelling in core data
75
+ miss_map = {
76
+ 'occured': 'occurred',
77
+ 'Threatassess': 'ThreatAssess',
78
+ }
79
+ for c, w in miss_map.items():
80
+ if c in filter_data['description']:
81
+ filter_data['description'] = filter_data['description'].replace(c, w)
82
+
83
+ yield filter_data
84
+
85
+ @cached_property
86
+ def content_models(self) -> Generator[FilterModel, None, None]:
87
+ for field_data in self.contents_updated:
88
+ try:
89
+ yield FilterModel(**field_data)
90
+ except ValidationError as ex:
91
+ Render.panel.failure(f'Failed generating filter model: data={field_data} ({ex}).')
@@ -0,0 +1,385 @@
1
+ """TcEx Framework Module"""
2
+
3
+ # standard library
4
+ import json
5
+ from collections.abc import Generator
6
+ from pathlib import Path
7
+
8
+ # third-party
9
+ from pydantic import ValidationError
10
+ from requests.exceptions import ProxyError
11
+
12
+ # first-party
13
+ from tcex.api.tc.v3._gen._options_abc import OptionsABC
14
+ from tcex.api.tc.v3._gen.model import PropertyModel
15
+ from tcex.pleb.cached_property import cached_property
16
+ from tcex.util.render.render import Render
17
+ from tcex.util.util import Util
18
+
19
+ # The OptionsData class is used to download the options data for a given object type and
20
+ # correct and/or update the data to ensure it is usable for the code generation process.
21
+ # The "plan" is to have a single class that handles downloading the data and updating it.
22
+ # The contents* methods download, update, and load to the model. The content_models method
23
+ # is typically the entry point to this class.
24
+
25
+
26
+ class OptionsDataObject(OptionsABC):
27
+ """Gen Model Download Options Class"""
28
+
29
+ def __init__(self, api_url: str, object_type: str):
30
+ """Initialize instance properties."""
31
+ self.api_url = api_url
32
+ self.object_type = object_type
33
+
34
+ # properties
35
+ self.messages = []
36
+
37
+ @cached_property
38
+ def contents(self) -> dict:
39
+ """Return defined API endpoint properties for the current type."""
40
+ _properties = {}
41
+ try:
42
+ r = self.session.options(self.api_url, params={'show': 'readOnly'})
43
+ # print(r.request.method, r.request.url, r.text)
44
+ if r.ok:
45
+ _properties = r.json()
46
+
47
+ except (ConnectionError, ProxyError) as ex:
48
+ Render.panel.failure(f'Failed getting types properties ({ex}).')
49
+
50
+ return _properties
51
+
52
+ @property
53
+ def contents_updated(self) -> Generator:
54
+ """Return the updated contents."""
55
+ properties_comparison = []
56
+ for field_name, field_data in self._contents_update(self.contents).items():
57
+ field_data_ = field_data
58
+ if isinstance(field_data_, dict):
59
+ if 'data' in field_data_ and isinstance(field_data_['data'], list):
60
+ # some properties have a data key with an array of items.
61
+ field_data_ = field_data_['data'][0]
62
+
63
+ # if there is a data array, then the type should always be plural.
64
+ field_data_['type'] = Util.camel_string(field_data_['type']).plural()
65
+ elif isinstance(field_data_, list):
66
+ # in a few instance like attributeType the value of the properties key/value
67
+ # pair is a list (currently the list only contains a single dict). to be safe
68
+ # we loop over the list and update the type for each item.
69
+ field_data_ = field_data_[0]
70
+ else:
71
+ Render.panel.failure(
72
+ 'Invalid type properties data: field-name='
73
+ f'{field_name}, type={self.object_type}'
74
+ )
75
+ field_data_['name'] = field_name
76
+
77
+ # capture input/output data for troubleshooting
78
+ properties_comparison.append(
79
+ {
80
+ 'field_name': field_name,
81
+ 'input_data': self.contents.get(field_name),
82
+ 'output_data': field_data_,
83
+ }
84
+ )
85
+
86
+ yield field_data_
87
+
88
+ # write comparison data for troubleshooting
89
+ self._write_comparison_data(properties_comparison)
90
+
91
+ @property
92
+ def content_models(self) -> Generator[PropertyModel, None, None]:
93
+ """Return a list of PropertyModel objects."""
94
+ for field_data in self.contents_updated:
95
+ try:
96
+ property_model = PropertyModel(**field_data)
97
+ except ValidationError as ex:
98
+ Render.panel.failure(
99
+ f'Failed generating property model: data={field_data} ({ex}).',
100
+ )
101
+ else:
102
+ yield property_model
103
+
104
+ @cached_property
105
+ def properties_data_directory(self) -> Path:
106
+ """Return the properties for the current type."""
107
+ path = Path('tcex/api/tc/v3/_gen/properties_data')
108
+ path.mkdir(parents=True, exist_ok=True)
109
+ return path
110
+
111
+ def _contents_update(self, properties: dict) -> dict:
112
+ """Update the properties contents, fixing issues in core data."""
113
+
114
+ # add id field, if missing
115
+ self._content_add_id(properties)
116
+
117
+ # add security label field, if missing
118
+ self._content_add_security_labels(properties)
119
+
120
+ # add webLink field, if missing
121
+ self._content_add_web_link(properties)
122
+
123
+ # fix types
124
+ self._content_fix_types(properties)
125
+
126
+ # remove unused fields, if any
127
+ self._content_remove_unused(properties)
128
+
129
+ # update "bad" data
130
+ self._content_update(properties)
131
+
132
+ # maybe a temp issue?
133
+ if self.object_type == 'indicators':
134
+ properties['enrichment']['data'][0]['type'] = 'Enrichment'
135
+
136
+ # critical fix for breaking API change
137
+ if self.object_type in [
138
+ 'case_attributes',
139
+ 'group_attributes',
140
+ 'indicator_attributes',
141
+ 'victim_attributes',
142
+ ]:
143
+ self._content_update_fix_attribute_source_type(properties)
144
+
145
+ if self.object_type == 'groups':
146
+ self._content_update_fix_filename_max_length(properties)
147
+ self._content_update_fix_down_vote_count(properties)
148
+ self._content_update_fix_up_vote_count(properties)
149
+
150
+ if self.object_type in [
151
+ 'cases',
152
+ 'tasks',
153
+ 'workflow_templates',
154
+ ]:
155
+ if properties.get('owner'):
156
+ self._content_update_fix_read_only_owner(properties)
157
+ self._content_update_fix_updatable_owner(properties)
158
+
159
+ if properties.get('ownerId'):
160
+ self._content_update_fix_read_only_owner_id(properties)
161
+ self._content_update_fix_updatable_owner_id(properties)
162
+
163
+ return properties
164
+
165
+ def _content_update_fix_attribute_source_type(self, properties: dict):
166
+ """."""
167
+ title = 'Attribute Source Type'
168
+ if properties['source']['type'] != 'String':
169
+ properties['source']['type'] = 'String'
170
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
171
+ else:
172
+ self.messages.append(f'- [{self.object_type}] - {title} - fix NOT required.')
173
+
174
+ def _content_update_fix_filename_max_length(self, properties: dict):
175
+ """."""
176
+ filename_max_length = 255
177
+ title = 'Filename Max Length'
178
+ if properties['fileName']['maxLength'] != filename_max_length:
179
+ properties['fileName']['maxLength'] = filename_max_length
180
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
181
+ else:
182
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
183
+
184
+ def _content_update_fix_down_vote_count(self, properties: dict):
185
+ """."""
186
+ title = 'Down Vote Count'
187
+ if 'downVoteCount' in properties and properties['downVoteCount']['type'] == 'String':
188
+ properties['downVoteCount']['type'] = 'Integer'
189
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
190
+ else:
191
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
192
+
193
+ def _content_update_fix_up_vote_count(self, properties: dict):
194
+ """."""
195
+ title = 'Up Vote Count'
196
+ if 'upVoteCount' in properties and properties['upVoteCount']['type'] == 'String':
197
+ properties['upVoteCount']['type'] = 'Integer'
198
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
199
+ else:
200
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
201
+
202
+ def _content_update_fix_read_only_owner(self, properties: dict):
203
+ """."""
204
+ title = 'Read Only Owner Fix'
205
+ if properties['owner'].get('readOnly') is not True:
206
+ properties['owner']['readOnly'] = True
207
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
208
+ else:
209
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
210
+
211
+ def _content_update_fix_updatable_owner(self, properties: dict):
212
+ """."""
213
+ title = 'Updatable Owner Fix'
214
+ if properties['owner'].get('updatable') is not False:
215
+ properties['owner']['updatable'] = False
216
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
217
+ else:
218
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
219
+
220
+ def _content_update_fix_read_only_owner_id(self, properties: dict):
221
+ """."""
222
+ title = 'Read Only Owner Id Fix'
223
+ if properties['ownerId'].get('readOnly') is not True:
224
+ properties['ownerId']['readOnly'] = True
225
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
226
+ else:
227
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
228
+
229
+ def _content_update_fix_updatable_owner_id(self, properties: dict):
230
+ """."""
231
+ title = 'Updatable Owner Id Fix'
232
+ if properties['ownerId'].get('updatable') is not False:
233
+ properties['ownerId']['updatable'] = False
234
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix required.')
235
+ else:
236
+ self.messages.append(f'- [{self.object_type}] - ({title}) - fix NOT required.')
237
+
238
+ def _content_add_id(self, properties: dict):
239
+ """Add id field to properties.
240
+
241
+ For some reason the core API does not return the id field for some types.
242
+ """
243
+ if 'id' not in properties:
244
+ properties['id'] = {
245
+ 'required': False,
246
+ 'type': 'Integer',
247
+ 'description': 'The id of the **Object**',
248
+ 'readOnly': True,
249
+ 'updatable': False,
250
+ }
251
+ self.messages.append(f'- [{self.object_type}] - The id field is missing.')
252
+
253
+ def _content_add_security_labels(self, properties: dict):
254
+ """Add securityLabels field to properties."""
255
+ if self.object_type in ['group_attributes', 'indicator_attributes']:
256
+ if 'securityLabels' not in properties:
257
+ properties['securityLabels'] = {
258
+ 'data': [
259
+ {
260
+ 'description': (
261
+ 'A list of Security Labels corresponding to the Intel item '
262
+ '(NOTE: Setting this parameter will replace any existing '
263
+ 'tag(s) with the one(s) specified)'
264
+ ),
265
+ 'maxSize': 1000,
266
+ 'required': False,
267
+ 'type': 'SecurityLabel',
268
+ }
269
+ ]
270
+ }
271
+ self.messages.append(
272
+ f'- [{self.object_type}] - The securityLabels field is missing.'
273
+ )
274
+ else:
275
+ self.messages.append(
276
+ f'- [{self.object_type}] - The securityLabels field is NOT missing.'
277
+ )
278
+
279
+ def _content_add_web_link(self, properties: dict):
280
+ """Add webLink field to properties.
281
+
282
+ For some reason the core API does not return the webLink field for some types.
283
+ """
284
+ if self.object_type in ['groups', 'indicators']:
285
+ if 'webLink' not in properties:
286
+ properties['webLink'] = {
287
+ 'required': False,
288
+ 'type': 'String',
289
+ 'description': 'The object link.',
290
+ 'readOnly': True,
291
+ 'updatable': False,
292
+ }
293
+ self.messages.append(f'- [{self.object_type}] - The webLink field is missing.')
294
+ else:
295
+ self.messages.append(f'- [{self.object_type}] - The webLink field is NOT missing.')
296
+
297
+ def _content_fix_types(self, _properties: dict):
298
+ """Return modified type."""
299
+ type_ = _properties.get('type')
300
+
301
+ if type_ == 'attributes':
302
+ if self.object_type == 'cases':
303
+ _properties['type'] = 'caseAttributes'
304
+ elif self.object_type == 'groups':
305
+ _properties['type'] = 'groupAttributes'
306
+ elif self.object_type == 'indicators':
307
+ _properties['type'] = 'indicatorAttributes'
308
+ elif self.object_type == 'victims':
309
+ _properties['type'] = 'victimAttributes'
310
+
311
+ def _content_remove_unused(self, properties: dict):
312
+ """Remove unused fields from properties."""
313
+ if self.object_type in ['attribute_types'] and 'owner' in properties:
314
+ del properties['owner']
315
+
316
+ if self.object_type in [
317
+ 'attribute_types',
318
+ 'case_attributes',
319
+ 'group_attributes',
320
+ 'indicator_attributes',
321
+ 'victim_attributes',
322
+ ]:
323
+ unused_fields = [
324
+ 'attributeTypeMappings',
325
+ 'ownerId', # Core Issue: should not be listed for this type
326
+ 'ownerName', # Core Issue: should not be listed for this type
327
+ 'settings',
328
+ 'tags', # Core Issue: should not be listed for this type
329
+ 'webLink', # Core Issue: should not be listed for this type
330
+ ]
331
+ for field in unused_fields:
332
+ properties.pop(field, None)
333
+
334
+ if self.object_type in ['users']:
335
+ unused_fields = [
336
+ 'customTqlTimeout',
337
+ 'disabled',
338
+ 'firstName',
339
+ 'jobFunction',
340
+ 'jobRole',
341
+ 'lastLogin',
342
+ 'lastName',
343
+ 'lastPasswordChange',
344
+ 'locked',
345
+ 'logoutIntervalMinutes',
346
+ 'owner',
347
+ 'ownerRoles',
348
+ 'password',
349
+ 'passwordResetRequired',
350
+ 'pseudonym',
351
+ 'systemRole',
352
+ 'termsAccepted',
353
+ 'termsAcceptedDate',
354
+ 'tqlTimeout',
355
+ 'twoFactorResetRequired',
356
+ 'uiTheme',
357
+ ]
358
+ for field in unused_fields:
359
+ properties.pop(field, None)
360
+
361
+ if self.object_type in ['victims']:
362
+ unused_fields = [
363
+ 'ownerId', # Core Issue: should not be listed for this type
364
+ ]
365
+ for field in unused_fields:
366
+ properties.pop(field, None)
367
+
368
+ def _content_update(self, properties: dict):
369
+ """Update "bad" data in properties."""
370
+ if self.object_type in ['groups']:
371
+ # fixed fields that are missing readOnly property
372
+ if 'downVoteCount' in properties:
373
+ properties['downVoteCount']['readOnly'] = True
374
+ if 'upVoteCount' in properties:
375
+ properties['upVoteCount']['readOnly'] = True
376
+
377
+ if self.object_type in ['victims']:
378
+ # ownerName is readOnly, but readOnly is not defined in response from OPTIONS endpoint
379
+ properties['ownerName']['readOnly'] = True
380
+
381
+ def _write_comparison_data(self, properties_comparison: list):
382
+ # write input/output data for troubleshooting
383
+ output_file = self.properties_data_directory / f'{self.object_type}.json'
384
+ with output_file.open(mode='w') as fh:
385
+ json.dump(properties_comparison, fh, indent=2)
@@ -1,7 +1,7 @@
1
1
  """TcEx Framework Module"""
2
2
 
3
3
  from datetime import datetime
4
- from enum import Enum
4
+ from enum import Enum, StrEnum
5
5
 
6
6
  from pydantic import BaseModel, Field, PrivateAttr
7
7
  from pydantic.alias_generators import to_camel
@@ -11,7 +11,7 @@ from tcex.api.tc.v3.v3_model_abc import V3ModelABC
11
11
  from tcex.util import Util
12
12
 
13
13
 
14
- class AssigneeTypes(str, Enum):
14
+ class AssigneeTypes(StrEnum, Enum):
15
15
  """Enum for install_json.params[].exposePlaybookAs"""
16
16
 
17
17
  Escalate = 'Escalate'
@@ -6,7 +6,7 @@ import os
6
6
  import platform
7
7
  import re
8
8
  import uuid
9
- from enum import Enum
9
+ from enum import Enum, StrEnum
10
10
  from importlib.metadata import version as get_version
11
11
  from pathlib import Path
12
12
  from typing import Annotated
@@ -152,7 +152,7 @@ class FeedsModel(BaseModel):
152
152
  )
153
153
 
154
154
 
155
- class ExposePlaybookKeyAsEnum(str, Enum):
155
+ class ExposePlaybookKeyAsEnum(StrEnum, Enum):
156
156
  """Enum for install_json.params[].exposePlaybookAs"""
157
157
 
158
158
  Binary = 'Binary'
@@ -165,7 +165,7 @@ class ExposePlaybookKeyAsEnum(str, Enum):
165
165
  TCEntityArray = 'TCEntityArray'
166
166
 
167
167
 
168
- class TypeEnum(str, Enum):
168
+ class TypeEnum(StrEnum, Enum):
169
169
  """Enum for install_json.params[].type"""
170
170
 
171
171
  Boolean = 'Boolean'
@@ -5,6 +5,7 @@ import logging
5
5
  from typing import TYPE_CHECKING, Any
6
6
 
7
7
  import wrapt
8
+
8
9
  from tcex.logger.trace_logger import TraceLogger
9
10
 
10
11
  if TYPE_CHECKING:
@@ -3,6 +3,7 @@
3
3
  from typing import TYPE_CHECKING, Any, cast
4
4
 
5
5
  import wrapt
6
+
6
7
  from tcex.tcex import TcEx
7
8
 
8
9
  if TYPE_CHECKING:
@@ -3,6 +3,7 @@
3
3
  from typing import TYPE_CHECKING, Any, cast
4
4
 
5
5
  import wrapt
6
+
6
7
  from tcex.exit import ExitCode
7
8
  from tcex.tcex import TcEx
8
9
 
@@ -3,6 +3,7 @@
3
3
  from typing import TYPE_CHECKING, Any, cast
4
4
 
5
5
  import wrapt
6
+
6
7
  from tcex.exit import ExitCode
7
8
  from tcex.tcex import TcEx
8
9
 
@@ -6,6 +6,7 @@ import time
6
6
  from collections.abc import Callable
7
7
 
8
8
  import paho.mqtt.client as mqtt
9
+
9
10
  from tcex.input.field_type.sensitive import Sensitive
10
11
  from tcex.logger.trace_logger import TraceLogger
11
12
  from tcex.pleb.cached_property import cached_property
tcex/app/token/token.py CHANGED
@@ -8,12 +8,12 @@ import time
8
8
 
9
9
  from requests import Session, exceptions
10
10
  from requests.adapters import HTTPAdapter
11
+ from urllib3.util.retry import Retry
11
12
 
12
13
  from tcex.input.field_type.sensitive import Sensitive
13
14
  from tcex.logger.trace_logger import TraceLogger
14
15
  from tcex.pleb.cached_property import cached_property
15
16
  from tcex.pleb.exception_thread import ExceptionThread
16
- from urllib3.util.retry import Retry
17
17
 
18
18
  # get tcex logger
19
19
  _logger: TraceLogger = logging.getLogger(__name__.split('.', maxsplit=1)[0]) # type: ignore
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  from dataclasses import dataclass
6
6
  from typing import Any, ClassVar
7
7
 
8
- from pydantic.annotated_handlers import GetCoreSchemaHandler # noqa: TC002
8
+ from pydantic.annotated_handlers import GetCoreSchemaHandler
9
9
  from pydantic_core import core_schema # TYPE-CHECKING
10
10
 
11
11
  from tcex.input.field_type.exception import InvalidEmptyValue, InvalidType
tcex/logger/logger.py CHANGED
@@ -8,9 +8,9 @@ from importlib.metadata import version
8
8
  from pathlib import Path
9
9
  from urllib.parse import urlsplit
10
10
 
11
+ from certifi import where
11
12
  from requests import Session # TYPE-CHECKING
12
13
 
13
- from certifi import where
14
14
  from tcex.app.config.install_json import InstallJson
15
15
  from tcex.input.model.common_model import CommonModel # TYPE-CHECKING
16
16
  from tcex.logger.api_handler import ApiHandler, ApiHandlerFormatter
@@ -3,7 +3,7 @@
3
3
  import contextlib
4
4
  import logging
5
5
  import os
6
- import pickle
6
+ import pickle # nosec
7
7
  import tempfile
8
8
  import time
9
9
  import weakref
@@ -12,10 +12,9 @@ from typing import TYPE_CHECKING, Any, ClassVar, Generic, TypeVar
12
12
 
13
13
  import wrapt
14
14
 
15
- from tcex.logger.trace_logger import TraceLogger
15
+ from ..logger.trace_logger import TraceLogger
16
16
 
17
17
  if TYPE_CHECKING:
18
- # standard library
19
18
  from collections.abc import Callable
20
19
 
21
20
  R = TypeVar('R')
@@ -216,7 +215,7 @@ class cached_property_filesystem(Generic[R]): # noqa: N801
216
215
  return None
217
216
 
218
217
  try:
219
- raw = pickle.loads(path.read_bytes())
218
+ raw = pickle.loads(path.read_bytes()) # nosec
220
219
  if now - raw['timestamp'] < self.ttl:
221
220
  return raw['timestamp'], raw['value']
222
221
  except Exception as ex:
@@ -6,14 +6,14 @@ import time
6
6
  from collections.abc import Callable
7
7
  from typing import ClassVar
8
8
 
9
+ import urllib3
9
10
  from requests import Response, Session, adapters, exceptions
10
11
  from requests.adapters import DEFAULT_POOLBLOCK, DEFAULT_POOLSIZE, DEFAULT_RETRIES
12
+ from urllib3.util.retry import Retry
11
13
 
12
- import urllib3
13
14
  from tcex.requests_external.rate_limit_handler import RateLimitHandler
14
15
  from tcex.util.requests_to_curl import RequestsToCurl
15
16
  from tcex.util.util import Util
16
- from urllib3.util.retry import Retry
17
17
 
18
18
  # get logger
19
19
  _logger = logging.getLogger(__name__.split('.', maxsplit=1)[0])
@@ -1,6 +1,7 @@
1
1
  """TcEx Framework Module"""
2
2
 
3
3
  import ast
4
+ import importlib
4
5
  import logging
5
6
  import re
6
7
 
@@ -8,7 +9,9 @@ import black
8
9
  import isort
9
10
  from black.report import NothingChanged
10
11
 
11
- from tcex.__metadata__ import __version__
12
+ # support both tcex, and tcex_cli imports for versioning
13
+ _metadata = importlib.import_module(f'{__name__.split(".", maxsplit=1)[0]}.__metadata__')
14
+ __version__ = _metadata.__version__
12
15
 
13
16
  from .render.render import Render
14
17
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcex
3
- Version: 5.0.0.dev1
3
+ Version: 5.0.0.dev2
4
4
  Summary: ThreatConnect Exchange App Framework
5
5
  Author-email: ThreatConnect <support@threatconnect.com>
6
6
  License-Expression: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  tcex/__init__.py,sha256=1Q7PfghjBldPAMuM3MEjozrMp449T3Wkei3yBkdSEO4,1071
2
- tcex/__metadata__.py,sha256=Dw0XxYnOTQDwvOQYWxIZ4sAAjUFBw0QLclQsLFwp474,83
2
+ tcex/__metadata__.py,sha256=Nwk5IjCaxktp0dWDPtE896Q5BkW8_OgFZBw943PvhMU,83
3
3
  tcex/registry.py,sha256=sd32n-aQ7VT8PPfY59ewoVZklnCjnbK_g_euYHtkEOM,7134
4
4
  tcex/tcex.py,sha256=t6-uQXjqstIUSFBIqecnSuanNc9Ah_vfnHkdt5Zh_qg,6346
5
5
  tcex/api/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
@@ -7,13 +7,13 @@ tcex/api/api.py,sha256=AY7CvNoH8p9Ux70WdZ0jju1FPK3161gl2b91AZEG5n0,699
7
7
  tcex/api/tc/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
8
8
  tcex/api/tc/tc.py,sha256=hcJX07xd-U8xH3oVVGzorKgw2rf5IgiR7WABu_a6usw,2484
9
9
  tcex/api/tc/ti_transform/__init__.py,sha256=LVm97nquPmkcV_925b9tofWoqsRItG_hWmuO9kq1szU,438
10
- tcex/api/tc/ti_transform/ti_predefined_functions.py,sha256=VeoTCqk6CVH6ea2XwkIQF1kH2qf6O8RErGFqJ7wEGeA,12592
10
+ tcex/api/tc/ti_transform/ti_predefined_functions.py,sha256=liGlNx4PMCKLBs_bccIolWVn78oYJxgyE6TX0eN8Tb8,12906
11
11
  tcex/api/tc/ti_transform/ti_transform.py,sha256=2ivN9HtJNSuH2-xCfgm_iphXZ2t-uWal7xPJ1BXpAkc,13685
12
- tcex/api/tc/ti_transform/transform_abc.py,sha256=Ea9CktoEDw69MsV4QzDw4onF5wPK-U0G0OUN6ufv_l0,37529
12
+ tcex/api/tc/ti_transform/transform_abc.py,sha256=N8ASaYprvQXqti5Ezpf52mWBL69eCTNpfsNGPdkno9c,37620
13
13
  tcex/api/tc/ti_transform/model/__init__.py,sha256=OVG8XG6UjjX4mqWFBJOddjWTnOJrVikF_qj0ugqqGsI,599
14
- tcex/api/tc/ti_transform/model/transform_model.py,sha256=cphwJBkAuBNxCDrN6z1QIwWY3ApJPVGs_8NB4ZSDdpI,11500
14
+ tcex/api/tc/ti_transform/model/transform_model.py,sha256=bx0JvD70D1ENTMTIC1HJgJR8HkF3QGb7EIZjpHHomok,11509
15
15
  tcex/api/tc/util/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
16
- tcex/api/tc/util/threat_intel_util.py,sha256=eszXPe6GlnSr_5dowCiKYSRDcDN29UvAtpi9ZZ4zlBU,14878
16
+ tcex/api/tc/util/threat_intel_util.py,sha256=CrQQqZIbPIeFNokFcg1QzPAGgehgIZLhsHzFRGgFuQE,14878
17
17
  tcex/api/tc/v2/__init__.py,sha256=_JGT2MQVPhUmkCSR0VuHuK0_ee_G9fYKntObMnsYDRY,80
18
18
  tcex/api/tc/v2/v2.py,sha256=aTKZTMvT31F7oI5VtrCyl0Z8n-fJNZh6JIYvvyhyF_U,6835
19
19
  tcex/api/tc/v2/batch/__init__.py,sha256=T0Qtm7cG3BHMZEaqv2qEL3TUOGAOfs3fpaP1367suiI,373
@@ -82,13 +82,16 @@ tcex/api/tc/v3/v3.py,sha256=GlrVnz-5bRnXQ0fv-qWw7NKPIkJ6GJ5zaJXddDjGUt8,1575
82
82
  tcex/api/tc/v3/v3_model_abc.py,sha256=P03aLiZej1k8oRij5fYuLuDUxKi94SAfLXp8TUaZEQ4,19739
83
83
  tcex/api/tc/v3/v3_types.py,sha256=67siiRyLg9bKj4DjRFYEIdUMvKuzjvp5ovLMtxgyRgQ,1596
84
84
  tcex/api/tc/v3/_gen/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
85
- tcex/api/tc/v3/_gen/_gen.py,sha256=PJ2t_nWUeeHewchHOnOYkQD63jOMH-Vrdz_d3ozDNAk,9413
85
+ tcex/api/tc/v3/_gen/_gen.py,sha256=niGpsG3n9qVxle_MqFCR3v7H80vqcK5IXFhIopVzKUQ,9431
86
86
  tcex/api/tc/v3/_gen/_gen_abc.py,sha256=SCDcPdzzX7OzCwu8hjGOR5_YLx4rrG8VmHvybn-Kc70,6127
87
- tcex/api/tc/v3/_gen/_gen_args_abc.py,sha256=uw-0HiyjxJf7pYWU8Nh95wMm8HuONk_cXXfTBIH3uDg,3561
87
+ tcex/api/tc/v3/_gen/_gen_args_abc.py,sha256=BX73rS_ra09HcbtxMcEz_6avMIMWsajGGW5vpjfTbvo,3574
88
88
  tcex/api/tc/v3/_gen/_gen_filter_abc.py,sha256=YduXBUnYOZXEqh2VY1-l8J0dES4bpTg_jb8QIHoIT-Q,22382
89
89
  tcex/api/tc/v3/_gen/_gen_model_abc.py,sha256=LefyJrUZy88zaBw9ROCL_88iAJokOZApddmFKnTDMdg,17796
90
90
  tcex/api/tc/v3/_gen/_gen_object_abc.py,sha256=FKdkUy9RiYYk_g8ZTMobPYlqhqMw8CT6fuOyEsN1LWM,46460
91
+ tcex/api/tc/v3/_gen/_options_abc.py,sha256=fkDTUQjcyw610OeRHUiooNaKNwPFxXbHvTtUrlXvBBY,718
91
92
  tcex/api/tc/v3/_gen/_options_data.py,sha256=AJEndX0KpaqJX8Y1JwSWs8XWIPCP8ifIperh7c6aWUw,16016
93
+ tcex/api/tc/v3/_gen/_options_data_filter.py,sha256=mgrRAinNr_95n0VJzDqbTIGSvaz1-VTtaglKLU457W0,3543
94
+ tcex/api/tc/v3/_gen/_options_data_object.py,sha256=SARjGoD67uECKlN_Fy5QF1k0p9QBE0DzlYZxR1WBonM,15693
92
95
  tcex/api/tc/v3/_gen/model/__init__.py,sha256=j2Uezq8fEELf5lfnyy6YzHYN8zV7Q9WmltDLWadIBYM,205
93
96
  tcex/api/tc/v3/_gen/model/_extra_model.py,sha256=HCetu_Xo2R_Muz3raHDgizYsqhtxPoMtFv2xA_QZNno,1086
94
97
  tcex/api/tc/v3/_gen/model/_filter_model.py,sha256=PEfLq1iZ1cWF2DjrIVt1NibVjS4Rh9H5bz6w46ERXgk,5014
@@ -168,7 +171,7 @@ tcex/api/tc/v3/security/assignee_model.py,sha256=x6H21iHgyPQ13FDMTcgncXnBWBiYPCx
168
171
  tcex/api/tc/v3/security/assignee_user_group_model.py,sha256=XGqris1TDgiWMcZgf8nUUXUk6CkLSCKzS26mAtn5yZM,598
169
172
  tcex/api/tc/v3/security/assignee_user_model.py,sha256=lCK3nvdb3eG7tgqs4FgCTbdS2nghSzClF_fn7tX8XS4,601
170
173
  tcex/api/tc/v3/security/security.py,sha256=XvADeyYVvlpeC2guNvFnoASfozd3Gj2rK8sMuEn9JEY,2681
171
- tcex/api/tc/v3/security/task_assignee_model.py,sha256=9c5h4w5hRcCaUbhZpZemjyPtJ8Ckf5wqi2vRz79CNpg,2696
174
+ tcex/api/tc/v3/security/task_assignee_model.py,sha256=lfAAEDqXgrxihg-di3Jy3Gk2zSIxhbpV1sS8zBh1f20,2709
172
175
  tcex/api/tc/v3/security/exclusion_lists/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
173
176
  tcex/api/tc/v3/security/exclusion_lists/exclusion_list.py,sha256=1uVv4mGUQ9tFJtxMhbFQ5P8eGnFhPzgU7Q3SbziaaEk,3039
174
177
  tcex/api/tc/v3/security/exclusion_lists/exclusion_list_filter.py,sha256=KyROJJXmUTASygE98BxKaX_a8KC6XViZum7-nJIH8MQ,2843
@@ -248,15 +251,15 @@ tcex/app/config/tcex_json.py,sha256=XAj6KgANOcRWuCHsP_D6y_dH3KOk369MddhpYj1cX0I,
248
251
  tcex/app/config/tcex_json_update.py,sha256=zJ5h066f7vJ-f7mDJ2Ll7e6FpCnRXkUIP3KOH29wHMo,2436
249
252
  tcex/app/config/model/__init__.py,sha256=Qn3JeBB3BTfXQzD1vxv7z1DaIM72XC2trzSqeaBNTsE,383
250
253
  tcex/app/config/model/app_spec_yml_model.py,sha256=fPlsD4_2UGz0Cf_RJhRNJkhCSLzLvLINkG6GxEhNG4s,13762
251
- tcex/app/config/model/install_json_model.py,sha256=ZfND16vcOQDnpfZWSa76V495xRqf3YF-mcFEJa82Bok,35784
254
+ tcex/app/config/model/install_json_model.py,sha256=xS1nN86zFLwXL09MKX91JDQ7Zzf0rNjiOjfifjsYazc,35801
252
255
  tcex/app/config/model/job_json_model.py,sha256=fNRYQsvUJc4dnuI9KcMgYAqBXDPwhyfI7BSFdyUn_pA,2452
253
256
  tcex/app/config/model/layout_json_model.py,sha256=Y_RPsKuZxdZ8mb2HJmXnCiAvBWbnlChv05v9iG5WdNo,2593
254
257
  tcex/app/config/model/tcex_json_model.py,sha256=f3Z1Ufv7yzJL4Unep2FARSS3SME7UH3LLjczTAkJOpM,955
255
258
  tcex/app/decorator/__init__.py,sha256=kXWtqseVmlD5Gg7Xu23rWvGrKBYi31gneb8wUs37kio,423
256
- tcex/app/decorator/benchmark.py,sha256=Xe1slFGM5yYrZoWozPmPAnuwEF8kXGzzVWyF1MzE_bE,2824
257
- tcex/app/decorator/debug.py,sha256=Fum2vw9OOFbxBcl2dOjkOWuSS4aJgiXNdsA8Eq2AcbA,2061
258
- tcex/app/decorator/fail_on_output.py,sha256=scofwNtVw1fc1Kt-fCyOv-rp7VuwrqVrFvzng93LoVE,4903
259
- tcex/app/decorator/on_exception.py,sha256=ix5TsMDPZN-JFZX-RM7CSgBTGYPMZdHYgDGusJl4JG0,3875
259
+ tcex/app/decorator/benchmark.py,sha256=z010yMWEgxnnlLHeNuB6RS1SrEkfQPn3ONJ8SvxWOjQ,2825
260
+ tcex/app/decorator/debug.py,sha256=SYKWwz23rNtkVAj9MsZyldgW1tY_dAU-iKX_CuVtt0s,2062
261
+ tcex/app/decorator/fail_on_output.py,sha256=6iUFPX7tnU2wRyAJ79rwMzGKH8Fr8ptpwJ5WcfRBNvE,4904
262
+ tcex/app/decorator/on_exception.py,sha256=1dZn5D6WSG55CCu4mghb0WeSlWjinSHPznNrZOns__A,3876
260
263
  tcex/app/decorator/on_success.py,sha256=xkDuukg5iJtUgthGJKrxOUIEi-gXbTglAKh99rQztcg,2278
261
264
  tcex/app/decorator/output.py,sha256=lIqD99I89NUlCfN6qOeM0lIs1HJBfjD3tPsV7gBOwrM,3848
262
265
  tcex/app/key_value_store/__init__.py,sha256=XWhLzWVqSrS2kMKfE_RNOpVkUSb0JsrNxfXnBFknYSI,265
@@ -278,17 +281,17 @@ tcex/app/service/__init__.py,sha256=hNTeEC0XUTZVxYWZma7iZ0ntakxmAcRPLgzs9_UjZ9Q,
278
281
  tcex/app/service/api_service.py,sha256=M_MhClBZmE0DSTcb1EdDPK-QMtnGbKbRxHw1b3bNBH4,11253
279
282
  tcex/app/service/common_service.py,sha256=NWgA-pyqAd9_r7zkM0CYOrNSPh_MVV16Ru3Xw5B09bI,17029
280
283
  tcex/app/service/common_service_trigger.py,sha256=78mDxWZl7eGuLJNGPe40Cm3n95-0CPRYNt0vgjg2OwE,16588
281
- tcex/app/service/mqtt_message_broker.py,sha256=Acv4Df8Oop75xA6-uoxJTbAkjkozDLYNmzuY0JaZW98,11175
284
+ tcex/app/service/mqtt_message_broker.py,sha256=Qb-QN7oXrhbxC08YI2YbRFA2lkdKVUCOi79LvfDNV9I,11176
282
285
  tcex/app/service/webhook_trigger_service.py,sha256=ulvJVOsbGpDxeDBxAAncWr7vAy2qKRX7gn_24YVhSOg,15418
283
286
  tcex/app/token/__init__.py,sha256=uv-4BPtsK-RRwq6Vi1n2E_PdUYjsqg9i-XbxyganllU,75
284
- tcex/app/token/token.py,sha256=5tNljoFhNSwHaI3VSnP9JVXFJtxRHn18m0VywQYS7bE,12668
287
+ tcex/app/token/token.py,sha256=PxWRhFgBaDhMie9-Jxp_73pZoJeR5EQbFU9harZncjc,12668
285
288
  tcex/exit/__init__.py,sha256=83q6bVgnTOGLshRXR0EQFxd5vgBlFV8PMmHR9e_4PiM,165
286
289
  tcex/exit/error_code.py,sha256=_cIe6Tu3-hvozLJdzuLxYlkimMJcRYuFB5tUPvdSimA,5263
287
290
  tcex/exit/exit.py,sha256=7-2D8bdkAXYtYf0aVQeevxTNBqorNYvHxWWKm0mgT9c,5479
288
291
  tcex/input/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
289
292
  tcex/input/input.py,sha256=YoBCvjAv_T2upc1YKydpGnB0UofAZ_xanX5gc9gS2ag,16268
290
293
  tcex/input/field_type/__init__.py,sha256=48iGttT5Se2_jz8b4JQz2TEuwt7b23yE91XIRpyls7M,1917
291
- tcex/input/field_type/binary.py,sha256=KEr1_k1DUsGIYNH8qeJG68hTw3AZPsf6FrzMcZVlBKY,2604
294
+ tcex/input/field_type/binary.py,sha256=9t2_kRAvKlykgtGk6qKi6XoEe4wGeQc8bK5PbvW2r3o,2589
292
295
  tcex/input/field_type/case_management_entity.py,sha256=e2bZTFMTyYYwlqVNW7UdUVis1hL5aayrxb-FTbrZdaw,2348
293
296
  tcex/input/field_type/choice.py,sha256=jIyd3742sNuURnaDbxo3y5QJs3dNGlnXTf6rvNepYMw,2712
294
297
  tcex/input/field_type/datetime.py,sha256=wo03QZNTCWk0vKmtEtZgRssEFs72Ds7VuIu1Aa79cW0,1089
@@ -334,13 +337,13 @@ tcex/input/model/smtp_setting_model.py,sha256=GlM-4nm_z8m6LXVdvbsIuyYYcnjy-Rf0K9
334
337
  tcex/logger/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
335
338
  tcex/logger/api_handler.py,sha256=qse38x5qTmD9CxUZInz3sIVgNsi9JqWnRK3x88YWDtg,3953
336
339
  tcex/logger/cache_handler.py,sha256=P4L-7xdaxfEvKpt-03OaX8kW_MM6cFOo_4spVUi0C1Y,875
337
- tcex/logger/logger.py,sha256=svHHzkoeg9HqPhvEKxq1pTt-hZEUqzSaS_Szp6kLhy4,10268
340
+ tcex/logger/logger.py,sha256=okEEcAcDYR24X_rDgelxcb-s1NOmTZ14Zh1bhiifLrE,10268
338
341
  tcex/logger/rotating_file_handler_custom.py,sha256=SAJUFtLUQJA_yc-yE84g0EbG1fgxGtPJvjjlMKILlyU,1949
339
342
  tcex/logger/sensitive_filter.py,sha256=VDPhtRpE5qFD4NRMFeDLy3kGHM0fdGgnnqh_OsXPn98,1076
340
343
  tcex/logger/trace_logger.py,sha256=XFvy443_fj07hB_Qdhq8J9Wz8Ioye6N58lDCOZRMJFU,1011
341
344
  tcex/pleb/__init__.py,sha256=5eleElTxlRCBlyvE-Odw1xmuegxZGA1B3idhSZKAM7k,28
342
345
  tcex/pleb/cached_property.py,sha256=reMS4QquIEIq3HsqQQ9OXQ7qmeqTMRjvhFkB6eFP3kI,921
343
- tcex/pleb/cached_property_filesystem.py,sha256=E6yKCmCMUO4wKJPKQ54nb1AZOBJueNJy8_fRbax_-lY,10377
346
+ tcex/pleb/cached_property_filesystem.py,sha256=FZHKHHXXBLT9rM37MKkBqB5V-yUljFwRxhXyfKVaVKs,10369
344
347
  tcex/pleb/event.py,sha256=WkWUlm0p3nFRQIYdce_YISJigUpFx0q6UgvHYn2-hDo,799
345
348
  tcex/pleb/exception_thread.py,sha256=7Czkqc7SbaWR5EKvgpAEmdFM_5-koTT0ZpeciFGEuNc,737
346
349
  tcex/pleb/jmespath_custom.py,sha256=z_3zS1hJYSRt8fOqduLNbuhy8ICR2mlmsWKkd_ANiZc,11015
@@ -349,7 +352,7 @@ tcex/pleb/proxies.py,sha256=7yfk4C-YGBXSk-wgbysoLWQmMhKV-fE4iIXMzWm83CI,1324
349
352
  tcex/pleb/scoped_property.py,sha256=Kha92hLtkoqTx6OxrCOFQkFs9QwyVxzFLhIPF7VkzUs,2679
350
353
  tcex/pleb/singleton.py,sha256=wfVg1GA5-tksf1pfo2EnKY64iWsySidt9cAjdEUpK3E,438
351
354
  tcex/requests_external/__init__.py,sha256=J5aNZ7Kuj-an3WTNSjhmdOZQ8An_OulJeFk1D_HFhg4,218
352
- tcex/requests_external/external_session.py,sha256=qbk8PPAS_1ghb0QoNj_OR-QqLeXQ8N5hkND7qk8bhC8,13025
355
+ tcex/requests_external/external_session.py,sha256=NbR09chTmaRMiQ3L57grnsEmOzlc5GeUxWMrQG20XlA,13025
353
356
  tcex/requests_external/rate_limit_handler.py,sha256=oVZJc--HvzTohNc64tg_RJ1ibe5W115rnhec6u3cmZY,4890
354
357
  tcex/requests_external/requests_external.py,sha256=fJsP9HmykN0IgJ6F3CIW0A3m_XCsKOmHXc8fdd6EtZs,1834
355
358
  tcex/requests_tc/__init__.py,sha256=J1MdQgLnxh4a5k8E3_1HsFic4INtEN-U04hPhr9xGKk,138
@@ -361,7 +364,7 @@ tcex/requests_tc/auth/tc_auth.py,sha256=EuiEVOvaHlJF9nabsUGMjXfFJan3uuvN7ZFEIp23
361
364
  tcex/requests_tc/auth/token_auth.py,sha256=m89hQL5cuB6qk-5Y65kg7CDcn417hyX3fNz5Dfvx9cA,1374
362
365
  tcex/util/__init__.py,sha256=zm7IH2TvF93I3rp9Vy77tf2JkfORTPMf6IFvJeruNt4,72
363
366
  tcex/util/aes_operation.py,sha256=v5p2ksogT_LBdTPUAim-zmsyD3ai-3sYG199CxdXA5Y,1799
364
- tcex/util/code_operation.py,sha256=lesu_NiiNLanzLJcLKPt-4s2FU4RbSxpVkfOjczmu5A,4421
367
+ tcex/util/code_operation.py,sha256=yObGcDN4vOryGzvc8DQP2eOCmLEFBmhcKMRslJaKDBA,4579
365
368
  tcex/util/datetime_operation.py,sha256=vTCaOn18VYPGbi4dqVlV9sb2ofUYv37BdHNz6XNN7_M,10088
366
369
  tcex/util/file_operation.py,sha256=fY06df6JVAqoh5v_7vUrl6YZ0-KzpRZVEpprMdIEChM,7144
367
370
  tcex/util/requests_to_curl.py,sha256=b9TaGY0ROVlfXxBraPBiKlkWaAyCb4XP2gWfnV33MQk,5823
@@ -375,8 +378,8 @@ tcex/util/render/render.py,sha256=6DAvUQ_BigSVGPq8d-rebQT4CAkMcwfAmAY38JMEmXA,43
375
378
  tcex/util/render/render_panel.py,sha256=tSlidE0FzZYsxw-Ja7PnutzBjHwL3b1tYQvdvNQ9Uho,4622
376
379
  tcex/util/render/render_prompt.py,sha256=taUlf0cbYF9LNJWaIOlx_vRGw1tSZcCaTdoFQkCs4V4,1185
377
380
  tcex/util/render/render_table.py,sha256=EUImEEPxaMVdUJoRczBLiJmPZs3eclpwbW-Rs6pBC7M,1826
378
- tcex-5.0.0.dev1.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
379
- tcex-5.0.0.dev1.dist-info/METADATA,sha256=JeYlFEqrTV2rufwTOZrVvoFwFHK8JkyhEQYvu9zh4qk,3524
380
- tcex-5.0.0.dev1.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
381
- tcex-5.0.0.dev1.dist-info/top_level.txt,sha256=wpTUYXfrIrxjY6_ZdsV5rCOGQy79QDA9m-T_YW2-mRQ,5
382
- tcex-5.0.0.dev1.dist-info/RECORD,,
381
+ tcex-5.0.0.dev2.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
382
+ tcex-5.0.0.dev2.dist-info/METADATA,sha256=zN7EJTfcn5N1d-_4FqS8E97fRO9BSmMT3iXHnCm9FVU,3524
383
+ tcex-5.0.0.dev2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
384
+ tcex-5.0.0.dev2.dist-info/top_level.txt,sha256=wpTUYXfrIrxjY6_ZdsV5rCOGQy79QDA9m-T_YW2-mRQ,5
385
+ tcex-5.0.0.dev2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5