@eventcatalog/sdk 2.25.0 → 2.26.0

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/dist/index.d.mts CHANGED
@@ -86,12 +86,27 @@ type SendsPointer = {
86
86
  group?: string;
87
87
  };
88
88
 
89
+ type TriggerPointer = {
90
+ id: string;
91
+ version?: string;
92
+ condition?: string;
93
+ };
94
+
89
95
  type ReceivesPointer = {
90
96
  id: string;
91
97
  version?: string;
92
98
  fields?: string[];
93
99
  from?: ChannelPointer[];
94
100
  group?: string;
101
+ triggers?: TriggerPointer[];
102
+ };
103
+
104
+ type MessagePointerInput = {
105
+ id: string;
106
+ version: string;
107
+ fields?: string[];
108
+ group?: string;
109
+ triggers?: TriggerPointer[];
95
110
  };
96
111
 
97
112
  interface ResourceGroup {
@@ -131,6 +146,8 @@ interface CustomDoc {
131
146
  interface MessageDetailsPanelProperty {
132
147
  producers?: DetailPanelProperty;
133
148
  consumers?: DetailPanelProperty;
149
+ triggers?: DetailPanelProperty;
150
+ triggeredBy?: DetailPanelProperty;
134
151
  channels?: DetailPanelProperty;
135
152
  versions?: DetailPanelProperty;
136
153
  repository?: DetailPanelProperty;
@@ -1790,12 +1807,7 @@ declare const _default: (path: string) => {
1790
1807
  *
1791
1808
  * ```
1792
1809
  */
1793
- addEventToService: (id: string, direction: string, event: {
1794
- id: string;
1795
- version: string;
1796
- fields?: string[];
1797
- group?: string;
1798
- }, version?: string) => Promise<void>;
1810
+ addEventToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1799
1811
  /**
1800
1812
  * Add a data store to a service by it's id.
1801
1813
  *
@@ -1835,12 +1847,7 @@ declare const _default: (path: string) => {
1835
1847
  *
1836
1848
  * ```
1837
1849
  */
1838
- addCommandToService: (id: string, direction: string, event: {
1839
- id: string;
1840
- version: string;
1841
- fields?: string[];
1842
- group?: string;
1843
- }, version?: string) => Promise<void>;
1850
+ addCommandToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1844
1851
  /**
1845
1852
  * Add a query to a service by it's id.
1846
1853
  *
@@ -1860,12 +1867,7 @@ declare const _default: (path: string) => {
1860
1867
  *
1861
1868
  * ```
1862
1869
  */
1863
- addQueryToService: (id: string, direction: string, event: {
1864
- id: string;
1865
- version: string;
1866
- fields?: string[];
1867
- group?: string;
1868
- }, version?: string) => Promise<void>;
1870
+ addQueryToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1869
1871
  /**
1870
1872
  * Add an entity to a service by its id.
1871
1873
  *
@@ -1992,24 +1994,9 @@ declare const _default: (path: string) => {
1992
1994
  content: string;
1993
1995
  fileName: string;
1994
1996
  }, version?: string) => Promise<void>;
1995
- addEventToAgent: (id: string, direction: string, message: {
1996
- id: string;
1997
- version: string;
1998
- fields?: string[];
1999
- group?: string;
2000
- }, version?: string) => Promise<void>;
2001
- addCommandToAgent: (id: string, direction: string, message: {
2002
- id: string;
2003
- version: string;
2004
- fields?: string[];
2005
- group?: string;
2006
- }, version?: string) => Promise<void>;
2007
- addQueryToAgent: (id: string, direction: string, message: {
2008
- id: string;
2009
- version: string;
2010
- fields?: string[];
2011
- group?: string;
2012
- }, version?: string) => Promise<void>;
1997
+ addEventToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
1998
+ addCommandToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
1999
+ addQueryToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2013
2000
  addDataStoreToAgent: (id: string, direction: string, dataStore: {
2014
2001
  id: string;
2015
2002
  version: string;
@@ -2179,12 +2166,7 @@ declare const _default: (path: string) => {
2179
2166
  *
2180
2167
  * ```
2181
2168
  */
2182
- addEventToDomain: (id: string, direction: string, message: {
2183
- id: string;
2184
- version: string;
2185
- fields?: string[];
2186
- group?: string;
2187
- }, version?: string) => Promise<void>;
2169
+ addEventToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2188
2170
  /**
2189
2171
  * Add a command to a domain by its id.
2190
2172
  *
@@ -2202,12 +2184,7 @@ declare const _default: (path: string) => {
2202
2184
  *
2203
2185
  * ```
2204
2186
  */
2205
- addCommandToDomain: (id: string, direction: string, message: {
2206
- id: string;
2207
- version: string;
2208
- fields?: string[];
2209
- group?: string;
2210
- }, version?: string) => Promise<void>;
2187
+ addCommandToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2211
2188
  /**
2212
2189
  * Add a query to a domain by its id.
2213
2190
  *
@@ -2225,12 +2202,7 @@ declare const _default: (path: string) => {
2225
2202
  *
2226
2203
  * ```
2227
2204
  */
2228
- addQueryToDomain: (id: string, direction: string, message: {
2229
- id: string;
2230
- version: string;
2231
- fields?: string[];
2232
- group?: string;
2233
- }, version?: string) => Promise<void>;
2205
+ addQueryToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2234
2206
  /**
2235
2207
  * ================================
2236
2208
  * Teams
@@ -2447,21 +2419,21 @@ declare const _default: (path: string) => {
2447
2419
  getProducersAndConsumersForMessage: (id: string, version?: string, options?: {
2448
2420
  latestOnly?: boolean;
2449
2421
  }) => Promise<{
2450
- producers: (Service | Agent)[];
2451
- consumers: (Service | Agent)[];
2422
+ producers: (Service | Agent | Domain)[];
2423
+ consumers: (Service | Agent | Domain)[];
2452
2424
  }>;
2453
2425
  /**
2454
2426
  * Returns the consumers of a given schema path
2455
2427
  * @param path - The path to the schema to get the consumers for
2456
2428
  * @returns (Service|Agent)[]
2457
2429
  */
2458
- getConsumersOfSchema: (path: string) => Promise<(Service | Agent)[]>;
2430
+ getConsumersOfSchema: (path: string) => Promise<(Service | Agent | Domain)[]>;
2459
2431
  /**
2460
2432
  * Returns the producers of a given schema path
2461
2433
  * @param path - The path to the schema to get the producers for
2462
2434
  * @returns (Service|Agent)[]
2463
2435
  */
2464
- getProducersOfSchema: (path: string) => Promise<(Service | Agent)[]>;
2436
+ getProducersOfSchema: (path: string) => Promise<(Service | Agent | Domain)[]>;
2465
2437
  /**
2466
2438
  * Returns the schema for a given message (event, command or query) by its id and version.
2467
2439
  * If no version is given, the latest version is used.
@@ -3010,4 +2982,4 @@ declare const _default: (path: string) => {
3010
2982
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
3011
2983
  };
3012
2984
 
3013
- export { type Adr, type AdrPointer, type AdrResourcePointer, type AdrStatus, type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
2985
+ export { type Adr, type AdrPointer, type AdrResourcePointer, type AdrStatus, type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type MessagePointerInput, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type TriggerPointer, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
package/dist/index.d.ts CHANGED
@@ -86,12 +86,27 @@ type SendsPointer = {
86
86
  group?: string;
87
87
  };
88
88
 
89
+ type TriggerPointer = {
90
+ id: string;
91
+ version?: string;
92
+ condition?: string;
93
+ };
94
+
89
95
  type ReceivesPointer = {
90
96
  id: string;
91
97
  version?: string;
92
98
  fields?: string[];
93
99
  from?: ChannelPointer[];
94
100
  group?: string;
101
+ triggers?: TriggerPointer[];
102
+ };
103
+
104
+ type MessagePointerInput = {
105
+ id: string;
106
+ version: string;
107
+ fields?: string[];
108
+ group?: string;
109
+ triggers?: TriggerPointer[];
95
110
  };
96
111
 
97
112
  interface ResourceGroup {
@@ -131,6 +146,8 @@ interface CustomDoc {
131
146
  interface MessageDetailsPanelProperty {
132
147
  producers?: DetailPanelProperty;
133
148
  consumers?: DetailPanelProperty;
149
+ triggers?: DetailPanelProperty;
150
+ triggeredBy?: DetailPanelProperty;
134
151
  channels?: DetailPanelProperty;
135
152
  versions?: DetailPanelProperty;
136
153
  repository?: DetailPanelProperty;
@@ -1790,12 +1807,7 @@ declare const _default: (path: string) => {
1790
1807
  *
1791
1808
  * ```
1792
1809
  */
1793
- addEventToService: (id: string, direction: string, event: {
1794
- id: string;
1795
- version: string;
1796
- fields?: string[];
1797
- group?: string;
1798
- }, version?: string) => Promise<void>;
1810
+ addEventToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1799
1811
  /**
1800
1812
  * Add a data store to a service by it's id.
1801
1813
  *
@@ -1835,12 +1847,7 @@ declare const _default: (path: string) => {
1835
1847
  *
1836
1848
  * ```
1837
1849
  */
1838
- addCommandToService: (id: string, direction: string, event: {
1839
- id: string;
1840
- version: string;
1841
- fields?: string[];
1842
- group?: string;
1843
- }, version?: string) => Promise<void>;
1850
+ addCommandToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1844
1851
  /**
1845
1852
  * Add a query to a service by it's id.
1846
1853
  *
@@ -1860,12 +1867,7 @@ declare const _default: (path: string) => {
1860
1867
  *
1861
1868
  * ```
1862
1869
  */
1863
- addQueryToService: (id: string, direction: string, event: {
1864
- id: string;
1865
- version: string;
1866
- fields?: string[];
1867
- group?: string;
1868
- }, version?: string) => Promise<void>;
1870
+ addQueryToService: (id: string, direction: string, event: MessagePointerInput, version?: string) => Promise<void>;
1869
1871
  /**
1870
1872
  * Add an entity to a service by its id.
1871
1873
  *
@@ -1992,24 +1994,9 @@ declare const _default: (path: string) => {
1992
1994
  content: string;
1993
1995
  fileName: string;
1994
1996
  }, version?: string) => Promise<void>;
1995
- addEventToAgent: (id: string, direction: string, message: {
1996
- id: string;
1997
- version: string;
1998
- fields?: string[];
1999
- group?: string;
2000
- }, version?: string) => Promise<void>;
2001
- addCommandToAgent: (id: string, direction: string, message: {
2002
- id: string;
2003
- version: string;
2004
- fields?: string[];
2005
- group?: string;
2006
- }, version?: string) => Promise<void>;
2007
- addQueryToAgent: (id: string, direction: string, message: {
2008
- id: string;
2009
- version: string;
2010
- fields?: string[];
2011
- group?: string;
2012
- }, version?: string) => Promise<void>;
1997
+ addEventToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
1998
+ addCommandToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
1999
+ addQueryToAgent: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2013
2000
  addDataStoreToAgent: (id: string, direction: string, dataStore: {
2014
2001
  id: string;
2015
2002
  version: string;
@@ -2179,12 +2166,7 @@ declare const _default: (path: string) => {
2179
2166
  *
2180
2167
  * ```
2181
2168
  */
2182
- addEventToDomain: (id: string, direction: string, message: {
2183
- id: string;
2184
- version: string;
2185
- fields?: string[];
2186
- group?: string;
2187
- }, version?: string) => Promise<void>;
2169
+ addEventToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2188
2170
  /**
2189
2171
  * Add a command to a domain by its id.
2190
2172
  *
@@ -2202,12 +2184,7 @@ declare const _default: (path: string) => {
2202
2184
  *
2203
2185
  * ```
2204
2186
  */
2205
- addCommandToDomain: (id: string, direction: string, message: {
2206
- id: string;
2207
- version: string;
2208
- fields?: string[];
2209
- group?: string;
2210
- }, version?: string) => Promise<void>;
2187
+ addCommandToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2211
2188
  /**
2212
2189
  * Add a query to a domain by its id.
2213
2190
  *
@@ -2225,12 +2202,7 @@ declare const _default: (path: string) => {
2225
2202
  *
2226
2203
  * ```
2227
2204
  */
2228
- addQueryToDomain: (id: string, direction: string, message: {
2229
- id: string;
2230
- version: string;
2231
- fields?: string[];
2232
- group?: string;
2233
- }, version?: string) => Promise<void>;
2205
+ addQueryToDomain: (id: string, direction: string, message: MessagePointerInput, version?: string) => Promise<void>;
2234
2206
  /**
2235
2207
  * ================================
2236
2208
  * Teams
@@ -2447,21 +2419,21 @@ declare const _default: (path: string) => {
2447
2419
  getProducersAndConsumersForMessage: (id: string, version?: string, options?: {
2448
2420
  latestOnly?: boolean;
2449
2421
  }) => Promise<{
2450
- producers: (Service | Agent)[];
2451
- consumers: (Service | Agent)[];
2422
+ producers: (Service | Agent | Domain)[];
2423
+ consumers: (Service | Agent | Domain)[];
2452
2424
  }>;
2453
2425
  /**
2454
2426
  * Returns the consumers of a given schema path
2455
2427
  * @param path - The path to the schema to get the consumers for
2456
2428
  * @returns (Service|Agent)[]
2457
2429
  */
2458
- getConsumersOfSchema: (path: string) => Promise<(Service | Agent)[]>;
2430
+ getConsumersOfSchema: (path: string) => Promise<(Service | Agent | Domain)[]>;
2459
2431
  /**
2460
2432
  * Returns the producers of a given schema path
2461
2433
  * @param path - The path to the schema to get the producers for
2462
2434
  * @returns (Service|Agent)[]
2463
2435
  */
2464
- getProducersOfSchema: (path: string) => Promise<(Service | Agent)[]>;
2436
+ getProducersOfSchema: (path: string) => Promise<(Service | Agent | Domain)[]>;
2465
2437
  /**
2466
2438
  * Returns the schema for a given message (event, command or query) by its id and version.
2467
2439
  * If no version is given, the latest version is used.
@@ -3010,4 +2982,4 @@ declare const _default: (path: string) => {
3010
2982
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
3011
2983
  };
3012
2984
 
3013
- export { type Adr, type AdrPointer, type AdrResourcePointer, type AdrStatus, type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
2985
+ export { type Adr, type AdrPointer, type AdrResourcePointer, type AdrStatus, type Agent, type AgentModel, type AgentTool, type Badge, type BaseSchema, type CatalogSnapshot, type Changelog, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type DiffSummary, type Domain, type Entity, type Event, type EventCatalog, type Flow, type FlowActorStepInput, type FlowAgentStepInput, FlowBuilder, type FlowBuilderInput, type FlowCustomStepInput, type FlowDataProductStepInput, type FlowDataStoreStepInput, type FlowExternalSystemStepInput, type FlowMessageStepInput, type FlowServiceStepInput, type FlowStep, type FlowStepInput, type FlowSubFlowStepInput, type Message, type MessagePointerInput, type Operation, type Query, type ReceivesPointer, type RelationshipChange, type ResourceChange, type ResourceChangeType, type ResourceGroup, type ResourcePointer, type SchemaPointer, type SendsPointer, type Service, type SnapshotDiff, type SnapshotGitInfo, type SnapshotMeta, type SnapshotOptions, type SnapshotResourceType, type SnapshotResources, type SnapshotResult, type Specification, type Specifications, type System, type SystemActorRelationship, type SystemRelationshipPointer, type SystemScope, type Team, type TriggerPointer, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
package/dist/index.js CHANGED
@@ -863,13 +863,16 @@ var copyDir = async (catalogDir, source, target, filter) => {
863
863
  });
864
864
  import_node_fs.default.rmSync(tmpDirectory, { recursive: true });
865
865
  };
866
- var buildMessagePointer = (message) => {
866
+ var buildMessagePointer = (message, options = {}) => {
867
867
  const pointer = {
868
868
  id: message.id,
869
869
  version: message.version
870
870
  };
871
871
  if (message.fields) pointer.fields = message.fields;
872
872
  if (message.group) pointer.group = message.group;
873
+ if (options.includeTriggers && message.triggers) {
874
+ pointer.triggers = message.triggers.map((trigger) => ({ ...trigger }));
875
+ }
873
876
  return pointer;
874
877
  };
875
878
  var uniqueVersions = (messages) => {
@@ -1419,7 +1422,7 @@ var addMessageToService = (directory) => async (id, direction, event, version) =
1419
1422
  return;
1420
1423
  }
1421
1424
  }
1422
- service.receives.push(buildMessagePointer(event));
1425
+ service.receives.push(buildMessagePointer(event, { includeTriggers: true }));
1423
1426
  } else {
1424
1427
  throw new Error(`Direction ${direction} is invalid, only 'receives' and 'sends' are supported`);
1425
1428
  }
@@ -1701,7 +1704,7 @@ var addMessageToAgent = (directory) => async (id, direction, message, version) =
1701
1704
  return;
1702
1705
  }
1703
1706
  }
1704
- agent.receives.push(buildMessagePointer(message));
1707
+ agent.receives.push(buildMessagePointer(message, { includeTriggers: true }));
1705
1708
  } else {
1706
1709
  throw new Error(`Direction ${direction} is invalid, only 'receives' and 'sends' are supported`);
1707
1710
  }
@@ -1961,7 +1964,7 @@ var addMessageToDomain = (directory) => async (id, direction, message, version)
1961
1964
  return;
1962
1965
  }
1963
1966
  }
1964
- domain.receives.push(buildMessagePointer(message));
1967
+ domain.receives.push(buildMessagePointer(message, { includeTriggers: true }));
1965
1968
  } else {
1966
1969
  throw new Error(`Direction ${direction} is invalid, only 'receives' and 'sends' are supported`);
1967
1970
  }
@@ -2057,9 +2060,10 @@ var getMessageBySchemaPath = (directory) => async (path9, options) => {
2057
2060
  }
2058
2061
  };
2059
2062
  var getProducersAndConsumersForMessage = (directory) => async (id, version, options) => {
2060
- const [services = [], agents = []] = await Promise.all([
2063
+ const [services = [], agents = [], domains = []] = await Promise.all([
2061
2064
  getServices(directory)({ latestOnly: options?.latestOnly ?? true }),
2062
- getAgents(directory)({ latestOnly: options?.latestOnly ?? true })
2065
+ getAgents(directory)({ latestOnly: options?.latestOnly ?? true }),
2066
+ getDomains(directory)({ latestOnly: options?.latestOnly ?? true })
2063
2067
  ]);
2064
2068
  const message = await getResource(directory, id, version, { type: "message" });
2065
2069
  const isMessageLatestVersion = await isLatestVersion(directory, id, version);
@@ -2068,7 +2072,7 @@ var getProducersAndConsumersForMessage = (directory) => async (id, version, opti
2068
2072
  }
2069
2073
  const producers = [];
2070
2074
  const consumers = [];
2071
- for (const participant of [...services, ...agents]) {
2075
+ for (const participant of [...services, ...agents, ...domains]) {
2072
2076
  const participantPublishesMessage = participant.sends?.some((_message) => {
2073
2077
  if (_message.version) {
2074
2078
  const isParticipantUsingSemverRange = (0, import_semver5.validRange)(_message.version);