From f9879fd8d194343d916183d11225ed48f3a41aab Mon Sep 17 00:00:00 2001 From: Jonas <71401115+wattsecs@users.noreply.github.com> Date: Tue, 11 Feb 2025 07:10:14 +0100 Subject: [PATCH] feat: update to support opencti 6.5.0 --- CHANGELOG.md | 5 +- README.md | 2 +- create.go | 2 +- delete.go | 2 +- docker-compose.yml | 4 +- entity/opencti_attack_pattern.go | 2 +- entity/opencti_campaign.go | 2 +- entity/opencti_case_incident.go | 57 ++-- entity/opencti_case_rfi.go | 57 ++-- entity/opencti_case_rft.go | 57 ++-- entity/opencti_channel.go | 2 +- entity/opencti_course_of_action.go | 2 +- entity/opencti_data_component.go | 2 +- entity/opencti_data_source.go | 2 +- entity/opencti_event.go | 2 +- entity/opencti_external_reference.go | 2 +- entity/opencti_feedback.go | 2 +- entity/opencti_grouping.go | 49 ++-- entity/opencti_identity.go | 2 +- entity/opencti_incident.go | 2 +- entity/opencti_indicator.go | 2 +- entity/opencti_infrastructure.go | 2 +- entity/opencti_intrusion_set.go | 2 +- entity/opencti_kill_chain_phase.go | 2 +- entity/opencti_label.go | 2 +- entity/opencti_language.go | 2 +- entity/opencti_location.go | 2 +- entity/opencti_malware.go | 2 +- entity/opencti_malware_analysis.go | 2 +- entity/opencti_marking_definition.go | 2 +- entity/opencti_narrative.go | 2 +- entity/opencti_note.go | 2 +- entity/opencti_observed_data.go | 2 +- entity/opencti_opinion.go | 2 +- entity/opencti_report.go | 55 ++-- entity/opencti_stix_core_object.go | 2 +- entity/opencti_stix_core_relationship.go | 2 +- entity/opencti_stix_cyber_observable.go | 2 +- entity/opencti_stix_domain_object.go | 2 +- entity/opencti_task.go | 2 +- entity/opencti_threat_actor.go | 2 +- entity/opencti_threat_actor_group.go | 2 +- entity/opencti_threat_actor_individual.go | 2 +- entity/opencti_tool.go | 2 +- entity/opencti_vocabulary.go | 2 +- entity/opencti_vulnerability.go | 2 +- gocti.go | 2 +- graphql/types.go | 312 ++++++++++++++-------- list.go | 2 +- list/options.go | 2 +- read.go | 2 +- system/opencti_capability.go | 2 +- system/opencti_case_template.go | 2 +- system/opencti_group.go | 2 +- system/opencti_role.go | 2 +- system/opencti_status_template.go | 2 +- system/opencti_sub_type.go | 2 +- system/opencti_task_template.go | 2 +- system/opencti_user.go | 2 +- tools/gocti_type_generator/pyproject.toml | 4 +- 60 files changed, 393 insertions(+), 309 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d67ae3..e00738d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.9.0] - 2025-02-11 + +### Changed +- Support OpenCTI version 6.5.0 ### Fixed - Auto-update workflow uses a branch name unique to the OpenCTI version it diff --git a/README.md b/README.md index fbccbe7..731dafd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Unofficial [OpenCTI](https://github.com/OpenCTI-Platform/opencti) Go client. GoCTI is under development, hence breaking changes are to be expected until a version 1.0.0 is released. -GoCTI is currently compatible with OpenCTI version 6.4.10. +GoCTI is currently compatible with OpenCTI version 6.5.0. Like with [pycti](https://github.com/OpenCTI-Platform/client-python), the OpenCTI platform version supported by GoCTI should exactly match the version of your OpenCTI instance. No guarantees can be made with regards to back and forwards compatibility. diff --git a/create.go b/create.go index 3686344..60c80d7 100644 --- a/create.go +++ b/create.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package gocti diff --git a/delete.go b/delete.go index 2b1d700..5623ac2 100644 --- a/delete.go +++ b/delete.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package gocti diff --git a/docker-compose.yml b/docker-compose.yml index f58e52c..5c6449d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,7 +66,7 @@ services: timeout: 30s retries: 3 opencti: - image: opencti/platform:6.4.10 + image: opencti/platform:6.5.0 environment: - NODE_OPTIONS=--max-old-space-size=8096 - APP__PORT=8080 @@ -114,7 +114,7 @@ services: timeout: 5s retries: 20 worker: - image: opencti/worker:6.4.10 + image: opencti/worker:6.5.0 environment: - OPENCTI_URL=http://opencti:8080 - OPENCTI_TOKEN=${OPENCTI_ADMIN_TOKEN} diff --git a/entity/opencti_attack_pattern.go b/entity/opencti_attack_pattern.go index 30a39b0..49bc7f1 100644 --- a/entity/opencti_attack_pattern.go +++ b/entity/opencti_attack_pattern.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_campaign.go b/entity/opencti_campaign.go index c009aeb..a3a6cfd 100644 --- a/entity/opencti_campaign.go +++ b/entity/opencti_campaign.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_case_incident.go b/entity/opencti_case_incident.go index 469b03b..519f9d0 100644 --- a/entity/opencti_case_incident.go +++ b/entity/opencti_case_incident.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity @@ -67,33 +67,34 @@ func (c CaseIncident) CreateResponseField() string { return "caseIncidentAdd" } // (See the examples for ways to expand an existing type). type CaseIncidentAddInput struct { // CaseIncidentAddInput - StixID string `gocti:"stix_id" json:"stix_id,omitempty"` - XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Severity string `gocti:"severity" json:"severity,omitempty"` - Priority string `gocti:"priority" json:"priority,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Objects []string `gocti:"objects" json:"objects,omitempty"` - CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` - ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` - ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` - ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - ResponseTypes []string `gocti:"response_types" json:"response_types,omitempty"` - CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` - XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` - File []byte `gocti:"file" json:"file,omitempty"` - ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` - Update bool `gocti:"update" json:"update,omitempty"` + StixID string `gocti:"stix_id" json:"stix_id,omitempty"` + XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` + Name string `gocti:"name" json:"name,omitempty"` + Severity string `gocti:"severity" json:"severity,omitempty"` + Priority string `gocti:"priority" json:"priority,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + Content string `gocti:"content" json:"content,omitempty"` + ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Objects []string `gocti:"objects" json:"objects,omitempty"` + CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` + ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` + ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` + ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + ResponseTypes []string `gocti:"response_types" json:"response_types,omitempty"` + CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` + XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` + File []byte `gocti:"file" json:"file,omitempty"` + ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` + Update bool `gocti:"update" json:"update,omitempty"` + AuthorizedMembers []graphql.MemberAccessInput `gocti:"authorized_members" json:"authorized_members,omitempty"` } func (input CaseIncidentAddInput) Input() (map[string]any, error) { diff --git a/entity/opencti_case_rfi.go b/entity/opencti_case_rfi.go index a911a77..9ae1427 100644 --- a/entity/opencti_case_rfi.go +++ b/entity/opencti_case_rfi.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity @@ -67,33 +67,34 @@ func (c CaseRfi) CreateResponseField() string { return "caseRfiAdd" } // (See the examples for ways to expand an existing type). type CaseRfiAddInput struct { // CaseRfiAddInput - StixID string `gocti:"stix_id" json:"stix_id,omitempty"` - XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` - Severity string `gocti:"severity" json:"severity,omitempty"` - Priority string `gocti:"priority" json:"priority,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Objects []string `gocti:"objects" json:"objects,omitempty"` - CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` - ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` - ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` - ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` - File []byte `gocti:"file" json:"file,omitempty"` - ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` - Update bool `gocti:"update" json:"update,omitempty"` - InformationTypes []string `gocti:"information_types" json:"information_types,omitempty"` - CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` + StixID string `gocti:"stix_id" json:"stix_id,omitempty"` + XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` + Name string `gocti:"name" json:"name,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + Content string `gocti:"content" json:"content,omitempty"` + ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` + Severity string `gocti:"severity" json:"severity,omitempty"` + Priority string `gocti:"priority" json:"priority,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Objects []string `gocti:"objects" json:"objects,omitempty"` + CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` + ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` + ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` + ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` + File []byte `gocti:"file" json:"file,omitempty"` + ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` + Update bool `gocti:"update" json:"update,omitempty"` + InformationTypes []string `gocti:"information_types" json:"information_types,omitempty"` + CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` + AuthorizedMembers []graphql.MemberAccessInput `gocti:"authorized_members" json:"authorized_members,omitempty"` } func (input CaseRfiAddInput) Input() (map[string]any, error) { diff --git a/entity/opencti_case_rft.go b/entity/opencti_case_rft.go index d0e98f9..f2fb66c 100644 --- a/entity/opencti_case_rft.go +++ b/entity/opencti_case_rft.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity @@ -67,33 +67,34 @@ func (c CaseRft) CreateResponseField() string { return "caseRftAdd" } // (See the examples for ways to expand an existing type). type CaseRftAddInput struct { // CaseRftAddInput - StixID string `gocti:"stix_id" json:"stix_id,omitempty"` - XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` - Severity string `gocti:"severity" json:"severity,omitempty"` - Priority string `gocti:"priority" json:"priority,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Objects []string `gocti:"objects" json:"objects,omitempty"` - CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` - ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` - ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` - ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - File []byte `gocti:"file" json:"file,omitempty"` - ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` - XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` - Update bool `gocti:"update" json:"update,omitempty"` - TakedownTypes []string `gocti:"takedown_types" json:"takedown_types,omitempty"` - CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` + StixID string `gocti:"stix_id" json:"stix_id,omitempty"` + XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` + Name string `gocti:"name" json:"name,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + Content string `gocti:"content" json:"content,omitempty"` + ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` + Severity string `gocti:"severity" json:"severity,omitempty"` + Priority string `gocti:"priority" json:"priority,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Objects []string `gocti:"objects" json:"objects,omitempty"` + CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` + ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` + ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` + ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + File []byte `gocti:"file" json:"file,omitempty"` + ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` + XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` + Update bool `gocti:"update" json:"update,omitempty"` + TakedownTypes []string `gocti:"takedown_types" json:"takedown_types,omitempty"` + CaseTemplates []string `gocti:"caseTemplates" json:"caseTemplates,omitempty"` + AuthorizedMembers []graphql.MemberAccessInput `gocti:"authorized_members" json:"authorized_members,omitempty"` } func (input CaseRftAddInput) Input() (map[string]any, error) { diff --git a/entity/opencti_channel.go b/entity/opencti_channel.go index a8fddb9..e212651 100644 --- a/entity/opencti_channel.go +++ b/entity/opencti_channel.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_course_of_action.go b/entity/opencti_course_of_action.go index 475910c..bd473a8 100644 --- a/entity/opencti_course_of_action.go +++ b/entity/opencti_course_of_action.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_data_component.go b/entity/opencti_data_component.go index ffcbf52..134ea42 100644 --- a/entity/opencti_data_component.go +++ b/entity/opencti_data_component.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_data_source.go b/entity/opencti_data_source.go index e149380..9159ed5 100644 --- a/entity/opencti_data_source.go +++ b/entity/opencti_data_source.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_event.go b/entity/opencti_event.go index 36a83c8..724ce06 100644 --- a/entity/opencti_event.go +++ b/entity/opencti_event.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_external_reference.go b/entity/opencti_external_reference.go index 2d78269..ff8a6b5 100644 --- a/entity/opencti_external_reference.go +++ b/entity/opencti_external_reference.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_feedback.go b/entity/opencti_feedback.go index 476da49..a45c887 100644 --- a/entity/opencti_feedback.go +++ b/entity/opencti_feedback.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_grouping.go b/entity/opencti_grouping.go index 84a293d..2c3ff4b 100644 --- a/entity/opencti_grouping.go +++ b/entity/opencti_grouping.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity @@ -67,29 +67,30 @@ func (g Grouping) CreateResponseField() string { return "groupingAdd" } // (See the examples for ways to expand an existing type). type GroupingAddInput struct { // GroupingAddInput - StixID string `gocti:"stix_id" json:"stix_id,omitempty"` - XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` - Context graphql.GroupingContext `gocti:"context" json:"context,omitempty"` - XOpenctiAliases []string `gocti:"x_opencti_aliases" json:"x_opencti_aliases,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` - ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` - Objects []string `gocti:"objects" json:"objects,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` - XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` - Update bool `gocti:"update" json:"update,omitempty"` - File []byte `gocti:"file" json:"file,omitempty"` + StixID string `gocti:"stix_id" json:"stix_id,omitempty"` + XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` + Name string `gocti:"name" json:"name,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + Content string `gocti:"content" json:"content,omitempty"` + ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` + Context graphql.GroupingContext `gocti:"context" json:"context,omitempty"` + XOpenctiAliases []string `gocti:"x_opencti_aliases" json:"x_opencti_aliases,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` + ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` + Objects []string `gocti:"objects" json:"objects,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` + XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` + Update bool `gocti:"update" json:"update,omitempty"` + File []byte `gocti:"file" json:"file,omitempty"` + AuthorizedMembers []graphql.MemberAccessInput `gocti:"authorized_members" json:"authorized_members,omitempty"` } func (input GroupingAddInput) Input() (map[string]any, error) { diff --git a/entity/opencti_identity.go b/entity/opencti_identity.go index 962cc75..25411d9 100644 --- a/entity/opencti_identity.go +++ b/entity/opencti_identity.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_incident.go b/entity/opencti_incident.go index f482324..369d4b4 100644 --- a/entity/opencti_incident.go +++ b/entity/opencti_incident.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_indicator.go b/entity/opencti_indicator.go index 6cce0ad..ed84a50 100644 --- a/entity/opencti_indicator.go +++ b/entity/opencti_indicator.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_infrastructure.go b/entity/opencti_infrastructure.go index 73cf9dc..1544b71 100644 --- a/entity/opencti_infrastructure.go +++ b/entity/opencti_infrastructure.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_intrusion_set.go b/entity/opencti_intrusion_set.go index 967d2ff..e5f62c4 100644 --- a/entity/opencti_intrusion_set.go +++ b/entity/opencti_intrusion_set.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_kill_chain_phase.go b/entity/opencti_kill_chain_phase.go index 37b8ec1..9603316 100644 --- a/entity/opencti_kill_chain_phase.go +++ b/entity/opencti_kill_chain_phase.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_label.go b/entity/opencti_label.go index 492c5ae..cfb6c5b 100644 --- a/entity/opencti_label.go +++ b/entity/opencti_label.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_language.go b/entity/opencti_language.go index f8c1d64..db9bbb9 100644 --- a/entity/opencti_language.go +++ b/entity/opencti_language.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_location.go b/entity/opencti_location.go index 48e3de0..fcc705d 100644 --- a/entity/opencti_location.go +++ b/entity/opencti_location.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_malware.go b/entity/opencti_malware.go index 5786aa1..dae8d40 100644 --- a/entity/opencti_malware.go +++ b/entity/opencti_malware.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_malware_analysis.go b/entity/opencti_malware_analysis.go index 53378b4..699f77a 100644 --- a/entity/opencti_malware_analysis.go +++ b/entity/opencti_malware_analysis.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_marking_definition.go b/entity/opencti_marking_definition.go index 9478fd7..8435990 100644 --- a/entity/opencti_marking_definition.go +++ b/entity/opencti_marking_definition.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_narrative.go b/entity/opencti_narrative.go index dff1db9..ed16828 100644 --- a/entity/opencti_narrative.go +++ b/entity/opencti_narrative.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_note.go b/entity/opencti_note.go index 53efc8a..0bd3f5c 100644 --- a/entity/opencti_note.go +++ b/entity/opencti_note.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_observed_data.go b/entity/opencti_observed_data.go index 18e9206..7413d42 100644 --- a/entity/opencti_observed_data.go +++ b/entity/opencti_observed_data.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_opinion.go b/entity/opencti_opinion.go index e8b9199..16331f0 100644 --- a/entity/opencti_opinion.go +++ b/entity/opencti_opinion.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_report.go b/entity/opencti_report.go index aa874f9..9edcd86 100644 --- a/entity/opencti_report.go +++ b/entity/opencti_report.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity @@ -67,32 +67,33 @@ func (r Report) CreateResponseField() string { return "reportAdd" } // (See the examples for ways to expand an existing type). type ReportAddInput struct { // ReportAddInput - StixID string `gocti:"stix_id" json:"stix_id,omitempty"` - XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` - Published *time.Time `gocti:"published" json:"published,omitempty"` - ReportTypes []graphql.ReportType `gocti:"report_types" json:"report_types,omitempty"` - XOpenctiReliability string `gocti:"x_opencti_reliability" json:"x_opencti_reliability,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` - ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` - ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` - ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` - Objects []string `gocti:"objects" json:"objects,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` - ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` - Update bool `gocti:"update" json:"update,omitempty"` - File []byte `gocti:"file" json:"file,omitempty"` + StixID string `gocti:"stix_id" json:"stix_id,omitempty"` + XOpenctiStixIDs []string `gocti:"x_opencti_stix_ids" json:"x_opencti_stix_ids,omitempty"` + Name string `gocti:"name" json:"name,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + Content string `gocti:"content" json:"content,omitempty"` + ContentMapping string `gocti:"content_mapping" json:"content_mapping,omitempty"` + Published *time.Time `gocti:"published" json:"published,omitempty"` + ReportTypes []graphql.ReportType `gocti:"report_types" json:"report_types,omitempty"` + XOpenctiReliability string `gocti:"x_opencti_reliability" json:"x_opencti_reliability,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + CreatedBy string `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectOrganization []string `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ObjectMarking []string `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectAssignee []string `gocti:"objectAssignee" json:"objectAssignee,omitempty"` + ObjectParticipant []string `gocti:"objectParticipant" json:"objectParticipant,omitempty"` + ObjectLabel []string `gocti:"objectLabel" json:"objectLabel,omitempty"` + ExternalReferences []string `gocti:"externalReferences" json:"externalReferences,omitempty"` + Objects []string `gocti:"objects" json:"objects,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + XOpenctiWorkflowID string `gocti:"x_opencti_workflow_id" json:"x_opencti_workflow_id,omitempty"` + ClientMutationID string `gocti:"clientMutationId" json:"clientMutationId,omitempty"` + Update bool `gocti:"update" json:"update,omitempty"` + File []byte `gocti:"file" json:"file,omitempty"` + AuthorizedMembers []graphql.MemberAccessInput `gocti:"authorized_members" json:"authorized_members,omitempty"` } func (input ReportAddInput) Input() (map[string]any, error) { diff --git a/entity/opencti_stix_core_object.go b/entity/opencti_stix_core_object.go index b205aaf..d9a0d4c 100644 --- a/entity/opencti_stix_core_object.go +++ b/entity/opencti_stix_core_object.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_stix_core_relationship.go b/entity/opencti_stix_core_relationship.go index a482f34..d8dac1d 100644 --- a/entity/opencti_stix_core_relationship.go +++ b/entity/opencti_stix_core_relationship.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_stix_cyber_observable.go b/entity/opencti_stix_cyber_observable.go index 0ded269..de653e5 100644 --- a/entity/opencti_stix_cyber_observable.go +++ b/entity/opencti_stix_cyber_observable.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_stix_domain_object.go b/entity/opencti_stix_domain_object.go index 946a9b5..55afcd8 100644 --- a/entity/opencti_stix_domain_object.go +++ b/entity/opencti_stix_domain_object.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_task.go b/entity/opencti_task.go index 3b2b99f..c8f64fc 100644 --- a/entity/opencti_task.go +++ b/entity/opencti_task.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_threat_actor.go b/entity/opencti_threat_actor.go index c0d89e4..6d47992 100644 --- a/entity/opencti_threat_actor.go +++ b/entity/opencti_threat_actor.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_threat_actor_group.go b/entity/opencti_threat_actor_group.go index cf1b11a..950632d 100644 --- a/entity/opencti_threat_actor_group.go +++ b/entity/opencti_threat_actor_group.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_threat_actor_individual.go b/entity/opencti_threat_actor_individual.go index 2cd2cb8..93a8643 100644 --- a/entity/opencti_threat_actor_individual.go +++ b/entity/opencti_threat_actor_individual.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_tool.go b/entity/opencti_tool.go index 627fa2e..3be875a 100644 --- a/entity/opencti_tool.go +++ b/entity/opencti_tool.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_vocabulary.go b/entity/opencti_vocabulary.go index 88ee75d..0d9d478 100644 --- a/entity/opencti_vocabulary.go +++ b/entity/opencti_vocabulary.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/entity/opencti_vulnerability.go b/entity/opencti_vulnerability.go index ba3c5b5..0d18bf2 100644 --- a/entity/opencti_vulnerability.go +++ b/entity/opencti_vulnerability.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package entity diff --git a/gocti.go b/gocti.go index 8806f08..d9c84d6 100644 --- a/gocti.go +++ b/gocti.go @@ -25,7 +25,7 @@ import ( //go:generate go run ./tools/generator.go ./tools const ( - goctiVersion = "0.8.0" + goctiVersion = "0.9.0" ) // Config holds all the [OpenCTIAPIClient] parameters that can be set by environment variables. diff --git a/graphql/types.go b/graphql/types.go index 70b5b43..9765522 100644 --- a/graphql/types.go +++ b/graphql/types.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package graphql @@ -633,10 +633,10 @@ type Case struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Case Name string `gocti:"name" json:"name,omitempty"` @@ -750,10 +750,10 @@ type CaseIncident struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Case Name string `gocti:"name" json:"name,omitempty"` @@ -817,10 +817,10 @@ type CaseRfi struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Case Name string `gocti:"name" json:"name,omitempty"` @@ -883,10 +883,10 @@ type CaseRft struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Case Name string `gocti:"name" json:"name,omitempty"` @@ -1255,32 +1255,32 @@ func (c ConnectorQueueDetails) MarshalJSON() ([]byte, error) { // (See the examples for ways to decode an interface field into an implementation). type Container struct { // Container - ID string `gocti:"id" json:"id,omitempty"` - StandardID string `gocti:"standard_id" json:"standard_id,omitempty"` - EntityType string `gocti:"entity_type" json:"entity_type,omitempty"` - ParentTypes []string `gocti:"parent_types" json:"parent_types,omitempty"` - SpecVersion string `gocti:"spec_version" json:"spec_version,omitempty"` - CreatedAt *time.Time `gocti:"created_at" json:"created_at,omitempty"` - UpdatedAt *time.Time `gocti:"updated_at" json:"updated_at,omitempty"` - DraftVersion DraftVersion `gocti:"draftVersion" json:"draftVersion,omitempty"` - CreatedBy Identity `gocti:"createdBy" json:"createdBy,omitempty"` - ObjectMarking []MarkingDefinition `gocti:"objectMarking" json:"objectMarking,omitempty"` - ObjectOrganization []Organization `gocti:"objectOrganization" json:"objectOrganization,omitempty"` - ObjectLabel []Label `gocti:"objectLabel" json:"objectLabel,omitempty"` - ExternalReferences ExternalReferenceConnection `gocti:"externalReferences" json:"externalReferences,omitempty"` - OpinionsMetrics OpinionsMetrics `gocti:"opinions_metrics" json:"opinions_metrics,omitempty"` - Revoked bool `gocti:"revoked" json:"revoked,omitempty"` - Confidence int `gocti:"confidence" json:"confidence,omitempty"` - Lang string `gocti:"lang" json:"lang,omitempty"` - Created *time.Time `gocti:"created" json:"created,omitempty"` - Modified *time.Time `gocti:"modified" json:"modified,omitempty"` - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` - Creators []Creator `gocti:"creators" json:"creators,omitempty"` - WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` - Status Status `gocti:"status" json:"status,omitempty"` + ID string `gocti:"id" json:"id,omitempty"` + StandardID string `gocti:"standard_id" json:"standard_id,omitempty"` + EntityType string `gocti:"entity_type" json:"entity_type,omitempty"` + ParentTypes []string `gocti:"parent_types" json:"parent_types,omitempty"` + SpecVersion string `gocti:"spec_version" json:"spec_version,omitempty"` + CreatedAt *time.Time `gocti:"created_at" json:"created_at,omitempty"` + UpdatedAt *time.Time `gocti:"updated_at" json:"updated_at,omitempty"` + DraftVersion DraftVersion `gocti:"draftVersion" json:"draftVersion,omitempty"` + CreatedBy Identity `gocti:"createdBy" json:"createdBy,omitempty"` + ObjectMarking []MarkingDefinition `gocti:"objectMarking" json:"objectMarking,omitempty"` + ObjectOrganization []Organization `gocti:"objectOrganization" json:"objectOrganization,omitempty"` + ObjectLabel []Label `gocti:"objectLabel" json:"objectLabel,omitempty"` + ExternalReferences ExternalReferenceConnection `gocti:"externalReferences" json:"externalReferences,omitempty"` + OpinionsMetrics OpinionsMetrics `gocti:"opinions_metrics" json:"opinions_metrics,omitempty"` + Revoked bool `gocti:"revoked" json:"revoked,omitempty"` + Confidence int `gocti:"confidence" json:"confidence,omitempty"` + Lang string `gocti:"lang" json:"lang,omitempty"` + Created *time.Time `gocti:"created" json:"created,omitempty"` + Modified *time.Time `gocti:"modified" json:"modified,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` + Creators []Creator `gocti:"creators" json:"creators,omitempty"` + WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` + Status Status `gocti:"status" json:"status,omitempty"` // For storing interface implementations' data Remain map[string]any `gocti:",remain"` @@ -2391,9 +2391,11 @@ func (d DomainNameAddInput) MarshalJSON() ([]byte, error) { type DraftOperation string const ( - DraftOperationCreate DraftOperation = "create" - DraftOperationUpdate DraftOperation = "update" - DraftOperationDelete DraftOperation = "delete" + DraftOperationCreate DraftOperation = "create" + DraftOperationUpdate DraftOperation = "update" + DraftOperationUpdateLinked DraftOperation = "update_linked" + DraftOperationDelete DraftOperation = "delete" + DraftOperationDeleteLinked DraftOperation = "delete_linked" ) func (d DraftOperation) MarshalJSON() ([]byte, error) { @@ -2811,6 +2813,7 @@ type EntitySetting struct { CreatedAt *time.Time `gocti:"created_at" json:"created_at,omitempty"` UpdatedAt *time.Time `gocti:"updated_at" json:"updated_at,omitempty"` OverviewLayoutCustomization []OverviewWidgetCustomization `gocti:"overview_layout_customization" json:"overview_layout_customization,omitempty"` + FintelTemplates FintelTemplateConnection `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` } func (e EntitySetting) MarshalJSON() ([]byte, error) { @@ -3007,10 +3010,10 @@ type Feedback struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Case Name string `gocti:"name" json:"name,omitempty"` @@ -3139,6 +3142,100 @@ func (f FileMetadata) MarshalJSON() ([]byte, error) { return json.Marshal((*tempFileMetadata)(&f)) } +// FintelTemplate represents a GraphQL OBJECT +// Some fields from the OpenCTI schema may be missing +// (See the examples for ways to expand an existing type). +type FintelTemplate struct { + // InternalObject + ID string `gocti:"id" json:"id,omitempty"` + EntityType string `gocti:"entity_type" json:"entity_type,omitempty"` + + // BasicObject + StandardID string `gocti:"standard_id" json:"standard_id,omitempty"` + ParentTypes []string `gocti:"parent_types" json:"parent_types,omitempty"` + + // FintelTemplate + Name string `gocti:"name" json:"name,omitempty"` + SettingsTypes []string `gocti:"settings_types" json:"settings_types,omitempty"` + Description string `gocti:"description" json:"description,omitempty"` + InstanceFilters string `gocti:"instance_filters" json:"instance_filters,omitempty"` + TemplateContent string `gocti:"template_content" json:"template_content,omitempty"` + StartDate *time.Time `gocti:"start_date" json:"start_date,omitempty"` + FintelTemplateWidgets []FintelTemplateWidget `gocti:"fintel_template_widgets" json:"fintel_template_widgets,omitempty"` + ToConfigurationExport string `gocti:"toConfigurationExport" json:"toConfigurationExport,omitempty"` +} + +func (f FintelTemplate) MarshalJSON() ([]byte, error) { + if reflect.ValueOf(f).IsZero() { + return []byte("null"), nil + } + + type tempFintelTemplate FintelTemplate + + //nolint:wrapcheck // To avoid complete implementation + return json.Marshal((*tempFintelTemplate)(&f)) +} + +// FintelTemplateConnection represents a GraphQL OBJECT +// Some fields from the OpenCTI schema may be missing +// (See the examples for ways to expand an existing type). +type FintelTemplateConnection struct { + // FintelTemplateConnection + PageInfo PageInfo `gocti:"pageInfo" json:"pageInfo,omitempty"` + Edges []FintelTemplateEdge `gocti:"edges" json:"edges,omitempty"` +} + +func (f FintelTemplateConnection) MarshalJSON() ([]byte, error) { + if reflect.ValueOf(f).IsZero() { + return []byte("null"), nil + } + + type tempFintelTemplateConnection FintelTemplateConnection + + //nolint:wrapcheck // To avoid complete implementation + return json.Marshal((*tempFintelTemplateConnection)(&f)) +} + +// FintelTemplateEdge represents a GraphQL OBJECT +// Some fields from the OpenCTI schema may be missing +// (See the examples for ways to expand an existing type). +type FintelTemplateEdge struct { + // FintelTemplateEdge + Cursor string `gocti:"cursor" json:"cursor,omitempty"` + Node FintelTemplate `gocti:"node" json:"node,omitempty"` +} + +func (f FintelTemplateEdge) MarshalJSON() ([]byte, error) { + if reflect.ValueOf(f).IsZero() { + return []byte("null"), nil + } + + type tempFintelTemplateEdge FintelTemplateEdge + + //nolint:wrapcheck // To avoid complete implementation + return json.Marshal((*tempFintelTemplateEdge)(&f)) +} + +// FintelTemplateWidget represents a GraphQL OBJECT +// Some fields from the OpenCTI schema may be missing +// (See the examples for ways to expand an existing type). +type FintelTemplateWidget struct { + // FintelTemplateWidget + VariableName string `gocti:"variable_name" json:"variable_name,omitempty"` + Widget Widget `gocti:"widget" json:"widget,omitempty"` +} + +func (f FintelTemplateWidget) MarshalJSON() ([]byte, error) { + if reflect.ValueOf(f).IsZero() { + return []byte("null"), nil + } + + type tempFintelTemplateWidget FintelTemplateWidget + + //nolint:wrapcheck // To avoid complete implementation + return json.Marshal((*tempFintelTemplateWidget)(&f)) +} + // Group represents a GraphQL OBJECT // Some fields from the OpenCTI schema may be missing // (See the examples for ways to expand an existing type). @@ -3261,10 +3358,10 @@ type Grouping struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Grouping Name string `gocti:"name" json:"name,omitempty"` @@ -4720,6 +4817,26 @@ func (m MemberAccess) MarshalJSON() ([]byte, error) { return json.Marshal((*tempMemberAccess)(&m)) } +// MemberAccessInput represents a GraphQL INPUT_OBJECT +// Some fields from the OpenCTI schema may be missing +// (See the examples for ways to expand an existing type). +type MemberAccessInput struct { + // MemberAccessInput + ID string `gocti:"id" json:"id,omitempty"` + AccessRight string `gocti:"access_right" json:"access_right,omitempty"` +} + +func (m MemberAccessInput) MarshalJSON() ([]byte, error) { + if reflect.ValueOf(m).IsZero() { + return []byte("null"), nil + } + + type tempMemberAccessInput MemberAccessInput + + //nolint:wrapcheck // To avoid complete implementation + return json.Marshal((*tempMemberAccessInput)(&m)) +} + // Mutex represents a GraphQL OBJECT // Some fields from the OpenCTI schema may be missing // (See the examples for ways to expand an existing type). @@ -5011,10 +5128,10 @@ type Note struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Note AttributeAbstract string `gocti:"attribute_abstract" json:"attribute_abstract,omitempty"` @@ -5211,10 +5328,10 @@ type ObservedData struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // ObservedData FirstObserved *time.Time `gocti:"first_observed" json:"first_observed,omitempty"` @@ -5272,10 +5389,10 @@ type Opinion struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Opinion Explanation string `gocti:"explanation" json:"explanation,omitempty"` @@ -6114,10 +6231,10 @@ type Report struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Report Name string `gocti:"name" json:"name,omitempty"` @@ -8237,10 +8354,10 @@ type Task struct { WorkflowEnabled bool `gocti:"workflowEnabled" json:"workflowEnabled,omitempty"` // Container - Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` - ContentsFromTemplate FileConnection `gocti:"contentsFromTemplate" json:"contentsFromTemplate,omitempty"` - Templates []Template `gocti:"templates" json:"templates,omitempty"` - TemplateAndUtils TemplateAndUtils `gocti:"templateAndUtils" json:"templateAndUtils,omitempty"` + AuthorizedMembersActivationDate *time.Time `gocti:"authorized_members_activation_date" json:"authorized_members_activation_date,omitempty"` + Objects StixObjectOrStixRelationshipRefConnection `gocti:"objects" json:"objects,omitempty"` + FilesFromTemplate FileConnection `gocti:"filesFromTemplate" json:"filesFromTemplate,omitempty"` + FintelTemplates []FintelTemplate `gocti:"fintelTemplates" json:"fintelTemplates,omitempty"` // Task Name string `gocti:"name" json:"name,omitempty"` @@ -8369,50 +8486,6 @@ func (t TaskTemplateEdge) MarshalJSON() ([]byte, error) { return json.Marshal((*tempTaskTemplateEdge)(&t)) } -// Template represents a GraphQL OBJECT -// Some fields from the OpenCTI schema may be missing -// (See the examples for ways to expand an existing type). -type Template struct { - // Template - ID string `gocti:"id" json:"id,omitempty"` - Name string `gocti:"name" json:"name,omitempty"` - Description string `gocti:"description" json:"description,omitempty"` - Filters string `gocti:"filters" json:"filters,omitempty"` - Content string `gocti:"content" json:"content,omitempty"` - TemplateWidgetsIDs []string `gocti:"template_widgets_ids" json:"template_widgets_ids,omitempty"` -} - -func (t Template) MarshalJSON() ([]byte, error) { - if reflect.ValueOf(t).IsZero() { - return []byte("null"), nil - } - - type tempTemplate Template - - //nolint:wrapcheck // To avoid complete implementation - return json.Marshal((*tempTemplate)(&t)) -} - -// TemplateAndUtils represents a GraphQL OBJECT -// Some fields from the OpenCTI schema may be missing -// (See the examples for ways to expand an existing type). -type TemplateAndUtils struct { - // TemplateAndUtils - Template Template `gocti:"template" json:"template,omitempty"` - TemplateWidgets []Widget `gocti:"template_widgets" json:"template_widgets,omitempty"` -} - -func (t TemplateAndUtils) MarshalJSON() ([]byte, error) { - if reflect.ValueOf(t).IsZero() { - return []byte("null"), nil - } - - type tempTemplateAndUtils TemplateAndUtils - - //nolint:wrapcheck // To avoid complete implementation - return json.Marshal((*tempTemplateAndUtils)(&t)) -} - // Text represents a GraphQL OBJECT // Some fields from the OpenCTI schema may be missing // (See the examples for ways to expand an existing type). @@ -9467,6 +9540,8 @@ type WidgetDataSelection struct { DynamicTo string `gocti:"dynamicTo" json:"dynamicTo,omitempty"` Columns []WidgetColumn `gocti:"columns" json:"columns,omitempty"` InstanceID string `gocti:"instance_id" json:"instance_id,omitempty"` + SortBy string `gocti:"sort_by" json:"sort_by,omitempty"` + SortMode string `gocti:"sort_mode" json:"sort_mode,omitempty"` } func (w WidgetDataSelection) MarshalJSON() ([]byte, error) { @@ -9709,6 +9784,7 @@ type Work struct { Messages []WorkMessage `gocti:"messages" json:"messages,omitempty"` Errors []WorkMessage `gocti:"errors" json:"errors,omitempty"` Tracking WorkTracking `gocti:"tracking" json:"tracking,omitempty"` + DraftContext string `gocti:"draft_context" json:"draft_context,omitempty"` } func (w Work) MarshalJSON() ([]byte, error) { diff --git a/list.go b/list.go index 2ce7d4e..1eb5d3c 100644 --- a/list.go +++ b/list.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package gocti diff --git a/list/options.go b/list/options.go index 5b83c21..1679539 100644 --- a/list/options.go +++ b/list/options.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package list diff --git a/read.go b/read.go index 4ea1d0e..7a27155 100644 --- a/read.go +++ b/read.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package gocti diff --git a/system/opencti_capability.go b/system/opencti_capability.go index ac38bef..b81610a 100644 --- a/system/opencti_capability.go +++ b/system/opencti_capability.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_case_template.go b/system/opencti_case_template.go index 27ed192..9d7bd2e 100644 --- a/system/opencti_case_template.go +++ b/system/opencti_case_template.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_group.go b/system/opencti_group.go index 3855d72..1157bf6 100644 --- a/system/opencti_group.go +++ b/system/opencti_group.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_role.go b/system/opencti_role.go index 69f82a5..b3b6bbf 100644 --- a/system/opencti_role.go +++ b/system/opencti_role.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_status_template.go b/system/opencti_status_template.go index 798f36d..cc3ba6a 100644 --- a/system/opencti_status_template.go +++ b/system/opencti_status_template.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_sub_type.go b/system/opencti_sub_type.go index 09c4b5e..b53b14b 100644 --- a/system/opencti_sub_type.go +++ b/system/opencti_sub_type.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_task_template.go b/system/opencti_task_template.go index 24e20a0..30a45a6 100644 --- a/system/opencti_task_template.go +++ b/system/opencti_task_template.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/system/opencti_user.go b/system/opencti_user.go index 272e95c..218c222 100644 --- a/system/opencti_user.go +++ b/system/opencti_user.go @@ -1,4 +1,4 @@ -// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.4.10 - DO NOT EDIT. +// Code generated by '/tools/gocti_type_generator' for OpenCTI version 6.5.0 - DO NOT EDIT. package system diff --git a/tools/gocti_type_generator/pyproject.toml b/tools/gocti_type_generator/pyproject.toml index 55c9d45..7a1fff4 100644 --- a/tools/gocti_type_generator/pyproject.toml +++ b/tools/gocti_type_generator/pyproject.toml @@ -10,10 +10,10 @@ authors = [ description = "Generator tool for GoCTI." readme = "README.md" license = {text = "Apache 2.0"} -version = "0.8.0" +version = "0.9.0" dependencies = [ "python-dotenv", - "pycti==6.4.10", + "pycti==6.5.0", "rich", ]