@epilot/cli 0.1.10 → 0.1.12
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 +18 -21
- package/definitions/app.json +56 -6
- package/definitions/automation.json +214 -1
- package/definitions/blueprint-manifest.json +1303 -60
- package/definitions/customer-portal.json +757 -81
- package/definitions/data-governance.json +1126 -0
- package/definitions/deduplication.json +135 -4
- package/definitions/design.json +103 -57
- package/definitions/email-settings.json +150 -0
- package/definitions/email-template.json +25 -3
- package/definitions/entity.json +405 -5
- package/definitions/erp-integration.json +3140 -1049
- package/definitions/integration-toolkit.json +7998 -0
- package/definitions/journey.json +18 -1
- package/definitions/kanban.json +25 -1
- package/definitions/message.json +202 -0
- package/definitions/organization.json +35 -1
- package/definitions/partner-directory.json +795 -229
- package/definitions/permissions.json +41 -6
- package/definitions/sharing.json +956 -0
- package/definitions/template-variables.json +12 -4
- package/definitions/webhooks.json +111 -2
- package/definitions/workflow-definition.json +87 -202
- package/definitions/workflow.json +142 -0
- package/dist/{access-token-PTTCRMGK.js → access-token-CIM4RLBP.js} +1 -1
- package/dist/add-component-AAVQVPKK.js +296 -0
- package/dist/{address-2FDPEPR6.js → address-EDRTUWTP.js} +1 -1
- package/dist/{address-suggestions-XBEK5DDQ.js → address-suggestions-S5WEST2N.js} +1 -1
- package/dist/{ai-agents-ZY5BNVTN.js → ai-agents-RXDDJDAR.js} +1 -1
- package/dist/{app-IT5FWGUK.js → api-36XROHLK.js} +5 -5
- package/dist/app-I3XXHZLD.js +24 -0
- package/dist/{audit-logs-FB4TE4TI.js → audit-logs-PXGDGJGV.js} +1 -1
- package/dist/{automation-JE5LDKJM.js → automation-LS6MVLP2.js} +1 -1
- package/dist/{billing-GOFCP5T3.js → billing-KVYFUKZK.js} +1 -1
- package/dist/bin/epilot.js +53 -52
- package/dist/{blueprint-manifest-WJIQKFYK.js → blueprint-manifest-W4ZGJD2Z.js} +1 -1
- package/dist/{chunk-P5IZZW4Y.js → chunk-BYAEI4Z2.js} +1 -1
- package/dist/chunk-CEP7S7X3.js +366 -0
- package/dist/{chunk-MNSG22DM.js → chunk-F6KWKTQJ.js} +124 -63
- package/dist/{completion-HZNPHJI4.js → completion-QP4IYMVI.js} +1 -1
- package/dist/{consent-DSMWWHUL.js → consent-M4QB2HPM.js} +1 -1
- package/dist/{customer-portal-IJYTJYUZ.js → customer-portal-SVO2YCXA.js} +1 -1
- package/dist/{dashboard-DOAX6XDG.js → dashboard-CYCXIX74.js} +1 -1
- package/dist/{data-management-C4JPPUPD.js → data-governance-DJAAIE6F.js} +6 -6
- package/dist/{deduplication-7OGLZLAC.js → deduplication-M3KEVJRG.js} +1 -1
- package/dist/deploy-4XDFWOEV.js +214 -0
- package/dist/{design-3CAYTWFY.js → design-UVJJ2KO2.js} +1 -1
- package/dist/{document-NT5JOJQV.js → document-5HB632XE.js} +1 -1
- package/dist/{email-settings-2M3WJTQS.js → email-settings-H7HQTDYE.js} +1 -1
- package/dist/{email-template-F4PLBPPC.js → email-template-2DHZ3VKF.js} +1 -1
- package/dist/{entity-32LKMZAU.js → entity-HED6QHG7.js} +1 -1
- package/dist/{entity-mapping-OBCZDYQJ.js → entity-mapping-QP22B65Z.js} +1 -1
- package/dist/{environments-H3TBCDQE.js → environments-6LLEIGWV.js} +1 -1
- package/dist/{event-catalog-NVAPTZ4M.js → event-catalog-2ZCZTATY.js} +1 -1
- package/dist/export-JA5N4JCJ.js +44 -0
- package/dist/{file-US2HR4SV.js → file-R6IIXOIZ.js} +1 -1
- package/dist/{iban-7QUCOULB.js → iban-EQD2VROZ.js} +1 -1
- package/dist/init-5KGNJEWF.js +524 -0
- package/dist/integration-toolkit-4CLQDSK7.js +54 -0
- package/dist/{journey-E5T4BZZX.js → journey-V7X2KUKH.js} +1 -1
- package/dist/{kanban-7UHU5VE6.js → kanban-EPI6C3FR.js} +1 -1
- package/dist/{message-7KY33RJE.js → message-477EJ5JO.js} +1 -1
- package/dist/{metering-P7BZGMY7.js → metering-5EAEKRSL.js} +1 -1
- package/dist/{notes-TNJ7FPA3.js → notes-CVXNRULU.js} +1 -1
- package/dist/{notification-6KXEFVO5.js → notification-6HXS76XP.js} +1 -1
- package/dist/{organization-FF4Y3PBO.js → organization-O33CZQKD.js} +1 -1
- package/dist/{partner-directory-VH2SBAS2.js → partner-directory-NZWGCKSB.js} +2 -2
- package/dist/{permissions-KENZ4HNY.js → permissions-6QEOBJ6M.js} +1 -1
- package/dist/{pricing-P6QZ77VJ.js → pricing-KNYSULCW.js} +1 -1
- package/dist/{pricing-tier-2IRJMTM6.js → pricing-tier-OCHP6SHT.js} +1 -1
- package/dist/{purpose-IHROR6LQ.js → purpose-NGM42XWB.js} +1 -1
- package/dist/remove-component-LXSRR23E.js +89 -0
- package/dist/review-HFOO3NXE.js +69 -0
- package/dist/{sandbox-62XQPOU6.js → sandbox-YX3VVAQG.js} +1 -1
- package/dist/sharing-X5U53KSU.js +54 -0
- package/dist/{submission-PUWGOYQB.js → submission-YOWVSZNA.js} +1 -1
- package/dist/{targeting-QB3DFYNI.js → targeting-BMZCOG72.js} +1 -1
- package/dist/{template-variables-IPKRUJ4E.js → template-variables-YTABZL3E.js} +1 -1
- package/dist/{upgrade-TNDH4WGQ.js → upgrade-SYSSIAQC.js} +1 -1
- package/dist/{user-2CP75TFC.js → user-3N5ZOUYS.js} +1 -1
- package/dist/validate-TUMXW56Y.js +53 -0
- package/dist/{validation-rules-GNI4EEG5.js → validation-rules-QVS7LKEP.js} +1 -1
- package/dist/versions-ZTWQAGXY.js +109 -0
- package/dist/{webhooks-2OWUX7UL.js → webhooks-6WMWACOW.js} +1 -1
- package/dist/{workflow-WSLERVJI.js → workflow-ZO2MKDBS.js} +1 -1
- package/dist/{workflow-definition-FP3WKHGG.js → workflow-definition-RCWKIPYI.js} +1 -1
- package/package.json +2 -1
- package/definitions/data-management.json +0 -962
- package/dist/erp-integration-UW6H55EK.js +0 -54
|
@@ -151,7 +151,7 @@ var API_LIST = [
|
|
|
151
151
|
kebabName: "blueprint-manifest",
|
|
152
152
|
title: "Blueprint Manifest API",
|
|
153
153
|
serverUrl: "https://blueprint-manifest.sls.epilot.io",
|
|
154
|
-
operationCount:
|
|
154
|
+
operationCount: 45,
|
|
155
155
|
operationIds: [
|
|
156
156
|
"getJob",
|
|
157
157
|
"createExport",
|
|
@@ -173,7 +173,10 @@ var API_LIST = [
|
|
|
173
173
|
"updateBlueprint",
|
|
174
174
|
"deleteBlueprint",
|
|
175
175
|
"validateBlueprint",
|
|
176
|
+
"verifyBlueprint",
|
|
176
177
|
"exportBlueprint",
|
|
178
|
+
"listMarketplaceSlugs",
|
|
179
|
+
"publishBlueprint",
|
|
177
180
|
"formatBlueprintDescription",
|
|
178
181
|
"addBlueprintResource",
|
|
179
182
|
"syncDependencies",
|
|
@@ -185,7 +188,16 @@ var API_LIST = [
|
|
|
185
188
|
"listBlueprintJobs",
|
|
186
189
|
"getBlueprintJob",
|
|
187
190
|
"continueInstallationJob",
|
|
188
|
-
"cancelBlueprintJob"
|
|
191
|
+
"cancelBlueprintJob",
|
|
192
|
+
"getMarketplaceListing",
|
|
193
|
+
"createMarketplaceListing",
|
|
194
|
+
"getMarketplaceListingById",
|
|
195
|
+
"updateMarketplaceListing",
|
|
196
|
+
"deleteMarketplaceListing",
|
|
197
|
+
"listMarketplaceListingVersions",
|
|
198
|
+
"createMarketplaceListingVersion",
|
|
199
|
+
"updateMarketplaceListingVersion",
|
|
200
|
+
"publishMarketplaceListingVersion"
|
|
189
201
|
]
|
|
190
202
|
},
|
|
191
203
|
{
|
|
@@ -201,7 +213,7 @@ var API_LIST = [
|
|
|
201
213
|
kebabName: "customer-portal",
|
|
202
214
|
title: "Portal API",
|
|
203
215
|
serverUrl: "https://customer-portal-api.sls.epilot.io",
|
|
204
|
-
operationCount:
|
|
216
|
+
operationCount: 138,
|
|
205
217
|
operationIds: [
|
|
206
218
|
"upsertPortal",
|
|
207
219
|
"createUser",
|
|
@@ -235,6 +247,9 @@ var API_LIST = [
|
|
|
235
247
|
"getPublicPortalWidgets",
|
|
236
248
|
"getPortalWidgets",
|
|
237
249
|
"upsertPortalWidget",
|
|
250
|
+
"getPortalWidgetsV3",
|
|
251
|
+
"upsertPortalWidgetV3",
|
|
252
|
+
"savePortalFilesV3",
|
|
238
253
|
"replaceECPTemplateVariables",
|
|
239
254
|
"getOrganizationSettings",
|
|
240
255
|
"getSchemas",
|
|
@@ -314,6 +329,7 @@ var API_LIST = [
|
|
|
314
329
|
"getPortalPages",
|
|
315
330
|
"createPortalPage",
|
|
316
331
|
"getPublicPages",
|
|
332
|
+
"interpolatePortalPages",
|
|
317
333
|
"getDefaultPages",
|
|
318
334
|
"getPortalPageBlocks",
|
|
319
335
|
"createPortalPageBlock",
|
|
@@ -356,10 +372,10 @@ var API_LIST = [
|
|
|
356
372
|
]
|
|
357
373
|
},
|
|
358
374
|
{
|
|
359
|
-
apiName: "
|
|
360
|
-
kebabName: "data-
|
|
361
|
-
title: "Data
|
|
362
|
-
serverUrl: "https://data-
|
|
375
|
+
apiName: "dataGovernance",
|
|
376
|
+
kebabName: "data-governance",
|
|
377
|
+
title: "Data Governance API",
|
|
378
|
+
serverUrl: "https://data-governance.sls.epilot.io",
|
|
363
379
|
operationCount: 10,
|
|
364
380
|
operationIds: [
|
|
365
381
|
"queryEntities",
|
|
@@ -379,14 +395,14 @@ var API_LIST = [
|
|
|
379
395
|
kebabName: "deduplication",
|
|
380
396
|
title: "Deduplication API",
|
|
381
397
|
serverUrl: "https://deduplication.sls.epilot.io",
|
|
382
|
-
operationCount:
|
|
383
|
-
operationIds: ["deduplicate"]
|
|
398
|
+
operationCount: 3,
|
|
399
|
+
operationIds: ["deduplicate", "deduplicateAsync", "getDeduplicationJob"]
|
|
384
400
|
},
|
|
385
401
|
{
|
|
386
402
|
apiName: "design",
|
|
387
403
|
kebabName: "design",
|
|
388
404
|
title: "Design Builder API v2",
|
|
389
|
-
serverUrl: "https://design-builder-api.epilot.io",
|
|
405
|
+
serverUrl: "https://design-builder-api.{environment}.epilot.io",
|
|
390
406
|
operationCount: 13,
|
|
391
407
|
operationIds: [
|
|
392
408
|
"getAllDesigns",
|
|
@@ -417,7 +433,7 @@ var API_LIST = [
|
|
|
417
433
|
kebabName: "email-settings",
|
|
418
434
|
title: "Messaging Settings API",
|
|
419
435
|
serverUrl: "https://email-settings.sls.epilot.io",
|
|
420
|
-
operationCount:
|
|
436
|
+
operationCount: 35,
|
|
421
437
|
operationIds: [
|
|
422
438
|
"provisionEpilotEmailAddress",
|
|
423
439
|
"setEmailAddressPrimary",
|
|
@@ -435,6 +451,9 @@ var API_LIST = [
|
|
|
435
451
|
"connectOutlook",
|
|
436
452
|
"getOutlookConnectionStatus",
|
|
437
453
|
"disconnectOutlook",
|
|
454
|
+
"connectMsTeams",
|
|
455
|
+
"disconnectMsTeams",
|
|
456
|
+
"getMsTeamsStatus",
|
|
438
457
|
"connectOutlookMailbox",
|
|
439
458
|
"disconnectOutlookMailbox",
|
|
440
459
|
"startMailboxSync",
|
|
@@ -446,6 +465,7 @@ var API_LIST = [
|
|
|
446
465
|
"addSetting",
|
|
447
466
|
"deleteSetting",
|
|
448
467
|
"updateSetting",
|
|
468
|
+
"getDomains",
|
|
449
469
|
"addDomain",
|
|
450
470
|
"deleteDomain",
|
|
451
471
|
"verifyNameServers",
|
|
@@ -473,15 +493,18 @@ var API_LIST = [
|
|
|
473
493
|
kebabName: "entity",
|
|
474
494
|
title: "Entity API",
|
|
475
495
|
serverUrl: "https://entity.sls.epilot.io",
|
|
476
|
-
operationCount:
|
|
496
|
+
operationCount: 84,
|
|
477
497
|
operationIds: [
|
|
478
498
|
"listSchemas",
|
|
499
|
+
"listSchemasV2",
|
|
479
500
|
"getSchema",
|
|
480
501
|
"putSchema",
|
|
481
502
|
"deleteSchema",
|
|
482
503
|
"getJsonSchema",
|
|
483
504
|
"getSchemaExample",
|
|
484
505
|
"getSchemaVersions",
|
|
506
|
+
"freezeSchema",
|
|
507
|
+
"unfreezeSchema",
|
|
485
508
|
"listAvailableCapabilities",
|
|
486
509
|
"listSchemaBlueprints",
|
|
487
510
|
"searchEntities",
|
|
@@ -593,48 +616,6 @@ var API_LIST = [
|
|
|
593
616
|
"deleteEnvironmentVariable"
|
|
594
617
|
]
|
|
595
618
|
},
|
|
596
|
-
{
|
|
597
|
-
apiName: "erpIntegration",
|
|
598
|
-
kebabName: "erp-integration",
|
|
599
|
-
title: "ERP Integration API",
|
|
600
|
-
serverUrl: "https://erp-integration-api.sls.epilot.io",
|
|
601
|
-
operationCount: 33,
|
|
602
|
-
operationIds: [
|
|
603
|
-
"acknowledgeTracking",
|
|
604
|
-
"triggerErp",
|
|
605
|
-
"processErpUpdatesEvents",
|
|
606
|
-
"processErpUpdatesEventsV2",
|
|
607
|
-
"processErpUpdatesEventsV3",
|
|
608
|
-
"simulateMappingV2",
|
|
609
|
-
"simulateMapping",
|
|
610
|
-
"listIntegrations",
|
|
611
|
-
"createIntegration",
|
|
612
|
-
"getIntegration",
|
|
613
|
-
"updateIntegration",
|
|
614
|
-
"deleteIntegration",
|
|
615
|
-
"queryEvents",
|
|
616
|
-
"replayEvents",
|
|
617
|
-
"listUseCases",
|
|
618
|
-
"createUseCase",
|
|
619
|
-
"getUseCase",
|
|
620
|
-
"updateUseCase",
|
|
621
|
-
"deleteUseCase",
|
|
622
|
-
"listUseCaseHistory",
|
|
623
|
-
"listIntegrationsV2",
|
|
624
|
-
"createIntegrationV2",
|
|
625
|
-
"getIntegrationV2",
|
|
626
|
-
"updateIntegrationV2",
|
|
627
|
-
"deleteIntegrationV2",
|
|
628
|
-
"setIntegrationAppMapping",
|
|
629
|
-
"deleteIntegrationAppMapping",
|
|
630
|
-
"queryInboundMonitoringEvents",
|
|
631
|
-
"getMonitoringStats",
|
|
632
|
-
"getMonitoringTimeSeries",
|
|
633
|
-
"getOutboundStatus",
|
|
634
|
-
"queryAccessLogs",
|
|
635
|
-
"queryOutboundMonitoringEvents"
|
|
636
|
-
]
|
|
637
|
-
},
|
|
638
619
|
{
|
|
639
620
|
apiName: "eventCatalog",
|
|
640
621
|
kebabName: "event-catalog",
|
|
@@ -695,6 +676,58 @@ var API_LIST = [
|
|
|
695
676
|
operationCount: 1,
|
|
696
677
|
operationIds: ["validateIban"]
|
|
697
678
|
},
|
|
679
|
+
{
|
|
680
|
+
apiName: "integrationToolkit",
|
|
681
|
+
kebabName: "integration-toolkit",
|
|
682
|
+
title: "Integration Toolkit API",
|
|
683
|
+
serverUrl: "https://integration-toolkit.sls.epilot.io",
|
|
684
|
+
operationCount: 43,
|
|
685
|
+
operationIds: [
|
|
686
|
+
"acknowledgeTracking",
|
|
687
|
+
"triggerErp",
|
|
688
|
+
"processErpUpdatesEvents",
|
|
689
|
+
"processErpUpdatesEventsV2",
|
|
690
|
+
"processErpUpdatesEventsV3",
|
|
691
|
+
"simulateMappingV2",
|
|
692
|
+
"simulateMapping",
|
|
693
|
+
"listIntegrations",
|
|
694
|
+
"createIntegration",
|
|
695
|
+
"getIntegration",
|
|
696
|
+
"updateIntegration",
|
|
697
|
+
"deleteIntegration",
|
|
698
|
+
"queryEvents",
|
|
699
|
+
"replayEvents",
|
|
700
|
+
"listUseCases",
|
|
701
|
+
"createUseCase",
|
|
702
|
+
"getUseCase",
|
|
703
|
+
"updateUseCase",
|
|
704
|
+
"deleteUseCase",
|
|
705
|
+
"listUseCaseHistory",
|
|
706
|
+
"listIntegrationsV2",
|
|
707
|
+
"createIntegrationV2",
|
|
708
|
+
"getIntegrationV2",
|
|
709
|
+
"updateIntegrationV2",
|
|
710
|
+
"deleteIntegrationV2",
|
|
711
|
+
"setIntegrationAppMapping",
|
|
712
|
+
"deleteIntegrationAppMapping",
|
|
713
|
+
"queryInboundMonitoringEvents",
|
|
714
|
+
"getMonitoringStats",
|
|
715
|
+
"getMonitoringTimeSeries",
|
|
716
|
+
"getOutboundStatus",
|
|
717
|
+
"queryAccessLogs",
|
|
718
|
+
"queryOutboundMonitoringEvents",
|
|
719
|
+
"queryMonitoringEventsV2",
|
|
720
|
+
"getMonitoringStatsV2",
|
|
721
|
+
"getMonitoringTimeSeriesV2",
|
|
722
|
+
"getAssociatedMonitoringEvents",
|
|
723
|
+
"listSecureProxies",
|
|
724
|
+
"secureProxy",
|
|
725
|
+
"managedCallExecute",
|
|
726
|
+
"generateTypesPreview",
|
|
727
|
+
"generateTypes",
|
|
728
|
+
"commitTypes"
|
|
729
|
+
]
|
|
730
|
+
},
|
|
698
731
|
{
|
|
699
732
|
apiName: "journey",
|
|
700
733
|
kebabName: "journey",
|
|
@@ -744,7 +777,7 @@ var API_LIST = [
|
|
|
744
777
|
kebabName: "message",
|
|
745
778
|
title: "Message API",
|
|
746
779
|
serverUrl: "https://message.sls.epilot.io",
|
|
747
|
-
operationCount:
|
|
780
|
+
operationCount: 52,
|
|
748
781
|
operationIds: [
|
|
749
782
|
"sendMessage",
|
|
750
783
|
"updateMessage",
|
|
@@ -770,6 +803,12 @@ var API_LIST = [
|
|
|
770
803
|
"getThreadTimeline",
|
|
771
804
|
"trashThread",
|
|
772
805
|
"untrashThread",
|
|
806
|
+
"spamThread",
|
|
807
|
+
"unspamThread",
|
|
808
|
+
"spamMessage",
|
|
809
|
+
"unspamMessage",
|
|
810
|
+
"bulkMoveThreads",
|
|
811
|
+
"bulkAssignThreads",
|
|
773
812
|
"threadBulkActionsRead",
|
|
774
813
|
"threadBulkActionsUnread",
|
|
775
814
|
"threadBulkActionsFavorite",
|
|
@@ -868,7 +907,7 @@ var API_LIST = [
|
|
|
868
907
|
kebabName: "organization",
|
|
869
908
|
title: "Organization API",
|
|
870
909
|
serverUrl: "https://organization-v2.sls.epilot.io",
|
|
871
|
-
operationCount:
|
|
910
|
+
operationCount: 8,
|
|
872
911
|
operationIds: [
|
|
873
912
|
"getCurrentOrganization",
|
|
874
913
|
"getOrganization",
|
|
@@ -876,15 +915,16 @@ var API_LIST = [
|
|
|
876
915
|
"getSettings",
|
|
877
916
|
"putSettingsValue",
|
|
878
917
|
"deleteSettingsValue",
|
|
918
|
+
"getOrganizationFeatureSettings",
|
|
879
919
|
"getFeatureSettings"
|
|
880
920
|
]
|
|
881
921
|
},
|
|
882
922
|
{
|
|
883
923
|
apiName: "partnerDirectory",
|
|
884
924
|
kebabName: "partner-directory",
|
|
885
|
-
title: "Partner API",
|
|
925
|
+
title: "Partner Directory API",
|
|
886
926
|
serverUrl: "https://partner-directory-api.sls.epilot.io",
|
|
887
|
-
operationCount:
|
|
927
|
+
operationCount: 17,
|
|
888
928
|
operationIds: [
|
|
889
929
|
"approvePartner",
|
|
890
930
|
"rejectPartner",
|
|
@@ -900,6 +940,7 @@ var API_LIST = [
|
|
|
900
940
|
"getPartnerRoles",
|
|
901
941
|
"createPartnerRole",
|
|
902
942
|
"updatePartnerRole",
|
|
943
|
+
"deletePartnerRole",
|
|
903
944
|
"assignPartnerUserRoles",
|
|
904
945
|
"unassignPartnerUserRoles"
|
|
905
946
|
]
|
|
@@ -908,7 +949,7 @@ var API_LIST = [
|
|
|
908
949
|
apiName: "permissions",
|
|
909
950
|
kebabName: "permissions",
|
|
910
951
|
title: "Permissions API",
|
|
911
|
-
serverUrl: "
|
|
952
|
+
serverUrl: "",
|
|
912
953
|
operationCount: 13,
|
|
913
954
|
operationIds: [
|
|
914
955
|
"listCurrentRoles",
|
|
@@ -996,6 +1037,27 @@ var API_LIST = [
|
|
|
996
1037
|
"listSandboxRequests"
|
|
997
1038
|
]
|
|
998
1039
|
},
|
|
1040
|
+
{
|
|
1041
|
+
apiName: "sharing",
|
|
1042
|
+
kebabName: "sharing",
|
|
1043
|
+
title: "Sharing API",
|
|
1044
|
+
serverUrl: "https://sharing-api.sls.epilot.io",
|
|
1045
|
+
operationCount: 12,
|
|
1046
|
+
operationIds: [
|
|
1047
|
+
"getSharingConfiguration",
|
|
1048
|
+
"updateSharingConfiguration",
|
|
1049
|
+
"deleteSharingConfiguration",
|
|
1050
|
+
"assignRoleToConfiguration",
|
|
1051
|
+
"getSharingConfigurations",
|
|
1052
|
+
"searchPartnerSharingConfigurations",
|
|
1053
|
+
"getConfigurationsByTemplateRole",
|
|
1054
|
+
"shareEntityWithPartners",
|
|
1055
|
+
"shareChildEntityWithPartners",
|
|
1056
|
+
"offerEntityToPartners",
|
|
1057
|
+
"getOfferStatus",
|
|
1058
|
+
"acceptOffer"
|
|
1059
|
+
]
|
|
1060
|
+
},
|
|
999
1061
|
{
|
|
1000
1062
|
apiName: "submission",
|
|
1001
1063
|
kebabName: "submission",
|
|
@@ -1132,7 +1194,7 @@ var API_LIST = [
|
|
|
1132
1194
|
kebabName: "workflow",
|
|
1133
1195
|
title: "Workflows Executions",
|
|
1134
1196
|
serverUrl: "https://workflows-execution.sls.epilot.io",
|
|
1135
|
-
operationCount:
|
|
1197
|
+
operationCount: 24,
|
|
1136
1198
|
operationIds: [
|
|
1137
1199
|
"getExecutions",
|
|
1138
1200
|
"createExecution",
|
|
@@ -1156,6 +1218,7 @@ var API_LIST = [
|
|
|
1156
1218
|
"patchPhase",
|
|
1157
1219
|
"addTask",
|
|
1158
1220
|
"cancelTaskSchedule",
|
|
1221
|
+
"runTaskScheduleNow",
|
|
1159
1222
|
"cancelSchedule"
|
|
1160
1223
|
]
|
|
1161
1224
|
},
|
|
@@ -1164,7 +1227,7 @@ var API_LIST = [
|
|
|
1164
1227
|
kebabName: "workflow-definition",
|
|
1165
1228
|
title: "Workflows Definitions",
|
|
1166
1229
|
serverUrl: "https://workflows-definition.sls.epilot.io",
|
|
1167
|
-
operationCount:
|
|
1230
|
+
operationCount: 22,
|
|
1168
1231
|
operationIds: [
|
|
1169
1232
|
"getMaxAllowedLimit",
|
|
1170
1233
|
"getDefinitions",
|
|
@@ -1176,8 +1239,6 @@ var API_LIST = [
|
|
|
1176
1239
|
"updateFlowTemplate",
|
|
1177
1240
|
"deleteFlowTemplate",
|
|
1178
1241
|
"duplicateFlowTemplate",
|
|
1179
|
-
"exportFlowTemplate",
|
|
1180
|
-
"importFlowTemplate",
|
|
1181
1242
|
"getDefinition",
|
|
1182
1243
|
"updateDefinition",
|
|
1183
1244
|
"deleteDefinition",
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
callApi
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BYAEI4Z2.js";
|
|
5
5
|
import "./chunk-RSA7K5HB.js";
|
|
6
6
|
import "./chunk-PDMWUCWD.js";
|
|
7
7
|
import "./chunk-IOLKUHUB.js";
|
|
8
8
|
import "./chunk-7ZQ666ZQ.js";
|
|
9
9
|
|
|
10
|
-
// src/commands/apis/data-
|
|
10
|
+
// src/commands/apis/data-governance.ts
|
|
11
11
|
import { defineCommand } from "citty";
|
|
12
|
-
var
|
|
13
|
-
meta: { name: "data-
|
|
12
|
+
var data_governance_default = defineCommand({
|
|
13
|
+
meta: { name: "data-governance", description: "Data Governance API" },
|
|
14
14
|
args: {
|
|
15
15
|
operation: { type: "positional", description: "operationId to call", required: false },
|
|
16
16
|
param: { type: "string", alias: "p", description: "Parameter key=value" },
|
|
@@ -41,7 +41,7 @@ var data_management_default = defineCommand({
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
return callApi("data-
|
|
44
|
+
return callApi("data-governance", {
|
|
45
45
|
...args,
|
|
46
46
|
help: !!args._ophelp,
|
|
47
47
|
_apihelp: !!args._apihelp,
|
|
@@ -50,5 +50,5 @@ var data_management_default = defineCommand({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
data_governance_default as default
|
|
54
54
|
};
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
createAppApiClient,
|
|
4
|
+
formatFileSize,
|
|
5
|
+
log,
|
|
6
|
+
readManifest,
|
|
7
|
+
uploadDirectoryAsZip,
|
|
8
|
+
uploadFileToPresignedUrl,
|
|
9
|
+
writeManifest
|
|
10
|
+
} from "./chunk-CEP7S7X3.js";
|
|
11
|
+
import "./chunk-RSA7K5HB.js";
|
|
12
|
+
import "./chunk-PDMWUCWD.js";
|
|
13
|
+
import "./chunk-7ZQ666ZQ.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/app/deploy.ts
|
|
16
|
+
import { defineCommand } from "citty";
|
|
17
|
+
import { resolve, dirname, extname } from "path";
|
|
18
|
+
import { existsSync, statSync, readFileSync } from "fs";
|
|
19
|
+
var deploy_default = defineCommand({
|
|
20
|
+
meta: { name: "deploy", description: "Deploy an app from manifest.json" },
|
|
21
|
+
args: {
|
|
22
|
+
path: { type: "positional", description: "Path to manifest.json", required: false },
|
|
23
|
+
"new-version": { type: "boolean", description: "Create a new version" },
|
|
24
|
+
"dry-run": { type: "boolean", description: "Show what would change without applying" },
|
|
25
|
+
token: { type: "string", alias: "t", description: "Bearer token" },
|
|
26
|
+
server: { type: "string", alias: "s", description: "Override server base URL" },
|
|
27
|
+
profile: { type: "string", description: "Use a named profile" }
|
|
28
|
+
},
|
|
29
|
+
run: async ({ args }) => {
|
|
30
|
+
const manifestPath = resolve(args.path ?? "manifest.json");
|
|
31
|
+
const manifestDir = dirname(manifestPath);
|
|
32
|
+
const manifest = readManifest(manifestPath);
|
|
33
|
+
const client = createAppApiClient({ token: args.token, server: args.server, profile: args.profile });
|
|
34
|
+
const isNew = !manifest.app_id;
|
|
35
|
+
const dryRun = args["dry-run"] ?? false;
|
|
36
|
+
log.header(`Deploying ${manifest.name}...`);
|
|
37
|
+
let appId = manifest.app_id;
|
|
38
|
+
let targetVersion;
|
|
39
|
+
if (isNew) {
|
|
40
|
+
if (dryRun) {
|
|
41
|
+
log.info("[dry-run] Would create new app configuration");
|
|
42
|
+
appId = "<new-app-id>";
|
|
43
|
+
targetVersion = "0.0.1";
|
|
44
|
+
} else {
|
|
45
|
+
const result = await client.createConfiguration({
|
|
46
|
+
name: manifest.name,
|
|
47
|
+
description: manifest.description,
|
|
48
|
+
category: manifest.category
|
|
49
|
+
});
|
|
50
|
+
appId = result.app_id;
|
|
51
|
+
targetVersion = result.version ?? "0.0.1";
|
|
52
|
+
manifest.app_id = appId;
|
|
53
|
+
writeManifest(manifestPath, manifest);
|
|
54
|
+
log.success(`Created app ${appId}`);
|
|
55
|
+
log.dim(`app_id written back to ${manifestPath}`);
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
const config = await client.getConfiguration(appId);
|
|
59
|
+
targetVersion = config.latest_version;
|
|
60
|
+
const publicVersions = new Set(config.public_versions ?? []);
|
|
61
|
+
const latestIsPublic = publicVersions.has(targetVersion);
|
|
62
|
+
if (!dryRun) {
|
|
63
|
+
await client.patchMetadata(appId, {
|
|
64
|
+
name: manifest.name,
|
|
65
|
+
description: manifest.description,
|
|
66
|
+
...manifest.category ? { category: manifest.category } : {},
|
|
67
|
+
...manifest.documentation_url ? { documentation_url: manifest.documentation_url } : {},
|
|
68
|
+
...manifest.support_email ? { support_email: manifest.support_email } : {},
|
|
69
|
+
...manifest.pricing ? { pricing: manifest.pricing } : {},
|
|
70
|
+
...manifest.notifications ? { notifications: manifest.notifications } : {}
|
|
71
|
+
});
|
|
72
|
+
log.success("Updated metadata");
|
|
73
|
+
} else {
|
|
74
|
+
log.info("[dry-run] Would update metadata");
|
|
75
|
+
}
|
|
76
|
+
if (latestIsPublic || args["new-version"]) {
|
|
77
|
+
if (latestIsPublic && !args["new-version"]) {
|
|
78
|
+
log.warn(`Version ${targetVersion} is public and locked. Creating a new version automatically.`);
|
|
79
|
+
}
|
|
80
|
+
if (dryRun) {
|
|
81
|
+
log.info(`[dry-run] Would create new version (cloned from ${targetVersion})`);
|
|
82
|
+
} else {
|
|
83
|
+
const result = await client.cloneVersion(appId, targetVersion);
|
|
84
|
+
targetVersion = result.version;
|
|
85
|
+
log.success(`Created version ${targetVersion}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
if (manifest.assets?.logo) {
|
|
90
|
+
const logoPath = resolve(manifestDir, manifest.assets.logo);
|
|
91
|
+
if (existsSync(logoPath)) {
|
|
92
|
+
if (dryRun) {
|
|
93
|
+
log.info(`[dry-run] Would upload logo: ${manifest.assets.logo}`);
|
|
94
|
+
} else {
|
|
95
|
+
const ext = extname(logoPath).toLowerCase();
|
|
96
|
+
const mimeType = ext === ".png" ? "image/png" : "image/jpeg";
|
|
97
|
+
const filename = manifest.assets.logo.split("/").pop();
|
|
98
|
+
const { upload_url, s3_key } = await client.createLogoUploadUrl(appId, filename, mimeType);
|
|
99
|
+
await uploadFileToPresignedUrl(upload_url, logoPath);
|
|
100
|
+
await client.patchMetadata(appId, { logo_url_key: s3_key });
|
|
101
|
+
log.success(`Uploaded logo (${formatFileSize(statSync(logoPath).size)})`);
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
log.warn(`Logo not found: ${logoPath}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (manifest.permissions?.length || manifest.blueprint?.manifest_id) {
|
|
108
|
+
if (dryRun) {
|
|
109
|
+
log.info("[dry-run] Would update version permissions/blueprint");
|
|
110
|
+
} else {
|
|
111
|
+
await client.patchVersion(appId, targetVersion, {
|
|
112
|
+
...manifest.permissions?.length ? { grants: manifest.permissions } : {},
|
|
113
|
+
...manifest.blueprint?.manifest_id ? { manifest_id: manifest.blueprint.manifest_id } : {}
|
|
114
|
+
});
|
|
115
|
+
log.success(`Updated version ${targetVersion} (permissions/blueprint)`);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
for (const comp of manifest.components) {
|
|
119
|
+
const { assets, _dir, ...componentPayload } = comp;
|
|
120
|
+
for (const key of Object.keys(componentPayload)) {
|
|
121
|
+
if (key.startsWith("_")) delete componentPayload[key];
|
|
122
|
+
}
|
|
123
|
+
if (_dir) {
|
|
124
|
+
const configJsonPath = resolve(manifestDir, "components", _dir, "configuration.json");
|
|
125
|
+
if (existsSync(configJsonPath)) {
|
|
126
|
+
try {
|
|
127
|
+
const localConfig = JSON.parse(readFileSync(configJsonPath, "utf-8"));
|
|
128
|
+
componentPayload.configuration = localConfig;
|
|
129
|
+
log.dim(`Read configuration from components/${_dir}/configuration.json`);
|
|
130
|
+
} catch (err) {
|
|
131
|
+
log.warn(`Failed to parse components/${_dir}/configuration.json: ${err.message}`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (assets?.bundle) {
|
|
136
|
+
const bundlePath = resolve(manifestDir, assets.bundle);
|
|
137
|
+
if (existsSync(bundlePath)) {
|
|
138
|
+
if (dryRun) {
|
|
139
|
+
log.info(`[dry-run] Would upload bundle: ${assets.bundle}`);
|
|
140
|
+
} else {
|
|
141
|
+
const { upload_url, component_url } = await client.createBundleUploadUrl(appId, targetVersion, comp.id);
|
|
142
|
+
await uploadFileToPresignedUrl(upload_url, bundlePath);
|
|
143
|
+
log.success(`Uploaded bundle for ${comp.id} (${formatFileSize(statSync(bundlePath).size)})`);
|
|
144
|
+
const config = componentPayload.configuration;
|
|
145
|
+
if (config.component_url) {
|
|
146
|
+
config.component_url = component_url;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
log.warn(`Bundle not found: ${bundlePath} \u2014 run "npm run build" first, skipping component`);
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
if (assets?.zip) {
|
|
155
|
+
const zipPath = resolve(manifestDir, assets.zip);
|
|
156
|
+
if (existsSync(zipPath)) {
|
|
157
|
+
if (dryRun) {
|
|
158
|
+
log.info(`[dry-run] Would zip and upload: ${assets.zip}`);
|
|
159
|
+
} else {
|
|
160
|
+
const { upload_url, artifact_url } = await client.createZipUploadUrl(appId, targetVersion, comp.id);
|
|
161
|
+
const zipSize = await uploadDirectoryAsZip(upload_url, zipPath);
|
|
162
|
+
log.success(`Uploaded zip for ${comp.id} (${formatFileSize(zipSize)})`);
|
|
163
|
+
if (componentPayload.surfaces && typeof componentPayload.surfaces === "object") {
|
|
164
|
+
for (const surface of Object.values(
|
|
165
|
+
componentPayload.surfaces
|
|
166
|
+
)) {
|
|
167
|
+
if (surface && typeof surface === "object") {
|
|
168
|
+
if ("app_url" in surface) {
|
|
169
|
+
surface.app_url = artifact_url;
|
|
170
|
+
}
|
|
171
|
+
if ("zip_url" in surface) {
|
|
172
|
+
surface.zip_url = artifact_url;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
} else {
|
|
179
|
+
log.warn(`Directory not found: ${zipPath} \u2014 run "npm run build" first, skipping component`);
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (dryRun) {
|
|
184
|
+
log.info(`[dry-run] Would upsert component ${comp.id} (${comp.component_type})`);
|
|
185
|
+
} else {
|
|
186
|
+
await client.upsertComponent(appId, targetVersion, componentPayload);
|
|
187
|
+
log.success(`Upserted component ${comp.id}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!isNew) {
|
|
191
|
+
const remoteVersion = await client.getVersion(appId, targetVersion);
|
|
192
|
+
const remoteComponents = remoteVersion.components ?? [];
|
|
193
|
+
const localIds = new Set(manifest.components.map((c) => c.id));
|
|
194
|
+
for (const remote of remoteComponents) {
|
|
195
|
+
if (!localIds.has(remote.id)) {
|
|
196
|
+
if (dryRun) {
|
|
197
|
+
log.info(`[dry-run] Would delete remote component ${remote.id}`);
|
|
198
|
+
} else {
|
|
199
|
+
await client.deleteComponent(appId, targetVersion, remote.id);
|
|
200
|
+
log.success(`Deleted remote component ${remote.id}`);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (dryRun) {
|
|
206
|
+
log.header("Dry run complete. No changes were made.");
|
|
207
|
+
} else {
|
|
208
|
+
log.header(`Deployed v${targetVersion} of ${manifest.name} (app_id: ${appId})`);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
export {
|
|
213
|
+
deploy_default as default
|
|
214
|
+
};
|