arvo-core 2.2.6 → 2.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +10 -0
- package/CHANGELOG.md +4 -0
- package/biome.json +58 -0
- package/dist/ArvoContract/SimpleArvoContract/index.d.ts +3 -3
- package/dist/ArvoContract/SimpleArvoContract/types.d.ts +3 -3
- package/dist/ArvoContract/VersionedArvoContract/index.d.ts +5 -5
- package/dist/ArvoContract/VersionedArvoContract/index.js +5 -5
- package/dist/ArvoContract/VersionedArvoContract/types.d.ts +3 -3
- package/dist/ArvoContract/VersionedArvoContract/utils.d.ts +3 -3
- package/dist/ArvoContract/WildCardArvoSemanticVersion.d.ts +1 -1
- package/dist/ArvoContract/WildCardArvoSemanticVersion.js +1 -2
- package/dist/ArvoContract/helpers.d.ts +2 -2
- package/dist/ArvoContract/index.d.ts +3 -3
- package/dist/ArvoContract/index.js +2 -2
- package/dist/ArvoContract/types.d.ts +3 -3
- package/dist/ArvoEvent/helpers.d.ts +1 -1
- package/dist/ArvoEvent/helpers.js +1 -1
- package/dist/ArvoEvent/index.d.ts +2 -2
- package/dist/ArvoEvent/index.js +4 -5
- package/dist/ArvoEvent/schema.d.ts +2 -2
- package/dist/ArvoEvent/schema.js +2 -8
- package/dist/ArvoEvent/types.d.ts +2 -2
- package/dist/ArvoEventFactory/Orchestrator.d.ts +3 -3
- package/dist/ArvoEventFactory/Orchestrator.js +3 -4
- package/dist/ArvoEventFactory/helpers.d.ts +1 -1
- package/dist/ArvoEventFactory/helpers.js +3 -1
- package/dist/ArvoEventFactory/index.d.ts +3 -3
- package/dist/ArvoEventFactory/index.js +2 -6
- package/dist/ArvoEventFactory/utils.d.ts +1 -1
- package/dist/ArvoEventFactory/utils.js +1 -1
- package/dist/ArvoOrchestrationSubject/index.d.ts +17 -2
- package/dist/ArvoOrchestrationSubject/index.js +33 -28
- package/dist/ArvoOrchestrationSubject/schema.js +1 -1
- package/dist/ArvoOrchestrationSubject/type.d.ts +1 -1
- package/dist/ArvoOrchestratorContract/index.d.ts +3 -3
- package/dist/ArvoOrchestratorContract/index.js +2 -2
- package/dist/ArvoOrchestratorContract/typegen.js +1 -0
- package/dist/ArvoOrchestratorContract/types.d.ts +5 -5
- package/dist/OpenTelemetry/ArvoExecution/index.js +1 -0
- package/dist/OpenTelemetry/OpenInference/index.js +1 -0
- package/dist/OpenTelemetry/index.d.ts +2 -2
- package/dist/OpenTelemetry/index.js +2 -4
- package/dist/index.d.ts +22 -22
- package/dist/index.js +38 -37
- package/dist/schema.js +1 -3
- package/dist/types.d.ts +8 -7
- package/dist/utils.d.ts +23 -3
- package/dist/utils.js +34 -3
- package/package.json +7 -12
| @@ -0,0 +1,10 @@ | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "editor.defaultFormatter": "biomejs.biome",
         | 
| 3 | 
            +
              "editor.formatOnSave": true,
         | 
| 4 | 
            +
              "editor.codeActionsOnSave": {
         | 
| 5 | 
            +
                "quickfix.biome": "explicit"
         | 
| 6 | 
            +
              },
         | 
| 7 | 
            +
              "typescript.tsdk": "node_modules/typescript/lib",
         | 
| 8 | 
            +
              "typescript.enablePromptUseWorkspaceTsdk": true,
         | 
| 9 | 
            +
              "typescript.preferences.importModuleSpecifier": "non-relative"
         | 
| 10 | 
            +
            }
         | 
    
        package/CHANGELOG.md
    CHANGED
    
    
    
        package/biome.json
    ADDED
    
    | @@ -0,0 +1,58 @@ | |
| 1 | 
            +
            {
         | 
| 2 | 
            +
              "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
         | 
| 3 | 
            +
              "vcs": {
         | 
| 4 | 
            +
                "enabled": false,
         | 
| 5 | 
            +
                "clientKind": "git",
         | 
| 6 | 
            +
                "useIgnoreFile": false
         | 
| 7 | 
            +
              },
         | 
| 8 | 
            +
              "files": {
         | 
| 9 | 
            +
                "ignoreUnknown": false,
         | 
| 10 | 
            +
                "ignore": [
         | 
| 11 | 
            +
                  "**/dist/**",
         | 
| 12 | 
            +
                  "**/node_modules/**",
         | 
| 13 | 
            +
                  "**/.turbo/**",
         | 
| 14 | 
            +
                  "**/coverage/**",
         | 
| 15 | 
            +
                  "**/.github/**",
         | 
| 16 | 
            +
                  "**/docs/**",
         | 
| 17 | 
            +
                  "*.md"
         | 
| 18 | 
            +
                ]
         | 
| 19 | 
            +
              },
         | 
| 20 | 
            +
              "formatter": {
         | 
| 21 | 
            +
                "enabled": true,
         | 
| 22 | 
            +
                "formatWithErrors": false,
         | 
| 23 | 
            +
                "ignore": [],
         | 
| 24 | 
            +
                "attributePosition": "auto",
         | 
| 25 | 
            +
                "indentStyle": "space",
         | 
| 26 | 
            +
                "indentWidth": 2,
         | 
| 27 | 
            +
                "lineWidth": 120,
         | 
| 28 | 
            +
                "lineEnding": "lf"
         | 
| 29 | 
            +
              },
         | 
| 30 | 
            +
              "organizeImports": {
         | 
| 31 | 
            +
                "enabled": true
         | 
| 32 | 
            +
              },
         | 
| 33 | 
            +
              "linter": {
         | 
| 34 | 
            +
                "enabled": true,
         | 
| 35 | 
            +
                "rules": {
         | 
| 36 | 
            +
                  "recommended": true,
         | 
| 37 | 
            +
                  "correctness": {
         | 
| 38 | 
            +
                    "noUnusedImports": "warn"
         | 
| 39 | 
            +
                  },
         | 
| 40 | 
            +
                  "suspicious": {
         | 
| 41 | 
            +
                    "noExplicitAny": "off"
         | 
| 42 | 
            +
                  }
         | 
| 43 | 
            +
                }
         | 
| 44 | 
            +
              },
         | 
| 45 | 
            +
              "javascript": {
         | 
| 46 | 
            +
                "jsxRuntime": "reactClassic",
         | 
| 47 | 
            +
                "formatter": {
         | 
| 48 | 
            +
                  "quoteStyle": "single",
         | 
| 49 | 
            +
                  "arrowParentheses": "always",
         | 
| 50 | 
            +
                  "bracketSameLine": false,
         | 
| 51 | 
            +
                  "bracketSpacing": true,
         | 
| 52 | 
            +
                  "jsxQuoteStyle": "single",
         | 
| 53 | 
            +
                  "quoteProperties": "asNeeded",
         | 
| 54 | 
            +
                  "semicolons": "always",
         | 
| 55 | 
            +
                  "trailingCommas": "all"
         | 
| 56 | 
            +
                }
         | 
| 57 | 
            +
              }
         | 
| 58 | 
            +
            }
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import {  | 
| 2 | 
            -
            import {  | 
| 3 | 
            -
            import { SimpleArvoContract } from './types';
         | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { ArvoSemanticVersion } from '../../types';
         | 
| 3 | 
            +
            import type { SimpleArvoContract } from './types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Creates an ArvoContract with standardized naming conventions and a simplified event pattern.
         | 
| 6 6 | 
             
             * Use this to create contracts with one emit type only.
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import ArvoContract from '..';
         | 
| 3 | 
            -
            import { ArvoSemanticVersion } from '../../types';
         | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type ArvoContract from '..';
         | 
| 3 | 
            +
            import type { ArvoSemanticVersion } from '../../types';
         | 
| 4 4 | 
             
            export type SimpleArvoContractEmitType<T extends string> = `evt.${T}.success`;
         | 
| 5 5 | 
             
            export type SimpleArvoContract<TUri extends string = string, TType extends string = string, TVersions extends Record<ArvoSemanticVersion, {
         | 
| 6 6 | 
             
                accepts: z.ZodTypeAny;
         | 
| @@ -1,10 +1,10 @@ | |
| 1 | 
            -
            import ArvoContract from '..';
         | 
| 2 | 
            -
            import { ArvoSemanticVersion } from '../../types';
         | 
| 3 | 
            -
            import { ArvoContractRecord } from '../types';
         | 
| 4 | 
            -
            import { IVersionedArvoContract, VersionedArvoContractJSONSchema } from './types';
         | 
| 5 | 
            -
            import { transformEmitsToArray } from './utils';
         | 
| 1 | 
            +
            import type ArvoContract from '..';
         | 
| 2 | 
            +
            import type { ArvoSemanticVersion } from '../../types';
         | 
| 6 3 | 
             
            import { EventDataschemaUtil } from '../../utils';
         | 
| 7 4 | 
             
            import { WildCardArvoSemanticVersion } from '../WildCardArvoSemanticVersion';
         | 
| 5 | 
            +
            import type { ArvoContractRecord } from '../types';
         | 
| 6 | 
            +
            import type { IVersionedArvoContract, VersionedArvoContractJSONSchema } from './types';
         | 
| 7 | 
            +
            import { transformEmitsToArray } from './utils';
         | 
| 8 8 | 
             
            /**
         | 
| 9 9 | 
             
             * Implements a version-specific view of an ArvoContract with type-safe schema validation
         | 
| 10 10 | 
             
             * and JSON Schema generation capabilities.
         | 
| @@ -16,10 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 16 16 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 17 17 | 
             
            exports.VersionedArvoContract = void 0;
         | 
| 18 18 | 
             
            var zod_to_json_schema_1 = __importDefault(require("zod-to-json-schema"));
         | 
| 19 | 
            -
            var utils_1 = require("./utils");
         | 
| 20 19 | 
             
            var OpenTelemetry_1 = require("../../OpenTelemetry");
         | 
| 21 | 
            -
            var  | 
| 20 | 
            +
            var utils_1 = require("../../utils");
         | 
| 22 21 | 
             
            var WildCardArvoSemanticVersion_1 = require("../WildCardArvoSemanticVersion");
         | 
| 22 | 
            +
            var utils_2 = require("./utils");
         | 
| 23 23 | 
             
            /**
         | 
| 24 24 | 
             
             * Implements a version-specific view of an ArvoContract with type-safe schema validation
         | 
| 25 25 | 
             
             * and JSON Schema generation capabilities.
         | 
| @@ -33,7 +33,7 @@ var VersionedArvoContract = /** @class */ (function () { | |
| 33 33 | 
             
                        schema: param.contract.versions[param.version].accepts,
         | 
| 34 34 | 
             
                    };
         | 
| 35 35 | 
             
                    this._emits = param.contract.versions[param.version].emits;
         | 
| 36 | 
            -
                    this._emitList = (0,  | 
| 36 | 
            +
                    this._emitList = (0, utils_2.transformEmitsToArray)(this.emits);
         | 
| 37 37 | 
             
                }
         | 
| 38 38 | 
             
                Object.defineProperty(VersionedArvoContract.prototype, "uri", {
         | 
| 39 39 | 
             
                    get: function () {
         | 
| @@ -65,7 +65,7 @@ var VersionedArvoContract = /** @class */ (function () { | |
| 65 65 | 
             
                });
         | 
| 66 66 | 
             
                Object.defineProperty(VersionedArvoContract.prototype, "systemError", {
         | 
| 67 67 | 
             
                    get: function () {
         | 
| 68 | 
            -
                        return __assign(__assign({}, this._contract.systemError), { dataschema:  | 
| 68 | 
            +
                        return __assign(__assign({}, this._contract.systemError), { dataschema: utils_1.EventDataschemaUtil.build(this.uri, WildCardArvoSemanticVersion_1.WildCardArvoSemanticVersion) });
         | 
| 69 69 | 
             
                    },
         | 
| 70 70 | 
             
                    enumerable: false,
         | 
| 71 71 | 
             
                    configurable: true
         | 
| @@ -93,7 +93,7 @@ var VersionedArvoContract = /** @class */ (function () { | |
| 93 93 | 
             
                });
         | 
| 94 94 | 
             
                Object.defineProperty(VersionedArvoContract.prototype, "dataschema", {
         | 
| 95 95 | 
             
                    get: function () {
         | 
| 96 | 
            -
                        return  | 
| 96 | 
            +
                        return utils_1.EventDataschemaUtil.build(this.uri, this.version);
         | 
| 97 97 | 
             
                    },
         | 
| 98 98 | 
             
                    enumerable: false,
         | 
| 99 99 | 
             
                    configurable: true
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import zodToJsonSchema from 'zod-to-json-schema';
         | 
| 2 | 
            -
            import ArvoContract from '..';
         | 
| 3 | 
            -
            import { ArvoSemanticVersion } from '../../types';
         | 
| 1 | 
            +
            import type zodToJsonSchema from 'zod-to-json-schema';
         | 
| 2 | 
            +
            import type ArvoContract from '..';
         | 
| 3 | 
            +
            import type { ArvoSemanticVersion } from '../../types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Represents a version-specific view of an ArvoContract, providing type-safe access
         | 
| 6 6 | 
             
             * to contract specifications for a particular semantic version. This interface acts as
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            import ArvoContract from '..';
         | 
| 2 | 
            -
            import { ArvoSemanticVersion } from '../../types';
         | 
| 3 | 
            -
            import { ArvoContractRecord } from '../types';
         | 
| 1 | 
            +
            import type ArvoContract from '..';
         | 
| 2 | 
            +
            import type { ArvoSemanticVersion } from '../../types';
         | 
| 3 | 
            +
            import type { ArvoContractRecord } from '../types';
         | 
| 4 4 | 
             
            export declare const transformEmitsToArray: <T extends ArvoContract, V extends ArvoSemanticVersion>(emitMap: T["versions"][V]["emits"]) => Array<{ [K in keyof T["versions"][V]["emits"] & string]: ArvoContractRecord<K, T["versions"][V]["emits"][K]>; }[keyof T["versions"][V]["emits"] & string]>;
         | 
| @@ -15,7 +15,6 @@ exports.WildCardArvoSemanticVersion = '0.0.0'; | |
| 15 15 | 
             
             * @returns True if version is the wildcard version, false otherwise
         | 
| 16 16 | 
             
             */
         | 
| 17 17 | 
             
            var isWildCardArvoSematicVersion = function (version) {
         | 
| 18 | 
            -
                return (0, schema_1.isValidArvoSemanticVersion)(version) &&
         | 
| 19 | 
            -
                    version === exports.WildCardArvoSemanticVersion;
         | 
| 18 | 
            +
                return (0, schema_1.isValidArvoSemanticVersion)(version) && version === exports.WildCardArvoSemanticVersion;
         | 
| 20 19 | 
             
            };
         | 
| 21 20 | 
             
            exports.isWildCardArvoSematicVersion = isWildCardArvoSematicVersion;
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 1 2 | 
             
            import ArvoContract from '.';
         | 
| 2 | 
            -
            import { ArvoSemanticVersion } from '../types';
         | 
| 3 | 
            -
            import { z } from 'zod';
         | 
| 3 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Creates a validated ArvoContract instance with full control over event types and schemas.
         | 
| 6 6 | 
             
             *
         | 
| @@ -1,8 +1,8 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import { ArvoContractJSONSchema, ArvoContractRecord, IArvoContract } from './types';
         | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 3 2 | 
             
            import { ArvoErrorSchema } from '../schema';
         | 
| 4 | 
            -
            import { ArvoSemanticVersion } from '../types';
         | 
| 3 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 5 4 | 
             
            import { VersionedArvoContract } from './VersionedArvoContract';
         | 
| 5 | 
            +
            import type { ArvoContractJSONSchema, ArvoContractRecord, IArvoContract } from './types';
         | 
| 6 6 | 
             
            /**
         | 
| 7 7 | 
             
             * Represents a contract with defined input and output schemas for event-driven architectures.
         | 
| 8 8 | 
             
             * The ArvoContract class provides type-safe validation and versioning capabilities for event handling,
         | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            "use strict";
         | 
| 2 2 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 | 
            +
            var OpenTelemetry_1 = require("../OpenTelemetry");
         | 
| 3 4 | 
             
            var schema_1 = require("../schema");
         | 
| 4 5 | 
             
            var utils_1 = require("../utils");
         | 
| 5 6 | 
             
            var VersionedArvoContract_1 = require("./VersionedArvoContract");
         | 
| 6 | 
            -
            var validators_1 = require("./validators");
         | 
| 7 7 | 
             
            var WildCardArvoSemanticVersion_1 = require("./WildCardArvoSemanticVersion");
         | 
| 8 | 
            -
            var  | 
| 8 | 
            +
            var validators_1 = require("./validators");
         | 
| 9 9 | 
             
            /**
         | 
| 10 10 | 
             
             * Represents a contract with defined input and output schemas for event-driven architectures.
         | 
| 11 11 | 
             
             * The ArvoContract class provides type-safe validation and versioning capabilities for event handling,
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import { ArvoSemanticVersion } from '../types';
         | 
| 3 | 
            -
            import { VersionedArvoContractJSONSchema } from './VersionedArvoContract/types';
         | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 3 | 
            +
            import type { VersionedArvoContractJSONSchema } from './VersionedArvoContract/types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Represents a record in an Arvo contract, containing a type identifier and its validation schema.
         | 
| 6 6 | 
             
             *
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import ArvoEvent from '.';
         | 
| 2 | 
            -
            import { ArvoEventData, CloudEventExtension, CreateArvoEvent } from './types';
         | 
| 2 | 
            +
            import type { ArvoEventData, CloudEventExtension, CreateArvoEvent } from './types';
         | 
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * Creates a strongly-typed ArvoEvent with configurable telemetry options.
         | 
| 5 5 | 
             
             *
         | 
| @@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 4 4 | 
             
            };
         | 
| 5 5 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 6 6 | 
             
            exports.createArvoEvent = void 0;
         | 
| 7 | 
            +
            var uuid_1 = require("uuid");
         | 
| 7 8 | 
             
            var _1 = __importDefault(require("."));
         | 
| 8 9 | 
             
            var OpenTelemetry_1 = require("../OpenTelemetry");
         | 
| 9 10 | 
             
            var utils_1 = require("../utils");
         | 
| 10 11 | 
             
            var schema_1 = require("./schema");
         | 
| 11 | 
            -
            var uuid_1 = require("uuid");
         | 
| 12 12 | 
             
            /**
         | 
| 13 13 | 
             
             * Internal generator function for creating  instances.
         | 
| 14 14 | 
             
             */
         | 
| @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            import {  | 
| 2 | 
            -
            import {  | 
| 1 | 
            +
            import type { InferArvoEvent } from '../types';
         | 
| 2 | 
            +
            import type { ArvoEventData, ArvoExtension, CloudEventContext, CloudEventExtension, OpenTelemetryExtension } from './types';
         | 
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * Represents an ArvoEvent, which extends the CloudEvent specification.
         | 
| 5 5 | 
             
             */
         | 
    
        package/dist/ArvoEvent/index.js
    CHANGED
    
    | @@ -22,8 +22,8 @@ var __rest = (this && this.__rest) || function (s, e) { | |
| 22 22 | 
             
                return t;
         | 
| 23 23 | 
             
            };
         | 
| 24 24 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 25 | 
            -
            var schema_1 = require("./schema");
         | 
| 26 25 | 
             
            var OpenTelemetry_1 = require("../OpenTelemetry");
         | 
| 26 | 
            +
            var schema_1 = require("./schema");
         | 
| 27 27 | 
             
            /**
         | 
| 28 28 | 
             
             * Represents an ArvoEvent, which extends the CloudEvent specification.
         | 
| 29 29 | 
             
             */
         | 
| @@ -50,9 +50,7 @@ var ArvoEvent = /** @class */ (function () { | |
| 50 50 | 
             
                    this.data = schema_1.ArvoDataSchema.parse(data);
         | 
| 51 51 | 
             
                    var arvoExtension = schema_1.ArvoExtensionSchema.parse(context);
         | 
| 52 52 | 
             
                    var otelExtension = schema_1.OpenTelemetryExtensionSchema.parse(context);
         | 
| 53 | 
            -
                    this._extensions = __assign(__assign({}, (extensions
         | 
| 54 | 
            -
                        ? schema_1.CloudEventExtensionSchema.parse(extensions)
         | 
| 55 | 
            -
                        : {})), { to: arvoExtension.to, accesscontrol: arvoExtension.accesscontrol, redirectto: arvoExtension.redirectto, executionunits: arvoExtension.executionunits, traceparent: otelExtension.traceparent, tracestate: otelExtension.tracestate });
         | 
| 53 | 
            +
                    this._extensions = __assign(__assign({}, (extensions ? schema_1.CloudEventExtensionSchema.parse(extensions) : {})), { to: arvoExtension.to, accesscontrol: arvoExtension.accesscontrol, redirectto: arvoExtension.redirectto, executionunits: arvoExtension.executionunits, traceparent: otelExtension.traceparent, tracestate: otelExtension.tracestate });
         | 
| 56 54 | 
             
                    if (this.datacontenttype === schema_1.ArvoDataContentType) {
         | 
| 57 55 | 
             
                        if (!this._extensions.to) {
         | 
| 58 56 | 
             
                            throw new Error("The ArvoEvent must have a non-empty 'to' field");
         | 
| @@ -195,7 +193,8 @@ var ArvoEvent = /** @class */ (function () { | |
| 195 193 | 
             
                     * For accessing the basic CloudEvent fields, use `<ArvoEvent>.cloudevent.default`.
         | 
| 196 194 | 
             
                     */
         | 
| 197 195 | 
             
                    get: function () {
         | 
| 198 | 
            -
                        var _a = this | 
| 196 | 
            +
                        var _a = this
         | 
| 197 | 
            +
                            ._extensions, traceparent = _a.traceparent, tracestate = _a.tracestate, to = _a.to, redirectto = _a.redirectto, accesscontrol = _a.accesscontrol, executionunits = _a.executionunits, rest = __rest(_a, ["traceparent", "tracestate", "to", "redirectto", "accesscontrol", "executionunits"]);
         | 
| 199 198 | 
             
                        return rest;
         | 
| 200 199 | 
             
                    },
         | 
| 201 200 | 
             
                    enumerable: false,
         | 
| @@ -21,20 +21,20 @@ export declare const CloudEventContextSchema: z.ZodObject<{ | |
| 21 21 | 
             
            }, "strip", z.ZodTypeAny, {
         | 
| 22 22 | 
             
                type: string;
         | 
| 23 23 | 
             
                id: string;
         | 
| 24 | 
            +
                time: string;
         | 
| 24 25 | 
             
                source: string;
         | 
| 25 26 | 
             
                specversion: "1.0";
         | 
| 26 27 | 
             
                subject: string;
         | 
| 27 28 | 
             
                datacontenttype: string;
         | 
| 28 29 | 
             
                dataschema: string | null;
         | 
| 29 | 
            -
                time: string;
         | 
| 30 30 | 
             
            }, {
         | 
| 31 31 | 
             
                type: string;
         | 
| 32 32 | 
             
                id: string;
         | 
| 33 | 
            +
                time: string;
         | 
| 33 34 | 
             
                source: string;
         | 
| 34 35 | 
             
                specversion: string;
         | 
| 35 36 | 
             
                subject: string;
         | 
| 36 37 | 
             
                dataschema: string | null;
         | 
| 37 | 
            -
                time: string;
         | 
| 38 38 | 
             
                datacontenttype?: string | undefined;
         | 
| 39 39 | 
             
            }>;
         | 
| 40 40 | 
             
            /**
         | 
    
        package/dist/ArvoEvent/schema.js
    CHANGED
    
    | @@ -16,10 +16,7 @@ exports.ArvoDataContentType = 'application/cloudevents+json;charset=UTF-8;profil | |
| 16 16 | 
             
             */
         | 
| 17 17 | 
             
            exports.CloudEventContextSchema = zod_1.z
         | 
| 18 18 | 
             
                .object({
         | 
| 19 | 
            -
                id: zod_1.z
         | 
| 20 | 
            -
                    .string()
         | 
| 21 | 
            -
                    .min(1, 'ID must be a non-empty string')
         | 
| 22 | 
            -
                    .describe('Unique identifier of the event.'),
         | 
| 19 | 
            +
                id: zod_1.z.string().min(1, 'ID must be a non-empty string').describe('Unique identifier of the event.'),
         | 
| 23 20 | 
             
                time: zod_1.z
         | 
| 24 21 | 
             
                    .string()
         | 
| 25 22 | 
             
                    .datetime({ offset: true })
         | 
| @@ -47,10 +44,7 @@ exports.CloudEventContextSchema = zod_1.z | |
| 47 44 | 
             
                datacontenttype: zod_1.z
         | 
| 48 45 | 
             
                    .string()
         | 
| 49 46 | 
             
                    .min(1, 'Data content type must be a non-empty string')
         | 
| 50 | 
            -
                    .refine(function (val) {
         | 
| 51 | 
            -
                    return Boolean(val === null || val === void 0 ? void 0 : val.includes('application/cloudevents+json')) ||
         | 
| 52 | 
            -
                        Boolean(val === null || val === void 0 ? void 0 : val.includes('application/json'));
         | 
| 53 | 
            -
                }, (0, utils_1.cleanString)("\n          The content type must be a valid JSON e.g. it must contain \n          'application/cloudevents+json' or 'application/json'. \n          Arvo recommends using '".concat(exports.ArvoDataContentType, "'\n        ")))
         | 
| 47 | 
            +
                    .refine(function (val) { return Boolean(val === null || val === void 0 ? void 0 : val.includes('application/cloudevents+json')) || Boolean(val === null || val === void 0 ? void 0 : val.includes('application/json')); }, (0, utils_1.cleanString)("\n          The content type must be a valid JSON e.g. it must contain \n          'application/cloudevents+json' or 'application/json'. \n          Arvo recommends using '".concat(exports.ArvoDataContentType, "'\n        ")))
         | 
| 54 48 | 
             
                    .default(exports.ArvoDataContentType)
         | 
| 55 49 | 
             
                    .describe('Content type of the data value. Must adhere to RFC 2046 format if present.'),
         | 
| 56 50 | 
             
                dataschema: zod_1.z
         | 
| @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import {  | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { ArvoDataSchema, ArvoExtensionSchema, CloudEventContextSchema, CloudEventExtensionSchema, OpenTelemetryExtensionSchema } from './schema';
         | 
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * Represents the core properties of a CloudEvent.
         | 
| 5 5 | 
             
             */
         | 
| @@ -1,7 +1,7 @@ | |
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 1 2 | 
             
            import ArvoEventFactory from '.';
         | 
| 2 | 
            -
            import {  | 
| 3 | 
            -
            import { CreateArvoEvent } from '../ArvoEvent/types';
         | 
| 4 | 
            -
            import { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 3 | 
            +
            import type { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 4 | 
            +
            import type { CreateArvoEvent } from '../ArvoEvent/types';
         | 
| 5 5 | 
             
            /**
         | 
| 6 6 | 
             
             * Factory class for creating and validating orchestrator-specific events with managed subject hierarchies.
         | 
| 7 7 | 
             
             * Extends ArvoEventFactory with parent-child subject relationship handling and orchestration flows.
         | 
| @@ -33,9 +33,9 @@ exports.ArvoOrchestratorEventFactory = void 0; | |
| 33 33 | 
             
            var _1 = __importDefault(require("."));
         | 
| 34 34 | 
             
            var helpers_1 = require("../ArvoEvent/helpers");
         | 
| 35 35 | 
             
            var schema_1 = require("../ArvoEvent/schema");
         | 
| 36 | 
            +
            var ArvoOrchestrationSubject_1 = __importDefault(require("../ArvoOrchestrationSubject"));
         | 
| 36 37 | 
             
            var OpenTelemetry_1 = require("../OpenTelemetry");
         | 
| 37 38 | 
             
            var utils_1 = require("../utils");
         | 
| 38 | 
            -
            var ArvoOrchestrationSubject_1 = __importDefault(require("../ArvoOrchestrationSubject"));
         | 
| 39 39 | 
             
            var utils_2 = require("./utils");
         | 
| 40 40 | 
             
            /**
         | 
| 41 41 | 
             
             * Factory class for creating and validating orchestrator-specific events with managed subject hierarchies.
         | 
| @@ -54,7 +54,7 @@ var ArvoOrchestratorEventFactory = /** @class */ (function (_super) { | |
| 54 54 | 
             
                    var _this = this;
         | 
| 55 55 | 
             
                    var _a;
         | 
| 56 56 | 
             
                    if (((_a = contract.metadata) === null || _a === void 0 ? void 0 : _a.contractType) !== 'ArvoOrchestratorContract') {
         | 
| 57 | 
            -
                        throw new Error( | 
| 57 | 
            +
                        throw new Error('This factory can only be used for ArvoOrchestratorContract');
         | 
| 58 58 | 
             
                    }
         | 
| 59 59 | 
             
                    _this = _super.call(this, contract) || this;
         | 
| 60 60 | 
             
                    _this._name = 'ArvoOrchestratorEventFactory';
         | 
| @@ -90,8 +90,7 @@ var ArvoOrchestratorEventFactory = /** @class */ (function (_super) { | |
| 90 90 | 
             
                                    subject: parentSubject,
         | 
| 91 91 | 
             
                                    version: _this.contract.version,
         | 
| 92 92 | 
             
                                    meta: Object.fromEntries(Object.entries({
         | 
| 93 | 
            -
                                        redirectto: (_a = event.redirectto) !== null && _a !== void 0 ? _a : ArvoOrchestrationSubject_1.default.parse(parentSubject).execution
         | 
| 94 | 
            -
                                            .initiator,
         | 
| 93 | 
            +
                                        redirectto: (_a = event.redirectto) !== null && _a !== void 0 ? _a : ArvoOrchestrationSubject_1.default.parse(parentSubject).execution.initiator,
         | 
| 95 94 | 
             
                                    }).filter(function (item) { return Boolean(item[1]); })),
         | 
| 96 95 | 
             
                                })
         | 
| 97 96 | 
             
                                : ArvoOrchestrationSubject_1.default.new({
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import ArvoEventFactory from '.';
         | 
| 2 | 
            -
            import { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 2 | 
            +
            import type { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 3 3 | 
             
            import { ArvoOrchestratorEventFactory } from './Orchestrator';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Creates an ArvoEventFactory for a specific version of a contract.
         | 
| @@ -19,7 +19,9 @@ var Orchestrator_1 = require("./Orchestrator"); | |
| 19 19 | 
             
             * const factory = createArvoEventFactory(v1Contract);
         | 
| 20 20 | 
             
             * ```
         | 
| 21 21 | 
             
             */
         | 
| 22 | 
            -
            var createArvoEventFactory = function (contract) { | 
| 22 | 
            +
            var createArvoEventFactory = function (contract) {
         | 
| 23 | 
            +
                return new _1.default(contract);
         | 
| 24 | 
            +
            };
         | 
| 23 25 | 
             
            exports.createArvoEventFactory = createArvoEventFactory;
         | 
| 24 26 | 
             
            /**
         | 
| 25 27 | 
             
             * Creates an ArvoOrchestratorEventFactory instance for handling orchestration events.
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import {  | 
| 3 | 
            -
            import {  | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 3 | 
            +
            import type { CreateArvoEvent } from '../ArvoEvent/types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Factory class for creating and validating events based on a versioned Arvo contract.
         | 
| 6 6 | 
             
             * Handles event creation, validation, and OpenTelemetry integration for a specific
         | 
| @@ -152,14 +152,10 @@ var ArvoEventFactory = /** @class */ (function () { | |
| 152 152 | 
             
                        name: "".concat(this._name, ".systemError"),
         | 
| 153 153 | 
             
                        spanOptions: (0, utils_2.createSpanOptions)(this.contract),
         | 
| 154 154 | 
             
                        fn: function (span) {
         | 
| 155 | 
            -
                            var _a, _b, _c, _d | 
| 155 | 
            +
                            var _a, _b, _c, _d;
         | 
| 156 156 | 
             
                            var otelHeaders = (0, OpenTelemetry_1.currentOpenTelemetryHeaders)();
         | 
| 157 157 | 
             
                            var error = event.error, _event = __rest(event, ["error"]);
         | 
| 158 | 
            -
                            var generatedEvent = (0, helpers_1.createArvoEvent)(__assign(__assign({}, _event), { traceparent: (_b = (_a = event.traceparent) !== null && _a !== void 0 ? _a : otelHeaders.traceparent) !== null && _b !== void 0 ? _b : undefined, tracestate: (_d = (_c = event.tracestate) !== null && _c !== void 0 ? _c : otelHeaders.tracestate) !== null && _d !== void 0 ? _d : undefined, type: _this.contract.systemError.type, data: {
         | 
| 159 | 
            -
                                    errorName: error.name,
         | 
| 160 | 
            -
                                    errorMessage: error.message,
         | 
| 161 | 
            -
                                    errorStack: (_e = error.stack) !== null && _e !== void 0 ? _e : null,
         | 
| 162 | 
            -
                                }, datacontenttype: schema_1.ArvoDataContentType, dataschema: utils_1.EventDataschemaUtil.createWithWildCardVersion(_this.contract) }), extensions, { disable: true });
         | 
| 158 | 
            +
                            var generatedEvent = (0, helpers_1.createArvoEvent)(__assign(__assign({}, _event), { traceparent: (_b = (_a = event.traceparent) !== null && _a !== void 0 ? _a : otelHeaders.traceparent) !== null && _b !== void 0 ? _b : undefined, tracestate: (_d = (_c = event.tracestate) !== null && _c !== void 0 ? _c : otelHeaders.tracestate) !== null && _d !== void 0 ? _d : undefined, type: _this.contract.systemError.type, data: (0, utils_1.createArvoError)(error), datacontenttype: schema_1.ArvoDataContentType, dataschema: utils_1.EventDataschemaUtil.createWithWildCardVersion(_this.contract) }), extensions, { disable: true });
         | 
| 163 159 | 
             
                            span.setAttributes(generatedEvent.otelAttributes);
         | 
| 164 160 | 
             
                            return generatedEvent;
         | 
| 165 161 | 
             
                        },
         | 
| @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            import { SpanKind } from '@opentelemetry/api';
         | 
| 2 | 
            -
            import { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 2 | 
            +
            import type { VersionedArvoContract } from '../ArvoContract/VersionedArvoContract';
         | 
| 3 3 | 
             
            import { ArvoExecutionSpanKind } from '../OpenTelemetry/ArvoExecution/types';
         | 
| 4 4 | 
             
            import { OpenInferenceSpanKind } from '../OpenTelemetry/OpenInference/types';
         | 
| 5 5 | 
             
            export declare const createSpanOptions: (contract: VersionedArvoContract<any, any>) => {
         | 
| @@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); | |
| 6 6 | 
             
            exports.createSpanOptions = void 0;
         | 
| 7 7 | 
             
            var api_1 = require("@opentelemetry/api");
         | 
| 8 8 | 
             
            var ArvoExecution_1 = __importDefault(require("../OpenTelemetry/ArvoExecution"));
         | 
| 9 | 
            -
            var OpenInference_1 = __importDefault(require("../OpenTelemetry/OpenInference"));
         | 
| 10 9 | 
             
            var types_1 = require("../OpenTelemetry/ArvoExecution/types");
         | 
| 10 | 
            +
            var OpenInference_1 = __importDefault(require("../OpenTelemetry/OpenInference"));
         | 
| 11 11 | 
             
            var types_2 = require("../OpenTelemetry/OpenInference/types");
         | 
| 12 12 | 
             
            var createSpanOptions = function (contract) {
         | 
| 13 13 | 
             
                var _a;
         | 
| @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            import {  | 
| 2 | 
            -
            import {  | 
| 1 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 2 | 
            +
            import type { ArvoOrchestrationSubjectContent } from './type';
         | 
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * Handles the creation and parsing of Arvo orchestration subjects.
         | 
| 5 5 | 
             
             */
         | 
| @@ -120,4 +120,19 @@ export default class ArvoOrchestrationSubject { | |
| 120 120 | 
             
                 * ```
         | 
| 121 121 | 
             
                 */
         | 
| 122 122 | 
             
                static parse(subject: string): ArvoOrchestrationSubjectContent;
         | 
| 123 | 
            +
                /**
         | 
| 124 | 
            +
                 * Validates if a string represents a valid Arvo orchestration subject.
         | 
| 125 | 
            +
                 * A valid subject must:
         | 
| 126 | 
            +
                 * - Be base64 encoded
         | 
| 127 | 
            +
                 * - Contain zlib-compressed JSON data
         | 
| 128 | 
            +
                 * - Match the ArvoOrchestrationSubjectContent schema when decoded
         | 
| 129 | 
            +
                 * - Include valid orchestrator and execution details
         | 
| 130 | 
            +
                 *
         | 
| 131 | 
            +
                 * Use this method for validating subjects before processing them in
         | 
| 132 | 
            +
                 * orchestration workflows or when receiving subjects from external sources.
         | 
| 133 | 
            +
                 *
         | 
| 134 | 
            +
                 * @param data - The string to validate as an orchestration subject
         | 
| 135 | 
            +
                 * @returns boolean - True if string is a valid orchestration subject, false otherwise
         | 
| 136 | 
            +
                 */
         | 
| 137 | 
            +
                static isValid(data: string): boolean;
         | 
| 123 138 | 
             
            }
         | 
| @@ -10,38 +10,19 @@ var __assign = (this && this.__assign) || function () { | |
| 10 10 | 
             
                };
         | 
| 11 11 | 
             
                return __assign.apply(this, arguments);
         | 
| 12 12 | 
             
            };
         | 
| 13 | 
            -
            var  | 
| 14 | 
            -
                 | 
| 15 | 
            -
                var desc = Object.getOwnPropertyDescriptor(m, k);
         | 
| 16 | 
            -
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
         | 
| 17 | 
            -
                  desc = { enumerable: true, get: function() { return m[k]; } };
         | 
| 18 | 
            -
                }
         | 
| 19 | 
            -
                Object.defineProperty(o, k2, desc);
         | 
| 20 | 
            -
            }) : (function(o, m, k, k2) {
         | 
| 21 | 
            -
                if (k2 === undefined) k2 = k;
         | 
| 22 | 
            -
                o[k2] = m[k];
         | 
| 23 | 
            -
            }));
         | 
| 24 | 
            -
            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
         | 
| 25 | 
            -
                Object.defineProperty(o, "default", { enumerable: true, value: v });
         | 
| 26 | 
            -
            }) : function(o, v) {
         | 
| 27 | 
            -
                o["default"] = v;
         | 
| 28 | 
            -
            });
         | 
| 29 | 
            -
            var __importStar = (this && this.__importStar) || function (mod) {
         | 
| 30 | 
            -
                if (mod && mod.__esModule) return mod;
         | 
| 31 | 
            -
                var result = {};
         | 
| 32 | 
            -
                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
         | 
| 33 | 
            -
                __setModuleDefault(result, mod);
         | 
| 34 | 
            -
                return result;
         | 
| 13 | 
            +
            var __importDefault = (this && this.__importDefault) || function (mod) {
         | 
| 14 | 
            +
                return (mod && mod.__esModule) ? mod : { "default": mod };
         | 
| 35 15 | 
             
            };
         | 
| 36 16 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 37 | 
            -
            var  | 
| 38 | 
            -
            var zlib = __importStar(require("node:zlib"));
         | 
| 39 | 
            -
            var utils_1 = require("../utils");
         | 
| 17 | 
            +
            var pako_1 = __importDefault(require("pako"));
         | 
| 40 18 | 
             
            var uuid_1 = require("uuid");
         | 
| 41 19 | 
             
            var WildCardArvoSemanticVersion_1 = require("../ArvoContract/WildCardArvoSemanticVersion");
         | 
| 20 | 
            +
            var utils_1 = require("../utils");
         | 
| 21 | 
            +
            var schema_1 = require("./schema");
         | 
| 42 22 | 
             
            /**
         | 
| 43 23 | 
             
             * Handles the creation and parsing of Arvo orchestration subjects.
         | 
| 44 24 | 
             
             */
         | 
| 25 | 
            +
            // biome-ignore lint/complexity/noStaticOnlyClass: This needs to be a static class to group methods together
         | 
| 45 26 | 
             
            var ArvoOrchestrationSubject = /** @class */ (function () {
         | 
| 46 27 | 
             
                function ArvoOrchestrationSubject() {
         | 
| 47 28 | 
             
                }
         | 
| @@ -163,8 +144,8 @@ var ArvoOrchestrationSubject = /** @class */ (function () { | |
| 163 144 | 
             
                            throw new Error("Invalid ArvoOrchestrationContextType: ".concat(validationResult.error));
         | 
| 164 145 | 
             
                        }
         | 
| 165 146 | 
             
                        var jsonString = JSON.stringify(param);
         | 
| 166 | 
            -
                        var compressed =  | 
| 167 | 
            -
                        return compressed.toString('base64');
         | 
| 147 | 
            +
                        var compressed = pako_1.default.deflate(new TextEncoder().encode(jsonString));
         | 
| 148 | 
            +
                        return Buffer.from(compressed).toString('base64');
         | 
| 168 149 | 
             
                    }
         | 
| 169 150 | 
             
                    catch (e) {
         | 
| 170 151 | 
             
                        throw new Error((0, utils_1.cleanString)("\n        Error creating orchestration subject string from the provided context. \n        Error -> ".concat(e.message, "  \n        Context -> ").concat(JSON.stringify(param, null, 2), "\n      ")));
         | 
| @@ -188,7 +169,8 @@ var ArvoOrchestrationSubject = /** @class */ (function () { | |
| 188 169 | 
             
                ArvoOrchestrationSubject.parse = function (subject) {
         | 
| 189 170 | 
             
                    try {
         | 
| 190 171 | 
             
                        var compressed = Buffer.from(subject, 'base64');
         | 
| 191 | 
            -
                        var  | 
| 172 | 
            +
                        var decompressed = pako_1.default.inflate(compressed);
         | 
| 173 | 
            +
                        var jsonString = new TextDecoder().decode(decompressed);
         | 
| 192 174 | 
             
                        var parsed = JSON.parse(jsonString);
         | 
| 193 175 | 
             
                        var validationResult = schema_1.ArvoOrchestrationSubjectContentSchema.safeParse(parsed);
         | 
| 194 176 | 
             
                        if (!validationResult.success) {
         | 
| @@ -200,6 +182,29 @@ var ArvoOrchestrationSubject = /** @class */ (function () { | |
| 200 182 | 
             
                        throw new Error((0, utils_1.cleanString)("\n        Error parsing orchestration subject string to the context. \n        Error -> ".concat(e.message, "  \n        subject -> ").concat(subject, "\n      ")));
         | 
| 201 183 | 
             
                    }
         | 
| 202 184 | 
             
                };
         | 
| 185 | 
            +
                /**
         | 
| 186 | 
            +
                 * Validates if a string represents a valid Arvo orchestration subject.
         | 
| 187 | 
            +
                 * A valid subject must:
         | 
| 188 | 
            +
                 * - Be base64 encoded
         | 
| 189 | 
            +
                 * - Contain zlib-compressed JSON data
         | 
| 190 | 
            +
                 * - Match the ArvoOrchestrationSubjectContent schema when decoded
         | 
| 191 | 
            +
                 * - Include valid orchestrator and execution details
         | 
| 192 | 
            +
                 *
         | 
| 193 | 
            +
                 * Use this method for validating subjects before processing them in
         | 
| 194 | 
            +
                 * orchestration workflows or when receiving subjects from external sources.
         | 
| 195 | 
            +
                 *
         | 
| 196 | 
            +
                 * @param data - The string to validate as an orchestration subject
         | 
| 197 | 
            +
                 * @returns boolean - True if string is a valid orchestration subject, false otherwise
         | 
| 198 | 
            +
                 */
         | 
| 199 | 
            +
                ArvoOrchestrationSubject.isValid = function (data) {
         | 
| 200 | 
            +
                    try {
         | 
| 201 | 
            +
                        ArvoOrchestrationSubject.parse(data);
         | 
| 202 | 
            +
                        return false;
         | 
| 203 | 
            +
                    }
         | 
| 204 | 
            +
                    catch (_a) {
         | 
| 205 | 
            +
                        return false;
         | 
| 206 | 
            +
                    }
         | 
| 207 | 
            +
                };
         | 
| 203 208 | 
             
                return ArvoOrchestrationSubject;
         | 
| 204 209 | 
             
            }());
         | 
| 205 210 | 
             
            exports.default = ArvoOrchestrationSubject;
         | 
| @@ -2,8 +2,8 @@ | |
| 2 2 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 3 | 
             
            exports.ArvoOrchestrationSubjectContentSchema = void 0;
         | 
| 4 4 | 
             
            var zod_1 = require("zod");
         | 
| 5 | 
            -
            var utils_1 = require("../utils");
         | 
| 6 5 | 
             
            var schema_1 = require("../schema");
         | 
| 6 | 
            +
            var utils_1 = require("../utils");
         | 
| 7 7 | 
             
            // Zod schema for ArvoOrchestrationSubjectContent
         | 
| 8 8 | 
             
            exports.ArvoOrchestrationSubjectContentSchema = zod_1.z
         | 
| 9 9 | 
             
                .object({
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import {  | 
| 3 | 
            -
            import {  | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 3 | 
            +
            import type { ArvoOrchestratorContract, ICreateArvoOrchestratorContract } from './types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Creates an ArvoOrchestratorContract with specified parameters.
         | 
| 6 6 | 
             
             *
         | 
| @@ -15,9 +15,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 15 15 | 
             
            };
         | 
| 16 16 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 17 17 | 
             
            exports.createArvoOrchestratorContract = void 0;
         | 
| 18 | 
            -
            var typegen_1 = require("./typegen");
         | 
| 19 | 
            -
            var schema_1 = require("./schema");
         | 
| 20 18 | 
             
            var ArvoContract_1 = __importDefault(require("../ArvoContract"));
         | 
| 19 | 
            +
            var schema_1 = require("./schema");
         | 
| 20 | 
            +
            var typegen_1 = require("./typegen");
         | 
| 21 21 | 
             
            /**
         | 
| 22 22 | 
             
             * Validates if a string contains only uppercase or lowercase alphanumeric characters.
         | 
| 23 23 | 
             
             *
         | 
| @@ -14,6 +14,7 @@ exports.ArvoOrchestratorEventTypeGen = void 0; | |
| 14 14 | 
             
             * const errorEvent = ArvoOrchestratorEventTypeGen.systemError('payment') // 'sys.arvo.orc.payment.error'
         | 
| 15 15 | 
             
             * ```
         | 
| 16 16 | 
             
             */
         | 
| 17 | 
            +
            // biome-ignore lint/complexity/noStaticOnlyClass: This needs to be a static class to group methods together
         | 
| 17 18 | 
             
            var ArvoOrchestratorEventTypeGen = /** @class */ (function () {
         | 
| 18 19 | 
             
                function ArvoOrchestratorEventTypeGen() {
         | 
| 19 20 | 
             
                }
         | 
| @@ -1,8 +1,8 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import  | 
| 3 | 
            -
            import  | 
| 4 | 
            -
            import {  | 
| 5 | 
            -
            import {  | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type ArvoContract from '../ArvoContract';
         | 
| 3 | 
            +
            import type { ArvoSemanticVersion } from '../types';
         | 
| 4 | 
            +
            import type { OrchestrationInitEventBaseSchema } from './schema';
         | 
| 5 | 
            +
            import type { ArvoOrchestratorEventTypeGen } from './typegen';
         | 
| 6 6 | 
             
            /**
         | 
| 7 7 | 
             
             * A specialized ArvoContract type for orchestrating complex event flows.
         | 
| 8 8 | 
             
             * Automatically generates appropriately typed init and complete events.
         | 
| @@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | |
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * ArvoExection class containing attribute constants for OpenTelemetry.
         | 
| 5 5 | 
             
             */
         | 
| 6 | 
            +
            // biome-ignore lint/complexity/noStaticOnlyClass: This needs to be a static class to group methods together
         | 
| 6 7 | 
             
            var ArvoExecution = /** @class */ (function () {
         | 
| 7 8 | 
             
                function ArvoExecution() {
         | 
| 8 9 | 
             
                }
         | 
| @@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | |
| 5 5 | 
             
             * These attribute names are defined as per the OpenInference specification:
         | 
| 6 6 | 
             
             * @see https://github.com/Arize-ai/openinference/blob/main/spec/semantic_conventions.md
         | 
| 7 7 | 
             
             */
         | 
| 8 | 
            +
            // biome-ignore lint/complexity/noStaticOnlyClass: This needs to be a static class to group methods together
         | 
| 8 9 | 
             
            var OpenInference = /** @class */ (function () {
         | 
| 9 10 | 
             
                function OpenInference() {
         | 
| 10 11 | 
             
                }
         | 
| @@ -1,5 +1,5 @@ | |
| 1 | 
            -
            import {  | 
| 2 | 
            -
            import {  | 
| 1 | 
            +
            import { type Context, type Span, type SpanOptions, type Tracer } from '@opentelemetry/api';
         | 
| 2 | 
            +
            import type { OpenTelemetryHeaders, TelemetryLogLevel } from './types';
         | 
| 3 3 | 
             
            /**
         | 
| 4 4 | 
             
             * Singleton class for managing OpenTelemetry instrumentation across libraries
         | 
| 5 5 | 
             
             */
         | 
| @@ -91,8 +91,7 @@ var ArvoOpenTelemetry = /** @class */ (function () { | |
| 91 91 | 
             
                    if (!config.force) {
         | 
| 92 92 | 
             
                        var activeSpan = api_1.trace.getActiveSpan();
         | 
| 93 93 | 
             
                        if (activeSpan) {
         | 
| 94 | 
            -
                            throw new Error('Cannot reinitialize while spans are active. ' +
         | 
| 95 | 
            -
                                'Either end all spans or use force: true (not recommended)');
         | 
| 94 | 
            +
                            throw new Error('Cannot reinitialize while spans are active. ' + 'Either end all spans or use force: true (not recommended)');
         | 
| 96 95 | 
             
                        }
         | 
| 97 96 | 
             
                    }
         | 
| 98 97 | 
             
                    // Create new instance
         | 
| @@ -120,8 +119,7 @@ var ArvoOpenTelemetry = /** @class */ (function () { | |
| 120 119 | 
             
                    var _b, _c, _d;
         | 
| 121 120 | 
             
                    var parentContext;
         | 
| 122 121 | 
             
                    if (param.context) {
         | 
| 123 | 
            -
                        if (param.context.inheritFrom === 'TRACE_HEADERS' &&
         | 
| 124 | 
            -
                            param.context.traceHeaders.traceparent) {
         | 
| 122 | 
            +
                        if (param.context.inheritFrom === 'TRACE_HEADERS' && param.context.traceHeaders.traceparent) {
         | 
| 125 123 | 
             
                            parentContext = (0, exports.makeOpenTelemetryContextContext)(param.context.traceHeaders.traceparent, param.context.traceHeaders.tracestate);
         | 
| 126 124 | 
             
                        }
         | 
| 127 125 | 
             
                        else if (param.context.inheritFrom === 'CONTEXT') {
         | 
    
        package/dist/index.d.ts
    CHANGED
    
    | @@ -1,34 +1,34 @@ | |
| 1 | 
            +
            import ArvoContract from './ArvoContract';
         | 
| 2 | 
            +
            import { createArvoContract } from './ArvoContract/helpers';
         | 
| 1 3 | 
             
            import ArvoEvent from './ArvoEvent';
         | 
| 2 | 
            -
            import { ArvoDataContentType } from './ArvoEvent/schema';
         | 
| 3 4 | 
             
            import { createArvoEvent } from './ArvoEvent/helpers';
         | 
| 4 | 
            -
            import {  | 
| 5 | 
            -
            import {  | 
| 5 | 
            +
            import { ArvoDataContentType } from './ArvoEvent/schema';
         | 
| 6 | 
            +
            import { ArvoEventData, ArvoExtension, CloudEventContext, CloudEventExtension, CreateArvoEvent, OpenTelemetryExtension } from './ArvoEvent/types';
         | 
| 7 | 
            +
            import { ArvoOpenTelemetry, OTelNull, currentOpenTelemetryHeaders, exceptionToSpan, logToSpan } from './OpenTelemetry';
         | 
| 6 8 | 
             
            import { OpenTelemetryHeaders, TelemetryLogLevel } from './OpenTelemetry/types';
         | 
| 7 | 
            -
            import {  | 
| 8 | 
            -
            import  | 
| 9 | 
            -
            import {  | 
| 9 | 
            +
            import { EventDataschemaUtil, cleanString, compareSemanticVersions, createArvoError, parseSemanticVersion, validateURI } from './utils';
         | 
| 10 | 
            +
            import { createSimpleArvoContract } from './ArvoContract/SimpleArvoContract';
         | 
| 11 | 
            +
            import { SimpleArvoContract } from './ArvoContract/SimpleArvoContract/types';
         | 
| 12 | 
            +
            import { VersionedArvoContract } from './ArvoContract/VersionedArvoContract';
         | 
| 13 | 
            +
            import { WildCardArvoSemanticVersion, isWildCardArvoSematicVersion } from './ArvoContract/WildCardArvoSemanticVersion';
         | 
| 14 | 
            +
            import { ArvoContractJSONSchema, ArvoContractRecord, IArvoContract, ResolveArvoContractRecord } from './ArvoContract/types';
         | 
| 10 15 | 
             
            import { ArvoContractValidators } from './ArvoContract/validators';
         | 
| 11 | 
            -
            import { ArvoContractRecord, IArvoContract, ResolveArvoContractRecord, ArvoContractJSONSchema } from './ArvoContract/types';
         | 
| 12 16 | 
             
            import ArvoEventFactory from './ArvoEventFactory';
         | 
| 17 | 
            +
            import { ArvoOrchestratorEventFactory } from './ArvoEventFactory/Orchestrator';
         | 
| 13 18 | 
             
            import { createArvoEventFactory, createArvoOrchestratorEventFactory } from './ArvoEventFactory/helpers';
         | 
| 14 | 
            -
            import { ArvoErrorSchema, ArvoSemanticVersionSchema, isValidArvoSemanticVersion } from './schema';
         | 
| 15 | 
            -
            import OpenInference from './OpenTelemetry/OpenInference';
         | 
| 16 | 
            -
            import ArvoExecution from './OpenTelemetry/ArvoExecution';
         | 
| 17 | 
            -
            import { ArvoExecutionSpanKind } from './OpenTelemetry/ArvoExecution/types';
         | 
| 18 | 
            -
            import { OpenInferenceSpanKind } from './OpenTelemetry/OpenInference/types';
         | 
| 19 19 | 
             
            import ArvoOrchestrationSubject from './ArvoOrchestrationSubject';
         | 
| 20 20 | 
             
            import { ArvoOrchestrationSubjectContentSchema } from './ArvoOrchestrationSubject/schema';
         | 
| 21 21 | 
             
            import { ArvoOrchestrationSubjectContent } from './ArvoOrchestrationSubject/type';
         | 
| 22 | 
            -
            import { InferArvoEvent, ArvoSemanticVersion, ArvoErrorType, InferVersionedArvoContract } from './types';
         | 
| 23 22 | 
             
            import { createArvoOrchestratorContract } from './ArvoOrchestratorContract';
         | 
| 24 | 
            -
            import { ICreateArvoOrchestratorContract, ArvoOrchestratorContract } from './ArvoOrchestratorContract/types';
         | 
| 25 23 | 
             
            import { ArvoOrchestratorEventTypeGen } from './ArvoOrchestratorContract/typegen';
         | 
| 26 | 
            -
            import {  | 
| 27 | 
            -
            import  | 
| 28 | 
            -
            import {  | 
| 29 | 
            -
            import  | 
| 30 | 
            -
            import {  | 
| 24 | 
            +
            import { ArvoOrchestratorContract, ICreateArvoOrchestratorContract } from './ArvoOrchestratorContract/types';
         | 
| 25 | 
            +
            import ArvoExecution from './OpenTelemetry/ArvoExecution';
         | 
| 26 | 
            +
            import { ArvoExecutionSpanKind } from './OpenTelemetry/ArvoExecution/types';
         | 
| 27 | 
            +
            import OpenInference from './OpenTelemetry/OpenInference';
         | 
| 28 | 
            +
            import { OpenInferenceSpanKind } from './OpenTelemetry/OpenInference/types';
         | 
| 31 29 | 
             
            import { ViolationError, ViolationErrorParam } from './errors';
         | 
| 30 | 
            +
            import { ArvoErrorSchema, ArvoSemanticVersionSchema, isValidArvoSemanticVersion } from './schema';
         | 
| 31 | 
            +
            import { ArvoErrorType, ArvoSemanticVersion, InferArvoEvent, InferVersionedArvoContract } from './types';
         | 
| 32 32 | 
             
            /**
         | 
| 33 33 | 
             
             * Collection of Zod schemas for validating various aspects of Arvo events.
         | 
| 34 34 | 
             
             * @property {z.ZodObject} CloudEventContextSchema - Schema for core CloudEvent properties.
         | 
| @@ -51,20 +51,20 @@ declare const ArvoEventSchema: { | |
| 51 51 | 
             
                }, "strip", import("zod").ZodTypeAny, {
         | 
| 52 52 | 
             
                    type: string;
         | 
| 53 53 | 
             
                    id: string;
         | 
| 54 | 
            +
                    time: string;
         | 
| 54 55 | 
             
                    source: string;
         | 
| 55 56 | 
             
                    specversion: "1.0";
         | 
| 56 57 | 
             
                    subject: string;
         | 
| 57 58 | 
             
                    datacontenttype: string;
         | 
| 58 59 | 
             
                    dataschema: string | null;
         | 
| 59 | 
            -
                    time: string;
         | 
| 60 60 | 
             
                }, {
         | 
| 61 61 | 
             
                    type: string;
         | 
| 62 62 | 
             
                    id: string;
         | 
| 63 | 
            +
                    time: string;
         | 
| 63 64 | 
             
                    source: string;
         | 
| 64 65 | 
             
                    specversion: string;
         | 
| 65 66 | 
             
                    subject: string;
         | 
| 66 67 | 
             
                    dataschema: string | null;
         | 
| 67 | 
            -
                    time: string;
         | 
| 68 68 | 
             
                    datacontenttype?: string | undefined;
         | 
| 69 69 | 
             
                }>;
         | 
| 70 70 | 
             
                CloudEventExtensionSchema: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodNumber, import("zod").ZodNull]>>;
         | 
| @@ -103,4 +103,4 @@ declare const ArvoEventSchema: { | |
| 103 103 | 
             
                    parentSubject$$: string | null;
         | 
| 104 104 | 
             
                }>;
         | 
| 105 105 | 
             
            };
         | 
| 106 | 
            -
            export { ArvoEvent, createArvoEvent, ArvoDataContentType, ArvoEventData, CloudEventExtension, ArvoEventSchema, CloudEventContext, ArvoExtension, OpenTelemetryExtension, CreateArvoEvent, exceptionToSpan, logToSpan, OpenTelemetryHeaders, TelemetryLogLevel, OTelNull, validateURI, cleanString, ArvoContract, createArvoContract, ArvoContractValidators, ArvoContractRecord, IArvoContract, ResolveArvoContractRecord, ArvoEventFactory, createArvoEventFactory, currentOpenTelemetryHeaders, OpenInference, OpenInferenceSpanKind, ArvoExecution, ArvoExecutionSpanKind, ArvoContractJSONSchema, ArvoOrchestrationSubject, ArvoOrchestrationSubjectContent, ArvoSemanticVersion, InferArvoEvent, createArvoOrchestratorContract, ICreateArvoOrchestratorContract, ArvoOrchestratorEventTypeGen, EventDataschemaUtil, ArvoOrchestrationSubjectContentSchema, ArvoSemanticVersionSchema, ArvoErrorSchema, ArvoErrorType, compareSemanticVersions, parseSemanticVersion, createSimpleArvoContract, ArvoOrchestratorContract, VersionedArvoContract, InferVersionedArvoContract, isWildCardArvoSematicVersion, WildCardArvoSemanticVersion, isValidArvoSemanticVersion, SimpleArvoContract, ArvoOrchestratorEventFactory, createArvoOrchestratorEventFactory, ArvoOpenTelemetry, ViolationError, ViolationErrorParam, };
         | 
| 106 | 
            +
            export { ArvoEvent, createArvoEvent, ArvoDataContentType, ArvoEventData, CloudEventExtension, ArvoEventSchema, CloudEventContext, ArvoExtension, OpenTelemetryExtension, CreateArvoEvent, exceptionToSpan, logToSpan, OpenTelemetryHeaders, TelemetryLogLevel, OTelNull, validateURI, cleanString, ArvoContract, createArvoContract, ArvoContractValidators, ArvoContractRecord, IArvoContract, ResolveArvoContractRecord, ArvoEventFactory, createArvoEventFactory, currentOpenTelemetryHeaders, OpenInference, OpenInferenceSpanKind, ArvoExecution, ArvoExecutionSpanKind, ArvoContractJSONSchema, ArvoOrchestrationSubject, ArvoOrchestrationSubjectContent, ArvoSemanticVersion, InferArvoEvent, createArvoOrchestratorContract, ICreateArvoOrchestratorContract, ArvoOrchestratorEventTypeGen, EventDataschemaUtil, ArvoOrchestrationSubjectContentSchema, ArvoSemanticVersionSchema, ArvoErrorSchema, ArvoErrorType, compareSemanticVersions, parseSemanticVersion, createSimpleArvoContract, ArvoOrchestratorContract, VersionedArvoContract, InferVersionedArvoContract, isWildCardArvoSematicVersion, WildCardArvoSemanticVersion, isValidArvoSemanticVersion, SimpleArvoContract, ArvoOrchestratorEventFactory, createArvoOrchestratorEventFactory, ArvoOpenTelemetry, ViolationError, ViolationErrorParam, createArvoError, };
         | 
    
        package/dist/index.js
    CHANGED
    
    | @@ -3,68 +3,69 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | |
| 3 3 | 
             
                return (mod && mod.__esModule) ? mod : { "default": mod };
         | 
| 4 4 | 
             
            };
         | 
| 5 5 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 6 | 
            -
            exports.ViolationError = exports.ArvoOpenTelemetry = exports.createArvoOrchestratorEventFactory = exports.ArvoOrchestratorEventFactory = exports.isValidArvoSemanticVersion = exports.WildCardArvoSemanticVersion = exports.isWildCardArvoSematicVersion = exports.VersionedArvoContract = exports.createSimpleArvoContract = exports.parseSemanticVersion = exports.compareSemanticVersions = exports.ArvoErrorSchema = exports.ArvoSemanticVersionSchema = exports.ArvoOrchestrationSubjectContentSchema = exports.EventDataschemaUtil = exports.ArvoOrchestratorEventTypeGen = exports.createArvoOrchestratorContract = exports.ArvoOrchestrationSubject = exports.ArvoExecutionSpanKind = exports.ArvoExecution = exports.OpenInferenceSpanKind = exports.OpenInference = exports.currentOpenTelemetryHeaders = exports.createArvoEventFactory = exports.ArvoEventFactory = exports.ArvoContractValidators = exports.createArvoContract = exports.ArvoContract = exports.cleanString = exports.validateURI = exports.OTelNull = exports.logToSpan = exports.exceptionToSpan = exports.ArvoEventSchema = exports.ArvoDataContentType = exports.createArvoEvent = exports.ArvoEvent = void 0;
         | 
| 6 | 
            +
            exports.createArvoError = exports.ViolationError = exports.ArvoOpenTelemetry = exports.createArvoOrchestratorEventFactory = exports.ArvoOrchestratorEventFactory = exports.isValidArvoSemanticVersion = exports.WildCardArvoSemanticVersion = exports.isWildCardArvoSematicVersion = exports.VersionedArvoContract = exports.createSimpleArvoContract = exports.parseSemanticVersion = exports.compareSemanticVersions = exports.ArvoErrorSchema = exports.ArvoSemanticVersionSchema = exports.ArvoOrchestrationSubjectContentSchema = exports.EventDataschemaUtil = exports.ArvoOrchestratorEventTypeGen = exports.createArvoOrchestratorContract = exports.ArvoOrchestrationSubject = exports.ArvoExecutionSpanKind = exports.ArvoExecution = exports.OpenInferenceSpanKind = exports.OpenInference = exports.currentOpenTelemetryHeaders = exports.createArvoEventFactory = exports.ArvoEventFactory = exports.ArvoContractValidators = exports.createArvoContract = exports.ArvoContract = exports.cleanString = exports.validateURI = exports.OTelNull = exports.logToSpan = exports.exceptionToSpan = exports.ArvoEventSchema = exports.ArvoDataContentType = exports.createArvoEvent = exports.ArvoEvent = void 0;
         | 
| 7 | 
            +
            var ArvoContract_1 = __importDefault(require("./ArvoContract"));
         | 
| 8 | 
            +
            exports.ArvoContract = ArvoContract_1.default;
         | 
| 9 | 
            +
            var helpers_1 = require("./ArvoContract/helpers");
         | 
| 10 | 
            +
            Object.defineProperty(exports, "createArvoContract", { enumerable: true, get: function () { return helpers_1.createArvoContract; } });
         | 
| 7 11 | 
             
            var ArvoEvent_1 = __importDefault(require("./ArvoEvent"));
         | 
| 8 12 | 
             
            exports.ArvoEvent = ArvoEvent_1.default;
         | 
| 13 | 
            +
            var helpers_2 = require("./ArvoEvent/helpers");
         | 
| 14 | 
            +
            Object.defineProperty(exports, "createArvoEvent", { enumerable: true, get: function () { return helpers_2.createArvoEvent; } });
         | 
| 9 15 | 
             
            var schema_1 = require("./ArvoEvent/schema");
         | 
| 10 16 | 
             
            Object.defineProperty(exports, "ArvoDataContentType", { enumerable: true, get: function () { return schema_1.ArvoDataContentType; } });
         | 
| 11 | 
            -
            var helpers_1 = require("./ArvoEvent/helpers");
         | 
| 12 | 
            -
            Object.defineProperty(exports, "createArvoEvent", { enumerable: true, get: function () { return helpers_1.createArvoEvent; } });
         | 
| 13 17 | 
             
            var OpenTelemetry_1 = require("./OpenTelemetry");
         | 
| 14 | 
            -
            Object.defineProperty(exports, " | 
| 15 | 
            -
            Object.defineProperty(exports, "logToSpan", { enumerable: true, get: function () { return OpenTelemetry_1.logToSpan; } });
         | 
| 18 | 
            +
            Object.defineProperty(exports, "ArvoOpenTelemetry", { enumerable: true, get: function () { return OpenTelemetry_1.ArvoOpenTelemetry; } });
         | 
| 16 19 | 
             
            Object.defineProperty(exports, "OTelNull", { enumerable: true, get: function () { return OpenTelemetry_1.OTelNull; } });
         | 
| 17 20 | 
             
            Object.defineProperty(exports, "currentOpenTelemetryHeaders", { enumerable: true, get: function () { return OpenTelemetry_1.currentOpenTelemetryHeaders; } });
         | 
| 18 | 
            -
            Object.defineProperty(exports, " | 
| 21 | 
            +
            Object.defineProperty(exports, "exceptionToSpan", { enumerable: true, get: function () { return OpenTelemetry_1.exceptionToSpan; } });
         | 
| 22 | 
            +
            Object.defineProperty(exports, "logToSpan", { enumerable: true, get: function () { return OpenTelemetry_1.logToSpan; } });
         | 
| 19 23 | 
             
            var utils_1 = require("./utils");
         | 
| 20 | 
            -
            Object.defineProperty(exports, " | 
| 24 | 
            +
            Object.defineProperty(exports, "EventDataschemaUtil", { enumerable: true, get: function () { return utils_1.EventDataschemaUtil; } });
         | 
| 21 25 | 
             
            Object.defineProperty(exports, "cleanString", { enumerable: true, get: function () { return utils_1.cleanString; } });
         | 
| 22 26 | 
             
            Object.defineProperty(exports, "compareSemanticVersions", { enumerable: true, get: function () { return utils_1.compareSemanticVersions; } });
         | 
| 27 | 
            +
            Object.defineProperty(exports, "createArvoError", { enumerable: true, get: function () { return utils_1.createArvoError; } });
         | 
| 23 28 | 
             
            Object.defineProperty(exports, "parseSemanticVersion", { enumerable: true, get: function () { return utils_1.parseSemanticVersion; } });
         | 
| 24 | 
            -
            Object.defineProperty(exports, " | 
| 25 | 
            -
            var  | 
| 26 | 
            -
            exports | 
| 27 | 
            -
            var  | 
| 28 | 
            -
            Object.defineProperty(exports, " | 
| 29 | 
            +
            Object.defineProperty(exports, "validateURI", { enumerable: true, get: function () { return utils_1.validateURI; } });
         | 
| 30 | 
            +
            var SimpleArvoContract_1 = require("./ArvoContract/SimpleArvoContract");
         | 
| 31 | 
            +
            Object.defineProperty(exports, "createSimpleArvoContract", { enumerable: true, get: function () { return SimpleArvoContract_1.createSimpleArvoContract; } });
         | 
| 32 | 
            +
            var VersionedArvoContract_1 = require("./ArvoContract/VersionedArvoContract");
         | 
| 33 | 
            +
            Object.defineProperty(exports, "VersionedArvoContract", { enumerable: true, get: function () { return VersionedArvoContract_1.VersionedArvoContract; } });
         | 
| 34 | 
            +
            var WildCardArvoSemanticVersion_1 = require("./ArvoContract/WildCardArvoSemanticVersion");
         | 
| 35 | 
            +
            Object.defineProperty(exports, "WildCardArvoSemanticVersion", { enumerable: true, get: function () { return WildCardArvoSemanticVersion_1.WildCardArvoSemanticVersion; } });
         | 
| 36 | 
            +
            Object.defineProperty(exports, "isWildCardArvoSematicVersion", { enumerable: true, get: function () { return WildCardArvoSemanticVersion_1.isWildCardArvoSematicVersion; } });
         | 
| 29 37 | 
             
            var validators_1 = require("./ArvoContract/validators");
         | 
| 30 38 | 
             
            Object.defineProperty(exports, "ArvoContractValidators", { enumerable: true, get: function () { return validators_1.ArvoContractValidators; } });
         | 
| 31 39 | 
             
            var ArvoEventFactory_1 = __importDefault(require("./ArvoEventFactory"));
         | 
| 32 40 | 
             
            exports.ArvoEventFactory = ArvoEventFactory_1.default;
         | 
| 41 | 
            +
            var Orchestrator_1 = require("./ArvoEventFactory/Orchestrator");
         | 
| 42 | 
            +
            Object.defineProperty(exports, "ArvoOrchestratorEventFactory", { enumerable: true, get: function () { return Orchestrator_1.ArvoOrchestratorEventFactory; } });
         | 
| 33 43 | 
             
            var helpers_3 = require("./ArvoEventFactory/helpers");
         | 
| 34 44 | 
             
            Object.defineProperty(exports, "createArvoEventFactory", { enumerable: true, get: function () { return helpers_3.createArvoEventFactory; } });
         | 
| 35 45 | 
             
            Object.defineProperty(exports, "createArvoOrchestratorEventFactory", { enumerable: true, get: function () { return helpers_3.createArvoOrchestratorEventFactory; } });
         | 
| 36 | 
            -
            var schema_2 = require("./schema");
         | 
| 37 | 
            -
            Object.defineProperty(exports, "ArvoErrorSchema", { enumerable: true, get: function () { return schema_2.ArvoErrorSchema; } });
         | 
| 38 | 
            -
            Object.defineProperty(exports, "ArvoSemanticVersionSchema", { enumerable: true, get: function () { return schema_2.ArvoSemanticVersionSchema; } });
         | 
| 39 | 
            -
            Object.defineProperty(exports, "isValidArvoSemanticVersion", { enumerable: true, get: function () { return schema_2.isValidArvoSemanticVersion; } });
         | 
| 40 | 
            -
            var OpenInference_1 = __importDefault(require("./OpenTelemetry/OpenInference"));
         | 
| 41 | 
            -
            exports.OpenInference = OpenInference_1.default;
         | 
| 42 | 
            -
            var ArvoExecution_1 = __importDefault(require("./OpenTelemetry/ArvoExecution"));
         | 
| 43 | 
            -
            exports.ArvoExecution = ArvoExecution_1.default;
         | 
| 44 | 
            -
            var types_1 = require("./OpenTelemetry/ArvoExecution/types");
         | 
| 45 | 
            -
            Object.defineProperty(exports, "ArvoExecutionSpanKind", { enumerable: true, get: function () { return types_1.ArvoExecutionSpanKind; } });
         | 
| 46 | 
            -
            var types_2 = require("./OpenTelemetry/OpenInference/types");
         | 
| 47 | 
            -
            Object.defineProperty(exports, "OpenInferenceSpanKind", { enumerable: true, get: function () { return types_2.OpenInferenceSpanKind; } });
         | 
| 48 46 | 
             
            var ArvoOrchestrationSubject_1 = __importDefault(require("./ArvoOrchestrationSubject"));
         | 
| 49 47 | 
             
            exports.ArvoOrchestrationSubject = ArvoOrchestrationSubject_1.default;
         | 
| 50 | 
            -
            var  | 
| 51 | 
            -
            Object.defineProperty(exports, "ArvoOrchestrationSubjectContentSchema", { enumerable: true, get: function () { return  | 
| 48 | 
            +
            var schema_2 = require("./ArvoOrchestrationSubject/schema");
         | 
| 49 | 
            +
            Object.defineProperty(exports, "ArvoOrchestrationSubjectContentSchema", { enumerable: true, get: function () { return schema_2.ArvoOrchestrationSubjectContentSchema; } });
         | 
| 52 50 | 
             
            var ArvoOrchestratorContract_1 = require("./ArvoOrchestratorContract");
         | 
| 53 51 | 
             
            Object.defineProperty(exports, "createArvoOrchestratorContract", { enumerable: true, get: function () { return ArvoOrchestratorContract_1.createArvoOrchestratorContract; } });
         | 
| 52 | 
            +
            var schema_3 = require("./ArvoOrchestratorContract/schema");
         | 
| 54 53 | 
             
            var typegen_1 = require("./ArvoOrchestratorContract/typegen");
         | 
| 55 54 | 
             
            Object.defineProperty(exports, "ArvoOrchestratorEventTypeGen", { enumerable: true, get: function () { return typegen_1.ArvoOrchestratorEventTypeGen; } });
         | 
| 56 | 
            -
            var  | 
| 57 | 
            -
             | 
| 58 | 
            -
             | 
| 59 | 
            -
             | 
| 60 | 
            -
             | 
| 61 | 
            -
             | 
| 62 | 
            -
            var  | 
| 63 | 
            -
            Object.defineProperty(exports, " | 
| 64 | 
            -
            var Orchestrator_1 = require("./ArvoEventFactory/Orchestrator");
         | 
| 65 | 
            -
            Object.defineProperty(exports, "ArvoOrchestratorEventFactory", { enumerable: true, get: function () { return Orchestrator_1.ArvoOrchestratorEventFactory; } });
         | 
| 55 | 
            +
            var ArvoExecution_1 = __importDefault(require("./OpenTelemetry/ArvoExecution"));
         | 
| 56 | 
            +
            exports.ArvoExecution = ArvoExecution_1.default;
         | 
| 57 | 
            +
            var types_1 = require("./OpenTelemetry/ArvoExecution/types");
         | 
| 58 | 
            +
            Object.defineProperty(exports, "ArvoExecutionSpanKind", { enumerable: true, get: function () { return types_1.ArvoExecutionSpanKind; } });
         | 
| 59 | 
            +
            var OpenInference_1 = __importDefault(require("./OpenTelemetry/OpenInference"));
         | 
| 60 | 
            +
            exports.OpenInference = OpenInference_1.default;
         | 
| 61 | 
            +
            var types_2 = require("./OpenTelemetry/OpenInference/types");
         | 
| 62 | 
            +
            Object.defineProperty(exports, "OpenInferenceSpanKind", { enumerable: true, get: function () { return types_2.OpenInferenceSpanKind; } });
         | 
| 66 63 | 
             
            var errors_1 = require("./errors");
         | 
| 67 64 | 
             
            Object.defineProperty(exports, "ViolationError", { enumerable: true, get: function () { return errors_1.ViolationError; } });
         | 
| 65 | 
            +
            var schema_4 = require("./schema");
         | 
| 66 | 
            +
            Object.defineProperty(exports, "ArvoErrorSchema", { enumerable: true, get: function () { return schema_4.ArvoErrorSchema; } });
         | 
| 67 | 
            +
            Object.defineProperty(exports, "ArvoSemanticVersionSchema", { enumerable: true, get: function () { return schema_4.ArvoSemanticVersionSchema; } });
         | 
| 68 | 
            +
            Object.defineProperty(exports, "isValidArvoSemanticVersion", { enumerable: true, get: function () { return schema_4.isValidArvoSemanticVersion; } });
         | 
| 68 69 | 
             
            /**
         | 
| 69 70 | 
             
             * Collection of Zod schemas for validating various aspects of Arvo events.
         | 
| 70 71 | 
             
             * @property {z.ZodObject} CloudEventContextSchema - Schema for core CloudEvent properties.
         | 
| @@ -80,6 +81,6 @@ var ArvoEventSchema = { | |
| 80 81 | 
             
                ArvoDataSchema: schema_1.ArvoDataSchema,
         | 
| 81 82 | 
             
                ArvoExtensionSchema: schema_1.ArvoExtensionSchema,
         | 
| 82 83 | 
             
                OpenTelemetryExtensionSchema: schema_1.OpenTelemetryExtensionSchema,
         | 
| 83 | 
            -
                OrchestrationInitEventBaseSchema:  | 
| 84 | 
            +
                OrchestrationInitEventBaseSchema: schema_3.OrchestrationInitEventBaseSchema,
         | 
| 84 85 | 
             
            };
         | 
| 85 86 | 
             
            exports.ArvoEventSchema = ArvoEventSchema;
         | 
    
        package/dist/schema.js
    CHANGED
    
    | @@ -19,7 +19,5 @@ exports.ArvoSemanticVersionSchema = zod_1.z | |
| 19 19 | 
             
                .regex(/^\d+\.\d+\.\d+$/, 'Invalid version format of the semantic version')
         | 
| 20 20 | 
             
                .describe('Semantic version of the Arvo component in the format X.Y.Z');
         | 
| 21 21 | 
             
            // Check is the provided version is a valid arvo semantic version
         | 
| 22 | 
            -
            var isValidArvoSemanticVersion = function (version) {
         | 
| 23 | 
            -
                return exports.ArvoSemanticVersionSchema.safeParse(version).success;
         | 
| 24 | 
            -
            };
         | 
| 22 | 
            +
            var isValidArvoSemanticVersion = function (version) { return exports.ArvoSemanticVersionSchema.safeParse(version).success; };
         | 
| 25 23 | 
             
            exports.isValidArvoSemanticVersion = isValidArvoSemanticVersion;
         | 
    
        package/dist/types.d.ts
    CHANGED
    
    | @@ -1,8 +1,9 @@ | |
| 1 | 
            -
            import { z } from 'zod';
         | 
| 2 | 
            -
            import  | 
| 3 | 
            -
            import  | 
| 4 | 
            -
            import {  | 
| 5 | 
            -
            import {  | 
| 1 | 
            +
            import type { z } from 'zod';
         | 
| 2 | 
            +
            import type { VersionedArvoContract } from './ArvoContract/VersionedArvoContract';
         | 
| 3 | 
            +
            import type ArvoEvent from './ArvoEvent';
         | 
| 4 | 
            +
            import type { CloudEventExtensionSchema } from './ArvoEvent/schema';
         | 
| 5 | 
            +
            import type { ArvoExtension, OpenTelemetryExtension } from './ArvoEvent/types';
         | 
| 6 | 
            +
            import type { ArvoErrorSchema } from './schema';
         | 
| 6 7 | 
             
            /**
         | 
| 7 8 | 
             
             * Represents a semantic version string following the SemVer format (MAJOR.MINOR.PATCH).
         | 
| 8 9 | 
             
             */
         | 
| @@ -56,8 +57,8 @@ export type InferVersionedArvoContract<TVersion extends VersionedArvoContract<an | |
| 56 57 | 
             
                version: TVersion['version'];
         | 
| 57 58 | 
             
                description: TVersion['description'];
         | 
| 58 59 | 
             
                metadata: TVersion['metadata'];
         | 
| 59 | 
            -
                systemError: InferArvoEvent<ArvoEvent<InferZodSchema<TVersion['systemError']['schema']>,  | 
| 60 | 
            -
                accepts: InferArvoEvent<ArvoEvent<InferZodSchema<TVersion['accepts']['schema']>,  | 
| 60 | 
            +
                systemError: InferArvoEvent<ArvoEvent<InferZodSchema<TVersion['systemError']['schema']>, z.infer<typeof CloudEventExtensionSchema>, TVersion['systemError']['type']>>;
         | 
| 61 | 
            +
                accepts: InferArvoEvent<ArvoEvent<InferZodSchema<TVersion['accepts']['schema']>, z.infer<typeof CloudEventExtensionSchema>, TVersion['accepts']['type']>>;
         | 
| 61 62 | 
             
                emits: {
         | 
| 62 63 | 
             
                    [K in string & keyof TVersion['emits']]: InferArvoEvent<ArvoEvent<InferZodSchema<TVersion['emits'][K]>, Record<string, any>, K>>;
         | 
| 63 64 | 
             
                };
         | 
    
        package/dist/utils.d.ts
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            import { VersionedArvoContract } from './ArvoContract/VersionedArvoContract';
         | 
| 2 | 
            -
            import ArvoEvent from './ArvoEvent';
         | 
| 3 | 
            -
            import { ArvoSemanticVersion } from './types';
         | 
| 1 | 
            +
            import type { VersionedArvoContract } from './ArvoContract/VersionedArvoContract';
         | 
| 2 | 
            +
            import type ArvoEvent from './ArvoEvent';
         | 
| 3 | 
            +
            import type { ArvoErrorType, ArvoSemanticVersion } from './types';
         | 
| 4 4 | 
             
            /**
         | 
| 5 5 | 
             
             * Cleans a string by removing leading/trailing whitespace from each line,
         | 
| 6 6 | 
             
             * removing empty lines, and joining the remaining lines with newline characters.
         | 
| @@ -115,5 +115,25 @@ export declare class EventDataschemaUtil { | |
| 115 115 | 
             
                    uri: string;
         | 
| 116 116 | 
             
                    version: ArvoSemanticVersion;
         | 
| 117 117 | 
             
                } | null;
         | 
| 118 | 
            +
                /**
         | 
| 119 | 
            +
                 * Validates if a given ArvoEvent or dataschema string represents a valid dataschema.
         | 
| 120 | 
            +
                 * A valid dataschema must:
         | 
| 121 | 
            +
                 * - Follow the format {uri}/{version}
         | 
| 122 | 
            +
                 * - Have a valid semantic version component
         | 
| 123 | 
            +
                 * - Contain a non-empty URI
         | 
| 124 | 
            +
                 *
         | 
| 125 | 
            +
                 * @param data - ArvoEvent object or dataschema string to validate
         | 
| 126 | 
            +
                 * @returns boolean - True if dataschema is valid, false otherwise
         | 
| 127 | 
            +
                 */
         | 
| 128 | 
            +
                static isValid(data: ArvoEvent | string): boolean;
         | 
| 118 129 | 
             
            }
         | 
| 130 | 
            +
            /**
         | 
| 131 | 
            +
             * Creates a standardized ArvoError payload from an Error object. This utility
         | 
| 132 | 
            +
             * ensures consistent error reporting across the event system by extracting and
         | 
| 133 | 
            +
             * structuring key error information.
         | 
| 134 | 
            +
             *
         | 
| 135 | 
            +
             * @param error - The source Error object to convert
         | 
| 136 | 
            +
             * @returns ArvoErrorType - The standardized error payload
         | 
| 137 | 
            +
             */
         | 
| 138 | 
            +
            export declare const createArvoError: (error: Error) => ArvoErrorType;
         | 
| 119 139 | 
             
            export {};
         | 
    
        package/dist/utils.js
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            "use strict";
         | 
| 2 2 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 | 
            -
            exports.EventDataschemaUtil = exports.createTimestamp = exports.validateURI = void 0;
         | 
| 3 | 
            +
            exports.createArvoError = exports.EventDataschemaUtil = exports.createTimestamp = exports.validateURI = void 0;
         | 
| 4 4 | 
             
            exports.cleanString = cleanString;
         | 
| 5 5 | 
             
            exports.parseSemanticVersion = parseSemanticVersion;
         | 
| 6 6 | 
             
            exports.compareSemanticVersions = compareSemanticVersions;
         | 
| @@ -84,8 +84,8 @@ var createTimestamp = function (offsetHours) { | |
| 84 84 | 
             
            exports.createTimestamp = createTimestamp;
         | 
| 85 85 | 
             
            function parseSemanticVersion(version) {
         | 
| 86 86 | 
             
                var _a = version.split('.').map(function (part) {
         | 
| 87 | 
            -
                    var num = parseInt(part, 10);
         | 
| 88 | 
            -
                    if (isNaN(num)) {
         | 
| 87 | 
            +
                    var num = Number.parseInt(part, 10);
         | 
| 88 | 
            +
                    if (Number.isNaN(num)) {
         | 
| 89 89 | 
             
                        throw new Error("Invalid version number in ".concat(version));
         | 
| 90 90 | 
             
                    }
         | 
| 91 91 | 
             
                    return num;
         | 
| @@ -117,6 +117,7 @@ function compareSemanticVersions(version1, version2) { | |
| 117 117 | 
             
             * Manages event dataschema strings for versioned contracts.
         | 
| 118 118 | 
             
             * Handles creation and parsing of dataschema identifiers.
         | 
| 119 119 | 
             
             */
         | 
| 120 | 
            +
            // biome-ignore lint/complexity/noStaticOnlyClass: This needs to be a static class to group methods together
         | 
| 120 121 | 
             
            var EventDataschemaUtil = /** @class */ (function () {
         | 
| 121 122 | 
             
                function EventDataschemaUtil() {
         | 
| 122 123 | 
             
                }
         | 
| @@ -179,6 +180,36 @@ var EventDataschemaUtil = /** @class */ (function () { | |
| 179 180 | 
             
                        return null;
         | 
| 180 181 | 
             
                    }
         | 
| 181 182 | 
             
                };
         | 
| 183 | 
            +
                /**
         | 
| 184 | 
            +
                 * Validates if a given ArvoEvent or dataschema string represents a valid dataschema.
         | 
| 185 | 
            +
                 * A valid dataschema must:
         | 
| 186 | 
            +
                 * - Follow the format {uri}/{version}
         | 
| 187 | 
            +
                 * - Have a valid semantic version component
         | 
| 188 | 
            +
                 * - Contain a non-empty URI
         | 
| 189 | 
            +
                 *
         | 
| 190 | 
            +
                 * @param data - ArvoEvent object or dataschema string to validate
         | 
| 191 | 
            +
                 * @returns boolean - True if dataschema is valid, false otherwise
         | 
| 192 | 
            +
                 */
         | 
| 193 | 
            +
                EventDataschemaUtil.isValid = function (data) {
         | 
| 194 | 
            +
                    return Boolean(EventDataschemaUtil.parse(data));
         | 
| 195 | 
            +
                };
         | 
| 182 196 | 
             
                return EventDataschemaUtil;
         | 
| 183 197 | 
             
            }());
         | 
| 184 198 | 
             
            exports.EventDataschemaUtil = EventDataschemaUtil;
         | 
| 199 | 
            +
            /**
         | 
| 200 | 
            +
             * Creates a standardized ArvoError payload from an Error object. This utility
         | 
| 201 | 
            +
             * ensures consistent error reporting across the event system by extracting and
         | 
| 202 | 
            +
             * structuring key error information.
         | 
| 203 | 
            +
             *
         | 
| 204 | 
            +
             * @param error - The source Error object to convert
         | 
| 205 | 
            +
             * @returns ArvoErrorType - The standardized error payload
         | 
| 206 | 
            +
             */
         | 
| 207 | 
            +
            var createArvoError = function (error) {
         | 
| 208 | 
            +
                var _a;
         | 
| 209 | 
            +
                return ({
         | 
| 210 | 
            +
                    errorName: error.name,
         | 
| 211 | 
            +
                    errorMessage: error.message,
         | 
| 212 | 
            +
                    errorStack: (_a = error.stack) !== null && _a !== void 0 ? _a : null,
         | 
| 213 | 
            +
                });
         | 
| 214 | 
            +
            };
         | 
| 215 | 
            +
            exports.createArvoError = createArvoError;
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "arvo-core",
         | 
| 3 | 
            -
              "version": "2.2. | 
| 3 | 
            +
              "version": "2.2.7",
         | 
| 4 4 | 
             
              "description": "This core package contains all the core classes and components of the Arvo Event Driven System",
         | 
| 5 5 | 
             
              "main": "dist/index.js",
         | 
| 6 6 | 
             
              "scripts": {
         | 
| @@ -8,21 +8,15 @@ | |
| 8 8 | 
             
                "start": "node ./dist/index.js",
         | 
| 9 9 | 
             
                "dev": "ts-node ./src/index.ts",
         | 
| 10 10 | 
             
                "test": "jest --passWithNoTests --runInBand --detectOpenHandles --forceExit",
         | 
| 11 | 
            -
                " | 
| 11 | 
            +
                "lint": "biome check --fix",
         | 
| 12 | 
            +
                "format": "biome format --fix",
         | 
| 12 13 | 
             
                "doc": "npx typedoc"
         | 
| 13 14 | 
             
              },
         | 
| 14 | 
            -
              "keywords": [
         | 
| 15 | 
            -
                "arvo",
         | 
| 16 | 
            -
                "event-driven architecture",
         | 
| 17 | 
            -
                "xorca",
         | 
| 18 | 
            -
                "core",
         | 
| 19 | 
            -
                "cloudevent",
         | 
| 20 | 
            -
                "opentelemetry",
         | 
| 21 | 
            -
                "orchestrator"
         | 
| 22 | 
            -
              ],
         | 
| 15 | 
            +
              "keywords": ["arvo", "event-driven architecture", "xorca", "core", "cloudevent", "opentelemetry", "orchestrator"],
         | 
| 23 16 | 
             
              "author": "Saad Ahmad <saadkwi12@hotmail.com>",
         | 
| 24 17 | 
             
              "license": "MIT",
         | 
| 25 18 | 
             
              "devDependencies": {
         | 
| 19 | 
            +
                "@biomejs/biome": "^1.9.4",
         | 
| 26 20 | 
             
                "@jest/globals": "^29.7.0",
         | 
| 27 21 | 
             
                "@opentelemetry/auto-instrumentations-node": "^0.49.1",
         | 
| 28 22 | 
             
                "@opentelemetry/exporter-metrics-otlp-proto": "^0.52.1",
         | 
| @@ -34,10 +28,10 @@ | |
| 34 28 | 
             
                "@opentelemetry/semantic-conventions": "^1.25.1",
         | 
| 35 29 | 
             
                "@types/jest": "^29.5.12",
         | 
| 36 30 | 
             
                "@types/node": "^22.5.0",
         | 
| 31 | 
            +
                "@types/pako": "^2.0.3",
         | 
| 37 32 | 
             
                "@types/uuid": "^10.0.0",
         | 
| 38 33 | 
             
                "dotenv": "^16.4.5",
         | 
| 39 34 | 
             
                "jest": "^29.7.0",
         | 
| 40 | 
            -
                "prettier": "^3.3.3",
         | 
| 41 35 | 
             
                "ts-jest": "^29.2.5",
         | 
| 42 36 | 
             
                "ts-node": "^10.9.2",
         | 
| 43 37 | 
             
                "typedoc": "^0.26.6",
         | 
| @@ -48,6 +42,7 @@ | |
| 48 42 | 
             
              "dependencies": {
         | 
| 49 43 | 
             
                "@opentelemetry/api": "^1.9.0",
         | 
| 50 44 | 
             
                "@opentelemetry/core": "^1.28.0",
         | 
| 45 | 
            +
                "pako": "^2.1.0",
         | 
| 51 46 | 
             
                "uuid": "^10.0.0",
         | 
| 52 47 | 
             
                "zod": "^3.23.8",
         | 
| 53 48 | 
             
                "zod-to-json-schema": "^3.23.5"
         |