@stack-spot/portal-network 0.162.3 → 0.164.0
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/CHANGELOG.md +14 -0
- package/dist/api/content.d.ts +140 -308
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +79 -217
- package/dist/api/content.js.map +1 -1
- package/dist/client/agent-tools.js +1 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/content.d.ts +10 -4
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +10 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +343 -795
- package/src/client/agent-tools.ts +1 -1
- package/src/client/content.ts +5 -0
package/dist/api/content.js
CHANGED
|
@@ -321,41 +321,6 @@ export function unpublishPlugin({ studioSlug, pluginSlug }, opts) {
|
|
|
321
321
|
method: "DELETE"
|
|
322
322
|
}));
|
|
323
323
|
}
|
|
324
|
-
/**
|
|
325
|
-
* Get available plugin versions by plugin slug
|
|
326
|
-
*/
|
|
327
|
-
export function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }, opts) {
|
|
328
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
|
|
329
|
-
"x-workspace-id": xWorkspaceId,
|
|
330
|
-
range,
|
|
331
|
-
appAllowed
|
|
332
|
-
}))}`, {
|
|
333
|
-
...opts
|
|
334
|
-
}));
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Get available plugin versions by plugin slug
|
|
338
|
-
*/
|
|
339
|
-
export function oldGetAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, getAvailablePluginVersionsRequest }, opts) {
|
|
340
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range`, oazapfts.json({
|
|
341
|
-
...opts,
|
|
342
|
-
method: "POST",
|
|
343
|
-
body: getAvailablePluginVersionsRequest,
|
|
344
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
345
|
-
"x-workspace-id": xWorkspaceId
|
|
346
|
-
})
|
|
347
|
-
})));
|
|
348
|
-
}
|
|
349
|
-
/**
|
|
350
|
-
* Validate a plugin publish
|
|
351
|
-
*/
|
|
352
|
-
export function validatePluginPublish({ studioSlug, publishValidatorRequest }, opts) {
|
|
353
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/publish/validate`, oazapfts.json({
|
|
354
|
-
...opts,
|
|
355
|
-
method: "POST",
|
|
356
|
-
body: publishValidatorRequest
|
|
357
|
-
})));
|
|
358
|
-
}
|
|
359
324
|
/**
|
|
360
325
|
* Process a plugin publish
|
|
361
326
|
*/
|
|
@@ -405,31 +370,6 @@ export function createAction({ studioSlug, actionSlug, body }, opts) {
|
|
|
405
370
|
body
|
|
406
371
|
})));
|
|
407
372
|
}
|
|
408
|
-
/**
|
|
409
|
-
* Get available action versions by action slug
|
|
410
|
-
*/
|
|
411
|
-
export function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }, opts) {
|
|
412
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
|
|
413
|
-
"x-workspace-id": xWorkspaceId,
|
|
414
|
-
range,
|
|
415
|
-
requiresConnection
|
|
416
|
-
}))}`, {
|
|
417
|
-
...opts
|
|
418
|
-
}));
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Get available action versions by action slug
|
|
422
|
-
*/
|
|
423
|
-
export function oldGetAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, getAvailableActionVersionsRequest }, opts) {
|
|
424
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range`, oazapfts.json({
|
|
425
|
-
...opts,
|
|
426
|
-
method: "POST",
|
|
427
|
-
body: getAvailableActionVersionsRequest,
|
|
428
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
429
|
-
"x-workspace-id": xWorkspaceId
|
|
430
|
-
})
|
|
431
|
-
})));
|
|
432
|
-
}
|
|
433
373
|
/**
|
|
434
374
|
* List actions from studio by filters
|
|
435
375
|
*/
|
|
@@ -497,30 +437,6 @@ export function createStack({ userAgent, createStackRequest }, opts) {
|
|
|
497
437
|
})
|
|
498
438
|
})));
|
|
499
439
|
}
|
|
500
|
-
/**
|
|
501
|
-
* List stack versions
|
|
502
|
-
*/
|
|
503
|
-
export function listStackVersions({ stackId, xWorkspaceId, startersOnly, infraOnly, workspaceId }, opts) {
|
|
504
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions${QS.query(QS.explode({
|
|
505
|
-
startersOnly,
|
|
506
|
-
infraOnly,
|
|
507
|
-
workspaceId
|
|
508
|
-
}))}`, {
|
|
509
|
-
...opts,
|
|
510
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
511
|
-
"x-workspace-id": xWorkspaceId
|
|
512
|
-
})
|
|
513
|
-
}));
|
|
514
|
-
}
|
|
515
|
-
/**
|
|
516
|
-
* Create new stack version
|
|
517
|
-
*/
|
|
518
|
-
export function createStackVersion1({ stackId }, opts) {
|
|
519
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions`, {
|
|
520
|
-
...opts,
|
|
521
|
-
method: "POST"
|
|
522
|
-
}));
|
|
523
|
-
}
|
|
524
440
|
/**
|
|
525
441
|
* Create association between a Stack Version and a Workspace
|
|
526
442
|
*/
|
|
@@ -597,18 +513,6 @@ export function listStartersWithFilter({ stackVersionId, xWorkspaceId, pageable,
|
|
|
597
513
|
})
|
|
598
514
|
})));
|
|
599
515
|
}
|
|
600
|
-
/**
|
|
601
|
-
* Publish a stack
|
|
602
|
-
*/
|
|
603
|
-
export function publish1({ stackVersionId, userAgent }, opts) {
|
|
604
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/publish`, {
|
|
605
|
-
...opts,
|
|
606
|
-
method: "POST",
|
|
607
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
608
|
-
"User-Agent": userAgent
|
|
609
|
-
})
|
|
610
|
-
}));
|
|
611
|
-
}
|
|
612
516
|
/**
|
|
613
517
|
* Deprecate plugin used by stack
|
|
614
518
|
*/
|
|
@@ -662,6 +566,27 @@ export function deprecateStackVersionBy({ stackVersionId, deprecateContentReques
|
|
|
662
566
|
body: deprecateContentRequest
|
|
663
567
|
})));
|
|
664
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Get suggestion of connections interfaces
|
|
571
|
+
*/
|
|
572
|
+
export function getConnectionInterfaceSuggestion({ stackVersionId, xWorkspaceId }, opts) {
|
|
573
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, {
|
|
574
|
+
...opts,
|
|
575
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
576
|
+
"x-workspace-id": xWorkspaceId
|
|
577
|
+
})
|
|
578
|
+
}));
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Create suggestion of connections interfaces
|
|
582
|
+
*/
|
|
583
|
+
export function createConnectionInterfaceSuggestion({ stackVersionId, createConnectionInterfaceSuggestionRequest }, opts) {
|
|
584
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, oazapfts.json({
|
|
585
|
+
...opts,
|
|
586
|
+
method: "POST",
|
|
587
|
+
body: createConnectionInterfaceSuggestionRequest
|
|
588
|
+
})));
|
|
589
|
+
}
|
|
665
590
|
/**
|
|
666
591
|
* Deprecate an action used by stack
|
|
667
592
|
*/
|
|
@@ -900,15 +825,6 @@ export function updateConnectionInterfaceType({ connectionInterfaceTypeId, updat
|
|
|
900
825
|
body: updateConnectionInterfaceTypeRequest
|
|
901
826
|
})));
|
|
902
827
|
}
|
|
903
|
-
/**
|
|
904
|
-
* Archive a workflow version
|
|
905
|
-
*/
|
|
906
|
-
export function archiveWorkflowVersion({ workflowVersionId }, opts) {
|
|
907
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/archive`, {
|
|
908
|
-
...opts,
|
|
909
|
-
method: "PATCH"
|
|
910
|
-
}));
|
|
911
|
-
}
|
|
912
828
|
/**
|
|
913
829
|
* Change the visibility of given studio
|
|
914
830
|
*/
|
|
@@ -1052,15 +968,6 @@ export function archiveStackVersion({ stackVersionId }, opts) {
|
|
|
1052
968
|
method: "PATCH"
|
|
1053
969
|
}));
|
|
1054
970
|
}
|
|
1055
|
-
/**
|
|
1056
|
-
* Archive a plugin version
|
|
1057
|
-
*/
|
|
1058
|
-
export function archivePluginVersion({ pluginVersionId }, opts) {
|
|
1059
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/archive`, {
|
|
1060
|
-
...opts,
|
|
1061
|
-
method: "PATCH"
|
|
1062
|
-
}));
|
|
1063
|
-
}
|
|
1064
971
|
/**
|
|
1065
972
|
* Get a documentation
|
|
1066
973
|
*/
|
|
@@ -1102,15 +1009,6 @@ export function updateConnectionInterfaceType1({ connectionInterfaceTypeId, upda
|
|
|
1102
1009
|
body: updateConnectionInterfaceTypeRequest
|
|
1103
1010
|
})));
|
|
1104
1011
|
}
|
|
1105
|
-
/**
|
|
1106
|
-
* Archive an action version
|
|
1107
|
-
*/
|
|
1108
|
-
export function archiveActionVersion({ actionVersionId }, opts) {
|
|
1109
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/archive`, {
|
|
1110
|
-
...opts,
|
|
1111
|
-
method: "PATCH"
|
|
1112
|
-
}));
|
|
1113
|
-
}
|
|
1114
1012
|
/**
|
|
1115
1013
|
* Archive Deprecated Stacks Versions from Account
|
|
1116
1014
|
*/
|
|
@@ -1145,30 +1043,6 @@ export function listStacks({ isAccountHolder, view, filter, page, size, sort, di
|
|
|
1145
1043
|
...opts
|
|
1146
1044
|
}));
|
|
1147
1045
|
}
|
|
1148
|
-
/**
|
|
1149
|
-
* List plugins version with pagination
|
|
1150
|
-
*/
|
|
1151
|
-
export function listPluginsV3({ studioSlug, pluginVersionId, $type, technologies, status, filter, starterType, accountOnly, xWorkspaceId, page, size, sort, direction }, opts) {
|
|
1152
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v3/plugins${QS.query(QS.explode({
|
|
1153
|
-
studioSlug,
|
|
1154
|
-
pluginVersionId,
|
|
1155
|
-
"type": $type,
|
|
1156
|
-
technologies,
|
|
1157
|
-
status,
|
|
1158
|
-
filter,
|
|
1159
|
-
starterType,
|
|
1160
|
-
accountOnly,
|
|
1161
|
-
page,
|
|
1162
|
-
size,
|
|
1163
|
-
sort,
|
|
1164
|
-
direction
|
|
1165
|
-
}))}`, {
|
|
1166
|
-
...opts,
|
|
1167
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1168
|
-
"x-workspace-id": xWorkspaceId
|
|
1169
|
-
})
|
|
1170
|
-
}));
|
|
1171
|
-
}
|
|
1172
1046
|
/**
|
|
1173
1047
|
* Find studios
|
|
1174
1048
|
*/
|
|
@@ -1234,19 +1108,6 @@ export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug,
|
|
|
1234
1108
|
...opts
|
|
1235
1109
|
}));
|
|
1236
1110
|
}
|
|
1237
|
-
/**
|
|
1238
|
-
* Download an action by version
|
|
1239
|
-
*/
|
|
1240
|
-
export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1241
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
|
|
1242
|
-
allowArchivedContent
|
|
1243
|
-
}))}`, {
|
|
1244
|
-
...opts,
|
|
1245
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1246
|
-
"x-workspace-id": xWorkspaceId
|
|
1247
|
-
})
|
|
1248
|
-
}));
|
|
1249
|
-
}
|
|
1250
1111
|
/**
|
|
1251
1112
|
* Get available action versions by action slug
|
|
1252
1113
|
*/
|
|
@@ -1320,13 +1181,12 @@ export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug },
|
|
|
1320
1181
|
/**
|
|
1321
1182
|
* List of actions
|
|
1322
1183
|
*/
|
|
1323
|
-
export function listActions({ studioSlug, actionSlug, requiresConnection, filter,
|
|
1184
|
+
export function listActions({ studioSlug, actionSlug, requiresConnection, filter, accountOnly, pageable }, opts) {
|
|
1324
1185
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/actions${QS.query(QS.explode({
|
|
1325
1186
|
studioSlug,
|
|
1326
1187
|
actionSlug,
|
|
1327
1188
|
requiresConnection,
|
|
1328
1189
|
filter,
|
|
1329
|
-
status,
|
|
1330
1190
|
accountOnly,
|
|
1331
1191
|
pageable
|
|
1332
1192
|
}))}`, {
|
|
@@ -1367,6 +1227,14 @@ export function validateUnpublishWorkflowVersion({ workflowVersionId }, opts) {
|
|
|
1367
1227
|
...opts
|
|
1368
1228
|
}));
|
|
1369
1229
|
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Get a workflow version portal extensions
|
|
1232
|
+
*/
|
|
1233
|
+
export function getWorkflowPortalExtensions({ workflowVersionId }, opts) {
|
|
1234
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/portal-extensions`, {
|
|
1235
|
+
...opts
|
|
1236
|
+
}));
|
|
1237
|
+
}
|
|
1370
1238
|
/**
|
|
1371
1239
|
* Get a workflow version yaml content
|
|
1372
1240
|
*/
|
|
@@ -1650,18 +1518,6 @@ export function getStackDoc({ studioSlug, documentationId, language, status }, o
|
|
|
1650
1518
|
...opts
|
|
1651
1519
|
}));
|
|
1652
1520
|
}
|
|
1653
|
-
/**
|
|
1654
|
-
* List plugins in the studio
|
|
1655
|
-
*/
|
|
1656
|
-
export function listPluginsAndVersionsInStudio({ studioSlug, status, displayName, pageable }, opts) {
|
|
1657
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins${QS.query(QS.explode({
|
|
1658
|
-
status,
|
|
1659
|
-
displayName,
|
|
1660
|
-
pageable
|
|
1661
|
-
}))}`, {
|
|
1662
|
-
...opts
|
|
1663
|
-
}));
|
|
1664
|
-
}
|
|
1665
1521
|
/**
|
|
1666
1522
|
* List all workflows that use a specific plugin
|
|
1667
1523
|
*/
|
|
@@ -1701,10 +1557,8 @@ export function getRequirements({ studioSlug, pluginSlug, version, xWorkspaceId
|
|
|
1701
1557
|
/**
|
|
1702
1558
|
* Download a plugin by version
|
|
1703
1559
|
*/
|
|
1704
|
-
export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId
|
|
1705
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download
|
|
1706
|
-
allowArchivedContent
|
|
1707
|
-
}))}`, {
|
|
1560
|
+
export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
|
|
1561
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download`, {
|
|
1708
1562
|
...opts,
|
|
1709
1563
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1710
1564
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1714,10 +1568,8 @@ export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId,
|
|
|
1714
1568
|
/**
|
|
1715
1569
|
* Download a plugin by version (base64 response version)
|
|
1716
1570
|
*/
|
|
1717
|
-
export function downloadPluginBase64({ studioSlug, pluginSlug, version, xWorkspaceId
|
|
1718
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64
|
|
1719
|
-
allowArchivedContent
|
|
1720
|
-
}))}`, {
|
|
1571
|
+
export function downloadPluginBase64({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
|
|
1572
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
|
|
1721
1573
|
...opts,
|
|
1722
1574
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1723
1575
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1804,6 +1656,18 @@ export function getInfrastructureEnvironmentsUsesPlugin({ studioSlug, pluginSlug
|
|
|
1804
1656
|
...opts
|
|
1805
1657
|
}));
|
|
1806
1658
|
}
|
|
1659
|
+
/**
|
|
1660
|
+
* Get available plugin versions by plugin slug
|
|
1661
|
+
*/
|
|
1662
|
+
export function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }, opts) {
|
|
1663
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
|
|
1664
|
+
"x-workspace-id": xWorkspaceId,
|
|
1665
|
+
range,
|
|
1666
|
+
appAllowed
|
|
1667
|
+
}))}`, {
|
|
1668
|
+
...opts
|
|
1669
|
+
}));
|
|
1670
|
+
}
|
|
1807
1671
|
/**
|
|
1808
1672
|
* List all plugin view of usage insights
|
|
1809
1673
|
*/
|
|
@@ -1889,18 +1753,6 @@ export function getPluginDoc({ studioSlug, documentationId, language, status },
|
|
|
1889
1753
|
...opts
|
|
1890
1754
|
}));
|
|
1891
1755
|
}
|
|
1892
|
-
/**
|
|
1893
|
-
* List actions in studio and its versions with archived information
|
|
1894
|
-
*/
|
|
1895
|
-
export function listActionsAndVersionsInStudio({ studioSlug, status, displayName, pageable }, opts) {
|
|
1896
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions${QS.query(QS.explode({
|
|
1897
|
-
status,
|
|
1898
|
-
displayName,
|
|
1899
|
-
pageable
|
|
1900
|
-
}))}`, {
|
|
1901
|
-
...opts
|
|
1902
|
-
}));
|
|
1903
|
-
}
|
|
1904
1756
|
/**
|
|
1905
1757
|
* List all action versions
|
|
1906
1758
|
*/
|
|
@@ -1918,10 +1770,8 @@ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspac
|
|
|
1918
1770
|
/**
|
|
1919
1771
|
* Download an action by version
|
|
1920
1772
|
*/
|
|
1921
|
-
export function
|
|
1922
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download
|
|
1923
|
-
allowArchivedContent
|
|
1924
|
-
}))}`, {
|
|
1773
|
+
export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
1774
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download`, {
|
|
1925
1775
|
...opts,
|
|
1926
1776
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1927
1777
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1931,16 +1781,26 @@ export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId,
|
|
|
1931
1781
|
/**
|
|
1932
1782
|
* Download an action by version
|
|
1933
1783
|
*/
|
|
1934
|
-
export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspaceId
|
|
1935
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download/base64
|
|
1936
|
-
allowArchivedContent
|
|
1937
|
-
}))}`, {
|
|
1784
|
+
export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
1785
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
|
|
1938
1786
|
...opts,
|
|
1939
1787
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1940
1788
|
"x-workspace-id": xWorkspaceId
|
|
1941
1789
|
})
|
|
1942
1790
|
}));
|
|
1943
1791
|
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Get available action versions by action slug
|
|
1794
|
+
*/
|
|
1795
|
+
export function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }, opts) {
|
|
1796
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
|
|
1797
|
+
"x-workspace-id": xWorkspaceId,
|
|
1798
|
+
range,
|
|
1799
|
+
requiresConnection
|
|
1800
|
+
}))}`, {
|
|
1801
|
+
...opts
|
|
1802
|
+
}));
|
|
1803
|
+
}
|
|
1944
1804
|
/**
|
|
1945
1805
|
* Get an action documentation
|
|
1946
1806
|
*/
|
|
@@ -1970,6 +1830,21 @@ export function getStudiosToCreateButton(opts) {
|
|
|
1970
1830
|
...opts
|
|
1971
1831
|
}));
|
|
1972
1832
|
}
|
|
1833
|
+
/**
|
|
1834
|
+
* List stack versions
|
|
1835
|
+
*/
|
|
1836
|
+
export function listStackVersions({ stackId, xWorkspaceId, startersOnly, infraOnly, workspaceId }, opts) {
|
|
1837
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions${QS.query(QS.explode({
|
|
1838
|
+
startersOnly,
|
|
1839
|
+
infraOnly,
|
|
1840
|
+
workspaceId
|
|
1841
|
+
}))}`, {
|
|
1842
|
+
...opts,
|
|
1843
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1844
|
+
"x-workspace-id": xWorkspaceId
|
|
1845
|
+
})
|
|
1846
|
+
}));
|
|
1847
|
+
}
|
|
1973
1848
|
/**
|
|
1974
1849
|
* Get a stack version list from its ids
|
|
1975
1850
|
*/
|
|
@@ -2094,17 +1969,6 @@ export function stackVersionContents({ stackVersionId, accountId }, opts) {
|
|
|
2094
1969
|
})
|
|
2095
1970
|
}));
|
|
2096
1971
|
}
|
|
2097
|
-
/**
|
|
2098
|
-
* Get suggestion of connections interfaces
|
|
2099
|
-
*/
|
|
2100
|
-
export function getConnectionInterfaceSuggestion({ stackVersionId, xWorkspaceId }, opts) {
|
|
2101
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, {
|
|
2102
|
-
...opts,
|
|
2103
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2104
|
-
"x-workspace-id": xWorkspaceId
|
|
2105
|
-
})
|
|
2106
|
-
}));
|
|
2107
|
-
}
|
|
2108
1972
|
/**
|
|
2109
1973
|
* List all action versions from a stack version
|
|
2110
1974
|
*/
|
|
@@ -2384,10 +2248,8 @@ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, sta
|
|
|
2384
2248
|
/**
|
|
2385
2249
|
* Download an action by version
|
|
2386
2250
|
*/
|
|
2387
|
-
export function
|
|
2388
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download
|
|
2389
|
-
allowArchivedContent
|
|
2390
|
-
}))}`, {
|
|
2251
|
+
export function downloadAction1({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
2252
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download`, {
|
|
2391
2253
|
...opts,
|
|
2392
2254
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2393
2255
|
"x-workspace-id": xWorkspaceId
|