@stack-spot/portal-network 0.35.0 → 0.37.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 +15 -0
- package/dist/api/content.d.ts +103 -38
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +35 -21
- package/dist/api/content.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +74 -69
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +68 -68
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/client/content.d.ts +28 -0
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +29 -1
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +7 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +32 -23
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +169 -54
- package/src/api/workspaceManager.ts +82 -77
- package/src/client/content.ts +18 -2
- package/src/client/workspace-manager.ts +76 -71
package/src/api/content.ts
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: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://content-content-api.
|
|
11
|
+
baseUrl: "https://content-content-api.stg.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.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type ValidationDetails = {
|
|
18
18
|
code?: string;
|
|
@@ -358,14 +358,14 @@ export type SortObject = {
|
|
|
358
358
|
export type PageableObject = {
|
|
359
359
|
offset?: number;
|
|
360
360
|
sort?: SortObject[];
|
|
361
|
-
pageSize?: number;
|
|
362
|
-
pageNumber?: number;
|
|
363
361
|
paged?: boolean;
|
|
364
362
|
unpaged?: boolean;
|
|
363
|
+
pageSize?: number;
|
|
364
|
+
pageNumber?: number;
|
|
365
365
|
};
|
|
366
366
|
export type PageGetStackStudioResponse = {
|
|
367
|
-
totalElements?: number;
|
|
368
367
|
totalPages?: number;
|
|
368
|
+
totalElements?: number;
|
|
369
369
|
first?: boolean;
|
|
370
370
|
last?: boolean;
|
|
371
371
|
size?: number;
|
|
@@ -502,8 +502,8 @@ export type PluginVersionResponse = {
|
|
|
502
502
|
stkProjectsOnly: boolean;
|
|
503
503
|
};
|
|
504
504
|
export type PagePluginVersionResponse = {
|
|
505
|
-
totalElements?: number;
|
|
506
505
|
totalPages?: number;
|
|
506
|
+
totalElements?: number;
|
|
507
507
|
first?: boolean;
|
|
508
508
|
last?: boolean;
|
|
509
509
|
size?: number;
|
|
@@ -643,8 +643,8 @@ export type ActionResponse = {
|
|
|
643
643
|
hasRequiredConnection: boolean;
|
|
644
644
|
};
|
|
645
645
|
export type PageActionResponse = {
|
|
646
|
-
totalElements?: number;
|
|
647
646
|
totalPages?: number;
|
|
647
|
+
totalElements?: number;
|
|
648
648
|
first?: boolean;
|
|
649
649
|
last?: boolean;
|
|
650
650
|
size?: number;
|
|
@@ -704,8 +704,8 @@ export type FilterStarterRequest = {
|
|
|
704
704
|
"type"?: "INFRA" | "APP";
|
|
705
705
|
};
|
|
706
706
|
export type PageStarterResponseWithRange = {
|
|
707
|
-
totalElements?: number;
|
|
708
707
|
totalPages?: number;
|
|
708
|
+
totalElements?: number;
|
|
709
709
|
first?: boolean;
|
|
710
710
|
last?: boolean;
|
|
711
711
|
size?: number;
|
|
@@ -722,8 +722,8 @@ export type FilterStackVersionPluginRequest = {
|
|
|
722
722
|
text?: string;
|
|
723
723
|
};
|
|
724
724
|
export type PageStackPluginResponse = {
|
|
725
|
-
totalElements?: number;
|
|
726
725
|
totalPages?: number;
|
|
726
|
+
totalElements?: number;
|
|
727
727
|
first?: boolean;
|
|
728
728
|
last?: boolean;
|
|
729
729
|
size?: number;
|
|
@@ -821,8 +821,8 @@ export type FilterStackActionRequest = {
|
|
|
821
821
|
filter?: string;
|
|
822
822
|
};
|
|
823
823
|
export type PageGetStackActionResponse = {
|
|
824
|
-
totalElements?: number;
|
|
825
824
|
totalPages?: number;
|
|
825
|
+
totalElements?: number;
|
|
826
826
|
first?: boolean;
|
|
827
827
|
last?: boolean;
|
|
828
828
|
size?: number;
|
|
@@ -1004,8 +1004,8 @@ export type UpdateDocRequest = {
|
|
|
1004
1004
|
publish: boolean;
|
|
1005
1005
|
};
|
|
1006
1006
|
export type PageStudioResponse = {
|
|
1007
|
-
totalElements?: number;
|
|
1008
1007
|
totalPages?: number;
|
|
1008
|
+
totalElements?: number;
|
|
1009
1009
|
first?: boolean;
|
|
1010
1010
|
last?: boolean;
|
|
1011
1011
|
size?: number;
|
|
@@ -1031,8 +1031,8 @@ export type PluginVersionDto = {
|
|
|
1031
1031
|
governance?: GovernanceDto;
|
|
1032
1032
|
};
|
|
1033
1033
|
export type PagePluginVersionDto = {
|
|
1034
|
-
totalElements?: number;
|
|
1035
1034
|
totalPages?: number;
|
|
1035
|
+
totalElements?: number;
|
|
1036
1036
|
first?: boolean;
|
|
1037
1037
|
last?: boolean;
|
|
1038
1038
|
size?: number;
|
|
@@ -1058,8 +1058,8 @@ export type ActionVersionDto = {
|
|
|
1058
1058
|
governance?: GovernanceDto;
|
|
1059
1059
|
};
|
|
1060
1060
|
export type PageActionVersionDto = {
|
|
1061
|
-
totalElements?: number;
|
|
1062
1061
|
totalPages?: number;
|
|
1062
|
+
totalElements?: number;
|
|
1063
1063
|
first?: boolean;
|
|
1064
1064
|
last?: boolean;
|
|
1065
1065
|
size?: number;
|
|
@@ -1171,9 +1171,11 @@ export type GetWorkflowsByStudioLatestVersionDataResponse = {
|
|
|
1171
1171
|
id: string;
|
|
1172
1172
|
displayName: string;
|
|
1173
1173
|
label: string;
|
|
1174
|
+
description: string;
|
|
1174
1175
|
semanticVersion: string;
|
|
1175
1176
|
targetApp: boolean;
|
|
1176
1177
|
targetInfra: boolean;
|
|
1178
|
+
createdAt: string;
|
|
1177
1179
|
};
|
|
1178
1180
|
export type GetWorkflowsByStudioResponse = {
|
|
1179
1181
|
id: string;
|
|
@@ -1183,8 +1185,8 @@ export type GetWorkflowsByStudioResponse = {
|
|
|
1183
1185
|
latestVersion?: GetWorkflowsByStudioLatestVersionDataResponse;
|
|
1184
1186
|
};
|
|
1185
1187
|
export type PageGetWorkflowsByStudioResponse = {
|
|
1186
|
-
totalElements?: number;
|
|
1187
1188
|
totalPages?: number;
|
|
1189
|
+
totalElements?: number;
|
|
1188
1190
|
first?: boolean;
|
|
1189
1191
|
last?: boolean;
|
|
1190
1192
|
size?: number;
|
|
@@ -1200,13 +1202,63 @@ export type DownloadWorkflowBase64Response = {
|
|
|
1200
1202
|
file_name: string;
|
|
1201
1203
|
workflowVersionId: string;
|
|
1202
1204
|
};
|
|
1205
|
+
export type WorkflowStudioResponse = {
|
|
1206
|
+
slug: string;
|
|
1207
|
+
name: string;
|
|
1208
|
+
imageUrl?: string;
|
|
1209
|
+
description?: string;
|
|
1210
|
+
};
|
|
1211
|
+
export type GetWorkflowCommandResponse = {
|
|
1212
|
+
"default": string;
|
|
1213
|
+
workspace: string;
|
|
1214
|
+
};
|
|
1215
|
+
export type WorkflowVersionJobStepsResponse = {
|
|
1216
|
+
id: string;
|
|
1217
|
+
identifier: string;
|
|
1218
|
+
name: string;
|
|
1219
|
+
label?: string;
|
|
1220
|
+
ordination: number;
|
|
1221
|
+
optional: boolean;
|
|
1222
|
+
workdir?: string;
|
|
1223
|
+
"type": string;
|
|
1224
|
+
alias?: string;
|
|
1225
|
+
};
|
|
1226
|
+
export type WorkflowVersionJobsResponse = {
|
|
1227
|
+
id: string;
|
|
1228
|
+
identifier: string;
|
|
1229
|
+
label: string;
|
|
1230
|
+
ordination: number;
|
|
1231
|
+
optional: boolean;
|
|
1232
|
+
steps?: WorkflowVersionJobStepsResponse[];
|
|
1233
|
+
};
|
|
1234
|
+
export type GetWorkflowResponse = {
|
|
1235
|
+
id: string;
|
|
1236
|
+
studio: WorkflowStudioResponse;
|
|
1237
|
+
workflowVersionId: string;
|
|
1238
|
+
"type": string;
|
|
1239
|
+
version: string;
|
|
1240
|
+
slug: string;
|
|
1241
|
+
displayName?: string;
|
|
1242
|
+
description?: string;
|
|
1243
|
+
commands?: GetWorkflowCommandResponse;
|
|
1244
|
+
createdAt: string;
|
|
1245
|
+
createdBy: string;
|
|
1246
|
+
updatedAt?: string;
|
|
1247
|
+
qualifier: string;
|
|
1248
|
+
accountSlug?: string;
|
|
1249
|
+
studioSlug: string;
|
|
1250
|
+
status: string;
|
|
1251
|
+
isDocumented: boolean;
|
|
1252
|
+
documentation?: DocumentationContentResponse;
|
|
1253
|
+
jobs?: WorkflowVersionJobsResponse[];
|
|
1254
|
+
};
|
|
1203
1255
|
export type GetAvailableWorkflowVersionsResponse = {
|
|
1204
1256
|
workflowVersionId: string;
|
|
1205
1257
|
version: string;
|
|
1206
1258
|
};
|
|
1207
1259
|
export type PageGetAvailableWorkflowVersionsResponse = {
|
|
1208
|
-
totalElements?: number;
|
|
1209
1260
|
totalPages?: number;
|
|
1261
|
+
totalElements?: number;
|
|
1210
1262
|
first?: boolean;
|
|
1211
1263
|
last?: boolean;
|
|
1212
1264
|
size?: number;
|
|
@@ -1225,8 +1277,8 @@ export type StackWorkspaceViewResponse = {
|
|
|
1225
1277
|
totalLinkedVersions: number;
|
|
1226
1278
|
};
|
|
1227
1279
|
export type PageStackWorkspaceViewResponse = {
|
|
1228
|
-
totalElements?: number;
|
|
1229
1280
|
totalPages?: number;
|
|
1281
|
+
totalElements?: number;
|
|
1230
1282
|
first?: boolean;
|
|
1231
1283
|
last?: boolean;
|
|
1232
1284
|
size?: number;
|
|
@@ -1253,8 +1305,8 @@ export type StackWorkspaceDetailViewResponse = {
|
|
|
1253
1305
|
environment?: StackWorkspaceDetailViewEnvironmentResponse;
|
|
1254
1306
|
};
|
|
1255
1307
|
export type PageStackWorkspaceDetailViewResponse = {
|
|
1256
|
-
totalElements?: number;
|
|
1257
1308
|
totalPages?: number;
|
|
1309
|
+
totalElements?: number;
|
|
1258
1310
|
first?: boolean;
|
|
1259
1311
|
last?: boolean;
|
|
1260
1312
|
size?: number;
|
|
@@ -1272,8 +1324,8 @@ export type GetUnusedStackVersionsResponse = {
|
|
|
1272
1324
|
status?: string;
|
|
1273
1325
|
};
|
|
1274
1326
|
export type PageGetUnusedStackVersionsResponse = {
|
|
1275
|
-
totalElements?: number;
|
|
1276
1327
|
totalPages?: number;
|
|
1328
|
+
totalElements?: number;
|
|
1277
1329
|
first?: boolean;
|
|
1278
1330
|
last?: boolean;
|
|
1279
1331
|
size?: number;
|
|
@@ -1423,8 +1475,8 @@ export type PluginStarterResponse = {
|
|
|
1423
1475
|
stack: StackResponse;
|
|
1424
1476
|
};
|
|
1425
1477
|
export type PagePluginStarterResponse = {
|
|
1426
|
-
totalElements?: number;
|
|
1427
1478
|
totalPages?: number;
|
|
1479
|
+
totalElements?: number;
|
|
1428
1480
|
first?: boolean;
|
|
1429
1481
|
last?: boolean;
|
|
1430
1482
|
size?: number;
|
|
@@ -1449,8 +1501,8 @@ export type GetPluginStackStarterUsageResponse = {
|
|
|
1449
1501
|
pluginVersion: GetPluginStackStarterUsagePluginResponse;
|
|
1450
1502
|
};
|
|
1451
1503
|
export type PageGetPluginStackStarterUsageResponse = {
|
|
1452
|
-
totalElements?: number;
|
|
1453
1504
|
totalPages?: number;
|
|
1505
|
+
totalElements?: number;
|
|
1454
1506
|
first?: boolean;
|
|
1455
1507
|
last?: boolean;
|
|
1456
1508
|
size?: number;
|
|
@@ -1471,8 +1523,8 @@ export type PluginStacksResponse = {
|
|
|
1471
1523
|
studio: PluginStudioResponse;
|
|
1472
1524
|
};
|
|
1473
1525
|
export type PagePluginStacksResponse = {
|
|
1474
|
-
totalElements?: number;
|
|
1475
1526
|
totalPages?: number;
|
|
1527
|
+
totalElements?: number;
|
|
1476
1528
|
first?: boolean;
|
|
1477
1529
|
last?: boolean;
|
|
1478
1530
|
size?: number;
|
|
@@ -1497,8 +1549,8 @@ export type GetPluginStackUsageResponse = {
|
|
|
1497
1549
|
pluginVersion: GetPluginStackUsagePluginResponse;
|
|
1498
1550
|
};
|
|
1499
1551
|
export type PageGetPluginStackUsageResponse = {
|
|
1500
|
-
totalElements?: number;
|
|
1501
1552
|
totalPages?: number;
|
|
1553
|
+
totalElements?: number;
|
|
1502
1554
|
first?: boolean;
|
|
1503
1555
|
last?: boolean;
|
|
1504
1556
|
size?: number;
|
|
@@ -1523,8 +1575,8 @@ export type PluginInfrastructureViewResponse = {
|
|
|
1523
1575
|
workspace: PluginInfrastructureWorkspaceResponse;
|
|
1524
1576
|
};
|
|
1525
1577
|
export type PagePluginInfrastructureViewResponse = {
|
|
1526
|
-
totalElements?: number;
|
|
1527
1578
|
totalPages?: number;
|
|
1579
|
+
totalElements?: number;
|
|
1528
1580
|
first?: boolean;
|
|
1529
1581
|
last?: boolean;
|
|
1530
1582
|
size?: number;
|
|
@@ -1549,8 +1601,8 @@ export type InfrastructureEnvironmentsUsesPluginResponse = {
|
|
|
1549
1601
|
pluginVersion: GetInfrastructureEnvironmentsUsagePluginVersionResponse;
|
|
1550
1602
|
};
|
|
1551
1603
|
export type PageInfrastructureEnvironmentsUsesPluginResponse = {
|
|
1552
|
-
totalElements?: number;
|
|
1553
1604
|
totalPages?: number;
|
|
1605
|
+
totalElements?: number;
|
|
1554
1606
|
first?: boolean;
|
|
1555
1607
|
last?: boolean;
|
|
1556
1608
|
size?: number;
|
|
@@ -1569,8 +1621,8 @@ export type PluginViewUsageMonitorResponse = {
|
|
|
1569
1621
|
studio: PluginStudioResponse;
|
|
1570
1622
|
};
|
|
1571
1623
|
export type PagePluginViewUsageMonitorResponse = {
|
|
1572
|
-
totalElements?: number;
|
|
1573
1624
|
totalPages?: number;
|
|
1625
|
+
totalElements?: number;
|
|
1574
1626
|
first?: boolean;
|
|
1575
1627
|
last?: boolean;
|
|
1576
1628
|
size?: number;
|
|
@@ -1590,8 +1642,8 @@ export type GetDependentPluginsVersionsResponse = {
|
|
|
1590
1642
|
pluginVersion: DependentPluginVersionResponse;
|
|
1591
1643
|
};
|
|
1592
1644
|
export type PageGetDependentPluginsVersionsResponse = {
|
|
1593
|
-
totalElements?: number;
|
|
1594
1645
|
totalPages?: number;
|
|
1646
|
+
totalElements?: number;
|
|
1595
1647
|
first?: boolean;
|
|
1596
1648
|
last?: boolean;
|
|
1597
1649
|
size?: number;
|
|
@@ -1608,8 +1660,8 @@ export type GetPluginVersionsNotInUseResponse = {
|
|
|
1608
1660
|
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1609
1661
|
};
|
|
1610
1662
|
export type PageGetPluginVersionsNotInUseResponse = {
|
|
1611
|
-
totalElements?: number;
|
|
1612
1663
|
totalPages?: number;
|
|
1664
|
+
totalElements?: number;
|
|
1613
1665
|
first?: boolean;
|
|
1614
1666
|
last?: boolean;
|
|
1615
1667
|
size?: number;
|
|
@@ -1642,8 +1694,8 @@ export type PluginApplicationsResponse = {
|
|
|
1642
1694
|
workspace: PluginApplicationsWorkspaceResponse;
|
|
1643
1695
|
};
|
|
1644
1696
|
export type PagePluginApplicationsResponse = {
|
|
1645
|
-
totalElements?: number;
|
|
1646
1697
|
totalPages?: number;
|
|
1698
|
+
totalElements?: number;
|
|
1647
1699
|
first?: boolean;
|
|
1648
1700
|
last?: boolean;
|
|
1649
1701
|
size?: number;
|
|
@@ -1668,8 +1720,8 @@ export type PluginUsageMonitorApplicationViewResponse = {
|
|
|
1668
1720
|
environment: PluginUsageMonitorApplicationViewEnvironmentResponse;
|
|
1669
1721
|
};
|
|
1670
1722
|
export type PagePluginUsageMonitorApplicationViewResponse = {
|
|
1671
|
-
totalElements?: number;
|
|
1672
1723
|
totalPages?: number;
|
|
1724
|
+
totalElements?: number;
|
|
1673
1725
|
first?: boolean;
|
|
1674
1726
|
last?: boolean;
|
|
1675
1727
|
size?: number;
|
|
@@ -1791,8 +1843,8 @@ export type ContentEvaluationResponse = {
|
|
|
1791
1843
|
pendingDiscussionReading: boolean;
|
|
1792
1844
|
};
|
|
1793
1845
|
export type PageContentEvaluationResponse = {
|
|
1794
|
-
totalElements?: number;
|
|
1795
1846
|
totalPages?: number;
|
|
1847
|
+
totalElements?: number;
|
|
1796
1848
|
first?: boolean;
|
|
1797
1849
|
last?: boolean;
|
|
1798
1850
|
size?: number;
|
|
@@ -2271,8 +2323,7 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
|
|
|
2271
2323
|
/**
|
|
2272
2324
|
* Validate and return info from a workflow
|
|
2273
2325
|
*/
|
|
2274
|
-
export function validateWorkflow({
|
|
2275
|
-
studioSlug?: string;
|
|
2326
|
+
export function validateWorkflow({ body }: {
|
|
2276
2327
|
body?: {
|
|
2277
2328
|
file: Blob;
|
|
2278
2329
|
};
|
|
@@ -2296,9 +2347,7 @@ export function validateWorkflow({ studioSlug, body }: {
|
|
|
2296
2347
|
details: string;
|
|
2297
2348
|
validationDetails?: ValidationDetails[];
|
|
2298
2349
|
};
|
|
2299
|
-
}>(
|
|
2300
|
-
studioSlug
|
|
2301
|
-
}))}`, oazapfts.json({
|
|
2350
|
+
}>("/v1/workflows/validate", oazapfts.json({
|
|
2302
2351
|
...opts,
|
|
2303
2352
|
method: "POST",
|
|
2304
2353
|
body
|
|
@@ -3023,9 +3072,8 @@ export function listStudios({ xWorkspaceId, filterStudioRequest }: {
|
|
|
3023
3072
|
/**
|
|
3024
3073
|
* Validate and return info from a starter
|
|
3025
3074
|
*/
|
|
3026
|
-
export function validateStack({ starterPath,
|
|
3075
|
+
export function validateStack({ starterPath, body }: {
|
|
3027
3076
|
starterPath: string;
|
|
3028
|
-
studioSlug?: string;
|
|
3029
3077
|
body?: {
|
|
3030
3078
|
file: Blob;
|
|
3031
3079
|
};
|
|
@@ -3050,8 +3098,7 @@ export function validateStack({ starterPath, studioSlug, body }: {
|
|
|
3050
3098
|
validationDetails?: ValidationDetails[];
|
|
3051
3099
|
};
|
|
3052
3100
|
}>(`/v1/starters/validate${QS.query(QS.explode({
|
|
3053
|
-
starterPath
|
|
3054
|
-
studioSlug
|
|
3101
|
+
starterPath
|
|
3055
3102
|
}))}`, oazapfts.json({
|
|
3056
3103
|
...opts,
|
|
3057
3104
|
method: "POST",
|
|
@@ -3696,8 +3743,7 @@ export function getStackVersionListByIds({ xWorkspaceId, filterStackVersionReque
|
|
|
3696
3743
|
/**
|
|
3697
3744
|
* Validate and return info from a stack
|
|
3698
3745
|
*/
|
|
3699
|
-
export function validateStack1({
|
|
3700
|
-
studioSlug?: string;
|
|
3746
|
+
export function validateStack1({ body }: {
|
|
3701
3747
|
body?: {
|
|
3702
3748
|
file: Blob;
|
|
3703
3749
|
};
|
|
@@ -3721,9 +3767,7 @@ export function validateStack1({ studioSlug, body }: {
|
|
|
3721
3767
|
details: string;
|
|
3722
3768
|
validationDetails?: ValidationDetails[];
|
|
3723
3769
|
};
|
|
3724
|
-
}>(
|
|
3725
|
-
studioSlug
|
|
3726
|
-
}))}`, oazapfts.json({
|
|
3770
|
+
}>("/v1/stacks/validate", oazapfts.json({
|
|
3727
3771
|
...opts,
|
|
3728
3772
|
method: "POST",
|
|
3729
3773
|
body
|
|
@@ -3829,8 +3873,7 @@ export function deprecatePluginVersion({ pluginVersionId, deprecateContentReques
|
|
|
3829
3873
|
/**
|
|
3830
3874
|
* Validate and return info from a plugin
|
|
3831
3875
|
*/
|
|
3832
|
-
export function validatePlugin({
|
|
3833
|
-
studioSlug?: string;
|
|
3876
|
+
export function validatePlugin({ body }: {
|
|
3834
3877
|
body?: {
|
|
3835
3878
|
file: Blob;
|
|
3836
3879
|
};
|
|
@@ -3854,9 +3897,7 @@ export function validatePlugin({ studioSlug, body }: {
|
|
|
3854
3897
|
details: string;
|
|
3855
3898
|
validationDetails?: ValidationDetails[];
|
|
3856
3899
|
};
|
|
3857
|
-
}>(
|
|
3858
|
-
studioSlug
|
|
3859
|
-
}))}`, oazapfts.json({
|
|
3900
|
+
}>("/v1/plugins/validate", oazapfts.json({
|
|
3860
3901
|
...opts,
|
|
3861
3902
|
method: "POST",
|
|
3862
3903
|
body
|
|
@@ -4101,8 +4142,7 @@ export function deprecateActionVersion({ actionVersionId, deprecateContentReques
|
|
|
4101
4142
|
/**
|
|
4102
4143
|
* Validate and return info from a action
|
|
4103
4144
|
*/
|
|
4104
|
-
export function validateAction({
|
|
4105
|
-
studioSlug?: string;
|
|
4145
|
+
export function validateAction({ body }: {
|
|
4106
4146
|
body?: {
|
|
4107
4147
|
file: Blob;
|
|
4108
4148
|
};
|
|
@@ -4126,9 +4166,7 @@ export function validateAction({ studioSlug, body }: {
|
|
|
4126
4166
|
details: string;
|
|
4127
4167
|
validationDetails?: ValidationDetails[];
|
|
4128
4168
|
};
|
|
4129
|
-
}>(
|
|
4130
|
-
studioSlug
|
|
4131
|
-
}))}`, oazapfts.json({
|
|
4169
|
+
}>("/v1/actions/validate", oazapfts.json({
|
|
4132
4170
|
...opts,
|
|
4133
4171
|
method: "POST",
|
|
4134
4172
|
body
|
|
@@ -5169,6 +5207,43 @@ export function downloadWorkflowBase64({ studioSlug, workflowSlug, version, xWor
|
|
|
5169
5207
|
})
|
|
5170
5208
|
}));
|
|
5171
5209
|
}
|
|
5210
|
+
/**
|
|
5211
|
+
* Get workflow version
|
|
5212
|
+
*/
|
|
5213
|
+
export function getWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId }: {
|
|
5214
|
+
studioSlug: string;
|
|
5215
|
+
workflowSlug: string;
|
|
5216
|
+
version?: string;
|
|
5217
|
+
xWorkspaceId?: string;
|
|
5218
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5219
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5220
|
+
status: 200;
|
|
5221
|
+
data: GetWorkflowResponse;
|
|
5222
|
+
} | {
|
|
5223
|
+
status: 422;
|
|
5224
|
+
data: {
|
|
5225
|
+
code: string;
|
|
5226
|
+
status: number;
|
|
5227
|
+
details: string;
|
|
5228
|
+
validationDetails?: ValidationDetails[];
|
|
5229
|
+
};
|
|
5230
|
+
} | {
|
|
5231
|
+
status: 500;
|
|
5232
|
+
data: {
|
|
5233
|
+
code: string;
|
|
5234
|
+
status: number;
|
|
5235
|
+
details: string;
|
|
5236
|
+
validationDetails?: ValidationDetails[];
|
|
5237
|
+
};
|
|
5238
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/version${QS.query(QS.explode({
|
|
5239
|
+
version
|
|
5240
|
+
}))}`, {
|
|
5241
|
+
...opts,
|
|
5242
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
5243
|
+
"x-workspace-id": xWorkspaceId
|
|
5244
|
+
})
|
|
5245
|
+
}));
|
|
5246
|
+
}
|
|
5172
5247
|
/**
|
|
5173
5248
|
* Get available workflow versions by workflow slug
|
|
5174
5249
|
*/
|
|
@@ -5206,6 +5281,46 @@ export function getAvailableWorkflowVersionsByWorkflowSlug({ studioSlug, workflo
|
|
|
5206
5281
|
...opts
|
|
5207
5282
|
}));
|
|
5208
5283
|
}
|
|
5284
|
+
/**
|
|
5285
|
+
* Get an workflow documentation
|
|
5286
|
+
*/
|
|
5287
|
+
export function getWorkflowDoc({ studioSlug, documentationId, language, status }: {
|
|
5288
|
+
studioSlug: string;
|
|
5289
|
+
documentationId: string;
|
|
5290
|
+
language: string;
|
|
5291
|
+
status?: string;
|
|
5292
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5293
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5294
|
+
status: 200;
|
|
5295
|
+
data: DocumentationResponse;
|
|
5296
|
+
} | {
|
|
5297
|
+
status: 400;
|
|
5298
|
+
} | {
|
|
5299
|
+
status: 403;
|
|
5300
|
+
} | {
|
|
5301
|
+
status: 404;
|
|
5302
|
+
} | {
|
|
5303
|
+
status: 422;
|
|
5304
|
+
data: {
|
|
5305
|
+
code: string;
|
|
5306
|
+
status: number;
|
|
5307
|
+
details: string;
|
|
5308
|
+
validationDetails?: ValidationDetails[];
|
|
5309
|
+
};
|
|
5310
|
+
} | {
|
|
5311
|
+
status: 500;
|
|
5312
|
+
data: {
|
|
5313
|
+
code: string;
|
|
5314
|
+
status: number;
|
|
5315
|
+
details: string;
|
|
5316
|
+
validationDetails?: ValidationDetails[];
|
|
5317
|
+
};
|
|
5318
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
|
|
5319
|
+
status
|
|
5320
|
+
}))}`, {
|
|
5321
|
+
...opts
|
|
5322
|
+
}));
|
|
5323
|
+
}
|
|
5209
5324
|
/**
|
|
5210
5325
|
* Get a starter documentation
|
|
5211
5326
|
*/
|