Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/event-catalog-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/event-catalog-client",
"version": "0.6.0",
"version": "0.6.1",
"description": "Client for epilot Event Catalog API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
18 changes: 18 additions & 0 deletions clients/event-catalog-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ declare namespace Components {
*
*/
_ack_id?: string;
/**
* Inline downgrade chain stamped by Event Catalog at publish time, ordered newest-to-oldest. Present ONLY on multi-version events. Internal versioning transport: consumers (e.g. svc-webhooks) walk the payload back to a pinned version using these JSONata steps, then strip the field before delivery -- end customers never receive it.
*/
_downgrades?: /* One step of an event's inline `_downgrades` chain. Maps the current-version payload to the previous version via a JSONata expression. Stamped by Event Catalog at publish time; executed by consumers during walk-back, never by EC itself. */ InlineDowngradeStep[];
}
/**
* A file attachment associated with an event
Expand Down Expand Up @@ -890,6 +894,19 @@ declare namespace Components {
*/
fields?: string[];
}
/**
* One step of an event's inline `_downgrades` chain. Maps the current-version payload to the previous version via a JSONata expression. Stamped by Event Catalog at publish time; executed by consumers during walk-back, never by EC itself.
*/
export interface InlineDowngradeStep {
/**
* Version label this step downgrades to (the previous version).
*/
to: string;
/**
* JSONata expression mapping the current-shape payload to the previous-shape payload.
*/
jsonata: string;
}
/**
* A primitive JSON Schema field definition
*/
Expand Down Expand Up @@ -2010,6 +2027,7 @@ export type FieldsParam = Components.Schemas.FieldsParam;
export type GraphDefinition = Components.Schemas.GraphDefinition;
export type GraphEdge = Components.Schemas.GraphEdge;
export type GraphNode = Components.Schemas.GraphNode;
export type InlineDowngradeStep = Components.Schemas.InlineDowngradeStep;
export type PrimitiveField = Components.Schemas.PrimitiveField;
export type SchemaField = Components.Schemas.SchemaField;
export type SearchOptions = Components.Schemas.SearchOptions;
Expand Down
25 changes: 25 additions & 0 deletions clients/event-catalog-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,24 @@
]
}
},
"InlineDowngradeStep": {
"type": "object",
"description": "One step of an event's inline `_downgrades` chain. Maps the current-version payload to the previous version via a JSONata expression. Stamped by Event Catalog at publish time; executed by consumers during walk-back, never by EC itself.",
"properties": {
"to": {
"type": "string",
"description": "Version label this step downgrades to (the previous version)."
},
"jsonata": {
"type": "string",
"description": "JSONata expression mapping the current-shape payload to the previous-shape payload."
}
},
"required": [
"to",
"jsonata"
]
},
"Event": {
"type": "object",
"description": "An event instance in the event history",
Expand Down Expand Up @@ -920,6 +938,13 @@
"_ack_id": {
"type": "string",
"description": "Unique acknowledgment tracking ID for the event.\nUsed to track event delivery and processing status.\n"
},
"_downgrades": {
"type": "array",
"description": "Inline downgrade chain stamped by Event Catalog at publish time, ordered newest-to-oldest. Present ONLY on multi-version events. Internal versioning transport: consumers (e.g. svc-webhooks) walk the payload back to a pinned version using these JSONata steps, then strip the field before delivery -- end customers never receive it.",
"items": {
"$ref": "#/components/schemas/InlineDowngradeStep"
}
}
},
"required": [
Expand Down
Loading