@stack-spot/portal-network 0.143.4 → 0.145.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.
@@ -155,11 +155,11 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
155
155
  /**
156
156
  * Filter actions versions by ids
157
157
  */
158
- export function getActionsVersionsByIds({ listActionVersionByIdsRequest }, opts) {
158
+ export function listActionsVersionsByIds({ listActionsVersionsByIdsRequest }, opts) {
159
159
  return oazapfts.ok(oazapfts.fetchJson("/v2/actions/versions", oazapfts.json({
160
160
  ...opts,
161
161
  method: "POST",
162
- body: listActionVersionByIdsRequest
162
+ body: listActionsVersionsByIdsRequest
163
163
  })));
164
164
  }
165
165
  /**
@@ -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
  */
@@ -728,11 +632,14 @@ export function validateStack1({ studioSlug, body }, opts) {
728
632
  /**
729
633
  * List of stacks by its ids
730
634
  */
731
- export function listStackByIdsController({ filterStackByIdsRequest }, opts) {
635
+ export function listStackByIdsController({ accountId, filterStackByIdsRequest }, opts) {
732
636
  return oazapfts.ok(oazapfts.fetchJson("/v1/stacks/summary", oazapfts.json({
733
637
  ...opts,
734
638
  method: "POST",
735
- body: filterStackByIdsRequest
639
+ body: filterStackByIdsRequest,
640
+ headers: oazapfts.mergeHeaders(opts?.headers, {
641
+ "Account-Id": accountId
642
+ })
736
643
  })));
737
644
  }
738
645
  /**
@@ -774,12 +681,13 @@ export function listPluginVersionStackVersionsByIdsController({ xWorkspaceId, bo
774
681
  /**
775
682
  * Get inputs from a plugin version ids list
776
683
  */
777
- export function getInputsByPluginVersionsIds({ xWorkspaceId, getInputsByPluginVersionsIdsRequest }, opts) {
684
+ export function getInputsByPluginVersionsIds({ accountId, xWorkspaceId, getInputsByPluginVersionsIdsRequest }, opts) {
778
685
  return oazapfts.ok(oazapfts.fetchJson("/v1/plugins/versions/inputs", oazapfts.json({
779
686
  ...opts,
780
687
  method: "POST",
781
688
  body: getInputsByPluginVersionsIdsRequest,
782
689
  headers: oazapfts.mergeHeaders(opts?.headers, {
690
+ "Account-Id": accountId,
783
691
  "x-workspace-id": xWorkspaceId
784
692
  })
785
693
  })));
@@ -837,14 +745,11 @@ export function createConnectionInterfaceType1({ createConnectionInterfaceTypeRe
837
745
  /**
838
746
  * Validate Connection Interface Type Object Output Schema
839
747
  */
840
- export function validateConnectionInterfaceTypeObjectOutputSchema({ connectionInterfaceTypeIdOrSlug, outputId, accountId, validateConnectionInterfaceTypeSchemaRequest }, opts) {
748
+ export function validateConnectionInterfaceTypeObjectOutputSchema({ connectionInterfaceTypeIdOrSlug, outputId, validateConnectionInterfaceTypeSchemaRequest }, opts) {
841
749
  return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}/outputs/${encodeURIComponent(outputId)}/validate`, oazapfts.json({
842
750
  ...opts,
843
751
  method: "POST",
844
- body: validateConnectionInterfaceTypeSchemaRequest,
845
- headers: oazapfts.mergeHeaders(opts?.headers, {
846
- "Account-Id": accountId
847
- })
752
+ body: validateConnectionInterfaceTypeSchemaRequest
848
753
  })));
849
754
  }
850
755
  /**
@@ -899,6 +804,15 @@ export function updateConnectionInterfaceType({ connectionInterfaceTypeId, updat
899
804
  body: updateConnectionInterfaceTypeRequest
900
805
  })));
901
806
  }
807
+ /**
808
+ * Archive a workflow version
809
+ */
810
+ export function archiveWorkflowVersion({ workflowVersionId }, opts) {
811
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/archive`, {
812
+ ...opts,
813
+ method: "PATCH"
814
+ }));
815
+ }
902
816
  /**
903
817
  * Change the visibility of given studio
904
818
  */
@@ -1162,13 +1076,14 @@ export function listPluginsV3({ studioSlug, pluginVersionId, $type, technologies
1162
1076
  /**
1163
1077
  * Find studios
1164
1078
  */
1165
- export function getStudios({ xWorkspaceId, authorization, filter, view, startersOnly, infraOnly, workspaceId, pageable }, opts) {
1079
+ export function getStudios({ xWorkspaceId, authorization, filter, view, startersOnly, infraOnly, workspaceId, hasBaseWorkflows, pageable }, opts) {
1166
1080
  return oazapfts.ok(oazapfts.fetchJson(`/v2/studios${QS.query(QS.explode({
1167
1081
  filter,
1168
1082
  view,
1169
1083
  startersOnly,
1170
1084
  infraOnly,
1171
1085
  workspaceId,
1086
+ hasBaseWorkflows,
1172
1087
  pageable
1173
1088
  }))}`, {
1174
1089
  ...opts,
@@ -1178,6 +1093,19 @@ export function getStudios({ xWorkspaceId, authorization, filter, view, starters
1178
1093
  })
1179
1094
  }));
1180
1095
  }
1096
+ /**
1097
+ * Get workflows from studio
1098
+ */
1099
+ export function getWorkflowsByStudioSlugV2({ studioSlug, status, displayName, xWorkspaceId, pageable }, opts) {
1100
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/studios/${encodeURIComponent(studioSlug)}/workflows${QS.query(QS.explode({
1101
+ status,
1102
+ displayName,
1103
+ "x-workspace-id": xWorkspaceId,
1104
+ pageable
1105
+ }))}`, {
1106
+ ...opts
1107
+ }));
1108
+ }
1181
1109
  /**
1182
1110
  * List Stacks inside a studio - V2
1183
1111
  */
@@ -1223,19 +1151,6 @@ export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug,
1223
1151
  ...opts
1224
1152
  }));
1225
1153
  }
1226
- /**
1227
- * Download an action by version
1228
- */
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
- }))}`, {
1233
- ...opts,
1234
- headers: oazapfts.mergeHeaders(opts?.headers, {
1235
- "x-workspace-id": xWorkspaceId
1236
- })
1237
- }));
1238
- }
1239
1154
  /**
1240
1155
  * Get available action versions by action slug
1241
1156
  */
@@ -1301,12 +1216,9 @@ export function getInputs({ pluginVersionId, xWorkspaceId }, opts) {
1301
1216
  /**
1302
1217
  * Get Connection Interface Type by Id
1303
1218
  */
1304
- export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug, accountId }, opts) {
1219
+ export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug }, opts) {
1305
1220
  return oazapfts.ok(oazapfts.fetchJson(`/v2/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}`, {
1306
- ...opts,
1307
- headers: oazapfts.mergeHeaders(opts?.headers, {
1308
- "Account-Id": accountId
1309
- })
1221
+ ...opts
1310
1222
  }));
1311
1223
  }
1312
1224
  /**
@@ -1359,6 +1271,17 @@ export function validateUnpublishWorkflowVersion({ workflowVersionId }, opts) {
1359
1271
  ...opts
1360
1272
  }));
1361
1273
  }
1274
+ /**
1275
+ * Get a workflow version yaml content
1276
+ */
1277
+ export function getWorkflowYaml({ workflowVersionId, xWorkspaceId }, opts) {
1278
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/manifest`, {
1279
+ ...opts,
1280
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1281
+ "x-workspace-id": xWorkspaceId
1282
+ })
1283
+ }));
1284
+ }
1362
1285
  /**
1363
1286
  * Get inputs from a workflow version
1364
1287
  */
@@ -1381,7 +1304,7 @@ export function getWorkflowVersionUsageSummary({ workflowVersionId }, opts) {
1381
1304
  /**
1382
1305
  * Get workflows from studio
1383
1306
  */
1384
- export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, slug, description, status, pageable }, opts) {
1307
+ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, slug, description, status, baseOnly, pageable }, opts) {
1385
1308
  return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows${QS.query(QS.explode({
1386
1309
  "x-workspace-id": xWorkspaceId,
1387
1310
  displayName,
@@ -1389,6 +1312,7 @@ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName,
1389
1312
  slug,
1390
1313
  description,
1391
1314
  status,
1315
+ baseOnly,
1392
1316
  pageable
1393
1317
  }))}`, {
1394
1318
  ...opts
@@ -1434,8 +1358,10 @@ export function listWorkflowVersion({ studioSlug, workflowSlug, status, xWorkspa
1434
1358
  /**
1435
1359
  * Download a workflow by version
1436
1360
  */
1437
- export function downloadWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId }, opts) {
1438
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download`, {
1361
+ export function downloadWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
1362
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
1363
+ allowArchivedContent
1364
+ }))}`, {
1439
1365
  ...opts,
1440
1366
  headers: oazapfts.mergeHeaders(opts?.headers, {
1441
1367
  "x-workspace-id": xWorkspaceId
@@ -1445,8 +1371,10 @@ export function downloadWorkflow({ studioSlug, workflowSlug, version, xWorkspace
1445
1371
  /**
1446
1372
  * Download a workflow by version (base64 response version)
1447
1373
  */
1448
- export function downloadWorkflowBase64({ studioSlug, workflowSlug, version, xWorkspaceId }, opts) {
1449
- return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
1374
+ export function downloadWorkflowBase64({ studioSlug, workflowSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
1375
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download/base64${QS.query(QS.explode({
1376
+ allowArchivedContent
1377
+ }))}`, {
1450
1378
  ...opts,
1451
1379
  headers: oazapfts.mergeHeaders(opts?.headers, {
1452
1380
  "x-workspace-id": xWorkspaceId
@@ -1784,6 +1712,18 @@ export function getInfrastructureEnvironmentsUsesPlugin({ studioSlug, pluginSlug
1784
1712
  ...opts
1785
1713
  }));
1786
1714
  }
1715
+ /**
1716
+ * Get available plugin versions by plugin slug
1717
+ */
1718
+ export function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }, opts) {
1719
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
1720
+ "x-workspace-id": xWorkspaceId,
1721
+ range,
1722
+ appAllowed
1723
+ }))}`, {
1724
+ ...opts
1725
+ }));
1726
+ }
1787
1727
  /**
1788
1728
  * List all plugin view of usage insights
1789
1729
  */
@@ -1898,7 +1838,7 @@ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspac
1898
1838
  /**
1899
1839
  * Download an action by version
1900
1840
  */
1901
- export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
1841
+ export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
1902
1842
  return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
1903
1843
  allowArchivedContent
1904
1844
  }))}`, {
@@ -1921,6 +1861,18 @@ export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspa
1921
1861
  })
1922
1862
  }));
1923
1863
  }
1864
+ /**
1865
+ * Get available action versions by action slug
1866
+ */
1867
+ export function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }, opts) {
1868
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
1869
+ "x-workspace-id": xWorkspaceId,
1870
+ range,
1871
+ requiresConnection
1872
+ }))}`, {
1873
+ ...opts
1874
+ }));
1875
+ }
1924
1876
  /**
1925
1877
  * Get an action documentation
1926
1878
  */
@@ -1950,6 +1902,21 @@ export function getStudiosToCreateButton(opts) {
1950
1902
  ...opts
1951
1903
  }));
1952
1904
  }
1905
+ /**
1906
+ * List stack versions
1907
+ */
1908
+ export function listStackVersions({ stackId, xWorkspaceId, startersOnly, infraOnly, workspaceId }, opts) {
1909
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions${QS.query(QS.explode({
1910
+ startersOnly,
1911
+ infraOnly,
1912
+ workspaceId
1913
+ }))}`, {
1914
+ ...opts,
1915
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1916
+ "x-workspace-id": xWorkspaceId
1917
+ })
1918
+ }));
1919
+ }
1953
1920
  /**
1954
1921
  * Get a stack version list from its ids
1955
1922
  */
@@ -2063,6 +2030,17 @@ export function stackVersionUsageSummary({ stackVersionId }, opts) {
2063
2030
  ...opts
2064
2031
  }));
2065
2032
  }
2033
+ /**
2034
+ * Get a contents (actions, plugins, workflows and its inputs) of a stack version
2035
+ */
2036
+ export function stackVersionContents({ stackVersionId, accountId }, opts) {
2037
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/contents`, {
2038
+ ...opts,
2039
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2040
+ "Account-Id": accountId
2041
+ })
2042
+ }));
2043
+ }
2066
2044
  /**
2067
2045
  * Get suggestion of connections interfaces
2068
2046
  */
@@ -2353,7 +2331,7 @@ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, sta
2353
2331
  /**
2354
2332
  * Download an action by version
2355
2333
  */
2356
- export function downloadAction2({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
2334
+ export function downloadAction1({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId, allowArchivedContent }, opts) {
2357
2335
  return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download${QS.query(QS.explode({
2358
2336
  allowArchivedContent
2359
2337
  }))}`, {