@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 +7 -0
- package/dist/api/content.d.ts +224 -20
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +124 -17
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +28 -1
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +31 -4
- package/dist/client/content.js.map +1 -1
- package/package.json +1 -1
- package/src/api/content.ts +454 -27
- package/src/client/content.ts +21 -7
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.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
|
export type ValidationDetails = {
|
|
18
18
|
code?: string;
|
|
@@ -111,7 +111,7 @@ export type CreateConnectionInterfaceTypeRequest = {
|
|
|
111
111
|
};
|
|
112
112
|
export type YamlValidationError = {
|
|
113
113
|
details: string;
|
|
114
|
-
"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";
|
|
114
|
+
"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";
|
|
115
115
|
field?: string;
|
|
116
116
|
value?: object;
|
|
117
117
|
examples: string[];
|
|
@@ -359,9 +359,9 @@ export type PageableObject = {
|
|
|
359
359
|
offset?: number;
|
|
360
360
|
sort?: SortObject[];
|
|
361
361
|
paged?: boolean;
|
|
362
|
-
unpaged?: boolean;
|
|
363
362
|
pageSize?: number;
|
|
364
363
|
pageNumber?: number;
|
|
364
|
+
unpaged?: boolean;
|
|
365
365
|
};
|
|
366
366
|
export type PageGetStackStudioResponse = {
|
|
367
367
|
totalElements?: number;
|
|
@@ -436,7 +436,7 @@ export type PublishProcessRequest = {
|
|
|
436
436
|
pluginVersionId: string;
|
|
437
437
|
};
|
|
438
438
|
export type FilterPluginVersionRequest = {
|
|
439
|
-
"type"?: "
|
|
439
|
+
"type"?: "INFRA" | "APP";
|
|
440
440
|
technologies?: string[];
|
|
441
441
|
text?: string;
|
|
442
442
|
};
|
|
@@ -696,6 +696,47 @@ export type StackVersionListResponse = {
|
|
|
696
696
|
copyFromStackVersionId?: string;
|
|
697
697
|
documentation?: StackVersionListDocumentationResponse;
|
|
698
698
|
};
|
|
699
|
+
export type GetStackWorkflowStudioResponse = {
|
|
700
|
+
id: string;
|
|
701
|
+
slug: string;
|
|
702
|
+
name: string;
|
|
703
|
+
imageUrl?: string;
|
|
704
|
+
};
|
|
705
|
+
export type GetStackWorkflowLatestVersionResponse = {
|
|
706
|
+
id: string;
|
|
707
|
+
displayName: string;
|
|
708
|
+
label: string;
|
|
709
|
+
description: string;
|
|
710
|
+
semanticVersion: string;
|
|
711
|
+
targetApp: boolean;
|
|
712
|
+
targetInfra: boolean;
|
|
713
|
+
addedAt: string;
|
|
714
|
+
};
|
|
715
|
+
export type GetStackWorkflowResponse = {
|
|
716
|
+
id: string;
|
|
717
|
+
slug: string;
|
|
718
|
+
"type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
|
|
719
|
+
studio: GetStackWorkflowStudioResponse;
|
|
720
|
+
latestVersion?: GetStackWorkflowLatestVersionResponse;
|
|
721
|
+
};
|
|
722
|
+
export type PageGetStackWorkflowResponse = {
|
|
723
|
+
totalElements?: number;
|
|
724
|
+
totalPages?: number;
|
|
725
|
+
first?: boolean;
|
|
726
|
+
last?: boolean;
|
|
727
|
+
size?: number;
|
|
728
|
+
content?: GetStackWorkflowResponse[];
|
|
729
|
+
"number"?: number;
|
|
730
|
+
sort?: SortObject[];
|
|
731
|
+
numberOfElements?: number;
|
|
732
|
+
pageable?: PageableObject;
|
|
733
|
+
empty?: boolean;
|
|
734
|
+
};
|
|
735
|
+
export type AddWorkflowRequest = {
|
|
736
|
+
workflowId: string;
|
|
737
|
+
"type": "VERSION" | "RANGE";
|
|
738
|
+
value: string;
|
|
739
|
+
};
|
|
699
740
|
export type DeprecateContentRequest = {
|
|
700
741
|
reason: string;
|
|
701
742
|
};
|
|
@@ -717,7 +758,7 @@ export type PageStarterResponseWithRange = {
|
|
|
717
758
|
empty?: boolean;
|
|
718
759
|
};
|
|
719
760
|
export type FilterStackVersionPluginRequest = {
|
|
720
|
-
"type"?: "
|
|
761
|
+
"type"?: "INFRA" | "APP";
|
|
721
762
|
technologies: string[];
|
|
722
763
|
text?: string;
|
|
723
764
|
};
|
|
@@ -918,7 +959,7 @@ export type ActionVersionDataInputResponse = {
|
|
|
918
959
|
label: string;
|
|
919
960
|
name: string;
|
|
920
961
|
"type": string;
|
|
921
|
-
required
|
|
962
|
+
required: boolean;
|
|
922
963
|
pattern?: string;
|
|
923
964
|
help?: string;
|
|
924
965
|
"default"?: JsonNode;
|
|
@@ -1003,6 +1044,32 @@ export type UpdateDocRequest = {
|
|
|
1003
1044
|
content: string;
|
|
1004
1045
|
publish: boolean;
|
|
1005
1046
|
};
|
|
1047
|
+
export type Studio = {
|
|
1048
|
+
name: string;
|
|
1049
|
+
imageUrl?: string;
|
|
1050
|
+
};
|
|
1051
|
+
export type GetStackV3Response = {
|
|
1052
|
+
id: string;
|
|
1053
|
+
name: string;
|
|
1054
|
+
imageUrl?: string;
|
|
1055
|
+
description: string;
|
|
1056
|
+
latestVersion: string;
|
|
1057
|
+
updatedAt?: string;
|
|
1058
|
+
studio: Studio;
|
|
1059
|
+
};
|
|
1060
|
+
export type PageGetStackV3Response = {
|
|
1061
|
+
totalElements?: number;
|
|
1062
|
+
totalPages?: number;
|
|
1063
|
+
first?: boolean;
|
|
1064
|
+
last?: boolean;
|
|
1065
|
+
size?: number;
|
|
1066
|
+
content?: GetStackV3Response[];
|
|
1067
|
+
"number"?: number;
|
|
1068
|
+
sort?: SortObject[];
|
|
1069
|
+
numberOfElements?: number;
|
|
1070
|
+
pageable?: PageableObject;
|
|
1071
|
+
empty?: boolean;
|
|
1072
|
+
};
|
|
1006
1073
|
export type PageStudioResponse = {
|
|
1007
1074
|
totalElements?: number;
|
|
1008
1075
|
totalPages?: number;
|
|
@@ -1156,6 +1223,44 @@ export type PluginInputV2Response = {
|
|
|
1156
1223
|
computedInputs: PluginComputedInputResponse[];
|
|
1157
1224
|
globalComputedInputs: PluginComputedInputResponse[];
|
|
1158
1225
|
};
|
|
1226
|
+
export type LatestVersionV2Response = {
|
|
1227
|
+
versionId: string;
|
|
1228
|
+
semanticVersion: string;
|
|
1229
|
+
displayName?: string;
|
|
1230
|
+
description?: string;
|
|
1231
|
+
isDocumented: boolean;
|
|
1232
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1233
|
+
hasRequiredConnection: boolean;
|
|
1234
|
+
};
|
|
1235
|
+
export type ListActionVersionV2Response = {
|
|
1236
|
+
id: string;
|
|
1237
|
+
version: string;
|
|
1238
|
+
createdBy: string;
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
status: "DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED";
|
|
1241
|
+
};
|
|
1242
|
+
export type ListActionV2Response = {
|
|
1243
|
+
id: string;
|
|
1244
|
+
slug: string;
|
|
1245
|
+
"type": string;
|
|
1246
|
+
studioSlug: string;
|
|
1247
|
+
accountSlug: string;
|
|
1248
|
+
latestVersion?: LatestVersionV2Response;
|
|
1249
|
+
versions: ListActionVersionV2Response[];
|
|
1250
|
+
};
|
|
1251
|
+
export type PageListActionV2Response = {
|
|
1252
|
+
totalElements?: number;
|
|
1253
|
+
totalPages?: number;
|
|
1254
|
+
first?: boolean;
|
|
1255
|
+
last?: boolean;
|
|
1256
|
+
size?: number;
|
|
1257
|
+
content?: ListActionV2Response[];
|
|
1258
|
+
"number"?: number;
|
|
1259
|
+
sort?: SortObject[];
|
|
1260
|
+
numberOfElements?: number;
|
|
1261
|
+
pageable?: PageableObject;
|
|
1262
|
+
empty?: boolean;
|
|
1263
|
+
};
|
|
1159
1264
|
export type ActionInputV2Response = {
|
|
1160
1265
|
computedInputs: ComputedInputResponse[];
|
|
1161
1266
|
globalComputedInputs: ComputedInputResponse[];
|
|
@@ -1180,7 +1285,7 @@ export type GetWorkflowsByStudioLatestVersionDataResponse = {
|
|
|
1180
1285
|
export type GetWorkflowsByStudioResponse = {
|
|
1181
1286
|
id: string;
|
|
1182
1287
|
slug: string;
|
|
1183
|
-
"type": "
|
|
1288
|
+
"type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
|
|
1184
1289
|
studio: GetWorkflowsByStudioDataResponse;
|
|
1185
1290
|
latestVersion?: GetWorkflowsByStudioLatestVersionDataResponse;
|
|
1186
1291
|
};
|
|
@@ -1798,6 +1903,33 @@ export type GetPublishSuggestionResponse = {
|
|
|
1798
1903
|
export type StackVersionUsageSummaryResponse = {
|
|
1799
1904
|
totalUsedInWorkspaces: number;
|
|
1800
1905
|
};
|
|
1906
|
+
export type StudioInfo = {
|
|
1907
|
+
name: string;
|
|
1908
|
+
imageUrl?: string;
|
|
1909
|
+
};
|
|
1910
|
+
export type StackVersionMostUsedListResponse = {
|
|
1911
|
+
id: string;
|
|
1912
|
+
slug: string;
|
|
1913
|
+
displayName: string;
|
|
1914
|
+
description: string;
|
|
1915
|
+
imageUrl?: string;
|
|
1916
|
+
version: string;
|
|
1917
|
+
lastUpdated: string;
|
|
1918
|
+
studio: StudioInfo;
|
|
1919
|
+
};
|
|
1920
|
+
export type PageStackVersionMostUsedListResponse = {
|
|
1921
|
+
totalElements?: number;
|
|
1922
|
+
totalPages?: number;
|
|
1923
|
+
first?: boolean;
|
|
1924
|
+
last?: boolean;
|
|
1925
|
+
size?: number;
|
|
1926
|
+
content?: StackVersionMostUsedListResponse[];
|
|
1927
|
+
"number"?: number;
|
|
1928
|
+
sort?: SortObject[];
|
|
1929
|
+
numberOfElements?: number;
|
|
1930
|
+
pageable?: PageableObject;
|
|
1931
|
+
empty?: boolean;
|
|
1932
|
+
};
|
|
1801
1933
|
export type GetPluginYamlResponse = {
|
|
1802
1934
|
schemaVersion: string;
|
|
1803
1935
|
yaml?: JsonNode;
|
|
@@ -1847,7 +1979,7 @@ export type ContentStudioResponse = {
|
|
|
1847
1979
|
export type ContentDataResponse = {
|
|
1848
1980
|
id: string;
|
|
1849
1981
|
slug: string;
|
|
1850
|
-
contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
|
|
1982
|
+
contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW" | "WORKFLOW_VERSION";
|
|
1851
1983
|
};
|
|
1852
1984
|
export type ContentResponse = {
|
|
1853
1985
|
studio: ContentStudioResponse;
|
|
@@ -2153,8 +2285,9 @@ export function createStarterV2({ stackVersionId, createStarterV2Request }: {
|
|
|
2153
2285
|
/**
|
|
2154
2286
|
* Publish a new stack version
|
|
2155
2287
|
*/
|
|
2156
|
-
export function publish({ stackVersionId, publishStackVersionRequest }: {
|
|
2288
|
+
export function publish({ stackVersionId, userAgent, publishStackVersionRequest }: {
|
|
2157
2289
|
stackVersionId: string;
|
|
2290
|
+
userAgent?: string;
|
|
2158
2291
|
publishStackVersionRequest: PublishStackVersionRequest;
|
|
2159
2292
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2160
2293
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -2179,7 +2312,10 @@ export function publish({ stackVersionId, publishStackVersionRequest }: {
|
|
|
2179
2312
|
}>(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/publish`, oazapfts.json({
|
|
2180
2313
|
...opts,
|
|
2181
2314
|
method: "POST",
|
|
2182
|
-
body: publishStackVersionRequest
|
|
2315
|
+
body: publishStackVersionRequest,
|
|
2316
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2317
|
+
"User-Agent": userAgent
|
|
2318
|
+
})
|
|
2183
2319
|
})));
|
|
2184
2320
|
}
|
|
2185
2321
|
/**
|
|
@@ -2372,7 +2508,7 @@ export function validateWorkflow({ studioSlug, body }: {
|
|
|
2372
2508
|
};
|
|
2373
2509
|
}>(`/v1/workflows/validate${QS.query(QS.explode({
|
|
2374
2510
|
studioSlug
|
|
2375
|
-
}))}`, oazapfts.
|
|
2511
|
+
}))}`, oazapfts.multipart({
|
|
2376
2512
|
...opts,
|
|
2377
2513
|
method: "POST",
|
|
2378
2514
|
body
|
|
@@ -2589,9 +2725,10 @@ export function getStackBySlug({ studioSlug, stackSlug, semanticVersion, onlyPub
|
|
|
2589
2725
|
/**
|
|
2590
2726
|
* Publish Stack
|
|
2591
2727
|
*/
|
|
2592
|
-
export function publishStack({ studioSlug, stackSlug, body }: {
|
|
2728
|
+
export function publishStack({ studioSlug, stackSlug, userAgent, body }: {
|
|
2593
2729
|
studioSlug: string;
|
|
2594
2730
|
stackSlug: string;
|
|
2731
|
+
userAgent?: string;
|
|
2595
2732
|
body?: {
|
|
2596
2733
|
file: Blob;
|
|
2597
2734
|
};
|
|
@@ -2618,7 +2755,10 @@ export function publishStack({ studioSlug, stackSlug, body }: {
|
|
|
2618
2755
|
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}`, oazapfts.multipart({
|
|
2619
2756
|
...opts,
|
|
2620
2757
|
method: "POST",
|
|
2621
|
-
body
|
|
2758
|
+
body,
|
|
2759
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2760
|
+
"User-Agent": userAgent
|
|
2761
|
+
})
|
|
2622
2762
|
})));
|
|
2623
2763
|
}
|
|
2624
2764
|
/**
|
|
@@ -3135,7 +3275,7 @@ export function validateStack({ starterPath, studioSlug, body }: {
|
|
|
3135
3275
|
/**
|
|
3136
3276
|
* List stacks from account
|
|
3137
3277
|
*/
|
|
3138
|
-
export function
|
|
3278
|
+
export function listStacks2({ xWorkspaceId, isAccountHolder }: {
|
|
3139
3279
|
xWorkspaceId?: string;
|
|
3140
3280
|
isAccountHolder?: boolean;
|
|
3141
3281
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3170,7 +3310,8 @@ export function listStacks1({ xWorkspaceId, isAccountHolder }: {
|
|
|
3170
3310
|
/**
|
|
3171
3311
|
* Create New Stack
|
|
3172
3312
|
*/
|
|
3173
|
-
export function createStack({ createStackRequest }: {
|
|
3313
|
+
export function createStack({ userAgent, createStackRequest }: {
|
|
3314
|
+
userAgent?: string;
|
|
3174
3315
|
createStackRequest: CreateStackRequest;
|
|
3175
3316
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3176
3317
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3195,7 +3336,10 @@ export function createStack({ createStackRequest }: {
|
|
|
3195
3336
|
}>("/v1/stacks", oazapfts.json({
|
|
3196
3337
|
...opts,
|
|
3197
3338
|
method: "POST",
|
|
3198
|
-
body: createStackRequest
|
|
3339
|
+
body: createStackRequest,
|
|
3340
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3341
|
+
"User-Agent": userAgent
|
|
3342
|
+
})
|
|
3199
3343
|
})));
|
|
3200
3344
|
}
|
|
3201
3345
|
/**
|
|
@@ -3332,6 +3476,77 @@ export function removeStackWorkspace({ stackVersionId, workspaceId }: {
|
|
|
3332
3476
|
method: "DELETE"
|
|
3333
3477
|
}));
|
|
3334
3478
|
}
|
|
3479
|
+
/**
|
|
3480
|
+
* List all workflows versions from a stack version
|
|
3481
|
+
*/
|
|
3482
|
+
export function listWorkflows({ stackVersionId, xWorkspaceId, displayName, $type, pageable }: {
|
|
3483
|
+
stackVersionId: string;
|
|
3484
|
+
xWorkspaceId?: string;
|
|
3485
|
+
displayName?: string;
|
|
3486
|
+
$type?: "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
|
|
3487
|
+
pageable: Pageable;
|
|
3488
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3489
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3490
|
+
status: 200;
|
|
3491
|
+
data: PageGetStackWorkflowResponse;
|
|
3492
|
+
} | {
|
|
3493
|
+
status: 422;
|
|
3494
|
+
data: {
|
|
3495
|
+
code: string;
|
|
3496
|
+
status: number;
|
|
3497
|
+
details: string;
|
|
3498
|
+
validationDetails?: ValidationDetails[];
|
|
3499
|
+
};
|
|
3500
|
+
} | {
|
|
3501
|
+
status: 500;
|
|
3502
|
+
data: {
|
|
3503
|
+
code: string;
|
|
3504
|
+
status: number;
|
|
3505
|
+
details: string;
|
|
3506
|
+
validationDetails?: ValidationDetails[];
|
|
3507
|
+
};
|
|
3508
|
+
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workflows${QS.query(QS.explode({
|
|
3509
|
+
displayName,
|
|
3510
|
+
"type": $type,
|
|
3511
|
+
pageable
|
|
3512
|
+
}))}`, {
|
|
3513
|
+
...opts,
|
|
3514
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3515
|
+
"x-workspace-id": xWorkspaceId
|
|
3516
|
+
})
|
|
3517
|
+
}));
|
|
3518
|
+
}
|
|
3519
|
+
/**
|
|
3520
|
+
* Add workflow version to a stack version
|
|
3521
|
+
*/
|
|
3522
|
+
export function addWorkflow({ stackVersionId, body }: {
|
|
3523
|
+
stackVersionId: string;
|
|
3524
|
+
body: AddWorkflowRequest[];
|
|
3525
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3526
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3527
|
+
status: 204;
|
|
3528
|
+
} | {
|
|
3529
|
+
status: 422;
|
|
3530
|
+
data: {
|
|
3531
|
+
code: string;
|
|
3532
|
+
status: number;
|
|
3533
|
+
details: string;
|
|
3534
|
+
validationDetails?: ValidationDetails[];
|
|
3535
|
+
};
|
|
3536
|
+
} | {
|
|
3537
|
+
status: 500;
|
|
3538
|
+
data: {
|
|
3539
|
+
code: string;
|
|
3540
|
+
status: number;
|
|
3541
|
+
details: string;
|
|
3542
|
+
validationDetails?: ValidationDetails[];
|
|
3543
|
+
};
|
|
3544
|
+
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workflows`, oazapfts.json({
|
|
3545
|
+
...opts,
|
|
3546
|
+
method: "POST",
|
|
3547
|
+
body
|
|
3548
|
+
})));
|
|
3549
|
+
}
|
|
3335
3550
|
/**
|
|
3336
3551
|
* Deprecate a starter
|
|
3337
3552
|
*/
|
|
@@ -3406,8 +3621,9 @@ export function listStartersWithFilter({ stackVersionId, xWorkspaceId, pageable,
|
|
|
3406
3621
|
/**
|
|
3407
3622
|
* Publish a stack
|
|
3408
3623
|
*/
|
|
3409
|
-
export function publish1({ stackVersionId }: {
|
|
3624
|
+
export function publish1({ stackVersionId, userAgent }: {
|
|
3410
3625
|
stackVersionId: string;
|
|
3626
|
+
userAgent?: string;
|
|
3411
3627
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3412
3628
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3413
3629
|
status: 204;
|
|
@@ -3429,7 +3645,10 @@ export function publish1({ stackVersionId }: {
|
|
|
3429
3645
|
};
|
|
3430
3646
|
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/publish`, {
|
|
3431
3647
|
...opts,
|
|
3432
|
-
method: "POST"
|
|
3648
|
+
method: "POST",
|
|
3649
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3650
|
+
"User-Agent": userAgent
|
|
3651
|
+
})
|
|
3433
3652
|
}));
|
|
3434
3653
|
}
|
|
3435
3654
|
/**
|
|
@@ -4837,14 +5056,58 @@ export function updateConnectionInterfaceType1({ connectionInterfaceTypeId, upda
|
|
|
4837
5056
|
body: updateConnectionInterfaceTypeRequest
|
|
4838
5057
|
})));
|
|
4839
5058
|
}
|
|
5059
|
+
/**
|
|
5060
|
+
* List stacks from the account
|
|
5061
|
+
*/
|
|
5062
|
+
export function listStacks({ isAccountHolder, view, filter, page, size, sort, direction }: {
|
|
5063
|
+
isAccountHolder?: boolean;
|
|
5064
|
+
view?: "FAVORITES" | "ALL";
|
|
5065
|
+
filter?: string;
|
|
5066
|
+
page?: number;
|
|
5067
|
+
size?: number;
|
|
5068
|
+
sort?: "NAME" | "DATE" | "STUDIO_NAME" | "VERSION";
|
|
5069
|
+
direction?: "ASC" | "DESC";
|
|
5070
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5071
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5072
|
+
status: 200;
|
|
5073
|
+
data: PageGetStackV3Response;
|
|
5074
|
+
} | {
|
|
5075
|
+
status: 422;
|
|
5076
|
+
data: {
|
|
5077
|
+
code: string;
|
|
5078
|
+
status: number;
|
|
5079
|
+
details: string;
|
|
5080
|
+
validationDetails?: ValidationDetails[];
|
|
5081
|
+
};
|
|
5082
|
+
} | {
|
|
5083
|
+
status: 500;
|
|
5084
|
+
data: {
|
|
5085
|
+
code: string;
|
|
5086
|
+
status: number;
|
|
5087
|
+
details: string;
|
|
5088
|
+
validationDetails?: ValidationDetails[];
|
|
5089
|
+
};
|
|
5090
|
+
}>(`/v3/stacks${QS.query(QS.explode({
|
|
5091
|
+
isAccountHolder,
|
|
5092
|
+
view,
|
|
5093
|
+
filter,
|
|
5094
|
+
page,
|
|
5095
|
+
size,
|
|
5096
|
+
sort,
|
|
5097
|
+
direction
|
|
5098
|
+
}))}`, {
|
|
5099
|
+
...opts
|
|
5100
|
+
}));
|
|
5101
|
+
}
|
|
4840
5102
|
/**
|
|
4841
5103
|
* Find studios
|
|
4842
5104
|
*/
|
|
4843
|
-
export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
|
|
5105
|
+
export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, view, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
|
|
4844
5106
|
xWorkspaceId?: string;
|
|
4845
5107
|
authorization: string;
|
|
4846
5108
|
aclOnly?: boolean;
|
|
4847
5109
|
filter?: string;
|
|
5110
|
+
view?: "FAVORITES" | "ALL";
|
|
4848
5111
|
isAccountHolder?: boolean;
|
|
4849
5112
|
startersOnly?: boolean;
|
|
4850
5113
|
infraOnly?: boolean;
|
|
@@ -4873,6 +5136,7 @@ export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAcc
|
|
|
4873
5136
|
}>(`/v2/studios${QS.query(QS.explode({
|
|
4874
5137
|
aclOnly,
|
|
4875
5138
|
filter,
|
|
5139
|
+
view,
|
|
4876
5140
|
isAccountHolder,
|
|
4877
5141
|
startersOnly,
|
|
4878
5142
|
infraOnly,
|
|
@@ -5002,7 +5266,7 @@ export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug,
|
|
|
5002
5266
|
/**
|
|
5003
5267
|
* List stacks from account
|
|
5004
5268
|
*/
|
|
5005
|
-
export function
|
|
5269
|
+
export function listStacks1({ xWorkspaceId, isAccountHolder }: {
|
|
5006
5270
|
xWorkspaceId?: string;
|
|
5007
5271
|
isAccountHolder?: boolean;
|
|
5008
5272
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -5100,6 +5364,45 @@ export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug }:
|
|
|
5100
5364
|
...opts
|
|
5101
5365
|
}));
|
|
5102
5366
|
}
|
|
5367
|
+
/**
|
|
5368
|
+
* List of actions
|
|
5369
|
+
*/
|
|
5370
|
+
export function listActions({ studioSlug, actionSlug, requiresConnection, filter, pageable }: {
|
|
5371
|
+
studioSlug?: string;
|
|
5372
|
+
actionSlug?: string;
|
|
5373
|
+
requiresConnection?: boolean;
|
|
5374
|
+
filter?: string;
|
|
5375
|
+
pageable: Pageable;
|
|
5376
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5377
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5378
|
+
status: 200;
|
|
5379
|
+
data: PageListActionV2Response;
|
|
5380
|
+
} | {
|
|
5381
|
+
status: 422;
|
|
5382
|
+
data: {
|
|
5383
|
+
code: string;
|
|
5384
|
+
status: number;
|
|
5385
|
+
details: string;
|
|
5386
|
+
validationDetails?: ValidationDetails[];
|
|
5387
|
+
};
|
|
5388
|
+
} | {
|
|
5389
|
+
status: 500;
|
|
5390
|
+
data: {
|
|
5391
|
+
code: string;
|
|
5392
|
+
status: number;
|
|
5393
|
+
details: string;
|
|
5394
|
+
validationDetails?: ValidationDetails[];
|
|
5395
|
+
};
|
|
5396
|
+
}>(`/v2/actions${QS.query(QS.explode({
|
|
5397
|
+
studioSlug,
|
|
5398
|
+
actionSlug,
|
|
5399
|
+
requiresConnection,
|
|
5400
|
+
filter,
|
|
5401
|
+
pageable
|
|
5402
|
+
}))}`, {
|
|
5403
|
+
...opts
|
|
5404
|
+
}));
|
|
5405
|
+
}
|
|
5103
5406
|
/**
|
|
5104
5407
|
* List inputs of an action version
|
|
5105
5408
|
*/
|
|
@@ -5135,14 +5438,44 @@ export function listInputs({ actionVersionId, xWorkspaceId, accountId }: {
|
|
|
5135
5438
|
})
|
|
5136
5439
|
}));
|
|
5137
5440
|
}
|
|
5441
|
+
/**
|
|
5442
|
+
* Validate an workflow version to delete
|
|
5443
|
+
*/
|
|
5444
|
+
export function validateUnpublishWorkflowVersion({ workflowVersionId }: {
|
|
5445
|
+
workflowVersionId: string;
|
|
5446
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5447
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5448
|
+
status: 200;
|
|
5449
|
+
} | {
|
|
5450
|
+
status: 422;
|
|
5451
|
+
data: {
|
|
5452
|
+
code: string;
|
|
5453
|
+
status: number;
|
|
5454
|
+
details: string;
|
|
5455
|
+
validationDetails?: ValidationDetails[];
|
|
5456
|
+
};
|
|
5457
|
+
} | {
|
|
5458
|
+
status: 500;
|
|
5459
|
+
data: {
|
|
5460
|
+
code: string;
|
|
5461
|
+
status: number;
|
|
5462
|
+
details: string;
|
|
5463
|
+
validationDetails?: ValidationDetails[];
|
|
5464
|
+
};
|
|
5465
|
+
}>(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/unpublish/validate`, {
|
|
5466
|
+
...opts
|
|
5467
|
+
}));
|
|
5468
|
+
}
|
|
5138
5469
|
/**
|
|
5139
5470
|
* Get workflows from studio
|
|
5140
5471
|
*/
|
|
5141
|
-
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, pageable }: {
|
|
5472
|
+
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, slug, description, pageable }: {
|
|
5142
5473
|
studioSlug: string;
|
|
5143
5474
|
xWorkspaceId?: string;
|
|
5144
5475
|
displayName?: string;
|
|
5145
|
-
$type?: "
|
|
5476
|
+
$type?: "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
|
|
5477
|
+
slug?: string;
|
|
5478
|
+
description?: string;
|
|
5146
5479
|
pageable: Pageable;
|
|
5147
5480
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5148
5481
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -5168,6 +5501,8 @@ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName,
|
|
|
5168
5501
|
"x-workspace-id": xWorkspaceId,
|
|
5169
5502
|
displayName,
|
|
5170
5503
|
"type": $type,
|
|
5504
|
+
slug,
|
|
5505
|
+
description,
|
|
5171
5506
|
pageable
|
|
5172
5507
|
}))}`, {
|
|
5173
5508
|
...opts
|
|
@@ -6944,7 +7279,7 @@ export function stackVersionUsageSummary({ stackVersionId }: {
|
|
|
6944
7279
|
/**
|
|
6945
7280
|
* List all action versions from a stack version
|
|
6946
7281
|
*/
|
|
6947
|
-
export function
|
|
7282
|
+
export function listActions1({ stackVersionId, forPluginVersionId, xWorkspaceId }: {
|
|
6948
7283
|
stackVersionId: string;
|
|
6949
7284
|
forPluginVersionId?: string;
|
|
6950
7285
|
xWorkspaceId?: string;
|
|
@@ -7016,6 +7351,39 @@ export function listStackTags({ xWorkspaceId, studioSlug, filter, size }: {
|
|
|
7016
7351
|
})
|
|
7017
7352
|
}));
|
|
7018
7353
|
}
|
|
7354
|
+
/**
|
|
7355
|
+
* List most used stack versions
|
|
7356
|
+
*/
|
|
7357
|
+
export function listMostUsedStackVersions({ filter, pageable }: {
|
|
7358
|
+
filter?: string;
|
|
7359
|
+
pageable: Pageable;
|
|
7360
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
7361
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7362
|
+
status: 200;
|
|
7363
|
+
data: PageStackVersionMostUsedListResponse;
|
|
7364
|
+
} | {
|
|
7365
|
+
status: 422;
|
|
7366
|
+
data: {
|
|
7367
|
+
code: string;
|
|
7368
|
+
status: number;
|
|
7369
|
+
details: string;
|
|
7370
|
+
validationDetails?: ValidationDetails[];
|
|
7371
|
+
};
|
|
7372
|
+
} | {
|
|
7373
|
+
status: 500;
|
|
7374
|
+
data: {
|
|
7375
|
+
code: string;
|
|
7376
|
+
status: number;
|
|
7377
|
+
details: string;
|
|
7378
|
+
validationDetails?: ValidationDetails[];
|
|
7379
|
+
};
|
|
7380
|
+
}>(`/v1/stacks/most-used${QS.query(QS.explode({
|
|
7381
|
+
filter,
|
|
7382
|
+
pageable
|
|
7383
|
+
}))}`, {
|
|
7384
|
+
...opts
|
|
7385
|
+
}));
|
|
7386
|
+
}
|
|
7019
7387
|
/**
|
|
7020
7388
|
* List plugins version
|
|
7021
7389
|
*/
|
|
@@ -7023,7 +7391,7 @@ export function listPlugins1({ studioSlug, pluginVersionId, name, $type, technol
|
|
|
7023
7391
|
studioSlug?: string;
|
|
7024
7392
|
pluginVersionId?: string;
|
|
7025
7393
|
name?: string;
|
|
7026
|
-
$type?: "
|
|
7394
|
+
$type?: "INFRA" | "APP";
|
|
7027
7395
|
technologies?: string[];
|
|
7028
7396
|
status?: ("PENDING_APPROVAL" | "PENDING_CREATOR_UPDATE" | "PUBLICATION_APPROVED" | "PUBLICATION_DECLINED")[];
|
|
7029
7397
|
filter?: string;
|
|
@@ -7296,7 +7664,7 @@ export function listReasons(opts?: Oazapfts.RequestOpts) {
|
|
|
7296
7664
|
* Get Studio and Content data from Content Type and Content ID
|
|
7297
7665
|
*/
|
|
7298
7666
|
export function getContent({ contentType, contentIdentifier, studioSlug, accountId }: {
|
|
7299
|
-
contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
|
|
7667
|
+
contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW" | "WORKFLOW_VERSION";
|
|
7300
7668
|
contentIdentifier: string;
|
|
7301
7669
|
studioSlug?: string;
|
|
7302
7670
|
accountId?: string;
|
|
@@ -7468,7 +7836,7 @@ export function getConnectionInterfaceType1({ connectionInterfaceTypeIdOrSlug }:
|
|
|
7468
7836
|
/**
|
|
7469
7837
|
* List of actions
|
|
7470
7838
|
*/
|
|
7471
|
-
export function
|
|
7839
|
+
export function listActions2({ studioSlug, name, $type, technologies, status, filter, accountOnly, xWorkspaceId, requiresConnection }: {
|
|
7472
7840
|
studioSlug?: string;
|
|
7473
7841
|
name?: string;
|
|
7474
7842
|
$type?: string;
|
|
@@ -7810,6 +8178,35 @@ export function listDocs({ accountId }: {
|
|
|
7810
8178
|
...opts
|
|
7811
8179
|
}));
|
|
7812
8180
|
}
|
|
8181
|
+
/**
|
|
8182
|
+
* Remove a workflow version
|
|
8183
|
+
*/
|
|
8184
|
+
export function unpublishWorkflowVersion({ workflowVersionId }: {
|
|
8185
|
+
workflowVersionId: string;
|
|
8186
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
8187
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8188
|
+
status: 204;
|
|
8189
|
+
} | {
|
|
8190
|
+
status: 422;
|
|
8191
|
+
data: {
|
|
8192
|
+
code: string;
|
|
8193
|
+
status: number;
|
|
8194
|
+
details: string;
|
|
8195
|
+
validationDetails?: ValidationDetails[];
|
|
8196
|
+
};
|
|
8197
|
+
} | {
|
|
8198
|
+
status: 500;
|
|
8199
|
+
data: {
|
|
8200
|
+
code: string;
|
|
8201
|
+
status: number;
|
|
8202
|
+
details: string;
|
|
8203
|
+
validationDetails?: ValidationDetails[];
|
|
8204
|
+
};
|
|
8205
|
+
}>(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}`, {
|
|
8206
|
+
...opts,
|
|
8207
|
+
method: "DELETE"
|
|
8208
|
+
}));
|
|
8209
|
+
}
|
|
7813
8210
|
/**
|
|
7814
8211
|
* Remove workspace of given studio
|
|
7815
8212
|
*/
|
|
@@ -7840,6 +8237,36 @@ export function delWorkspace({ studioSlug, workspaceId }: {
|
|
|
7840
8237
|
method: "DELETE"
|
|
7841
8238
|
}));
|
|
7842
8239
|
}
|
|
8240
|
+
/**
|
|
8241
|
+
* Remove a workflow from a Stack Version
|
|
8242
|
+
*/
|
|
8243
|
+
export function removeStackWorkflow({ stackVersionId, workflowId }: {
|
|
8244
|
+
stackVersionId: string;
|
|
8245
|
+
workflowId: string;
|
|
8246
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
8247
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8248
|
+
status: 204;
|
|
8249
|
+
} | {
|
|
8250
|
+
status: 422;
|
|
8251
|
+
data: {
|
|
8252
|
+
code: string;
|
|
8253
|
+
status: number;
|
|
8254
|
+
details: string;
|
|
8255
|
+
validationDetails?: ValidationDetails[];
|
|
8256
|
+
};
|
|
8257
|
+
} | {
|
|
8258
|
+
status: 500;
|
|
8259
|
+
data: {
|
|
8260
|
+
code: string;
|
|
8261
|
+
status: number;
|
|
8262
|
+
details: string;
|
|
8263
|
+
validationDetails?: ValidationDetails[];
|
|
8264
|
+
};
|
|
8265
|
+
}>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workflows/${encodeURIComponent(workflowId)}`, {
|
|
8266
|
+
...opts,
|
|
8267
|
+
method: "DELETE"
|
|
8268
|
+
}));
|
|
8269
|
+
}
|
|
7843
8270
|
/**
|
|
7844
8271
|
* Deletes a Starter from a StackVersion
|
|
7845
8272
|
*/
|