pycti 6.3.11__py3-none-any.whl → 6.3.12__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.

Potentially problematic release.


This version of pycti might be problematic. Click here for more details.

pycti/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
- __version__ = "6.3.11"
2
+ __version__ = "6.3.12"
3
3
 
4
4
  from .api.opencti_api_client import OpenCTIApiClient
5
5
  from .api.opencti_api_connector import OpenCTIApiConnector
@@ -269,14 +269,15 @@ class ExternalReference:
269
269
  file_name = kwargs.get("file_name", None)
270
270
  data = kwargs.get("data", None)
271
271
  version = kwargs.get("version", None)
272
+ file_markings = kwargs.get("fileMarkings", None)
272
273
  mime_type = kwargs.get("mime_type", "text/plain")
273
274
  no_trigger_import = kwargs.get("no_trigger_import", False)
274
275
  if id is not None and file_name is not None:
275
276
  final_file_name = os.path.basename(file_name)
276
277
  query = """
277
- mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
278
+ mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
278
279
  externalReferenceEdit(id: $id) {
279
- importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
280
+ importPush(file: $file, fileMarkings: $fileMarkings, version: $version, noTriggerImport: $noTriggerImport) {
280
281
  id
281
282
  name
282
283
  }
@@ -298,6 +299,7 @@ class ExternalReference:
298
299
  {
299
300
  "id": id,
300
301
  "file": (self.file(final_file_name, data, mime_type)),
302
+ "fileMarkings": file_markings,
301
303
  "version": version,
302
304
  "noTriggerImport": (
303
305
  no_trigger_import
@@ -184,15 +184,16 @@ class StixCyberObservable(StixCyberObservableDeprecatedMixin):
184
184
  id = kwargs.get("id", None)
185
185
  file_name = kwargs.get("file_name", None)
186
186
  data = kwargs.get("data", None)
187
+ file_markings = kwargs.get("fileMarkings", None)
187
188
  version = kwargs.get("version", None)
188
189
  mime_type = kwargs.get("mime_type", "text/plain")
189
190
  no_trigger_import = kwargs.get("no_trigger_import", False)
190
191
  if id is not None and file_name is not None:
191
192
  final_file_name = os.path.basename(file_name)
192
193
  query = """
193
- mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
194
+ mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
194
195
  stixCyberObservableEdit(id: $id) {
195
- importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
196
+ importPush(file: $file, version: $version, fileMarkings: $fileMarkings, noTriggerImport: $noTriggerImport) {
196
197
  id
197
198
  name
198
199
  }
@@ -214,6 +215,7 @@ class StixCyberObservable(StixCyberObservableDeprecatedMixin):
214
215
  {
215
216
  "id": id,
216
217
  "file": (self.file(final_file_name, data, mime_type)),
218
+ "fileMarkings": file_markings,
217
219
  "version": version,
218
220
  "noTriggerImport": (
219
221
  no_trigger_import
@@ -1286,15 +1286,16 @@ class StixDomainObject:
1286
1286
  id = kwargs.get("id", None)
1287
1287
  file_name = kwargs.get("file_name", None)
1288
1288
  data = kwargs.get("data", None)
1289
+ file_markings = kwargs.get("fileMarkings", None)
1289
1290
  version = kwargs.get("version", None)
1290
1291
  mime_type = kwargs.get("mime_type", "text/plain")
1291
1292
  no_trigger_import = kwargs.get("no_trigger_import", False)
1292
1293
  if id is not None and file_name is not None:
1293
1294
  final_file_name = os.path.basename(file_name)
1294
1295
  query = """
1295
- mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
1296
+ mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $fileMarkings: [String], $version: DateTime, $noTriggerImport: Boolean) {
1296
1297
  stixDomainObjectEdit(id: $id) {
1297
- importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
1298
+ importPush(file: $file, version: $version, fileMarkings: $fileMarkings, noTriggerImport: $noTriggerImport) {
1298
1299
  id
1299
1300
  name
1300
1301
  }
@@ -1316,6 +1317,7 @@ class StixDomainObject:
1316
1317
  {
1317
1318
  "id": id,
1318
1319
  "file": (self.file(final_file_name, data, mime_type)),
1320
+ "fileMarkings": file_markings,
1319
1321
  "version": version,
1320
1322
  "noTriggerImport": (
1321
1323
  no_trigger_import
@@ -560,6 +560,7 @@ class OpenCTIStix2:
560
560
  file_name=file["name"],
561
561
  version=file.get("version", None),
562
562
  data=base64.b64decode(file["data"]),
563
+ fileMarkings=file.get("object_marking_refs", None),
563
564
  mime_type=file["mime_type"],
564
565
  no_trigger_import=file.get(
565
566
  "no_trigger_import", False
@@ -580,6 +581,7 @@ class OpenCTIStix2:
580
581
  file_name=file["name"],
581
582
  version=file.get("version", None),
582
583
  data=base64.b64decode(file["data"]),
584
+ fileMarkings=file.get("object_marking_refs", None),
583
585
  mime_type=file["mime_type"],
584
586
  no_trigger_import=file.get(
585
587
  "no_trigger_import", False
@@ -734,6 +736,7 @@ class OpenCTIStix2:
734
736
  file_name=file["name"],
735
737
  version=file.get("version", None),
736
738
  data=base64.b64decode(file["data"]),
739
+ fileMarkings=file.get("object_marking_refs", None),
737
740
  mime_type=file["mime_type"],
738
741
  no_trigger_import=file.get("no_trigger_import", False),
739
742
  )
@@ -750,6 +753,7 @@ class OpenCTIStix2:
750
753
  file_name=file["name"],
751
754
  version=file.get("version", None),
752
755
  data=base64.b64decode(file["data"]),
756
+ fileMarkings=file.get("object_marking_refs", None),
753
757
  mime_type=file["mime_type"],
754
758
  no_trigger_import=file.get("no_trigger_import", False),
755
759
  )
@@ -987,6 +991,7 @@ class OpenCTIStix2:
987
991
  file_name=file["name"],
988
992
  version=file.get("version", None),
989
993
  data=base64.b64decode(file["data"]),
994
+ fileMarkings=file.get("object_marking_refs", None),
990
995
  mime_type=file["mime_type"],
991
996
  no_trigger_import=file.get("no_trigger_import", False),
992
997
  )
@@ -1003,6 +1008,7 @@ class OpenCTIStix2:
1003
1008
  file_name=file["name"],
1004
1009
  version=file.get("version", None),
1005
1010
  data=base64.b64decode(file["data"]),
1011
+ fileMarkings=file.get("object_marking_refs", None),
1006
1012
  mime_type=file["mime_type"],
1007
1013
  no_trigger_import=file.get("no_trigger_import", False),
1008
1014
  )
@@ -1114,6 +1120,7 @@ class OpenCTIStix2:
1114
1120
  file_name=file["name"],
1115
1121
  version=file.get("version", None),
1116
1122
  data=base64.b64decode(file["data"]),
1123
+ fileMarkings=file.get("object_marking_refs", None),
1117
1124
  mime_type=file["mime_type"],
1118
1125
  no_trigger_import=file.get("no_trigger_import", False),
1119
1126
  )
@@ -1130,6 +1137,7 @@ class OpenCTIStix2:
1130
1137
  file_name=file["name"],
1131
1138
  version=file.get("version", None),
1132
1139
  data=base64.b64decode(file["data"]),
1140
+ fileMarkings=file.get("object_marking_refs", None),
1133
1141
  mime_type=file["mime_type"],
1134
1142
  no_trigger_import=file.get("no_trigger_import", False),
1135
1143
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycti
3
- Version: 6.3.11
3
+ Version: 6.3.12
4
4
  Summary: Python API client for OpenCTI.
5
5
  Home-page: https://github.com/OpenCTI-Platform/client-python
6
6
  Author: Filigran
@@ -1,4 +1,4 @@
1
- pycti/__init__.py,sha256=5oKzWC9F6Zfm3BRu7snTJF2IgW4sXDMnuBNzxDJefkg,5219
1
+ pycti/__init__.py,sha256=iQhYHU0NWwFwtbD943PXfWHAb7UAZmNTzstxOMA8LII,5219
2
2
  pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  pycti/api/opencti_api_client.py,sha256=WpJs3GtEO0kV29KXmKY-2JmtiL6JSPD-746-FbnIcik,31027
4
4
  pycti/api/opencti_api_connector.py,sha256=ubM_zPjTD8L33TEugCQgf_YF9zugDFg_7FgNubGlwJw,5447
@@ -19,7 +19,7 @@ pycti/entities/opencti_course_of_action.py,sha256=j_yZqvfeCba2FBSf0Pf2ZoDYUL_qpn
19
19
  pycti/entities/opencti_data_component.py,sha256=081y2bc4lz5E8esNloLNrZnIUCDicD3vKycIETwsyuE,19158
20
20
  pycti/entities/opencti_data_source.py,sha256=QeBDLuH5BZs0_rnQmXZGs0wWfxfC6qPcRFEWuAuaSaM,18046
21
21
  pycti/entities/opencti_event.py,sha256=Pam3eeR_Ytl_the-kV9IxXcfJKs2vRqN61igyDAlVE4,16706
22
- pycti/entities/opencti_external_reference.py,sha256=9Vz6ZIaE6im1f5hoEqizq5E31DQ7oFuqlXb-9JGy3Ao,13216
22
+ pycti/entities/opencti_external_reference.py,sha256=t54oKLvhbg6wY_GN10AAmJzPRjOi97zBk8m4SHoM7d4,13378
23
23
  pycti/entities/opencti_feedback.py,sha256=tK_Y3ZK2h33xQTzsjxu3x8Za3cBsgkBth_xNzEj2Hms,32314
24
24
  pycti/entities/opencti_grouping.py,sha256=Er4931oZy4rQzH4HOOOPOQotqH9HsDFoVKFXRNF-5J4,30034
25
25
  pycti/entities/opencti_identity.py,sha256=Bt6z8cNNnmPdV4iPSHb_FvO_9CGZdOHvhw9pT0llWH4,23685
@@ -42,8 +42,8 @@ pycti/entities/opencti_report.py,sha256=y-in19XqQ1BN0MZjKfxiOWe_0Q4Wakrj2MLrqzFp
42
42
  pycti/entities/opencti_stix.py,sha256=uMheSg8i1f2Ozx2Mk0iShWzHHjj6MMWDtV5nDjVxKEE,2275
43
43
  pycti/entities/opencti_stix_core_object.py,sha256=Lc0-lytsEjQRWD9VkVTHPrWPgqOzqT99qwndOQIRYCw,51683
44
44
  pycti/entities/opencti_stix_core_relationship.py,sha256=ldhS0rJ9L6LrY1wvX28f9TMpVD1rVxsK-GYhH06qJFo,43944
45
- pycti/entities/opencti_stix_cyber_observable.py,sha256=JAo2xBwPfAznX4e2Cv1y8vKVBKpkFpG2D22yTMNKWk4,91932
46
- pycti/entities/opencti_stix_domain_object.py,sha256=XAwPHe9tUjtGRZLu6BNdotXxYYjf5_AFIkHLeu6NzFo,78732
45
+ pycti/entities/opencti_stix_cyber_observable.py,sha256=ywZHND5Kfykurn-EUO2k0-hdpsrCHHFjpb4xONVGEt8,92094
46
+ pycti/entities/opencti_stix_domain_object.py,sha256=LyKy5DbhtffO_sHJO3Xo1_PcuPi27pTKp_ETYhdU_zs,78894
47
47
  pycti/entities/opencti_stix_nested_ref_relationship.py,sha256=eGCF7yaEDqMsJbgvTDle0tVzRCF78CmEhE02jioUTCc,12605
48
48
  pycti/entities/opencti_stix_object_or_stix_relationship.py,sha256=5qutzML6SyYzDhZ-QpI9Vh23hzLEs-xeFAAZOpGHZ2g,18049
49
49
  pycti/entities/opencti_stix_sighting_relationship.py,sha256=OPbdanElqnAj7cLu2eh1P5PBh_54xfxnW36HX_5wnEs,28077
@@ -62,13 +62,13 @@ pycti/entities/stix_cyber_observable/opencti_stix_cyber_observable_properties.py
62
62
  pycti/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  pycti/utils/constants.py,sha256=ZgOVxY5bnrHiNvPgOfZLWk16sSDnaE_tg8JVjZpw24Q,11831
64
64
  pycti/utils/opencti_logger.py,sha256=0dvB75V0SuPFGxL539dAQrxTt1N5Acx0A3Ogwl5WMJ8,2199
65
- pycti/utils/opencti_stix2.py,sha256=nFbdoSgk8PLcYveUeCpvVd9u8ekHOBndfX46VkXD_-Q,116651
65
+ pycti/utils/opencti_stix2.py,sha256=NIesCMOGpBFUCNCEqyV2JexZX0-ww5E9VNfeF7xVSpc,117315
66
66
  pycti/utils/opencti_stix2_identifier.py,sha256=k8L1z4q1xdCBfxqUba4YS_kT-MmbJFxYh0RvfGOmrOs,837
67
67
  pycti/utils/opencti_stix2_splitter.py,sha256=etnAWMDzNi2JCovSUJ5Td-XLVdzgKRdsV1XfpXOGols,11070
68
68
  pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
69
69
  pycti/utils/opencti_stix2_utils.py,sha256=xgBZzm7HC76rLQYwTKkaUd_w9jJnVMoryHx7KDDIB_g,5065
70
- pycti-6.3.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
71
- pycti-6.3.11.dist-info/METADATA,sha256=bBGfnEtVVmKzkKRQL6CVAz8iLd6KMl04MnCTnJqYGF4,5419
72
- pycti-6.3.11.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
73
- pycti-6.3.11.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
74
- pycti-6.3.11.dist-info/RECORD,,
70
+ pycti-6.3.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
71
+ pycti-6.3.12.dist-info/METADATA,sha256=cQPTcFLXNB5DG-W2tjU960MBuRnXA2xAhCrp2aq6E5I,5419
72
+ pycti-6.3.12.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
73
+ pycti-6.3.12.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
74
+ pycti-6.3.12.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.0)
2
+ Generator: setuptools (75.5.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5