@epilot/cli 0.1.61 → 0.1.63

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/README.md CHANGED
@@ -29,7 +29,7 @@ npm install -g @epilot/cli
29
29
 
30
30
  <!-- usage-help -->
31
31
  ```
32
- epilot v0.1.61 — CLI for epilot APIs
32
+ epilot v0.1.63 — CLI for epilot APIs
33
33
 
34
34
  USAGE
35
35
  epilot <api> <operationId> [params...] [flags]
@@ -3345,6 +3345,14 @@
3345
3345
  "type": "string",
3346
3346
  "description": "Schedule Id which indicates the schedule of the actions inside the condition"
3347
3347
  },
3348
+ "evaluation_order": {
3349
+ "type": "string",
3350
+ "enum": [
3351
+ "AFTER_SCHEDULE",
3352
+ "BEFORE_SCHEDULE"
3353
+ ],
3354
+ "description": "Determines how the condition and its schedule combine in time, when the condition block also has a schedule.\n\n- `AFTER_SCHEDULE` (default): the schedule is created first and the condition is evaluated when the schedule fires, against the data at that moment (\"wait, then check\").\n- `BEFORE_SCHEDULE`: the condition is evaluated at trigger time against the current data; only when it passes is the schedule created, and it is not re-evaluated when it fires (\"check now, then wait\"). A failing condition skips the block immediately.\n\nAn absent value is treated as `AFTER_SCHEDULE` for backwards compatibility."
3355
+ },
3348
3356
  "evaluationResult": {
3349
3357
  "type": "boolean",
3350
3358
  "description": "Result of the condition evaluation"
@@ -3352,6 +3360,10 @@
3352
3360
  "error_output": {
3353
3361
  "$ref": "#/components/schemas/ErrorOutput"
3354
3362
  },
3363
+ "allow_failure": {
3364
+ "description": "Whether the execution should continue when processing the condition\nblock itself fails (e.g. its schedule cannot be computed). When true,\nthe block's actions are cancelled and the execution moves on to the\nnext action instead of stopping in a failed state.\n",
3365
+ "type": "boolean"
3366
+ },
3355
3367
  "statements": {
3356
3368
  "type": "array",
3357
3369
  "items": {
@@ -3536,6 +3548,13 @@
3536
3548
  "additionalProperties": {
3537
3549
  "$ref": "#/components/schemas/AutomationLoopState"
3538
3550
  }
3551
+ },
3552
+ "chain": {
3553
+ "type": "array",
3554
+ "description": "Ordered automation flow ids in this execution's trigger chain (multi-automation loop prevention).",
3555
+ "items": {
3556
+ "type": "string"
3557
+ }
3539
3558
  }
3540
3559
  },
3541
3560
  "required": [
@@ -11018,6 +11018,9 @@
11018
11018
  "$ref": "#/components/schemas/MobileBuildStatus"
11019
11019
  }
11020
11020
  }
11021
+ },
11022
+ "ota": {
11023
+ "$ref": "#/components/schemas/MobileOtaConfig"
11021
11024
  }
11022
11025
  }
11023
11026
  },
@@ -11061,6 +11064,82 @@
11061
11064
  },
11062
11065
  "branding": {
11063
11066
  "$ref": "#/components/schemas/MobileBranding"
11067
+ },
11068
+ "ota": {
11069
+ "$ref": "#/components/schemas/MobileOtaConfig"
11070
+ }
11071
+ }
11072
+ },
11073
+ "MobileOtaConfig": {
11074
+ "type": "object",
11075
+ "description": "OTA (over-the-air) update settings for the portal's mobile app. Drives the OTA build pipeline and the per-portal manifest. channel / update_strategy / min_native_version are epilot-internal controls.",
11076
+ "additionalProperties": true,
11077
+ "properties": {
11078
+ "enabled": {
11079
+ "type": "boolean",
11080
+ "description": "Whether OTA updates are enabled for this portal."
11081
+ },
11082
+ "channel": {
11083
+ "type": "string",
11084
+ "enum": [
11085
+ "canary",
11086
+ "stable"
11087
+ ],
11088
+ "description": "Release channel this portal follows."
11089
+ },
11090
+ "auto_update": {
11091
+ "type": "boolean",
11092
+ "description": "Whether the app auto-updates or prompts the user."
11093
+ },
11094
+ "update_strategy": {
11095
+ "type": "string",
11096
+ "enum": [
11097
+ "next-launch",
11098
+ "immediate"
11099
+ ],
11100
+ "description": "When to apply a downloaded bundle."
11101
+ },
11102
+ "min_native_version": {
11103
+ "type": "string",
11104
+ "description": "Minimum native app version required to load OTA bundles."
11105
+ }
11106
+ }
11107
+ },
11108
+ "OtaPortal": {
11109
+ "type": "object",
11110
+ "description": "A portal that has mobile OTA updates enabled.",
11111
+ "required": [
11112
+ "domain",
11113
+ "channel",
11114
+ "autoUpdate",
11115
+ "updateStrategy"
11116
+ ],
11117
+ "properties": {
11118
+ "domain": {
11119
+ "type": "string",
11120
+ "description": "Portal hostname — the OTA manifest filename ({domain}.json).",
11121
+ "example": "kundenportal.twl.de"
11122
+ },
11123
+ "channel": {
11124
+ "type": "string",
11125
+ "enum": [
11126
+ "canary",
11127
+ "stable"
11128
+ ]
11129
+ },
11130
+ "autoUpdate": {
11131
+ "type": "boolean"
11132
+ },
11133
+ "updateStrategy": {
11134
+ "type": "string",
11135
+ "enum": [
11136
+ "next-launch",
11137
+ "immediate"
11138
+ ]
11139
+ },
11140
+ "minNativeVersion": {
11141
+ "type": "string",
11142
+ "example": "1.0.0"
11064
11143
  }
11065
11144
  }
11066
11145
  },
@@ -763,6 +763,17 @@
763
763
  "description": "Event id"
764
764
  }
765
765
  ],
766
+ "requestBody": {
767
+ "description": "Optional replay options",
768
+ "required": false,
769
+ "content": {
770
+ "application/json": {
771
+ "schema": {
772
+ "$ref": "#/components/schemas/ReplayRequest"
773
+ }
774
+ }
775
+ }
776
+ },
766
777
  "responses": {
767
778
  "204": {
768
779
  "description": "Success - replay event"
@@ -777,6 +788,16 @@
777
788
  }
778
789
  }
779
790
  },
791
+ "422": {
792
+ "description": "Re-apply requested but the original (pre-transform) input could not be reconstructed (e.g. dangling catalog reference past retention).",
793
+ "content": {
794
+ "application/json": {
795
+ "schema": {
796
+ "$ref": "#/components/schemas/ErrorResp"
797
+ }
798
+ }
799
+ }
800
+ },
780
801
  "500": {
781
802
  "description": "Other errors",
782
803
  "content": {
@@ -1697,6 +1718,19 @@
1697
1718
  "retry_attempt": {
1698
1719
  "type": "integer",
1699
1720
  "description": "Number of automatic delivery retries that preceded this terminal outcome. 0 means the event was delivered (or finally failed) on the first attempt."
1721
+ },
1722
+ "can_reapply_transform": {
1723
+ "type": "boolean",
1724
+ "description": "Whether this event can be replayed with the JSONata transform re-applied. True only when the webhook config has a non-empty jsonataExpression AND a usable original source exists (a catalog reference or a locally stored original payload). Computed without a synchronous catalog round-trip."
1725
+ },
1726
+ "can_reapply_transform_reason": {
1727
+ "type": "string",
1728
+ "enum": [
1729
+ "available",
1730
+ "no_transform_configured",
1731
+ "no_original_source"
1732
+ ],
1733
+ "description": "Reason explaining the can_reapply_transform value."
1700
1734
  }
1701
1735
  },
1702
1736
  "required": [
@@ -1766,6 +1800,16 @@
1766
1800
  "message"
1767
1801
  ]
1768
1802
  },
1803
+ "ReplayRequest": {
1804
+ "type": "object",
1805
+ "properties": {
1806
+ "reapply_transform": {
1807
+ "type": "boolean",
1808
+ "default": false,
1809
+ "description": "When true, reconstruct the original (pre-transform) event input and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default)."
1810
+ }
1811
+ }
1812
+ },
1769
1813
  "BatchReplayRequest": {
1770
1814
  "type": "object",
1771
1815
  "properties": {
@@ -1781,6 +1825,11 @@
1781
1825
  "2f1b7cf8-ff55-4359-966f-e56f39a52c94",
1782
1826
  "48c984bf-466b-470b-b743-d07cea168243"
1783
1827
  ]
1828
+ },
1829
+ "reapply_transform": {
1830
+ "type": "boolean",
1831
+ "default": false,
1832
+ "description": "When true, reconstruct the original (pre-transform) input for each event and re-run the full delivery pipeline (file-loading + JSONata). When false or omitted, resend the previously delivered (post-transform) payload verbatim (backward-compatible default)."
1784
1833
  }
1785
1834
  },
1786
1835
  "required": [
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.61",
14
+ version: "0.1.63",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -31,7 +31,7 @@ var main = defineCommand({
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
33
  completion: () => import("../completion-H6LKKRG6.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-HTEVGPLI.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-QS2D5IZE.js").then((m) => m.default),
35
35
  "access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
36
36
  address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
37
37
  "address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
@@ -134,7 +134,7 @@ process.stderr.on("error", (err) => {
134
134
  if (err.code === "EPIPE") process.exit(0);
135
135
  throw err;
136
136
  });
137
- var VERSION = true ? "0.1.61" : (await null).default.version;
137
+ var VERSION = true ? "0.1.63" : (await null).default.version;
138
138
  var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
139
139
  process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
140
140
  var args = process.argv.slice(2);
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
72
72
  }
73
73
  });
74
74
  var getCurrentVersion = () => {
75
- if (true) return "0.1.61";
75
+ if (true) return "0.1.63";
76
76
  try {
77
77
  const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
78
78
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/cli",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {