diff --git a/eiffellib/events/eiffel_activity_started_event.py b/eiffellib/events/eiffel_activity_started_event.py index aa6867a..ff8a9ee 100644 --- a/eiffellib/events/eiffel_activity_started_event.py +++ b/eiffellib/events/eiffel_activity_started_event.py @@ -1,4 +1,4 @@ -# Copyright 2019 Axis Communications AB. +# Copyright 2019-2021 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # @@ -32,7 +32,7 @@ class EiffelActivityStartedData(EiffelBaseData): class EiffelActivityStartedEvent(EiffelBaseEvent): """Eiffel activity started event.""" - version = "3.0.0" + version = "4.0.0" def __init__(self, version=None): """Initialize data, meta and links.""" diff --git a/eiffellib/events/eiffel_activity_triggered_event.py b/eiffellib/events/eiffel_activity_triggered_event.py index d9a1b86..b17372d 100644 --- a/eiffellib/events/eiffel_activity_triggered_event.py +++ b/eiffellib/events/eiffel_activity_triggered_event.py @@ -1,4 +1,4 @@ -# Copyright 2019 Axis Communications AB. +# Copyright 2019-2021 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # @@ -32,7 +32,7 @@ class EiffelActivityTriggeredData(EiffelBaseData): class EiffelActivityTriggeredEvent(EiffelBaseEvent): """Eiffel activity triggered event.""" - version = "3.0.0" + version = "4.0.0" def __init__(self, version=None): """Initialize data, meta and links.""" diff --git a/eiffellib/events/eiffel_artifact_published_event.py b/eiffellib/events/eiffel_artifact_published_event.py index 111eaf8..29b2fb6 100644 --- a/eiffellib/events/eiffel_artifact_published_event.py +++ b/eiffellib/events/eiffel_artifact_published_event.py @@ -1,4 +1,4 @@ -# Copyright 2019 Axis Communications AB. +# Copyright 2019-2021 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # @@ -32,7 +32,7 @@ class EiffelArtifactPublishedData(EiffelBaseData): class EiffelArtifactPublishedEvent(EiffelBaseEvent): """Eiffel artifact published event.""" - version = "3.0.0" + version = "3.1.0" def __init__(self, version=None): """Initialize data, meta and links.""" diff --git a/eiffellib/events/eiffel_composition_defined_event.py b/eiffellib/events/eiffel_composition_defined_event.py index cf6faac..a711dcb 100644 --- a/eiffellib/events/eiffel_composition_defined_event.py +++ b/eiffellib/events/eiffel_composition_defined_event.py @@ -1,4 +1,4 @@ -# Copyright 2019 Axis Communications AB. +# Copyright 2019-2021 Axis Communications AB. # # For a full list of individual contributors, please see the commit history. # @@ -32,7 +32,7 @@ class EiffelCompositionDefinedData(EiffelBaseData): class EiffelCompositionDefinedEvent(EiffelBaseEvent): """Eiffel composition defined event.""" - version = "3.0.0" + version = "3.1.0" def __init__(self, version=None): """Initialize data, meta and links.""" diff --git a/eiffellib/schemas/EiffelActivityStartedEvent/4.0.0.json b/eiffellib/schemas/EiffelActivityStartedEvent/4.0.0.json new file mode 100644 index 0000000..9e43e60 --- /dev/null +++ b/eiffellib/schemas/EiffelActivityStartedEvent/4.0.0.json @@ -0,0 +1,185 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + }, + "type": { + "type": "string", + "enum": ["EiffelActivityStartedEvent"] + }, + "version": { + "type": "string", + "enum": [ "4.0.0" ], + "default": "4.0.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "executionUri": { + "type": "string" + }, + "liveLogs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "uri": { + "type": "string" + } + }, + "required": [ + "name", + "uri" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/eiffellib/schemas/EiffelActivityTriggeredEvent/4.0.0.json b/eiffellib/schemas/EiffelActivityTriggeredEvent/4.0.0.json new file mode 100644 index 0000000..39aa16c --- /dev/null +++ b/eiffellib/schemas/EiffelActivityTriggeredEvent/4.0.0.json @@ -0,0 +1,209 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + }, + "type": { + "type": "string", + "enum": ["EiffelActivityTriggeredEvent"] + }, + "version": { + "type": "string", + "enum": [ "4.0.0" ], + "default": "4.0.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + }, + "triggers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "MANUAL", + "EIFFEL_EVENT", + "SOURCE_CHANGE", + "TIMER", + "OTHER" + ] + }, + "description": { + "type": "string" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + } + }, + "executionType": { + "type": "string", + "enum": [ + "MANUAL", + "SEMI_AUTOMATED", + "AUTOMATED", + "OTHER" + ] + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/eiffellib/schemas/EiffelArtifactPublishedEvent/3.1.0.json b/eiffellib/schemas/EiffelArtifactPublishedEvent/3.1.0.json new file mode 100644 index 0000000..a06e211 --- /dev/null +++ b/eiffellib/schemas/EiffelArtifactPublishedEvent/3.1.0.json @@ -0,0 +1,194 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + }, + "type": { + "type": "string", + "enum": ["EiffelArtifactPublishedEvent"] + }, + "version": { + "type": "string", + "enum": [ "3.1.0" ], + "default": "3.1.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "locations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "ARTIFACTORY", + "NEXUS", + "PLAIN", + "OTHER" + ] + }, + "uri": { + "type": "string" + } + }, + "required": [ + "type", + "uri" + ], + "additionalProperties": false + } + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "locations" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +} diff --git a/eiffellib/schemas/EiffelCompositionDefinedEvent/3.1.0.json b/eiffellib/schemas/EiffelCompositionDefinedEvent/3.1.0.json new file mode 100644 index 0000000..5318b4a --- /dev/null +++ b/eiffellib/schemas/EiffelCompositionDefinedEvent/3.1.0.json @@ -0,0 +1,172 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "meta": { + "type": "object", + "properties": { + "id": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + }, + "type": { + "type": "string", + "enum": [ "EiffelCompositionDefinedEvent" ] + }, + "version": { + "type": "string", + "enum": [ "3.1.0" ], + "default": "3.1.0" + }, + "time": { + "type": "integer" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "source": { + "type": "object", + "properties": { + "domainId": { + "type": "string" + }, + "host": { + "type": "string" + }, + "name": { + "type": "string" + }, + "serializer": { + "type": "string", + "pattern": "^pkg:" + }, + "uri": { + "type": "string" + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "authorIdentity": { + "type": "string" + }, + "integrityProtection": { + "type": "object", + "properties": { + "signature": { + "type": "string" + }, + "alg": { + "type": "string", + "enum": ["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "PS256", "PS384", "PS512"] + }, + "publicKey": { + "type": "string" + } + }, + "required": [ + "signature", + "alg" + ], + "additionalProperties": false + }, + "sequenceProtection": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sequenceName": { + "type": "string" + }, + "position": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "sequenceName", + "position" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "authorIdentity" + ] + } + }, + "required": [ + "id", + "type", + "version", + "time" + ], + "additionalProperties": false + }, + "data": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "customData": { + "type": "array", + "items": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + } + }, + "required": [ + "key", + "value" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "links": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "target": { + "type": "string", + "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + } + }, + "required": [ + "type", + "target" + ], + "additionalProperties": false + } + } + }, + "required": [ + "meta", + "data", + "links" + ], + "additionalProperties": false +}