@stack-spot/portal-network 0.122.0 → 0.122.1
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 +7 -0
- package/dist/api/content.d.ts +605 -145
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +257 -37
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +75 -6
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +65 -1
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +1113 -182
- package/src/client/content.ts +44 -0
package/dist/api/content.js
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://content-content-api.
|
|
11
|
+
baseUrl: "https://content-content-api.dev.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://content-content-api.
|
|
15
|
+
generatedServerUrl: "https://content-content-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Update Workflow Documentation
|
|
@@ -152,6 +152,16 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
|
|
|
152
152
|
body: createConnectionInterfaceTypeRequest
|
|
153
153
|
})));
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Filter actions versions by ids
|
|
157
|
+
*/
|
|
158
|
+
export function getActionsVersionsByIds({ listActionVersionByIdsRequest }, opts) {
|
|
159
|
+
return oazapfts.ok(oazapfts.fetchJson("/v2/actions/versions", oazapfts.json({
|
|
160
|
+
...opts,
|
|
161
|
+
method: "POST",
|
|
162
|
+
body: listActionVersionByIdsRequest
|
|
163
|
+
})));
|
|
164
|
+
}
|
|
155
165
|
/**
|
|
156
166
|
* List workflows by version ids
|
|
157
167
|
*/
|
|
@@ -190,11 +200,9 @@ export function validateWorkflow({ studioSlug, body }, opts) {
|
|
|
190
200
|
/**
|
|
191
201
|
* Find studios
|
|
192
202
|
*/
|
|
193
|
-
export function getStudios1({ xWorkspaceId,
|
|
203
|
+
export function getStudios1({ xWorkspaceId, filter }, opts) {
|
|
194
204
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios${QS.query(QS.explode({
|
|
195
|
-
|
|
196
|
-
filter,
|
|
197
|
-
isAccountHolder
|
|
205
|
+
filter
|
|
198
206
|
}))}`, {
|
|
199
207
|
...opts,
|
|
200
208
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -516,11 +524,12 @@ export function createStackVersion1({ stackId }, opts) {
|
|
|
516
524
|
/**
|
|
517
525
|
* Create association between a Stack Version and a Workspace
|
|
518
526
|
*/
|
|
519
|
-
export function addStackWorkspace({ stackVersionId, workspaceId, accountId }, opts) {
|
|
527
|
+
export function addStackWorkspace({ stackVersionId, workspaceId, accountIdHeader, accountId }, opts) {
|
|
520
528
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspace/${encodeURIComponent(workspaceId)}`, {
|
|
521
529
|
...opts,
|
|
522
530
|
method: "POST",
|
|
523
531
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
532
|
+
"Account-Id": accountIdHeader,
|
|
524
533
|
accountId
|
|
525
534
|
})
|
|
526
535
|
}));
|
|
@@ -528,10 +537,13 @@ export function addStackWorkspace({ stackVersionId, workspaceId, accountId }, op
|
|
|
528
537
|
/**
|
|
529
538
|
* Remove association between a Stack Version and a Workspace
|
|
530
539
|
*/
|
|
531
|
-
export function removeStackWorkspace({ stackVersionId, workspaceId }, opts) {
|
|
540
|
+
export function removeStackWorkspace({ stackVersionId, workspaceId, accountId }, opts) {
|
|
532
541
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspace/${encodeURIComponent(workspaceId)}`, {
|
|
533
542
|
...opts,
|
|
534
|
-
method: "DELETE"
|
|
543
|
+
method: "DELETE",
|
|
544
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
545
|
+
"Account-Id": accountId
|
|
546
|
+
})
|
|
535
547
|
}));
|
|
536
548
|
}
|
|
537
549
|
/**
|
|
@@ -675,6 +687,19 @@ export function listActionsByFilters1({ xWorkspaceId, stackVersionId, pageable,
|
|
|
675
687
|
})
|
|
676
688
|
})));
|
|
677
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* List StackVersions with their associated WorkflowVersions
|
|
692
|
+
*/
|
|
693
|
+
export function listStackVersionWorkflows({ xWorkspaceId, stackVersionsWorkflowsRequest }, opts) {
|
|
694
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/stacks/versions/workflows", oazapfts.json({
|
|
695
|
+
...opts,
|
|
696
|
+
method: "POST",
|
|
697
|
+
body: stackVersionsWorkflowsRequest,
|
|
698
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
699
|
+
"x-workspace-id": xWorkspaceId
|
|
700
|
+
})
|
|
701
|
+
})));
|
|
702
|
+
}
|
|
678
703
|
/**
|
|
679
704
|
* Find a list of stack versions from filters
|
|
680
705
|
*/
|
|
@@ -812,11 +837,14 @@ export function createConnectionInterfaceType1({ createConnectionInterfaceTypeRe
|
|
|
812
837
|
/**
|
|
813
838
|
* Validate Connection Interface Type Object Output Schema
|
|
814
839
|
*/
|
|
815
|
-
export function validateConnectionInterfaceTypeObjectOutputSchema({ connectionInterfaceTypeIdOrSlug, outputId, validateConnectionInterfaceTypeSchemaRequest }, opts) {
|
|
840
|
+
export function validateConnectionInterfaceTypeObjectOutputSchema({ connectionInterfaceTypeIdOrSlug, outputId, accountId, validateConnectionInterfaceTypeSchemaRequest }, opts) {
|
|
816
841
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}/outputs/${encodeURIComponent(outputId)}/validate`, oazapfts.json({
|
|
817
842
|
...opts,
|
|
818
843
|
method: "POST",
|
|
819
|
-
body: validateConnectionInterfaceTypeSchemaRequest
|
|
844
|
+
body: validateConnectionInterfaceTypeSchemaRequest,
|
|
845
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
846
|
+
"Account-Id": accountId
|
|
847
|
+
})
|
|
820
848
|
})));
|
|
821
849
|
}
|
|
822
850
|
/**
|
|
@@ -954,6 +982,15 @@ export function updateStudio({ studioId, updateStudioRequest }, opts) {
|
|
|
954
982
|
body: updateStudioRequest
|
|
955
983
|
})));
|
|
956
984
|
}
|
|
985
|
+
/**
|
|
986
|
+
* Updates studio to public
|
|
987
|
+
*/
|
|
988
|
+
export function updateStudioPublicStatus({ studioId }, opts) {
|
|
989
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/public-status`, {
|
|
990
|
+
...opts,
|
|
991
|
+
method: "PATCH"
|
|
992
|
+
}));
|
|
993
|
+
}
|
|
957
994
|
/**
|
|
958
995
|
* get stack
|
|
959
996
|
*/
|
|
@@ -1005,6 +1042,15 @@ export function archiveStackVersion({ stackVersionId }, opts) {
|
|
|
1005
1042
|
method: "PATCH"
|
|
1006
1043
|
}));
|
|
1007
1044
|
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Archive a plugin version
|
|
1047
|
+
*/
|
|
1048
|
+
export function archivePluginVersion({ pluginVersionId }, opts) {
|
|
1049
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/archive`, {
|
|
1050
|
+
...opts,
|
|
1051
|
+
method: "PATCH"
|
|
1052
|
+
}));
|
|
1053
|
+
}
|
|
1008
1054
|
/**
|
|
1009
1055
|
* Get a documentation
|
|
1010
1056
|
*/
|
|
@@ -1046,6 +1092,33 @@ export function updateConnectionInterfaceType1({ connectionInterfaceTypeId, upda
|
|
|
1046
1092
|
body: updateConnectionInterfaceTypeRequest
|
|
1047
1093
|
})));
|
|
1048
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Archive an action version
|
|
1097
|
+
*/
|
|
1098
|
+
export function archiveActionVersion({ actionVersionId }, opts) {
|
|
1099
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/archive`, {
|
|
1100
|
+
...opts,
|
|
1101
|
+
method: "PATCH"
|
|
1102
|
+
}));
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Archive Deprecated Stacks Versions from Account
|
|
1106
|
+
*/
|
|
1107
|
+
export function archiveDeprecatedStacksVersions({ accountSlug }, opts) {
|
|
1108
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/stacks`, {
|
|
1109
|
+
...opts,
|
|
1110
|
+
method: "PATCH"
|
|
1111
|
+
}));
|
|
1112
|
+
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Allow account to access public contents
|
|
1115
|
+
*/
|
|
1116
|
+
export function enablePublicContentAccess(opts) {
|
|
1117
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/public-content-access", {
|
|
1118
|
+
...opts,
|
|
1119
|
+
method: "PATCH"
|
|
1120
|
+
}));
|
|
1121
|
+
}
|
|
1049
1122
|
/**
|
|
1050
1123
|
* List stacks from the account
|
|
1051
1124
|
*/
|
|
@@ -1062,15 +1135,37 @@ export function listStacks({ isAccountHolder, view, filter, page, size, sort, di
|
|
|
1062
1135
|
...opts
|
|
1063
1136
|
}));
|
|
1064
1137
|
}
|
|
1138
|
+
/**
|
|
1139
|
+
* List plugins version with pagination
|
|
1140
|
+
*/
|
|
1141
|
+
export function listPluginsV3({ studioSlug, pluginVersionId, $type, technologies, status, filter, starterType, accountOnly, xWorkspaceId, page, size, sort, direction }, opts) {
|
|
1142
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v3/plugins${QS.query(QS.explode({
|
|
1143
|
+
studioSlug,
|
|
1144
|
+
pluginVersionId,
|
|
1145
|
+
"type": $type,
|
|
1146
|
+
technologies,
|
|
1147
|
+
status,
|
|
1148
|
+
filter,
|
|
1149
|
+
starterType,
|
|
1150
|
+
accountOnly,
|
|
1151
|
+
page,
|
|
1152
|
+
size,
|
|
1153
|
+
sort,
|
|
1154
|
+
direction
|
|
1155
|
+
}))}`, {
|
|
1156
|
+
...opts,
|
|
1157
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1158
|
+
"x-workspace-id": xWorkspaceId
|
|
1159
|
+
})
|
|
1160
|
+
}));
|
|
1161
|
+
}
|
|
1065
1162
|
/**
|
|
1066
1163
|
* Find studios
|
|
1067
1164
|
*/
|
|
1068
|
-
export function getStudios({ xWorkspaceId, authorization,
|
|
1165
|
+
export function getStudios({ xWorkspaceId, authorization, filter, view, startersOnly, infraOnly, workspaceId, pageable }, opts) {
|
|
1069
1166
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/studios${QS.query(QS.explode({
|
|
1070
|
-
aclOnly,
|
|
1071
1167
|
filter,
|
|
1072
1168
|
view,
|
|
1073
|
-
isAccountHolder,
|
|
1074
1169
|
startersOnly,
|
|
1075
1170
|
infraOnly,
|
|
1076
1171
|
workspaceId,
|
|
@@ -1131,8 +1226,10 @@ export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug,
|
|
|
1131
1226
|
/**
|
|
1132
1227
|
* Download an action by version
|
|
1133
1228
|
*/
|
|
1134
|
-
export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
1135
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download
|
|
1229
|
+
export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1230
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
|
|
1231
|
+
allowArchivedContent
|
|
1232
|
+
}))}`, {
|
|
1136
1233
|
...opts,
|
|
1137
1234
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1138
1235
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1204,20 +1301,24 @@ export function getInputs({ pluginVersionId, xWorkspaceId }, opts) {
|
|
|
1204
1301
|
/**
|
|
1205
1302
|
* Get Connection Interface Type by Id
|
|
1206
1303
|
*/
|
|
1207
|
-
export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug }, opts) {
|
|
1304
|
+
export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug, accountId }, opts) {
|
|
1208
1305
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}`, {
|
|
1209
|
-
...opts
|
|
1306
|
+
...opts,
|
|
1307
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1308
|
+
"Account-Id": accountId
|
|
1309
|
+
})
|
|
1210
1310
|
}));
|
|
1211
1311
|
}
|
|
1212
1312
|
/**
|
|
1213
1313
|
* List of actions
|
|
1214
1314
|
*/
|
|
1215
|
-
export function listActions({ studioSlug, actionSlug, requiresConnection, filter, accountOnly, pageable }, opts) {
|
|
1315
|
+
export function listActions({ studioSlug, actionSlug, requiresConnection, filter, status, accountOnly, pageable }, opts) {
|
|
1216
1316
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/actions${QS.query(QS.explode({
|
|
1217
1317
|
studioSlug,
|
|
1218
1318
|
actionSlug,
|
|
1219
1319
|
requiresConnection,
|
|
1220
1320
|
filter,
|
|
1321
|
+
status,
|
|
1221
1322
|
accountOnly,
|
|
1222
1323
|
pageable
|
|
1223
1324
|
}))}`, {
|
|
@@ -1227,12 +1328,13 @@ export function listActions({ studioSlug, actionSlug, requiresConnection, filter
|
|
|
1227
1328
|
/**
|
|
1228
1329
|
* List inputs of an action version
|
|
1229
1330
|
*/
|
|
1230
|
-
export function listInputs({ actionVersionId, xWorkspaceId, accountId }, opts) {
|
|
1331
|
+
export function listInputs({ actionVersionId, xWorkspaceId, accountId, accountIdHeader }, opts) {
|
|
1231
1332
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/actions/versions/${encodeURIComponent(actionVersionId)}/inputs`, {
|
|
1232
1333
|
...opts,
|
|
1233
1334
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1234
1335
|
"x-workspace-id": xWorkspaceId,
|
|
1235
|
-
"
|
|
1336
|
+
"Account-Id": accountId,
|
|
1337
|
+
"account-id": accountIdHeader
|
|
1236
1338
|
})
|
|
1237
1339
|
}));
|
|
1238
1340
|
}
|
|
@@ -1292,6 +1394,29 @@ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName,
|
|
|
1292
1394
|
...opts
|
|
1293
1395
|
}));
|
|
1294
1396
|
}
|
|
1397
|
+
/**
|
|
1398
|
+
* List all workflow view of usage insights
|
|
1399
|
+
*/
|
|
1400
|
+
export function getWorkflowUsageOfWorkflow({ page, size, studioSlug, workflowSlug, filter, $type }, opts) {
|
|
1401
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/workflows${QS.query(QS.explode({
|
|
1402
|
+
page,
|
|
1403
|
+
size,
|
|
1404
|
+
filter,
|
|
1405
|
+
"type": $type
|
|
1406
|
+
}))}`, {
|
|
1407
|
+
...opts
|
|
1408
|
+
}));
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Get workflow versions that depend on a workflow
|
|
1412
|
+
*/
|
|
1413
|
+
export function getDependentWorkflowVersions({ studioSlug, workflowSlug, workflowId, pageable }, opts) {
|
|
1414
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/workflow/${encodeURIComponent(workflowId)}/workflow-versions${QS.query(QS.explode({
|
|
1415
|
+
pageable
|
|
1416
|
+
}))}`, {
|
|
1417
|
+
...opts
|
|
1418
|
+
}));
|
|
1419
|
+
}
|
|
1295
1420
|
/**
|
|
1296
1421
|
* List all workflow versions
|
|
1297
1422
|
*/
|
|
@@ -1341,6 +1466,28 @@ export function getWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId },
|
|
|
1341
1466
|
})
|
|
1342
1467
|
}));
|
|
1343
1468
|
}
|
|
1469
|
+
/**
|
|
1470
|
+
* List all Stacks that uses a given workflow
|
|
1471
|
+
*/
|
|
1472
|
+
export function getStackUsesWorkflow({ studioSlug, workflowSlug, filter, pageable }, opts) {
|
|
1473
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/stacks${QS.query(QS.explode({
|
|
1474
|
+
filter,
|
|
1475
|
+
pageable
|
|
1476
|
+
}))}`, {
|
|
1477
|
+
...opts
|
|
1478
|
+
}));
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Get workflow versions by stack
|
|
1482
|
+
*/
|
|
1483
|
+
export function getWorkflowStackUsage({ page, size, studioSlug, workflowSlug, stackId }, opts) {
|
|
1484
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/stack/${encodeURIComponent(stackId)}/workflow-versions${QS.query(QS.explode({
|
|
1485
|
+
page,
|
|
1486
|
+
size
|
|
1487
|
+
}))}`, {
|
|
1488
|
+
...opts
|
|
1489
|
+
}));
|
|
1490
|
+
}
|
|
1344
1491
|
/**
|
|
1345
1492
|
* Get available workflow versions by workflow slug
|
|
1346
1493
|
*/
|
|
@@ -1353,6 +1500,29 @@ export function getAvailableWorkflowVersionsByWorkflowSlug({ studioSlug, workflo
|
|
|
1353
1500
|
...opts
|
|
1354
1501
|
}));
|
|
1355
1502
|
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Get workflow versions by plugin
|
|
1505
|
+
*/
|
|
1506
|
+
export function getWorkflowPluginUsage({ page, size, sort, direction, studioSlug, workflowSlug, pluginId }, opts) {
|
|
1507
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/plugin/${encodeURIComponent(pluginId)}/workflow-versions${QS.query(QS.explode({
|
|
1508
|
+
page,
|
|
1509
|
+
size,
|
|
1510
|
+
sort,
|
|
1511
|
+
direction
|
|
1512
|
+
}))}`, {
|
|
1513
|
+
...opts
|
|
1514
|
+
}));
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Get workflow versions that are not in use
|
|
1518
|
+
*/
|
|
1519
|
+
export function getWorkflowVersionsNotInUse({ studioSlug, workflowSlug, pageable }, opts) {
|
|
1520
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/not-in-use${QS.query(QS.explode({
|
|
1521
|
+
pageable
|
|
1522
|
+
}))}`, {
|
|
1523
|
+
...opts
|
|
1524
|
+
}));
|
|
1525
|
+
}
|
|
1356
1526
|
/**
|
|
1357
1527
|
* Usage Summary of a given Workflow
|
|
1358
1528
|
*/
|
|
@@ -1460,6 +1630,30 @@ export function getStackDoc({ studioSlug, documentationId, language, status }, o
|
|
|
1460
1630
|
...opts
|
|
1461
1631
|
}));
|
|
1462
1632
|
}
|
|
1633
|
+
/**
|
|
1634
|
+
* List plugins in the studio
|
|
1635
|
+
*/
|
|
1636
|
+
export function listPluginsAndVersionsInStudio({ studioSlug, status, displayName, pageable }, opts) {
|
|
1637
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins${QS.query(QS.explode({
|
|
1638
|
+
status,
|
|
1639
|
+
displayName,
|
|
1640
|
+
pageable
|
|
1641
|
+
}))}`, {
|
|
1642
|
+
...opts
|
|
1643
|
+
}));
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* List all workflows that use a specific plugin
|
|
1647
|
+
*/
|
|
1648
|
+
export function getWorkflowsUsingPlugin({ studioSlug, pluginSlug, filter, $type, pageable }, opts) {
|
|
1649
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/workflows${QS.query(QS.explode({
|
|
1650
|
+
filter,
|
|
1651
|
+
"type": $type,
|
|
1652
|
+
pageable
|
|
1653
|
+
}))}`, {
|
|
1654
|
+
...opts
|
|
1655
|
+
}));
|
|
1656
|
+
}
|
|
1463
1657
|
/**
|
|
1464
1658
|
* List versions of a plugin
|
|
1465
1659
|
*/
|
|
@@ -1487,8 +1681,10 @@ export function getRequirements({ studioSlug, pluginSlug, version, xWorkspaceId
|
|
|
1487
1681
|
/**
|
|
1488
1682
|
* Download a plugin by version
|
|
1489
1683
|
*/
|
|
1490
|
-
export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
|
|
1491
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download
|
|
1684
|
+
export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1685
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
|
|
1686
|
+
allowArchivedContent
|
|
1687
|
+
}))}`, {
|
|
1492
1688
|
...opts,
|
|
1493
1689
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1494
1690
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1498,8 +1694,10 @@ export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId }
|
|
|
1498
1694
|
/**
|
|
1499
1695
|
* Download a plugin by version (base64 response version)
|
|
1500
1696
|
*/
|
|
1501
|
-
export function downloadPluginBase64({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
|
|
1502
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64
|
|
1697
|
+
export function downloadPluginBase64({ studioSlug, pluginSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1698
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64${QS.query(QS.explode({
|
|
1699
|
+
allowArchivedContent
|
|
1700
|
+
}))}`, {
|
|
1503
1701
|
...opts,
|
|
1504
1702
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1505
1703
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1671,6 +1869,18 @@ export function getPluginDoc({ studioSlug, documentationId, language, status },
|
|
|
1671
1869
|
...opts
|
|
1672
1870
|
}));
|
|
1673
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* List actions in studio and its versions with archived information
|
|
1874
|
+
*/
|
|
1875
|
+
export function listActionsAndVersionsInStudio({ studioSlug, status, displayName, pageable }, opts) {
|
|
1876
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions${QS.query(QS.explode({
|
|
1877
|
+
status,
|
|
1878
|
+
displayName,
|
|
1879
|
+
pageable
|
|
1880
|
+
}))}`, {
|
|
1881
|
+
...opts
|
|
1882
|
+
}));
|
|
1883
|
+
}
|
|
1674
1884
|
/**
|
|
1675
1885
|
* List all action versions
|
|
1676
1886
|
*/
|
|
@@ -1688,8 +1898,10 @@ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspac
|
|
|
1688
1898
|
/**
|
|
1689
1899
|
* Download an action by version
|
|
1690
1900
|
*/
|
|
1691
|
-
export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
1692
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download
|
|
1901
|
+
export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1902
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
|
|
1903
|
+
allowArchivedContent
|
|
1904
|
+
}))}`, {
|
|
1693
1905
|
...opts,
|
|
1694
1906
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1695
1907
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1699,8 +1911,10 @@ export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId
|
|
|
1699
1911
|
/**
|
|
1700
1912
|
* Download an action by version
|
|
1701
1913
|
*/
|
|
1702
|
-
export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
1703
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download/base64
|
|
1914
|
+
export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
1915
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download/base64${QS.query(QS.explode({
|
|
1916
|
+
allowArchivedContent
|
|
1917
|
+
}))}`, {
|
|
1704
1918
|
...opts,
|
|
1705
1919
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1706
1920
|
"x-workspace-id": xWorkspaceId
|
|
@@ -1931,11 +2145,12 @@ export function validatePluginVersion({ pluginVersionId }, opts) {
|
|
|
1931
2145
|
/**
|
|
1932
2146
|
* Get a plugin version yaml content
|
|
1933
2147
|
*/
|
|
1934
|
-
export function getPluginYamlContent({ pluginVersionId, xWorkspaceId }, opts) {
|
|
2148
|
+
export function getPluginYamlContent({ pluginVersionId, xWorkspaceId, accountId }, opts) {
|
|
1935
2149
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/manifest`, {
|
|
1936
2150
|
...opts,
|
|
1937
2151
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1938
|
-
"x-workspace-id": xWorkspaceId
|
|
2152
|
+
"x-workspace-id": xWorkspaceId,
|
|
2153
|
+
"Account-Id": accountId
|
|
1939
2154
|
})
|
|
1940
2155
|
}));
|
|
1941
2156
|
}
|
|
@@ -1961,10 +2176,11 @@ export function getPluginVersionUsageSummary({ pluginVersionId }, opts) {
|
|
|
1961
2176
|
/**
|
|
1962
2177
|
* Get Plugins Versions by require variable
|
|
1963
2178
|
*/
|
|
1964
|
-
export function getPluginVersionsByVariable({ variableName, accountId }, opts) {
|
|
2179
|
+
export function getPluginVersionsByVariable({ variableName, accountIdHeader, accountId }, opts) {
|
|
1965
2180
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/variables/${encodeURIComponent(variableName)}`, {
|
|
1966
2181
|
...opts,
|
|
1967
2182
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2183
|
+
"Account-Id": accountIdHeader,
|
|
1968
2184
|
accountId
|
|
1969
2185
|
})
|
|
1970
2186
|
}));
|
|
@@ -2091,22 +2307,24 @@ export function validateActionVersion({ actionVersionId }, opts) {
|
|
|
2091
2307
|
/**
|
|
2092
2308
|
* List inputs of an action version
|
|
2093
2309
|
*/
|
|
2094
|
-
export function getListOfInputs({ actionVersionId, xWorkspaceId, accountId }, opts) {
|
|
2310
|
+
export function getListOfInputs({ actionVersionId, xWorkspaceId, accountId, accountIdHeader }, opts) {
|
|
2095
2311
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/inputs`, {
|
|
2096
2312
|
...opts,
|
|
2097
2313
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2098
2314
|
"x-workspace-id": xWorkspaceId,
|
|
2099
|
-
"
|
|
2315
|
+
"Account-Id": accountId,
|
|
2316
|
+
"account-id": accountIdHeader
|
|
2100
2317
|
})
|
|
2101
2318
|
}));
|
|
2102
2319
|
}
|
|
2103
2320
|
/**
|
|
2104
2321
|
* Get Actions Versions by require variable
|
|
2105
2322
|
*/
|
|
2106
|
-
export function getActionVersionsByVariable({ variableName, accountId }, opts) {
|
|
2323
|
+
export function getActionVersionsByVariable({ variableName, accountIdHeader, accountId }, opts) {
|
|
2107
2324
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/variables/${encodeURIComponent(variableName)}`, {
|
|
2108
2325
|
...opts,
|
|
2109
2326
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2327
|
+
"Account-Id": accountIdHeader,
|
|
2110
2328
|
accountId
|
|
2111
2329
|
})
|
|
2112
2330
|
}));
|
|
@@ -2135,8 +2353,10 @@ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, sta
|
|
|
2135
2353
|
/**
|
|
2136
2354
|
* Download an action by version
|
|
2137
2355
|
*/
|
|
2138
|
-
export function downloadAction2({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId }, opts) {
|
|
2139
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download
|
|
2356
|
+
export function downloadAction2({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
|
|
2357
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
|
|
2358
|
+
allowArchivedContent
|
|
2359
|
+
}))}`, {
|
|
2140
2360
|
...opts,
|
|
2141
2361
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2142
2362
|
"x-workspace-id": xWorkspaceId
|