@epilot/cli 0.1.60 → 0.1.62

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.
@@ -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": [
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "../chunk-B4RIWFEX.js";
4
+ } from "../chunk-36WJHV3M.js";
5
5
 
6
6
  // bin/epilot.ts
7
7
  import { runMain } from "citty";
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
11
11
  var main = defineCommand({
12
12
  meta: {
13
13
  name: "epilot",
14
- version: "0.1.60",
14
+ version: "0.1.62",
15
15
  description: "CLI for epilot APIs"
16
16
  },
17
17
  args: {
@@ -30,8 +30,8 @@ var main = defineCommand({
30
30
  auth: () => import("../auth-4HG7B2GC.js").then((m) => m.default),
31
31
  profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
32
32
  config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
33
- completion: () => import("../completion-NBGAWAHF.js").then((m) => m.default),
34
- upgrade: () => import("../upgrade-YDRXPHHU.js").then((m) => m.default),
33
+ completion: () => import("../completion-H6LKKRG6.js").then((m) => m.default),
34
+ upgrade: () => import("../upgrade-GZ3ME7R5.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,13 +134,13 @@ 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.60" : (await null).default.version;
137
+ var VERSION = true ? "0.1.62" : (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);
141
141
  var completionsIdx = args.indexOf("--_completions");
142
142
  if (completionsIdx >= 0) {
143
- const { handleCompletions } = await import("../completion-NBGAWAHF.js");
143
+ const { handleCompletions } = await import("../completion-H6LKKRG6.js");
144
144
  handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
145
145
  process.exit(0);
146
146
  }
@@ -268,7 +268,7 @@ var API_LIST = [
268
268
  kebabName: "customer-portal",
269
269
  title: "Portal API",
270
270
  serverUrl: "https://customer-portal-api.sls.epilot.io",
271
- operationCount: 149,
271
+ operationCount: 156,
272
272
  operationIds: [
273
273
  "upsertPortal",
274
274
  "createUser",
@@ -299,6 +299,8 @@ var API_LIST = [
299
299
  "getAllPortalConfigs",
300
300
  "getEmailTemplates",
301
301
  "upsertEmailTemplates",
302
+ "migrateEmailTemplateReferences",
303
+ "listEmailTemplateReferences",
302
304
  "getEmailTemplatesByPortalId",
303
305
  "upsertEmailTemplatesByPortalId",
304
306
  "getPublicPortalWidgets",
@@ -328,6 +330,7 @@ var API_LIST = [
328
330
  "updatePortalUser",
329
331
  "deletePortalUser",
330
332
  "updatePortalUserEmail",
333
+ "changePortalUserPassword",
331
334
  "resendConfirmationEmail",
332
335
  "fetchPortalUsersByRelatedEntity",
333
336
  "confirmUser",
@@ -372,6 +375,8 @@ var API_LIST = [
372
375
  "triggerEntityAccessEventV3",
373
376
  "getPortalUserEntity",
374
377
  "searchPortalUserEntities",
378
+ "createPortalUserEntity",
379
+ "patchPortalUserEntity",
375
380
  "canTriggerPortalFlow",
376
381
  "getAutomationContext",
377
382
  "updateWorkflowStepAsDone",
@@ -418,7 +423,9 @@ var API_LIST = [
418
423
  "disablePartner",
419
424
  "enablePartner",
420
425
  "verifyDns",
421
- "portalProxyExecute"
426
+ "portalProxyExecute",
427
+ "getMobileConfig",
428
+ "putMobileConfig"
422
429
  ]
423
430
  },
424
431
  {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  API_LIST
4
- } from "./chunk-B4RIWFEX.js";
4
+ } from "./chunk-36WJHV3M.js";
5
5
  import {
6
6
  DIM,
7
7
  GREEN,
@@ -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.60";
75
+ if (true) return "0.1.62";
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.60",
3
+ "version": "0.1.62",
4
4
  "description": "CLI for epilot APIs",
5
5
  "type": "module",
6
6
  "bin": {