pycti 6.0.3__py3-none-any.whl → 6.0.4__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.0.3"
2
+ __version__ = "6.0.4"
3
3
 
4
4
  from .api.opencti_api_client import OpenCTIApiClient
5
5
  from .api.opencti_api_connector import OpenCTIApiConnector
@@ -210,6 +210,9 @@ class OpenCTIApiClient:
210
210
  "true" if synchronized is True else "false"
211
211
  )
212
212
 
213
+ def set_previous_standard_header(self, previous_standard):
214
+ self.request_headers["previous-standard"] = previous_standard
215
+
213
216
  def get_request_headers(self):
214
217
  return self.request_headers
215
218
 
@@ -274,7 +274,7 @@ class ExternalReference:
274
274
  if id is not None and file_name is not None:
275
275
  final_file_name = os.path.basename(file_name)
276
276
  query = """
277
- mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $version: String, $noTriggerImport: Boolean) {
277
+ mutation ExternalReferenceEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
278
278
  externalReferenceEdit(id: $id) {
279
279
  importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
280
280
  id
@@ -770,7 +770,7 @@ class StixCyberObservable:
770
770
  if id is not None and file_name is not None:
771
771
  final_file_name = os.path.basename(file_name)
772
772
  query = """
773
- mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $version: String, $noTriggerImport: Boolean) {
773
+ mutation StixCyberObservableEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
774
774
  stixCyberObservableEdit(id: $id) {
775
775
  importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
776
776
  id
@@ -1286,7 +1286,7 @@ class StixDomainObject:
1286
1286
  if id is not None and file_name is not None:
1287
1287
  final_file_name = os.path.basename(file_name)
1288
1288
  query = """
1289
- mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $version: String, $noTriggerImport: Boolean) {
1289
+ mutation StixDomainObjectEdit($id: ID!, $file: Upload!, $version: DateTime, $noTriggerImport: Boolean) {
1290
1290
  stixDomainObjectEdit(id: $id) {
1291
1291
  importPush(file: $file, version: $version, noTriggerImport: $noTriggerImport) {
1292
1292
  id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycti
3
- Version: 6.0.3
3
+ Version: 6.0.4
4
4
  Summary: Python API client for OpenCTI.
5
5
  Home-page: https://github.com/OpenCTI-Platform/client-python
6
6
  Author: Filigran
@@ -1,6 +1,6 @@
1
- pycti/__init__.py,sha256=cCYq9twBWggNNTaKfRuKM4Jxe7CcSk0TiDsW8WZLbpk,4691
1
+ pycti/__init__.py,sha256=XiDcU3tfngNzx4T0018HGu9XPfGIn1qZwOwYtLd4ZG0,4691
2
2
  pycti/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- pycti/api/opencti_api_client.py,sha256=Kydofv47L-YyNHhRjx2e_E6nn0vI-5Pb7WZjH9hb-YM,28846
3
+ pycti/api/opencti_api_client.py,sha256=Jhzsl17JL78IphkbkM1ujLP4Pa8PfIGtUNkEcNRjHxM,28980
4
4
  pycti/api/opencti_api_connector.py,sha256=fYF0Jy9KIMFNt1RC_A1rpWomVJ-oj5HiSsBem4W0J5U,3549
5
5
  pycti/api/opencti_api_playbook.py,sha256=Wcf-G__IHmR7LwtUFVUVx4Skg9e2mcb89n_HyfWC9YM,1383
6
6
  pycti/api/opencti_api_work.py,sha256=ow30gswv4k5zLlZGlvLAn47ZM07RLsYvEV-KwtwedQg,7109
@@ -19,7 +19,7 @@ pycti/entities/opencti_course_of_action.py,sha256=hHjMj8V7Shx275bdvXWAomzsGOz8mu
19
19
  pycti/entities/opencti_data_component.py,sha256=sysuoh_blUlP1ZKzD6VqHkWZW09-gWVl1Wh8y9vG9Uc,18582
20
20
  pycti/entities/opencti_data_source.py,sha256=YXhwvacEZCkHBUkW3eRaCwcGRKw1ZRgAjL4C1o-gbKU,17470
21
21
  pycti/entities/opencti_event.py,sha256=Pam3eeR_Ytl_the-kV9IxXcfJKs2vRqN61igyDAlVE4,16706
22
- pycti/entities/opencti_external_reference.py,sha256=PyhjArtyk9z4X-FYikKjzXubimKn0btnze_zezgVpJ8,13214
22
+ pycti/entities/opencti_external_reference.py,sha256=9Vz6ZIaE6im1f5hoEqizq5E31DQ7oFuqlXb-9JGy3Ao,13216
23
23
  pycti/entities/opencti_feedback.py,sha256=cWfrMkIz_hj34ndVvty5YhDvuIDqmazgFVIGPtX7Zao,31738
24
24
  pycti/entities/opencti_grouping.py,sha256=ESHKhmziy3pCNwPRKYStZi5p-TBE_u2D5j-v-4isYhQ,29320
25
25
  pycti/entities/opencti_identity.py,sha256=YKTQugOSwyxSoMRWSdMWZkagidTbYQzi-Q1aEWO1a_8,22879
@@ -42,8 +42,8 @@ pycti/entities/opencti_report.py,sha256=tSMSCsAGgZny94EjFtidEws7Uf0gBI-nPHwkqPg2
42
42
  pycti/entities/opencti_stix.py,sha256=uMheSg8i1f2Ozx2Mk0iShWzHHjj6MMWDtV5nDjVxKEE,2275
43
43
  pycti/entities/opencti_stix_core_object.py,sha256=QRiAk5_loi4JLJN4aXSq8DTwFFzOLhbA7Y-2R3aO8kw,48728
44
44
  pycti/entities/opencti_stix_core_relationship.py,sha256=cD825areOn2quv06M28YGE7A3bTQ8_Pxx1QW6JyoQBs,42895
45
- pycti/entities/opencti_stix_cyber_observable.py,sha256=n8e0kfTrVprG8Ws9nOsTJoTQ49ntuD4scG-PXfbJooQ,104714
46
- pycti/entities/opencti_stix_domain_object.py,sha256=fEV_3hGbTPWuNx_Sgd0Fe4NFFeNZNJxGsybcmpt5oZw,78741
45
+ pycti/entities/opencti_stix_cyber_observable.py,sha256=GzxaI3q28FURIPQFa6WapiPG90mNCR0zDlTar2UgEcE,104716
46
+ pycti/entities/opencti_stix_domain_object.py,sha256=xjU7-ew7nPbAf3U0uHC8TtC4n9leoMRklOHOUGIkdZk,78743
47
47
  pycti/entities/opencti_stix_nested_ref_relationship.py,sha256=2r1i7cUl-WWictlnC_MJrm9sTIt_yJe2uqTpQm-yo6o,12330
48
48
  pycti/entities/opencti_stix_object_or_stix_relationship.py,sha256=NOJdUU9cm_gMBne13EZPb8cfxOhTfgVVmv8A0yasQeI,14610
49
49
  pycti/entities/opencti_stix_sighting_relationship.py,sha256=AmX1LBS8cW5a_dlik_sx-nBDvUcqb193gs4m3pB9C5U,27584
@@ -61,8 +61,8 @@ pycti/utils/opencti_stix2.py,sha256=iZXHqxXC4yklLBJ4t5alAG7Mw1ddp058eDQM2Ztn_HU,
61
61
  pycti/utils/opencti_stix2_splitter.py,sha256=Ht9Mp-W3gbwxIKEr7i_5NYpcDr3TA2gYdC4TzOz0G4c,4496
62
62
  pycti/utils/opencti_stix2_update.py,sha256=CnMyqkeVA0jgyxEcgqna8sABU4YPMjkEJ228GVurIn4,14658
63
63
  pycti/utils/opencti_stix2_utils.py,sha256=_ijIz6SRP2OeIaWJcXJt8go510MUEGfWE3KY-I_9QZc,3725
64
- pycti-6.0.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
- pycti-6.0.3.dist-info/METADATA,sha256=1oZ5rIo8txjmix28Tm4nlgCqHJwRjDXFbCcjj0b78Y4,5398
66
- pycti-6.0.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
67
- pycti-6.0.3.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
68
- pycti-6.0.3.dist-info/RECORD,,
64
+ pycti-6.0.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
65
+ pycti-6.0.4.dist-info/METADATA,sha256=-ZAxUtZ7MzSXCvVNDpMSjnQ4mKexU0Y-e4UaMgkhMt4,5398
66
+ pycti-6.0.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
67
+ pycti-6.0.4.dist-info/top_level.txt,sha256=cqEpxitAhHP4VgSA6xmrak6Yk9MeBkwoMTB6k7d2ZnE,6
68
+ pycti-6.0.4.dist-info/RECORD,,
File without changes
File without changes