@stack-spot/portal-network 0.34.1 → 0.36.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.36.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.35.0...portal-network@v0.36.0) (2024-10-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * Update content ([fb8daf6](https://github.com/stack-spot/portal-commons/commit/fb8daf6a3dbc18eff040328a0f248bdb886559dd))
9
+ * Workspace manager ([0349e8d](https://github.com/stack-spot/portal-commons/commit/0349e8d8e81c8146b7f42a7aee7d73f5dbdbd45b))
10
+
11
+ ## [0.35.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.34.1...portal-network@v0.35.0) (2024-10-04)
12
+
13
+
14
+ ### Features
15
+
16
+ * Update content swagger ([#397](https://github.com/stack-spot/portal-commons/issues/397)) ([7c5c0d2](https://github.com/stack-spot/portal-commons/commit/7c5c0d268072ea8af2ddda642e98113cc5003746))
17
+
3
18
  ## [0.34.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.34.0...portal-network@v0.34.1) (2024-10-03)
4
19
 
5
20
 
@@ -106,7 +106,7 @@ export type CreateConnectionInterfaceTypeRequest = {
106
106
  };
107
107
  export type YamlValidationError = {
108
108
  details: string;
109
- "type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "STK_VAL_5080_INVALID_DEPENDS_ON_JOBS" | "STK_VAL_5081_DUPLICATED_JOB" | "STK_VAL_5082_DUPLICATED_STEP" | "STK_VAL_5083_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5084_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5085_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5087_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5088_INVALID_VARIABLE";
109
+ "type": "STK_VAL_0000_YAML_BASE_ERROR" | "STK_VAL_5010_YAML_FIELDS_ERROR" | "STK_VAL_5011_YAML_REQUIRED_FIELD" | "STK_VAL_5012_YAML_INVALID_FIELD_FORMAT" | "STK_VAL_5013_YAML_INVALID_VALUE_BY_ENUM" | "STK_VAL_5015_YAML_ADDITIONAL_FIELD" | "STK_VAL_5016_YAML_FIELD_INVALID_TYPE" | "STK_VAL_5018_INVALID_TECHNOLOGIES" | "STK_VAL_5021_MARKDOWN_LINK_NOT_FOUND" | "STK_VAL_5022_INVALID_INPUT_DEFAULT" | "STK_VAL_5024_PLUGIN_VERSION_NOT_FOUND" | "STK_VAL_5026_FILE_NOT_FOUND" | "STK_VAL_5027_FILE_EMPTY" | "STK_VAL_5030_FUNCTION_RUN_IS_REQUIRED" | "STK_VAL_5031_INVALID_INPUT_CONDITION_OPERATOR" | "STK_VAL_5032_INVALID_INPUT_CONDITION_VALUE" | "STK_VAL_5034_INVALID_INPUT_CONDITION_VARIABLE_DOES_NOT_EXIST" | "STK_VAL_5035_INVALID_CONNECTION_TYPE" | "STK_VAL_5036_INVALID_CONNECTION_TYPE_OUTPUT" | "STK_VAL_5037_DUPLICATED_CONNECTION_ALIAS" | "STK_VAL_5039_INVALID_LINK_URL_TYPE" | "STK_VAL_5040_INVALID_CONNECTION_LINK_VARIABLE" | "STK_VAL_5041_INVALID_CONNECTION_ALIAS_LINK_VARIABLE" | "STK_VAL_5042_INVALID_CONNECTION_OUTPUT_LINK_VARIABLE" | "STK_VAL_5043_DUPLICATED_LINK_NAME" | "STK_VAL_5044_INPUT_NAME_AS_RESERVED_WORD" | "STK_VAL_5045_DYNAMIC_LINK_VARIABLE_NOT_FOUND" | "STK_VAL_5046_LINK_WITH_COMPLEX_JINJA_EXPRESSION" | "STK_VAL_5047_INVALID_DYNAMIC_LINK_URL" | "STK_VAL_5048_DUPLICATED_INPUT_NAMES" | "STK_VAL_5049_INVALID_INPUT_DEFAULT_NOT_IN_ITEMS" | "STK_VAL_5053_MISSING_ACTION_IN_REQUIRES" | "STK_VAL_5054_DUPLICATED_NAME" | "STK_VAL_5055_DUPLICATED_VALUE" | "STK_VAL_5057_ACTION_NOT_DECLARED" | "STK_VAL_5058_OLD_DOCS_DECLARED" | "STK_VAL_5059_OLD_DOCS_WILL_BE_IGNORED" | "STK_VAL_5061_ACTION_VERSION_NOT_FOUND" | "STK_VAL_5062_PLUGIN_OF_STARTER_IS_NOT_DECLARED" | "STK_VAL_5063_STARTER_MUST_CONTAIN_PLUGIN" | "STK_VAL_5064_REQUIRED_PLUGIN_NOT_PUBLISHED" | "STK_VAL_5065_REQUIRED_ACTION_NOT_PUBLISHED" | "STK_VAL_5066_MISSING_PLUGIN_REQUIRED_IN_STACK" | "STK_VAL_5067_MISSING_ACTION_REQUIRED_IN_STACK" | "STK_VAL_5068_INFRA_PLUGIN_APP_ALLOWED_FALSE" | "STK_VAL_5073_SOURCE_AND_ITEMS_BEING_USED" | "STK_VAL_5076_MISSING_OUTPUT_FROM_GENERATES" | "STK_VAL_5077_MISSING_PLUGIN_REQUIRED_IN_STARTER" | "STK_VAL_5078_WRONG_PLUGIN_TYPE_IN_STACK" | "STK_VAL_5079_DUPLICATED_SLUG" | "STK_VAL_5080_INVALID_VARIABLE" | "STK_VAL_5081_INVALID_VARIABLE_REFERENCE" | "STK_VAL_5082_DUPLICATED_JOB" | "STK_VAL_5083_DUPLICATED_STEP" | "STK_VAL_5084_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5085_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5087_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5088_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5089_INVALID_DEPENDS_ON_JOBS" | "STK_VAL_5090_INVALID_JOB_STEP_WORKFLOW_TYPE" | "STK_VAL_5091_MULTIPLE_GENERATED_CONNECTION_DEFINITION";
110
110
  field?: string;
111
111
  value?: object;
112
112
  examples: string[];
@@ -304,6 +304,7 @@ export type GetStackActionResponse = {
304
304
  "type": string;
305
305
  qualifier: string;
306
306
  status: string;
307
+ isDocumented: boolean;
307
308
  };
308
309
  export type GetStackVersionResponse = {
309
310
  stack: GetStackVersionStackResponse;
@@ -352,10 +353,10 @@ export type SortObject = {
352
353
  export type PageableObject = {
353
354
  offset?: number;
354
355
  sort?: SortObject[];
355
- pageSize?: number;
356
- pageNumber?: number;
357
356
  paged?: boolean;
358
357
  unpaged?: boolean;
358
+ pageSize?: number;
359
+ pageNumber?: number;
359
360
  };
360
361
  export type PageGetStackStudioResponse = {
361
362
  totalElements?: number;
@@ -451,6 +452,8 @@ export type PluginGeneratesConnectionResponse = {
451
452
  typeId: string;
452
453
  "type": string;
453
454
  alias: string;
455
+ optional: boolean;
456
+ source: string;
454
457
  outputs?: OutputResponse[];
455
458
  };
456
459
  export type PluginGeneratesLinkResponse = {
@@ -632,6 +635,7 @@ export type ActionResponse = {
632
635
  repository?: string;
633
636
  governance?: ActionGovernanceResponse;
634
637
  status: string;
638
+ hasRequiredConnection: boolean;
635
639
  };
636
640
  export type PageActionResponse = {
637
641
  totalElements?: number;
@@ -1007,11 +1011,60 @@ export type PageStudioResponse = {
1007
1011
  numberOfElements?: number;
1008
1012
  empty?: boolean;
1009
1013
  };
1014
+ export type GovernanceDto = {
1015
+ id?: string;
1016
+ status: string;
1017
+ pendingDiscussionReading?: boolean;
1018
+ };
1019
+ export type PluginVersionDto = {
1020
+ pluginVersionId: string;
1021
+ slug: string;
1022
+ version: string;
1023
+ createdBy: string;
1024
+ createdAt: string;
1025
+ status: string;
1026
+ governance?: GovernanceDto;
1027
+ };
1028
+ export type PagePluginVersionDto = {
1029
+ totalElements?: number;
1030
+ totalPages?: number;
1031
+ first?: boolean;
1032
+ last?: boolean;
1033
+ size?: number;
1034
+ content?: PluginVersionDto[];
1035
+ "number"?: number;
1036
+ sort?: SortObject[];
1037
+ pageable?: PageableObject;
1038
+ numberOfElements?: number;
1039
+ empty?: boolean;
1040
+ };
1010
1041
  export type DownloadBase64Response = {
1011
1042
  fileBase64: string;
1012
1043
  fileName: string;
1013
1044
  actionVersionId: string;
1014
1045
  };
1046
+ export type ActionVersionDto = {
1047
+ actionVersionId: string;
1048
+ version: string;
1049
+ createdBy: string;
1050
+ createdAt: string;
1051
+ updatedAt?: string;
1052
+ status: string;
1053
+ governance?: GovernanceDto;
1054
+ };
1055
+ export type PageActionVersionDto = {
1056
+ totalElements?: number;
1057
+ totalPages?: number;
1058
+ first?: boolean;
1059
+ last?: boolean;
1060
+ size?: number;
1061
+ content?: ActionVersionDto[];
1062
+ "number"?: number;
1063
+ sort?: SortObject[];
1064
+ pageable?: PageableObject;
1065
+ numberOfElements?: number;
1066
+ empty?: boolean;
1067
+ };
1015
1068
  export type StackStudioV2Response = {
1016
1069
  slug: string;
1017
1070
  name: string;
@@ -1067,6 +1120,10 @@ export type PluginInputConditionResponse = {
1067
1120
  operator?: string;
1068
1121
  value?: JsonNode;
1069
1122
  };
1123
+ export type PluginOutputResponse = {
1124
+ "from": string;
1125
+ to: string;
1126
+ };
1070
1127
  export type PluginInputResponse = {
1071
1128
  label?: string;
1072
1129
  name?: string;
@@ -1082,6 +1139,7 @@ export type PluginInputResponse = {
1082
1139
  isGlobal?: boolean;
1083
1140
  inputEnv?: boolean;
1084
1141
  connectionInterfaceType?: string;
1142
+ outputs?: PluginOutputResponse[];
1085
1143
  input?: PluginInputResponse;
1086
1144
  };
1087
1145
  export type PluginComputedInputResponse = {
@@ -1108,9 +1166,11 @@ export type GetWorkflowsByStudioLatestVersionDataResponse = {
1108
1166
  id: string;
1109
1167
  displayName: string;
1110
1168
  label: string;
1169
+ description: string;
1111
1170
  semanticVersion: string;
1112
1171
  targetApp: boolean;
1113
1172
  targetInfra: boolean;
1173
+ createdAt: string;
1114
1174
  };
1115
1175
  export type GetWorkflowsByStudioResponse = {
1116
1176
  id: string;
@@ -1137,6 +1197,56 @@ export type DownloadWorkflowBase64Response = {
1137
1197
  file_name: string;
1138
1198
  workflowVersionId: string;
1139
1199
  };
1200
+ export type WorkflowStudioResponse = {
1201
+ slug: string;
1202
+ name: string;
1203
+ imageUrl?: string;
1204
+ description?: string;
1205
+ };
1206
+ export type GetWorkflowCommandResponse = {
1207
+ "default": string;
1208
+ workspace: string;
1209
+ };
1210
+ export type WorkflowVersionJobStepsResponse = {
1211
+ id: string;
1212
+ identifier: string;
1213
+ name: string;
1214
+ label?: string;
1215
+ ordination: number;
1216
+ optional: boolean;
1217
+ workdir?: string;
1218
+ "type": string;
1219
+ alias?: string;
1220
+ };
1221
+ export type WorkflowVersionJobsResponse = {
1222
+ id: string;
1223
+ identifier: string;
1224
+ label: string;
1225
+ ordination: number;
1226
+ optional: boolean;
1227
+ steps?: WorkflowVersionJobStepsResponse[];
1228
+ };
1229
+ export type GetWorkflowResponse = {
1230
+ id: string;
1231
+ studio: WorkflowStudioResponse;
1232
+ workflowVersionId: string;
1233
+ "type": string;
1234
+ version: string;
1235
+ slug: string;
1236
+ displayName?: string;
1237
+ description?: string;
1238
+ commands?: GetWorkflowCommandResponse;
1239
+ createdAt: string;
1240
+ createdBy: string;
1241
+ updatedAt?: string;
1242
+ qualifier: string;
1243
+ accountSlug?: string;
1244
+ studioSlug: string;
1245
+ status: string;
1246
+ isDocumented: boolean;
1247
+ documentation?: DocumentationContentResponse;
1248
+ jobs?: WorkflowVersionJobsResponse[];
1249
+ };
1140
1250
  export type GetAvailableWorkflowVersionsResponse = {
1141
1251
  workflowVersionId: string;
1142
1252
  version: string;
@@ -1786,6 +1896,16 @@ export type ListDocumentationResponse = {
1786
1896
  documentationId: string;
1787
1897
  languages: DocumentationLanguageResponse[];
1788
1898
  };
1899
+ /**
1900
+ * Update Workflow Documentation
1901
+ */
1902
+ export declare function updateWorkflowDocumentation({ studioSlug, workflowSlug, body }: {
1903
+ studioSlug: string;
1904
+ workflowSlug: string;
1905
+ body?: {
1906
+ file: Blob;
1907
+ };
1908
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
1789
1909
  /**
1790
1910
  * Update Stack and starter docs
1791
1911
  */
@@ -1909,9 +2029,10 @@ export declare function addWorkspace({ studioSlug, studioWorkspaceRequest }: {
1909
2029
  /**
1910
2030
  * Publish Workflow
1911
2031
  */
1912
- export declare function publishWorkflow({ studioSlug, workflowSlug, body }: {
2032
+ export declare function publishWorkflow({ studioSlug, workflowSlug, userAgent, body }: {
1913
2033
  studioSlug: string;
1914
2034
  workflowSlug: string;
2035
+ userAgent?: string;
1915
2036
  body?: {
1916
2037
  file: Blob;
1917
2038
  };
@@ -1958,7 +2079,7 @@ export declare function publishPluginController({ studioSlug, pluginSlug, body }
1958
2079
  /**
1959
2080
  * Get available plugin versions by plugin slug
1960
2081
  */
1961
- export declare function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }: {
2082
+ export declare function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }: {
1962
2083
  studioSlug: string;
1963
2084
  pluginSlug: string;
1964
2085
  xWorkspaceId?: string;
@@ -2020,7 +2141,7 @@ export declare function createAction({ studioSlug, actionSlug, body }: {
2020
2141
  /**
2021
2142
  * Get available action versions by action slug
2022
2143
  */
2023
- export declare function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }: {
2144
+ export declare function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }: {
2024
2145
  studioSlug: string;
2025
2146
  actionSlug: string;
2026
2147
  xWorkspaceId?: string;
@@ -2442,6 +2563,17 @@ export declare function getStudios({ xWorkspaceId, authorization, aclOnly, filte
2442
2563
  workspaceId?: string;
2443
2564
  pageable: Pageable;
2444
2565
  }, opts?: Oazapfts.RequestOpts): Promise<PageStudioResponse>;
2566
+ /**
2567
+ * Get available plugin versions by plugin slug
2568
+ */
2569
+ export declare function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed, pageable }: {
2570
+ studioSlug: string;
2571
+ pluginSlug: string;
2572
+ xWorkspaceId?: string;
2573
+ range: string;
2574
+ appAllowed?: boolean;
2575
+ pageable: Pageable;
2576
+ }, opts?: Oazapfts.RequestOpts): Promise<PagePluginVersionDto>;
2445
2577
  /**
2446
2578
  * Download an action by version
2447
2579
  */
@@ -2451,6 +2583,17 @@ export declare function downloadAction({ studioSlug, actionSlug, version, xWorks
2451
2583
  version: string;
2452
2584
  xWorkspaceId?: string;
2453
2585
  }, opts?: Oazapfts.RequestOpts): Promise<DownloadBase64Response>;
2586
+ /**
2587
+ * Get available action versions by action slug
2588
+ */
2589
+ export declare function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection, pageable }: {
2590
+ studioSlug: string;
2591
+ actionSlug: string;
2592
+ xWorkspaceId?: string;
2593
+ range: string;
2594
+ requiresConnection?: boolean;
2595
+ pageable: Pageable;
2596
+ }, opts?: Oazapfts.RequestOpts): Promise<PageActionVersionDto>;
2454
2597
  /**
2455
2598
  * List stacks from account
2456
2599
  */
@@ -2482,9 +2625,11 @@ export declare function listInputs({ actionVersionId, xWorkspaceId, accountId }:
2482
2625
  /**
2483
2626
  * Get workflows from studio
2484
2627
  */
2485
- export declare function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }: {
2628
+ export declare function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, pageable }: {
2486
2629
  studioSlug: string;
2487
2630
  xWorkspaceId?: string;
2631
+ displayName?: string;
2632
+ $type?: "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
2488
2633
  pageable: Pageable;
2489
2634
  }, opts?: Oazapfts.RequestOpts): Promise<PageGetWorkflowsByStudioResponse>;
2490
2635
  /**
@@ -2505,6 +2650,15 @@ export declare function downloadWorkflowBase64({ studioSlug, workflowSlug, versi
2505
2650
  version: string;
2506
2651
  xWorkspaceId?: string;
2507
2652
  }, opts?: Oazapfts.RequestOpts): Promise<DownloadWorkflowBase64Response>;
2653
+ /**
2654
+ * Get workflow version
2655
+ */
2656
+ export declare function getWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId }: {
2657
+ studioSlug: string;
2658
+ workflowSlug: string;
2659
+ version?: string;
2660
+ xWorkspaceId?: string;
2661
+ }, opts?: Oazapfts.RequestOpts): Promise<GetWorkflowResponse>;
2508
2662
  /**
2509
2663
  * Get available workflow versions by workflow slug
2510
2664
  */