The datamodel as the schema namespace defines it the root level first then every complex type in the order the root reaches it then the simple types A field whose type the schema defines links to its section schema definition xsd klok project build event v1 xsd dev klok klok public
The root element holds one of the type the root level Field Type Cardinality Description specversion string 0 1 type string 0 1 source string 0 1 id string 0 1 time dateTime 0 1 datacontenttype string 0 1 subject string 0 1 Complex field Type Cardinality Description data KlokBuildDataPayloadType 0 1 One is a CloudEvent describing a build performed on the Klok platform It carries the standard CloudEvent envelope fields and wraps the actual build results in its payload allowing consumers to process or store information about a specific project build Simple Fields The root type contains standard metadata fields that follow the CloudEvent specification The schema does not provide specific business documentation for these fields so their description relies on the field names and types All simple fields are optional Field Type Cardinality Description specversion string 0 1 Holds the version of the CloudEvent specification used for this event type string 0 1 Identifies the type of the event typically indicating the nature of the build action or outcome source string 0 1 Contains a URI reference that identifies the context in which the event happened often pointing to the specific build pipeline or project source id string 0 1 Provides a unique identifier for this specific event instance time dateTime 0 1 Records the timestamp of when the event occurred or was generated datacontenttype string 0 1 Specifies the media type of the content found in the data field typically application json subject string 0 1 Optional subject of the event in the context of the producing service which can further clarify the event s purpose Complex Fields The only complex field in the root level is the payload container This field holds a It acts as the wrapper for the substantive results of the build process containing collections of route documentation and build metadata The specific structure and contents of this payload are detailed in the section KlokProjectBuildEventV1 data 0 1 data KlokBuildDataPayloadType KlokBuildDataPayloadType KlokProjectBuildEvent_v1 KlokProjectBuildEvent KlokProjectBuildEventV1
Used in KlokProjectBuildEventV1 Complex field Type Cardinality Description klokRouteDoc KlokRouteDocType 0 n metadata KlokBuildDataMapEntryType 0 n A serves as the container for the primary data within a object It holds the specific results and metadata generated during a build process acting as the payload field of the root event structure This type aggregates optional collections of route documentation and build data metadata allowing consumers of the event to access detailed insights without requiring fixed mandatory fields Fields The following fields belong to Since the schema contains no explicit documentation for these elements their purpose is inferred strictly from their names types and cardinality Field Type Cardinality Description klokRouteDoc KlokRouteDocType complex 0 n A collection of complex objects representing documentation associated with specific routes within the build metadata KlokBuildDataMapEntryType complex 0 n A collection of complex objects representing key value pairs or structured entries containing build metadata klokRouteDoc Type Cardinality 0 n Optional Repeated Explanation This field accepts zero or more instances of It is designed to store documentation artifacts or definitions related to integration routes processed or generated during the build The specific structure of each document is defined in metadata Type Cardinality 0 n Optional Repeated Explanation This field accepts zero or more instances of It holds supplementary data about the build typically structured as map entries The specific structure of each entry such as keys values or data types is defined in Structural Relationships No Choice Constraints The schema does not indicate that and are mutually exclusive Both can appear in the same instance Complex Dependencies The meaningfulness of the data depends entirely on the structures of and Developers mapping to this type must consult the separate sections for these complex types to understand the internal fields required for validation or serialization Position in Model This type is nested directly under the field of Therefore it is not the root element itself but the substantive content wrapper within the event KlokBuildDataPayloadType KlokProjectBuildEventV1 KlokBuildDataPayloadType KlokRouteDocType KlokRouteDocType KlokRouteDocType KlokBuildDataMapEntryType KlokBuildDataMapEntryType KlokBuildDataMapEntryType klokRouteDoc metadata KlokBuildDataPayloadType KlokRouteDocType KlokBuildDataMapEntryType data KlokProjectBuildEventV1 data
Used in KlokBuildDataPayloadType Field Type Cardinality Description id string 0 1 tenant string 0 1 env string 0 1 name string 0 1 klokRouteBuilderType string 0 1 sourceCode string 0 1 superClassSourceCode string 0 1 processingPatterns string 0 n processingPatternsSourceCode string 0 n subRoutes string 0 n subRoutesSourceCode string 0 n dataModels string 0 n dataModelSources string 0 1 Complex field Type Cardinality Description relatedTypes RelatedTypeDoc 0 n The complex type acts as a structured container for metadata and source code artifacts associated with a specific Camel route or related type within a project build It sits inside the field of the which is part of the larger model This type essentially bundles the identity of the route its environmental context its implementation source code and references to dependent models or types into a single object for consumption by downstream tools Identity and Context Fields These fields identify which route is being described and the context in which it exists Note that the schema does not provide documentation for the business meaning of these identifiers so they are described based on their names and types Field Type Cardinality Description id string Optional Likely holds a unique identifier for the route document tenant string Optional Likely identifies the tenant context for the route env string Optional Likely specifies the environment e g dev prod associated with the route name string Optional Likely holds the human readable or technical name of the route klokRouteBuilderType string Optional Likely describes the type of the route builder class used Source Code Fields These fields contain string representations of source code Since they are simple strings the consumer of this data must handle parsing or rendering as needed Field Type Cardinality Description sourceCode string Optional Contains the source code string for the route itself superClassSourceCode string Optional Contains the source code string for the superclass if applicable Processing and Sub Route Artifacts These fields are repeated strings suggesting a list of items related to the route s structure or dependencies Field Type Cardinality Description processingPatterns string Repeated 0 n Likely holds a list of strings identifying processing patterns used by the route processingPatternsSourceCode string Repeated 0 n Likely holds the source code strings associated with the processing patterns subRoutes string Repeated 0 n Likely holds a list of strings identifying sub routes associated with this route subRoutesSourceCode string Repeated 0 n Likely holds the source code strings associated with the sub routes Data Model References These fields link the route to the data models it interacts with Field Type Cardinality Description dataModels string Repeated 0 n Likely holds a list of strings identifying the data models used by the route dataModelSources string Optional Likely holds the source code or definition string for the associated data models Related Types Field Type Cardinality Description relatedTypes RelatedTypeDoc Repeated 0 n A complex type that holds details about types related to the current route See the RelatedTypeDoc section for its specific fields KlokRouteDocType klokRouteDoc KlokBuildDataPayloadType KlokProjectBuildEventV1 klokRouteDoc
KlokBuildDataMapEntryType
Used in KlokBuildDataPayloadType Field Type Cardinality Description key string 1 value string 0 1 A represents a single key value pair within the metadata of a build data payload It serves as a generic map entry allowing the association of a specific label with an optional value and is contained within the part of a Field Specifications The type consists of two string fields defining the structure of the map entry Field Type Cardinality Description key string 1 Holds the identifier or name for the metadata entry This field is required value string 0 1 Holds the data associated with the key This field is optional Structural Relationships Container Context Instances of this type are found in the field of a Map Semantics The structure of required and optional implies a map like storage mechanism where entries are identified by their key The schema does not define unique constraints on the within a list of these entries nor does it define specific business meanings for particular keys or values it strictly defines the generic envelope for such data KlokBuildDataMapEntryType key value metadata KlokBuildDataPayloadType metadata KlokBuildDataPayloadType key value key metadata
Used in KlokRouteDocType Field Type Cardinality Description qualifiedName string 0 1 simpleName string 0 1 relation string 0 1 sourceCode string 0 1 A RelatedTypeDoc is a documentation entry describing a type that is related to a Klok Route It sits within the collection of a KlokRouteDocType meaning multiple RelatedTypeDoc instances can be present for a single route Field Descriptions Since the schema provides no specific documentation annotations for these fields their meaning is derived strictly from their names and types Field Type Cardinality Description qualifiedName string Optional 0 1 Holds the fully qualified name of the related type typically including the package name simpleName string Optional 0 1 Holds the short name of the related type excluding the package name relation string Optional 0 1 Describes the nature of the relationship between the route s type and the type identified by qualifiedName or simpleName sourceCode string Optional 0 1 Contains the source code representation or definition associated with this related type Structural Observations Optional Nature All four fields are optional A valid RelatedTypeDoc element can be empty or contain any subset of these fields Identifiers and serve as identifiers for the related type They allow referencing external types by their standard Java naming conventions Relation Context The field is likely used to categorize how the related type interacts with the main route type e g whether it is a parameter return type or superclass though specific allowed values are not defined in the schema Data Embedding The field allows for embedding the actual code definition directly into the documentation structure suggesting this model supports self contained documentation that does not rely solely on external classpath resolution relatedTypes qualifiedName simpleName relation sourceCode relatedTypes
Field Type Cardinality Description id string 0 1 tenant string 0 1 env string 0 1 name string 0 1 klokRouteBuilderType string 0 1 sourceCode string 0 1 superClassSourceCode string 0 1 The type serves as a container for detailed structural and source code information regarding a specific component within a Klok project It appears as a single optional part within the larger structure likely representing the schema or definition of a specific build artifact such as a route builder Since the schema provides no explicit business definitions for these fields the descriptions below rely strictly on the field names data types and their structural role in the model Field Breakdown Field Type Cardinality Description id string 0 1 An identifier for the document or component this entry describes tenant string 0 1 The tenant associated with this component env string 0 1 The environment context for this component name string 0 1 The name of the component or document klokRouteBuilderType string 0 1 Indicates the type of Klok Route Builder associated with this entry sourceCode string 0 1 Contains the source code text for the component itself superClassSourceCode string 0 1 Contains the source code text for the super class of the component Structural Relationships All fields are optional This means an instance of can be created without providing any values though a meaningful entry would typically include at least identifying fields like or There are no complex types or references to other data models within this type All fields are simple strings The presence of and suggests that this type is used to transport or store raw code definitions potentially for inspection logging or validation within a build event The field links this document entry to a specific kind of route builder implementation distinguishing how the should be interpreted or processed KlokDatamodelDocType KlokProjectBuildEventV1 0 1 KlokDatamodelDocType id name sourceCode superClassSourceCode klokRouteBuilderType sourceCode
Field Type Cardinality Description tenant string 1 env string 1 name string 1 klokRouteBuilderType string 0 1 sourceCode string 0 1 superClassSourceCode string 0 1 item string 0 n The complex type defines the specific data structure for the payload of a Klok project build event It sits within the structure part of the datamodel and captures the essential identifiers and source context relevant to a build operation within the Klok platform environment Field Details The following table details every field defined in Since the XML Schema provides no documentation annotations for these fields the descriptions below are derived strictly from their names data types and cardinality Field Type Cardinality Description tenant string 1 Required Identifies the tenant In the context of Klok this is the organization on the platform that owns the project and its security boundary env string 1 Required Identifies the environment This likely refers to the specific deployment environment e g staging production within the tenant where the build occurred name string 1 Required The name of the project or build artifact associated with this event klokRouteBuilderType string 0 1 Optional Specifies the type of route builder used Given the platform runs on Camel routes this likely indicates which specific builder implementation was involved in the route generation or processing sourceCode string 0 1 Optional Contains the source code string for the route or component being built Note Large payloads might typically use a claim check pattern but here it is stored directly as a string if present superClassSourceCode string 0 1 Optional Contains the source code string for the superclass associated with the route or component This provides the inheritance context for the build item string 0 n Optional Repeated A list of items associated with the build payload The specific nature of these items is not documented in the schema they may represent configuration items dependencies or other discrete elements relevant to the build context Structural Observations The schema defines as a flat structure of string fields Grouping There are no groups meaning all fields listed above can technically coexist in the payload Required Core The combination of and forms the core identity of the build event within the Klok platform as these are the only mandatory fields Source Context The fields and appear to provide optional technical context about the Java Camel code being built If is very large developers should verify if the platform expects this to be a literal string or if a claim check URI is used in practice though the schema type is explicitly Repetition The field is the only field with a cardinality of allowing for a variable number of string entries which may require careful handling during mapping to avoid null pointer exceptions or empty list errors depending on the consumer s expectations KlokBuildPayloadType KlokProjectBuildEventV1 klok project build event v1 KlokBuildPayloadType KlokBuildPayloadType xs choice tenant env name klokRouteBuilderType sourceCode superClassSourceCode sourceCode string item 0 n