@epilot/cli 0.1.26 → 0.1.28
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 +1 -1
- package/definitions/app.json +539 -31
- package/definitions/automation.json +42 -0
- package/definitions/configuration-hub.json +757 -7
- package/definitions/customer-portal.json +1063 -63
- package/definitions/email-settings.json +86 -4
- package/definitions/entity.json +568 -4
- package/definitions/event-catalog.json +256 -1
- package/definitions/file.json +262 -4
- package/definitions/integration-toolkit.json +480 -4
- package/definitions/journey.json +21 -1
- package/definitions/kanban.json +2 -1
- package/definitions/metering.json +728 -64
- package/definitions/notes.json +175 -130
- package/definitions/pricing.json +163 -84
- package/definitions/webhooks.json +149 -4
- package/definitions/workflow-definition.json +52 -0
- package/definitions/workflow.json +24 -0
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-QSYX2PUB.js → chunk-OBSR3RKB.js} +51 -15
- package/dist/{completion-AZYWK6IZ.js → completion-AUP6EFBO.js} +1 -1
- package/dist/{upgrade-O5G6HRVY.js → upgrade-C6AGEAVE.js} +1 -1
- package/package.json +1 -1
|
@@ -638,6 +638,16 @@
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
|
+
"409": {
|
|
642
|
+
"description": "Conflict - the workflow was modified by another user since it was last loaded",
|
|
643
|
+
"content": {
|
|
644
|
+
"application/json": {
|
|
645
|
+
"schema": {
|
|
646
|
+
"$ref": "#/components/schemas/ErrorResp"
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
641
651
|
"500": {
|
|
642
652
|
"description": "Other errors",
|
|
643
653
|
"content": {
|
|
@@ -1795,6 +1805,15 @@
|
|
|
1795
1805
|
"type": "string",
|
|
1796
1806
|
"description": "Id of the automation config that triggers this workflow"
|
|
1797
1807
|
},
|
|
1808
|
+
"input_entity": {
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"enum": [
|
|
1811
|
+
"thread",
|
|
1812
|
+
"first_email",
|
|
1813
|
+
"last_email"
|
|
1814
|
+
],
|
|
1815
|
+
"description": "For email thread triggers, specifies which entity from the triggered email thread to use as the primary input for automation and decision tasks. Defaults to `thread` when not specified.\n"
|
|
1816
|
+
},
|
|
1798
1817
|
"trigger_config": {
|
|
1799
1818
|
"type": "array",
|
|
1800
1819
|
"items": {
|
|
@@ -2036,6 +2055,34 @@
|
|
|
2036
2055
|
},
|
|
2037
2056
|
"additionalProperties": true,
|
|
2038
2057
|
"description": "Transient field. The full automation action configuration following the automation API action schema. Processed by the backend during create/update and stripped before storage. When present without a flow_id, a new automation flow is created. When present with a flow_id, the existing automation flow is updated.\n"
|
|
2058
|
+
},
|
|
2059
|
+
"duplicated_flow_id": {
|
|
2060
|
+
"type": "string",
|
|
2061
|
+
"description": "Transient field. When present, the backend clones the automation flow referenced by this ID and assigns the new flow_id to the task. Used when duplicating an automation task to give it an independent automation. Stripped before storage.\n"
|
|
2062
|
+
},
|
|
2063
|
+
"input_context": {
|
|
2064
|
+
"$ref": "#/components/schemas/AutomationInputContext"
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
"AutomationInputContext": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"description": "Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.\n",
|
|
2071
|
+
"required": [
|
|
2072
|
+
"source"
|
|
2073
|
+
],
|
|
2074
|
+
"properties": {
|
|
2075
|
+
"source": {
|
|
2076
|
+
"type": "string",
|
|
2077
|
+
"enum": [
|
|
2078
|
+
"trigger",
|
|
2079
|
+
"task"
|
|
2080
|
+
],
|
|
2081
|
+
"description": "`trigger` = workflow's primary (trigger) entity. `task` = entity produced by an upstream task in the graph.\n"
|
|
2082
|
+
},
|
|
2083
|
+
"task_id": {
|
|
2084
|
+
"type": "string",
|
|
2085
|
+
"description": "Required when source is `task`. The id of the upstream task whose output entity should feed this task."
|
|
2039
2086
|
}
|
|
2040
2087
|
}
|
|
2041
2088
|
},
|
|
@@ -2196,6 +2243,11 @@
|
|
|
2196
2243
|
"$ref": "#/components/schemas/Condition"
|
|
2197
2244
|
}
|
|
2198
2245
|
},
|
|
2246
|
+
"allow_parallel_execution": {
|
|
2247
|
+
"type": "boolean",
|
|
2248
|
+
"description": "When true, all branches with met conditions execute in parallel. When false, only the first branch with a met condition is executed. Defaults to true for backwards compatibility.",
|
|
2249
|
+
"default": true
|
|
2250
|
+
},
|
|
2199
2251
|
"schedule": {
|
|
2200
2252
|
"anyOf": [
|
|
2201
2253
|
{
|
|
@@ -3764,12 +3764,36 @@
|
|
|
3764
3764
|
},
|
|
3765
3765
|
"error_reason": {
|
|
3766
3766
|
"type": "string"
|
|
3767
|
+
},
|
|
3768
|
+
"input_context": {
|
|
3769
|
+
"$ref": "#/components/schemas/AutomationInputContext"
|
|
3767
3770
|
}
|
|
3768
3771
|
},
|
|
3769
3772
|
"required": [
|
|
3770
3773
|
"flow_id"
|
|
3771
3774
|
]
|
|
3772
3775
|
},
|
|
3776
|
+
"AutomationInputContext": {
|
|
3777
|
+
"type": "object",
|
|
3778
|
+
"description": "Optional. Source of the entity fed into this automation task. If omitted, the workflow's primary entity is used.\n",
|
|
3779
|
+
"required": [
|
|
3780
|
+
"source"
|
|
3781
|
+
],
|
|
3782
|
+
"properties": {
|
|
3783
|
+
"source": {
|
|
3784
|
+
"type": "string",
|
|
3785
|
+
"enum": [
|
|
3786
|
+
"trigger",
|
|
3787
|
+
"task"
|
|
3788
|
+
],
|
|
3789
|
+
"description": "`trigger` = workflow's primary (trigger) entity. `task` = entity produced by an upstream task in the graph.\n"
|
|
3790
|
+
},
|
|
3791
|
+
"task_id": {
|
|
3792
|
+
"type": "string",
|
|
3793
|
+
"description": "Required when source is `task`. The id of the upstream task whose output entity should feed this task."
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3796
|
+
},
|
|
3773
3797
|
"AnalyticsInfo": {
|
|
3774
3798
|
"type": "object",
|
|
3775
3799
|
"properties": {
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OBSR3RKB.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.
|
|
14
|
+
version: "0.1.28",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-CN5EFFDE.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-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-AUP6EFBO.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-C6AGEAVE.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),
|
|
@@ -133,13 +133,13 @@ process.stderr.on("error", (err) => {
|
|
|
133
133
|
if (err.code === "EPIPE") process.exit(0);
|
|
134
134
|
throw err;
|
|
135
135
|
});
|
|
136
|
-
var VERSION = true ? "0.1.
|
|
136
|
+
var VERSION = true ? "0.1.28" : (await null).default.version;
|
|
137
137
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
138
138
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
139
139
|
var args = process.argv.slice(2);
|
|
140
140
|
var completionsIdx = args.indexOf("--_completions");
|
|
141
141
|
if (completionsIdx >= 0) {
|
|
142
|
-
const { handleCompletions } = await import("../completion-
|
|
142
|
+
const { handleCompletions } = await import("../completion-AUP6EFBO.js");
|
|
143
143
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
144
144
|
process.exit(0);
|
|
145
145
|
}
|
|
@@ -60,7 +60,7 @@ var API_LIST = [
|
|
|
60
60
|
kebabName: "app",
|
|
61
61
|
title: "App API",
|
|
62
62
|
serverUrl: "https://app.sls.epilot.io",
|
|
63
|
-
operationCount:
|
|
63
|
+
operationCount: 32,
|
|
64
64
|
operationIds: [
|
|
65
65
|
"getPublicFacingComponent",
|
|
66
66
|
"listConfigurations",
|
|
@@ -91,7 +91,9 @@ var API_LIST = [
|
|
|
91
91
|
"patchInstallation",
|
|
92
92
|
"uninstall",
|
|
93
93
|
"promoteVersion",
|
|
94
|
-
"ingestEvent"
|
|
94
|
+
"ingestEvent",
|
|
95
|
+
"publicProxyGet",
|
|
96
|
+
"publicProxyPost"
|
|
95
97
|
]
|
|
96
98
|
},
|
|
97
99
|
{
|
|
@@ -216,8 +218,20 @@ var API_LIST = [
|
|
|
216
218
|
kebabName: "configuration-hub",
|
|
217
219
|
title: "Configuration Hub API",
|
|
218
220
|
serverUrl: "https://configuration-hub.sls.epilot.io",
|
|
219
|
-
operationCount:
|
|
220
|
-
operationIds: [
|
|
221
|
+
operationCount: 11,
|
|
222
|
+
operationIds: [
|
|
223
|
+
"listConfigTypes",
|
|
224
|
+
"listConfigs",
|
|
225
|
+
"getConfigDependencies",
|
|
226
|
+
"getConfigUsedBy",
|
|
227
|
+
"getIndex",
|
|
228
|
+
"listSyncJobs",
|
|
229
|
+
"createSyncJob",
|
|
230
|
+
"getSyncJob",
|
|
231
|
+
"retrySyncJob",
|
|
232
|
+
"listSyncJobResources",
|
|
233
|
+
"rebuildIndex"
|
|
234
|
+
]
|
|
221
235
|
},
|
|
222
236
|
{
|
|
223
237
|
apiName: "consent",
|
|
@@ -232,7 +246,7 @@ var API_LIST = [
|
|
|
232
246
|
kebabName: "customer-portal",
|
|
233
247
|
title: "Portal API",
|
|
234
248
|
serverUrl: "https://customer-portal-api.sls.epilot.io",
|
|
235
|
-
operationCount:
|
|
249
|
+
operationCount: 148,
|
|
236
250
|
operationIds: [
|
|
237
251
|
"upsertPortal",
|
|
238
252
|
"createUser",
|
|
@@ -247,6 +261,8 @@ var API_LIST = [
|
|
|
247
261
|
"getPortalExtensionsV3",
|
|
248
262
|
"getPublicPortalExtensionDetailsV3",
|
|
249
263
|
"getConsumption",
|
|
264
|
+
"prepareVisualizationExport",
|
|
265
|
+
"getVisualizationMetadata",
|
|
250
266
|
"getCosts",
|
|
251
267
|
"getPrices",
|
|
252
268
|
"getExternalLinks",
|
|
@@ -284,6 +300,7 @@ var API_LIST = [
|
|
|
284
300
|
"getECPContact",
|
|
285
301
|
"checkContactExists",
|
|
286
302
|
"checkContactExistsV3",
|
|
303
|
+
"checkAccountExists",
|
|
287
304
|
"getValidSecondaryAttributes",
|
|
288
305
|
"getPortalUser",
|
|
289
306
|
"updatePortalUser",
|
|
@@ -341,6 +358,7 @@ var API_LIST = [
|
|
|
341
358
|
"createMeterReading",
|
|
342
359
|
"getAllowedMeterReadingRange",
|
|
343
360
|
"getMeterReadings",
|
|
361
|
+
"getSSOProvider",
|
|
344
362
|
"ssoLogin",
|
|
345
363
|
"ssoLoginV3",
|
|
346
364
|
"ssoRedirect",
|
|
@@ -375,7 +393,9 @@ var API_LIST = [
|
|
|
375
393
|
"resendPartnerInvitation",
|
|
376
394
|
"revokePartner",
|
|
377
395
|
"disablePartner",
|
|
378
|
-
"enablePartner"
|
|
396
|
+
"enablePartner",
|
|
397
|
+
"verifyDns",
|
|
398
|
+
"portalProxyExecute"
|
|
379
399
|
]
|
|
380
400
|
},
|
|
381
401
|
{
|
|
@@ -456,7 +476,7 @@ var API_LIST = [
|
|
|
456
476
|
kebabName: "email-settings",
|
|
457
477
|
title: "Messaging Settings API",
|
|
458
478
|
serverUrl: "https://email-settings.sls.epilot.io",
|
|
459
|
-
operationCount:
|
|
479
|
+
operationCount: 36,
|
|
460
480
|
operationIds: [
|
|
461
481
|
"provisionEpilotEmailAddress",
|
|
462
482
|
"setEmailAddressPrimary",
|
|
@@ -492,6 +512,7 @@ var API_LIST = [
|
|
|
492
512
|
"addDomain",
|
|
493
513
|
"deleteDomain",
|
|
494
514
|
"verifyNameServers",
|
|
515
|
+
"verifyDnsRecords",
|
|
495
516
|
"verifyDomain"
|
|
496
517
|
]
|
|
497
518
|
},
|
|
@@ -516,7 +537,7 @@ var API_LIST = [
|
|
|
516
537
|
kebabName: "entity",
|
|
517
538
|
title: "Entity API",
|
|
518
539
|
serverUrl: "https://entity.sls.epilot.io",
|
|
519
|
-
operationCount:
|
|
540
|
+
operationCount: 87,
|
|
520
541
|
operationIds: [
|
|
521
542
|
"listSchemas",
|
|
522
543
|
"listSchemasV2",
|
|
@@ -549,6 +570,9 @@ var API_LIST = [
|
|
|
549
570
|
"createActivity",
|
|
550
571
|
"getActivity",
|
|
551
572
|
"attachActivity",
|
|
573
|
+
"applyChangeset",
|
|
574
|
+
"dismissChangeset",
|
|
575
|
+
"listChangesets",
|
|
552
576
|
"getEntityActivityFeed",
|
|
553
577
|
"getRelations",
|
|
554
578
|
"addRelations",
|
|
@@ -647,7 +671,7 @@ var API_LIST = [
|
|
|
647
671
|
kebabName: "event-catalog",
|
|
648
672
|
title: "Event Catalog API",
|
|
649
673
|
serverUrl: "https://event-catalog.sls.epilot.io",
|
|
650
|
-
operationCount:
|
|
674
|
+
operationCount: 9,
|
|
651
675
|
operationIds: [
|
|
652
676
|
"listEvents",
|
|
653
677
|
"getEvent",
|
|
@@ -655,6 +679,8 @@ var API_LIST = [
|
|
|
655
679
|
"getEventJSONSchema",
|
|
656
680
|
"getEventExample",
|
|
657
681
|
"searchEventHistory",
|
|
682
|
+
"searchEventHistoryV2",
|
|
683
|
+
"getHistoricalEvent",
|
|
658
684
|
"triggerEvent"
|
|
659
685
|
]
|
|
660
686
|
},
|
|
@@ -663,7 +689,7 @@ var API_LIST = [
|
|
|
663
689
|
kebabName: "file",
|
|
664
690
|
title: "File API",
|
|
665
691
|
serverUrl: "https://file.sls.epilot.io",
|
|
666
|
-
operationCount:
|
|
692
|
+
operationCount: 29,
|
|
667
693
|
operationIds: [
|
|
668
694
|
"uploadFileV2",
|
|
669
695
|
"saveFileV2",
|
|
@@ -674,6 +700,8 @@ var API_LIST = [
|
|
|
674
700
|
"downloadFile",
|
|
675
701
|
"downloadS3File",
|
|
676
702
|
"downloadFiles",
|
|
703
|
+
"createZipJob",
|
|
704
|
+
"getZipJob",
|
|
677
705
|
"previewFile",
|
|
678
706
|
"previewS3FileGet",
|
|
679
707
|
"previewS3File",
|
|
@@ -707,7 +735,7 @@ var API_LIST = [
|
|
|
707
735
|
kebabName: "integration-toolkit",
|
|
708
736
|
title: "Integration Toolkit API",
|
|
709
737
|
serverUrl: "https://integration-toolkit.sls.epilot.io",
|
|
710
|
-
operationCount:
|
|
738
|
+
operationCount: 46,
|
|
711
739
|
operationIds: [
|
|
712
740
|
"acknowledgeTracking",
|
|
713
741
|
"triggerErp",
|
|
@@ -734,6 +762,9 @@ var API_LIST = [
|
|
|
734
762
|
"getIntegrationV2",
|
|
735
763
|
"updateIntegrationV2",
|
|
736
764
|
"deleteIntegrationV2",
|
|
765
|
+
"getSecureProxyWhitelist",
|
|
766
|
+
"updateSecureProxyWhitelist",
|
|
767
|
+
"listSecureProxyWhitelistHistory",
|
|
737
768
|
"setIntegrationAppMapping",
|
|
738
769
|
"deleteIntegrationAppMapping",
|
|
739
770
|
"queryInboundMonitoringEvents",
|
|
@@ -863,8 +894,8 @@ var API_LIST = [
|
|
|
863
894
|
apiName: "metering",
|
|
864
895
|
kebabName: "metering",
|
|
865
896
|
title: "Metering API",
|
|
866
|
-
serverUrl: "
|
|
867
|
-
operationCount:
|
|
897
|
+
serverUrl: "",
|
|
898
|
+
operationCount: 20,
|
|
868
899
|
operationIds: [
|
|
869
900
|
"getCustomerMeters",
|
|
870
901
|
"getMetersByContractId",
|
|
@@ -881,7 +912,11 @@ var API_LIST = [
|
|
|
881
912
|
"createReadingWithMeter",
|
|
882
913
|
"getReadingsByInterval",
|
|
883
914
|
"updateMeterReading",
|
|
884
|
-
"deleteMeterReading"
|
|
915
|
+
"deleteMeterReading",
|
|
916
|
+
"getReadingChangesets",
|
|
917
|
+
"applyReadingChangeset",
|
|
918
|
+
"dismissReadingChangeset",
|
|
919
|
+
"updateReadingChangeset"
|
|
885
920
|
]
|
|
886
921
|
},
|
|
887
922
|
{
|
|
@@ -1227,7 +1262,7 @@ var API_LIST = [
|
|
|
1227
1262
|
kebabName: "webhooks",
|
|
1228
1263
|
title: "Webhooks",
|
|
1229
1264
|
serverUrl: "https://webhooks.sls.epilot.io",
|
|
1230
|
-
operationCount:
|
|
1265
|
+
operationCount: 15,
|
|
1231
1266
|
operationIds: [
|
|
1232
1267
|
"getPublicKey",
|
|
1233
1268
|
"getConfiguredEvents",
|
|
@@ -1236,6 +1271,7 @@ var API_LIST = [
|
|
|
1236
1271
|
"getConfig",
|
|
1237
1272
|
"updateConfig",
|
|
1238
1273
|
"deleteConfig",
|
|
1274
|
+
"testOAuth",
|
|
1239
1275
|
"triggerWebhook",
|
|
1240
1276
|
"getWehookEvents",
|
|
1241
1277
|
"batchReplayEvents",
|
|
@@ -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.
|
|
75
|
+
if (true) return "0.1.28";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|