@stack-spot/portal-network 0.56.2 → 0.57.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.57.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.56.2...portal-network@v0.57.0) (2024-12-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add workflow in stack services ([#530](https://github.com/stack-spot/portal-commons/issues/530)) ([7ff57f3](https://github.com/stack-spot/portal-commons/commit/7ff57f3124afa652a81d03023d21eae87c7588d6))
9
+
3
10
  ## [0.56.2](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.56.1...portal-network@v0.56.2) (2024-12-06)
4
11
 
5
12
 
@@ -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_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" | "STK_VAL_VERSION_BREAK_CHANGE_SCHEMA_VERSION_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_APP_ALLOWED_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUTS_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONDITION_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONNECTION_INTERFACE_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_GENERATES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_PLUGIN_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_ACTION_ERROR";
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" | "STK_VAL_VERSION_BREAK_CHANGE_SCHEMA_VERSION_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_APP_ALLOWED_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUTS_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONDITION_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_INPUT_CONNECTION_INTERFACE_TYPE_CHANGE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_GENERATES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_CONNECTION_INTERFACE_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_PLUGIN_ERROR" | "STK_VAL_VERSION_BREAK_CHANGE_REQUIRES_ACTION_ERROR" | "STK_VAL_PLUGIN_VERSION_ALREADY_EXISTS_IN_STUDIO" | "STK_VAL_ACTION_VERSION_ALREADY_EXISTS_IN_STUDIO" | "STK_VAL_STACK_VERSION_ALREADY_EXISTS_IN_STUDIO" | "STK_VAL_WORKFLOW_SPECIFICATION_MULTIPLE_TARGETS_NOT_ALLOWED" | "STK_VAL_VERSION_BREAK_CHANGE_WORKFLOW_TARGETS_MODIFIED_ERROR" | "STK_VAL_WORKFLOW_ITSELF_DEPENDENCY" | "STK_VAL_INVALID_PLUGIN_ON_STEP_BY_WORKFLOW_APP_TARGET" | "STK_VAL_INVALID_PLUGIN_ON_STEP_BY_WORKFLOW_INFRA_TARGET";
110
110
  field?: string;
111
111
  value?: object;
112
112
  examples: string[];
@@ -354,9 +354,9 @@ export type PageableObject = {
354
354
  offset?: number;
355
355
  sort?: SortObject[];
356
356
  paged?: boolean;
357
- unpaged?: boolean;
358
357
  pageSize?: number;
359
358
  pageNumber?: number;
359
+ unpaged?: boolean;
360
360
  };
361
361
  export type PageGetStackStudioResponse = {
362
362
  totalElements?: number;
@@ -431,7 +431,7 @@ export type PublishProcessRequest = {
431
431
  pluginVersionId: string;
432
432
  };
433
433
  export type FilterPluginVersionRequest = {
434
- "type"?: "APP" | "INFRA";
434
+ "type"?: "INFRA" | "APP";
435
435
  technologies?: string[];
436
436
  text?: string;
437
437
  };
@@ -691,6 +691,47 @@ export type StackVersionListResponse = {
691
691
  copyFromStackVersionId?: string;
692
692
  documentation?: StackVersionListDocumentationResponse;
693
693
  };
694
+ export type GetStackWorkflowStudioResponse = {
695
+ id: string;
696
+ slug: string;
697
+ name: string;
698
+ imageUrl?: string;
699
+ };
700
+ export type GetStackWorkflowLatestVersionResponse = {
701
+ id: string;
702
+ displayName: string;
703
+ label: string;
704
+ description: string;
705
+ semanticVersion: string;
706
+ targetApp: boolean;
707
+ targetInfra: boolean;
708
+ addedAt: string;
709
+ };
710
+ export type GetStackWorkflowResponse = {
711
+ id: string;
712
+ slug: string;
713
+ "type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
714
+ studio: GetStackWorkflowStudioResponse;
715
+ latestVersion?: GetStackWorkflowLatestVersionResponse;
716
+ };
717
+ export type PageGetStackWorkflowResponse = {
718
+ totalElements?: number;
719
+ totalPages?: number;
720
+ first?: boolean;
721
+ last?: boolean;
722
+ size?: number;
723
+ content?: GetStackWorkflowResponse[];
724
+ "number"?: number;
725
+ sort?: SortObject[];
726
+ numberOfElements?: number;
727
+ pageable?: PageableObject;
728
+ empty?: boolean;
729
+ };
730
+ export type AddWorkflowRequest = {
731
+ workflowId: string;
732
+ "type": "VERSION" | "RANGE";
733
+ value: string;
734
+ };
694
735
  export type DeprecateContentRequest = {
695
736
  reason: string;
696
737
  };
@@ -712,7 +753,7 @@ export type PageStarterResponseWithRange = {
712
753
  empty?: boolean;
713
754
  };
714
755
  export type FilterStackVersionPluginRequest = {
715
- "type"?: "APP" | "INFRA";
756
+ "type"?: "INFRA" | "APP";
716
757
  technologies: string[];
717
758
  text?: string;
718
759
  };
@@ -913,7 +954,7 @@ export type ActionVersionDataInputResponse = {
913
954
  label: string;
914
955
  name: string;
915
956
  "type": string;
916
- required?: boolean;
957
+ required: boolean;
917
958
  pattern?: string;
918
959
  help?: string;
919
960
  "default"?: JsonNode;
@@ -998,6 +1039,32 @@ export type UpdateDocRequest = {
998
1039
  content: string;
999
1040
  publish: boolean;
1000
1041
  };
1042
+ export type Studio = {
1043
+ name: string;
1044
+ imageUrl?: string;
1045
+ };
1046
+ export type GetStackV3Response = {
1047
+ id: string;
1048
+ name: string;
1049
+ imageUrl?: string;
1050
+ description: string;
1051
+ latestVersion: string;
1052
+ updatedAt?: string;
1053
+ studio: Studio;
1054
+ };
1055
+ export type PageGetStackV3Response = {
1056
+ totalElements?: number;
1057
+ totalPages?: number;
1058
+ first?: boolean;
1059
+ last?: boolean;
1060
+ size?: number;
1061
+ content?: GetStackV3Response[];
1062
+ "number"?: number;
1063
+ sort?: SortObject[];
1064
+ numberOfElements?: number;
1065
+ pageable?: PageableObject;
1066
+ empty?: boolean;
1067
+ };
1001
1068
  export type PageStudioResponse = {
1002
1069
  totalElements?: number;
1003
1070
  totalPages?: number;
@@ -1151,6 +1218,44 @@ export type PluginInputV2Response = {
1151
1218
  computedInputs: PluginComputedInputResponse[];
1152
1219
  globalComputedInputs: PluginComputedInputResponse[];
1153
1220
  };
1221
+ export type LatestVersionV2Response = {
1222
+ versionId: string;
1223
+ semanticVersion: string;
1224
+ displayName?: string;
1225
+ description?: string;
1226
+ isDocumented: boolean;
1227
+ status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
1228
+ hasRequiredConnection: boolean;
1229
+ };
1230
+ export type ListActionVersionV2Response = {
1231
+ id: string;
1232
+ version: string;
1233
+ createdBy: string;
1234
+ createdAt: string;
1235
+ status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
1236
+ };
1237
+ export type ListActionV2Response = {
1238
+ id: string;
1239
+ slug: string;
1240
+ "type": string;
1241
+ studioSlug: string;
1242
+ accountSlug: string;
1243
+ latestVersion?: LatestVersionV2Response;
1244
+ versions: ListActionVersionV2Response[];
1245
+ };
1246
+ export type PageListActionV2Response = {
1247
+ totalElements?: number;
1248
+ totalPages?: number;
1249
+ first?: boolean;
1250
+ last?: boolean;
1251
+ size?: number;
1252
+ content?: ListActionV2Response[];
1253
+ "number"?: number;
1254
+ sort?: SortObject[];
1255
+ numberOfElements?: number;
1256
+ pageable?: PageableObject;
1257
+ empty?: boolean;
1258
+ };
1154
1259
  export type ActionInputV2Response = {
1155
1260
  computedInputs: ComputedInputResponse[];
1156
1261
  globalComputedInputs: ComputedInputResponse[];
@@ -1175,7 +1280,7 @@ export type GetWorkflowsByStudioLatestVersionDataResponse = {
1175
1280
  export type GetWorkflowsByStudioResponse = {
1176
1281
  id: string;
1177
1282
  slug: string;
1178
- "type": "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
1283
+ "type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
1179
1284
  studio: GetWorkflowsByStudioDataResponse;
1180
1285
  latestVersion?: GetWorkflowsByStudioLatestVersionDataResponse;
1181
1286
  };
@@ -1793,6 +1898,33 @@ export type GetPublishSuggestionResponse = {
1793
1898
  export type StackVersionUsageSummaryResponse = {
1794
1899
  totalUsedInWorkspaces: number;
1795
1900
  };
1901
+ export type StudioInfo = {
1902
+ name: string;
1903
+ imageUrl?: string;
1904
+ };
1905
+ export type StackVersionMostUsedListResponse = {
1906
+ id: string;
1907
+ slug: string;
1908
+ displayName: string;
1909
+ description: string;
1910
+ imageUrl?: string;
1911
+ version: string;
1912
+ lastUpdated: string;
1913
+ studio: StudioInfo;
1914
+ };
1915
+ export type PageStackVersionMostUsedListResponse = {
1916
+ totalElements?: number;
1917
+ totalPages?: number;
1918
+ first?: boolean;
1919
+ last?: boolean;
1920
+ size?: number;
1921
+ content?: StackVersionMostUsedListResponse[];
1922
+ "number"?: number;
1923
+ sort?: SortObject[];
1924
+ numberOfElements?: number;
1925
+ pageable?: PageableObject;
1926
+ empty?: boolean;
1927
+ };
1796
1928
  export type GetPluginYamlResponse = {
1797
1929
  schemaVersion: string;
1798
1930
  yaml?: JsonNode;
@@ -1842,7 +1974,7 @@ export type ContentStudioResponse = {
1842
1974
  export type ContentDataResponse = {
1843
1975
  id: string;
1844
1976
  slug: string;
1845
- contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
1977
+ contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW" | "WORKFLOW_VERSION";
1846
1978
  };
1847
1979
  export type ContentResponse = {
1848
1980
  studio: ContentStudioResponse;
@@ -1976,8 +2108,9 @@ export declare function createStarterV2({ stackVersionId, createStarterV2Request
1976
2108
  /**
1977
2109
  * Publish a new stack version
1978
2110
  */
1979
- export declare function publish({ stackVersionId, publishStackVersionRequest }: {
2111
+ export declare function publish({ stackVersionId, userAgent, publishStackVersionRequest }: {
1980
2112
  stackVersionId: string;
2113
+ userAgent?: string;
1981
2114
  publishStackVersionRequest: PublishStackVersionRequest;
1982
2115
  }, opts?: Oazapfts.RequestOpts): Promise<StackVersionSummaryResponse>;
1983
2116
  /**
@@ -2073,9 +2206,10 @@ export declare function getStackBySlug({ studioSlug, stackSlug, semanticVersion,
2073
2206
  /**
2074
2207
  * Publish Stack
2075
2208
  */
2076
- export declare function publishStack({ studioSlug, stackSlug, body }: {
2209
+ export declare function publishStack({ studioSlug, stackSlug, userAgent, body }: {
2077
2210
  studioSlug: string;
2078
2211
  stackSlug: string;
2212
+ userAgent?: string;
2079
2213
  body?: {
2080
2214
  file: Blob;
2081
2215
  };
@@ -2209,14 +2343,15 @@ export declare function validateStack({ starterPath, studioSlug, body }: {
2209
2343
  /**
2210
2344
  * List stacks from account
2211
2345
  */
2212
- export declare function listStacks1({ xWorkspaceId, isAccountHolder }: {
2346
+ export declare function listStacks2({ xWorkspaceId, isAccountHolder }: {
2213
2347
  xWorkspaceId?: string;
2214
2348
  isAccountHolder?: boolean;
2215
2349
  }, opts?: Oazapfts.RequestOpts): Promise<GetStackVersionResponse[]>;
2216
2350
  /**
2217
2351
  * Create New Stack
2218
2352
  */
2219
- export declare function createStack({ createStackRequest }: {
2353
+ export declare function createStack({ userAgent, createStackRequest }: {
2354
+ userAgent?: string;
2220
2355
  createStackRequest: CreateStackRequest;
2221
2356
  }, opts?: Oazapfts.RequestOpts): Promise<StackVersionSummaryResponse>;
2222
2357
  /**
@@ -2250,6 +2385,23 @@ export declare function removeStackWorkspace({ stackVersionId, workspaceId }: {
2250
2385
  stackVersionId: string;
2251
2386
  workspaceId: string;
2252
2387
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2388
+ /**
2389
+ * List all workflows versions from a stack version
2390
+ */
2391
+ export declare function listWorkflows({ stackVersionId, xWorkspaceId, displayName, $type, pageable }: {
2392
+ stackVersionId: string;
2393
+ xWorkspaceId?: string;
2394
+ displayName?: string;
2395
+ $type?: "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
2396
+ pageable: Pageable;
2397
+ }, opts?: Oazapfts.RequestOpts): Promise<PageGetStackWorkflowResponse>;
2398
+ /**
2399
+ * Add workflow version to a stack version
2400
+ */
2401
+ export declare function addWorkflow({ stackVersionId, body }: {
2402
+ stackVersionId: string;
2403
+ body: AddWorkflowRequest[];
2404
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2253
2405
  /**
2254
2406
  * Deprecate a starter
2255
2407
  */
@@ -2270,8 +2422,9 @@ export declare function listStartersWithFilter({ stackVersionId, xWorkspaceId, p
2270
2422
  /**
2271
2423
  * Publish a stack
2272
2424
  */
2273
- export declare function publish1({ stackVersionId }: {
2425
+ export declare function publish1({ stackVersionId, userAgent }: {
2274
2426
  stackVersionId: string;
2427
+ userAgent?: string;
2275
2428
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2276
2429
  /**
2277
2430
  * Deprecate plugin used by stack
@@ -2576,14 +2729,27 @@ export declare function updateConnectionInterfaceType1({ connectionInterfaceType
2576
2729
  connectionInterfaceTypeId: string;
2577
2730
  updateConnectionInterfaceTypeRequest: UpdateConnectionInterfaceTypeRequest;
2578
2731
  }, opts?: Oazapfts.RequestOpts): Promise<ConnectionInterfaceResponse>;
2732
+ /**
2733
+ * List stacks from the account
2734
+ */
2735
+ export declare function listStacks({ isAccountHolder, view, filter, page, size, sort, direction }: {
2736
+ isAccountHolder?: boolean;
2737
+ view?: "FAVORITES" | "ALL";
2738
+ filter?: string;
2739
+ page?: number;
2740
+ size?: number;
2741
+ sort?: "NAME" | "DATE" | "STUDIO_NAME" | "VERSION";
2742
+ direction?: "ASC" | "DESC";
2743
+ }, opts?: Oazapfts.RequestOpts): Promise<PageGetStackV3Response>;
2579
2744
  /**
2580
2745
  * Find studios
2581
2746
  */
2582
- export declare function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
2747
+ export declare function getStudios({ xWorkspaceId, authorization, aclOnly, filter, view, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
2583
2748
  xWorkspaceId?: string;
2584
2749
  authorization: string;
2585
2750
  aclOnly?: boolean;
2586
2751
  filter?: string;
2752
+ view?: "FAVORITES" | "ALL";
2587
2753
  isAccountHolder?: boolean;
2588
2754
  startersOnly?: boolean;
2589
2755
  infraOnly?: boolean;
@@ -2624,7 +2790,7 @@ export declare function getAvailableActionVersionsByActionSlug({ studioSlug, act
2624
2790
  /**
2625
2791
  * List stacks from account
2626
2792
  */
2627
- export declare function listStacks({ xWorkspaceId, isAccountHolder }: {
2793
+ export declare function listStacks1({ xWorkspaceId, isAccountHolder }: {
2628
2794
  xWorkspaceId?: string;
2629
2795
  isAccountHolder?: boolean;
2630
2796
  }, opts?: Oazapfts.RequestOpts): Promise<GetStackV2Response[]>;
@@ -2641,6 +2807,16 @@ export declare function getInputs({ pluginVersionId, xWorkspaceId }: {
2641
2807
  export declare function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug }: {
2642
2808
  connectionInterfaceTypeIdOrSlug: string;
2643
2809
  }, opts?: Oazapfts.RequestOpts): Promise<ConnectionInterfaceResponseV2>;
2810
+ /**
2811
+ * List of actions
2812
+ */
2813
+ export declare function listActions({ studioSlug, actionSlug, requiresConnection, filter, pageable }: {
2814
+ studioSlug?: string;
2815
+ actionSlug?: string;
2816
+ requiresConnection?: boolean;
2817
+ filter?: string;
2818
+ pageable: Pageable;
2819
+ }, opts?: Oazapfts.RequestOpts): Promise<PageListActionV2Response>;
2644
2820
  /**
2645
2821
  * List inputs of an action version
2646
2822
  */
@@ -2649,14 +2825,22 @@ export declare function listInputs({ actionVersionId, xWorkspaceId, accountId }:
2649
2825
  xWorkspaceId?: string;
2650
2826
  accountId?: string;
2651
2827
  }, opts?: Oazapfts.RequestOpts): Promise<ActionInputV2Response>;
2828
+ /**
2829
+ * Validate an workflow version to delete
2830
+ */
2831
+ export declare function validateUnpublishWorkflowVersion({ workflowVersionId }: {
2832
+ workflowVersionId: string;
2833
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2652
2834
  /**
2653
2835
  * Get workflows from studio
2654
2836
  */
2655
- export declare function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, pageable }: {
2837
+ export declare function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, slug, description, pageable }: {
2656
2838
  studioSlug: string;
2657
2839
  xWorkspaceId?: string;
2658
2840
  displayName?: string;
2659
- $type?: "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
2841
+ $type?: "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
2842
+ slug?: string;
2843
+ description?: string;
2660
2844
  pageable: Pageable;
2661
2845
  }, opts?: Oazapfts.RequestOpts): Promise<PageGetWorkflowsByStudioResponse>;
2662
2846
  /**
@@ -3084,7 +3268,7 @@ export declare function stackVersionUsageSummary({ stackVersionId }: {
3084
3268
  /**
3085
3269
  * List all action versions from a stack version
3086
3270
  */
3087
- export declare function listActions({ stackVersionId, forPluginVersionId, xWorkspaceId }: {
3271
+ export declare function listActions1({ stackVersionId, forPluginVersionId, xWorkspaceId }: {
3088
3272
  stackVersionId: string;
3089
3273
  forPluginVersionId?: string;
3090
3274
  xWorkspaceId?: string;
@@ -3098,6 +3282,13 @@ export declare function listStackTags({ xWorkspaceId, studioSlug, filter, size }
3098
3282
  filter?: string;
3099
3283
  size?: number;
3100
3284
  }, opts?: Oazapfts.RequestOpts): Promise<string[]>;
3285
+ /**
3286
+ * List most used stack versions
3287
+ */
3288
+ export declare function listMostUsedStackVersions({ filter, pageable }: {
3289
+ filter?: string;
3290
+ pageable: Pageable;
3291
+ }, opts?: Oazapfts.RequestOpts): Promise<PageStackVersionMostUsedListResponse>;
3101
3292
  /**
3102
3293
  * List plugins version
3103
3294
  */
@@ -3105,7 +3296,7 @@ export declare function listPlugins1({ studioSlug, pluginVersionId, name, $type,
3105
3296
  studioSlug?: string;
3106
3297
  pluginVersionId?: string;
3107
3298
  name?: string;
3108
- $type?: "APP" | "INFRA";
3299
+ $type?: "INFRA" | "APP";
3109
3300
  technologies?: string[];
3110
3301
  status?: ("PENDING_APPROVAL" | "PENDING_CREATOR_UPDATE" | "PUBLICATION_APPROVED" | "PUBLICATION_DECLINED")[];
3111
3302
  filter?: string;
@@ -3162,7 +3353,7 @@ export declare function listReasons(opts?: Oazapfts.RequestOpts): Promise<string
3162
3353
  * Get Studio and Content data from Content Type and Content ID
3163
3354
  */
3164
3355
  export declare function getContent({ contentType, contentIdentifier, studioSlug, accountId }: {
3165
- contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
3356
+ contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW" | "WORKFLOW_VERSION";
3166
3357
  contentIdentifier: string;
3167
3358
  studioSlug?: string;
3168
3359
  accountId?: string;
@@ -3197,7 +3388,7 @@ export declare function getConnectionInterfaceType1({ connectionInterfaceTypeIdO
3197
3388
  /**
3198
3389
  * List of actions
3199
3390
  */
3200
- export declare function listActions1({ studioSlug, name, $type, technologies, status, filter, accountOnly, xWorkspaceId, requiresConnection }: {
3391
+ export declare function listActions2({ studioSlug, name, $type, technologies, status, filter, accountOnly, xWorkspaceId, requiresConnection }: {
3201
3392
  studioSlug?: string;
3202
3393
  name?: string;
3203
3394
  $type?: string;
@@ -3272,6 +3463,12 @@ export declare function downloadAction2({ accountSlug, studioSlug, actionSlug, v
3272
3463
  export declare function listDocs({ accountId }: {
3273
3464
  accountId: string;
3274
3465
  }, opts?: Oazapfts.RequestOpts): Promise<ListDocumentationResponse>;
3466
+ /**
3467
+ * Remove a workflow version
3468
+ */
3469
+ export declare function unpublishWorkflowVersion({ workflowVersionId }: {
3470
+ workflowVersionId: string;
3471
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3275
3472
  /**
3276
3473
  * Remove workspace of given studio
3277
3474
  */
@@ -3279,6 +3476,13 @@ export declare function delWorkspace({ studioSlug, workspaceId }: {
3279
3476
  studioSlug: string;
3280
3477
  workspaceId: string;
3281
3478
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3479
+ /**
3480
+ * Remove a workflow from a Stack Version
3481
+ */
3482
+ export declare function removeStackWorkflow({ stackVersionId, workflowId }: {
3483
+ stackVersionId: string;
3484
+ workflowId: string;
3485
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3282
3486
  /**
3283
3487
  * Deletes a Starter from a StackVersion
3284
3488
  */