@stack-spot/portal-network 0.34.0 → 0.35.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 +14 -0
- package/dist/api/cloudPlatform.d.ts +3 -3
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +6 -6
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/content.d.ts +108 -10
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +65 -15
- package/dist/api/content.js.map +1 -1
- package/dist/client/content.d.ts +4 -1
- package/dist/client/content.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/cloudPlatform.ts +11 -11
- package/src/api/content.ts +216 -16
package/src/api/content.ts
CHANGED
|
@@ -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" | "
|
|
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";
|
|
115
115
|
field?: string;
|
|
116
116
|
value?: object;
|
|
117
117
|
examples: string[];
|
|
@@ -309,6 +309,7 @@ export type GetStackActionResponse = {
|
|
|
309
309
|
"type": string;
|
|
310
310
|
qualifier: string;
|
|
311
311
|
status: string;
|
|
312
|
+
isDocumented: boolean;
|
|
312
313
|
};
|
|
313
314
|
export type GetStackVersionResponse = {
|
|
314
315
|
stack: GetStackVersionStackResponse;
|
|
@@ -456,6 +457,8 @@ export type PluginGeneratesConnectionResponse = {
|
|
|
456
457
|
typeId: string;
|
|
457
458
|
"type": string;
|
|
458
459
|
alias: string;
|
|
460
|
+
optional: boolean;
|
|
461
|
+
source: string;
|
|
459
462
|
outputs?: OutputResponse[];
|
|
460
463
|
};
|
|
461
464
|
export type PluginGeneratesLinkResponse = {
|
|
@@ -637,6 +640,7 @@ export type ActionResponse = {
|
|
|
637
640
|
repository?: string;
|
|
638
641
|
governance?: ActionGovernanceResponse;
|
|
639
642
|
status: string;
|
|
643
|
+
hasRequiredConnection: boolean;
|
|
640
644
|
};
|
|
641
645
|
export type PageActionResponse = {
|
|
642
646
|
totalElements?: number;
|
|
@@ -1012,11 +1016,60 @@ export type PageStudioResponse = {
|
|
|
1012
1016
|
numberOfElements?: number;
|
|
1013
1017
|
empty?: boolean;
|
|
1014
1018
|
};
|
|
1019
|
+
export type GovernanceDto = {
|
|
1020
|
+
id?: string;
|
|
1021
|
+
status: string;
|
|
1022
|
+
pendingDiscussionReading?: boolean;
|
|
1023
|
+
};
|
|
1024
|
+
export type PluginVersionDto = {
|
|
1025
|
+
pluginVersionId: string;
|
|
1026
|
+
slug: string;
|
|
1027
|
+
version: string;
|
|
1028
|
+
createdBy: string;
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
status: string;
|
|
1031
|
+
governance?: GovernanceDto;
|
|
1032
|
+
};
|
|
1033
|
+
export type PagePluginVersionDto = {
|
|
1034
|
+
totalElements?: number;
|
|
1035
|
+
totalPages?: number;
|
|
1036
|
+
first?: boolean;
|
|
1037
|
+
last?: boolean;
|
|
1038
|
+
size?: number;
|
|
1039
|
+
content?: PluginVersionDto[];
|
|
1040
|
+
"number"?: number;
|
|
1041
|
+
sort?: SortObject[];
|
|
1042
|
+
pageable?: PageableObject;
|
|
1043
|
+
numberOfElements?: number;
|
|
1044
|
+
empty?: boolean;
|
|
1045
|
+
};
|
|
1015
1046
|
export type DownloadBase64Response = {
|
|
1016
1047
|
fileBase64: string;
|
|
1017
1048
|
fileName: string;
|
|
1018
1049
|
actionVersionId: string;
|
|
1019
1050
|
};
|
|
1051
|
+
export type ActionVersionDto = {
|
|
1052
|
+
actionVersionId: string;
|
|
1053
|
+
version: string;
|
|
1054
|
+
createdBy: string;
|
|
1055
|
+
createdAt: string;
|
|
1056
|
+
updatedAt?: string;
|
|
1057
|
+
status: string;
|
|
1058
|
+
governance?: GovernanceDto;
|
|
1059
|
+
};
|
|
1060
|
+
export type PageActionVersionDto = {
|
|
1061
|
+
totalElements?: number;
|
|
1062
|
+
totalPages?: number;
|
|
1063
|
+
first?: boolean;
|
|
1064
|
+
last?: boolean;
|
|
1065
|
+
size?: number;
|
|
1066
|
+
content?: ActionVersionDto[];
|
|
1067
|
+
"number"?: number;
|
|
1068
|
+
sort?: SortObject[];
|
|
1069
|
+
pageable?: PageableObject;
|
|
1070
|
+
numberOfElements?: number;
|
|
1071
|
+
empty?: boolean;
|
|
1072
|
+
};
|
|
1020
1073
|
export type StackStudioV2Response = {
|
|
1021
1074
|
slug: string;
|
|
1022
1075
|
name: string;
|
|
@@ -1072,6 +1125,10 @@ export type PluginInputConditionResponse = {
|
|
|
1072
1125
|
operator?: string;
|
|
1073
1126
|
value?: JsonNode;
|
|
1074
1127
|
};
|
|
1128
|
+
export type PluginOutputResponse = {
|
|
1129
|
+
"from": string;
|
|
1130
|
+
to: string;
|
|
1131
|
+
};
|
|
1075
1132
|
export type PluginInputResponse = {
|
|
1076
1133
|
label?: string;
|
|
1077
1134
|
name?: string;
|
|
@@ -1087,6 +1144,7 @@ export type PluginInputResponse = {
|
|
|
1087
1144
|
isGlobal?: boolean;
|
|
1088
1145
|
inputEnv?: boolean;
|
|
1089
1146
|
connectionInterfaceType?: string;
|
|
1147
|
+
outputs?: PluginOutputResponse[];
|
|
1090
1148
|
input?: PluginInputResponse;
|
|
1091
1149
|
};
|
|
1092
1150
|
export type PluginComputedInputResponse = {
|
|
@@ -1791,6 +1849,48 @@ export type ListDocumentationResponse = {
|
|
|
1791
1849
|
documentationId: string;
|
|
1792
1850
|
languages: DocumentationLanguageResponse[];
|
|
1793
1851
|
};
|
|
1852
|
+
/**
|
|
1853
|
+
* Update Workflow Documentation
|
|
1854
|
+
*/
|
|
1855
|
+
export function updateWorkflowDocumentation({ studioSlug, workflowSlug, body }: {
|
|
1856
|
+
studioSlug: string;
|
|
1857
|
+
workflowSlug: string;
|
|
1858
|
+
body?: {
|
|
1859
|
+
file: Blob;
|
|
1860
|
+
};
|
|
1861
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1862
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1863
|
+
status: 200;
|
|
1864
|
+
} | {
|
|
1865
|
+
status: 204;
|
|
1866
|
+
} | {
|
|
1867
|
+
status: 400;
|
|
1868
|
+
} | {
|
|
1869
|
+
status: 403;
|
|
1870
|
+
} | {
|
|
1871
|
+
status: 404;
|
|
1872
|
+
} | {
|
|
1873
|
+
status: 422;
|
|
1874
|
+
data: {
|
|
1875
|
+
code: string;
|
|
1876
|
+
status: number;
|
|
1877
|
+
details: string;
|
|
1878
|
+
validationDetails?: ValidationDetails[];
|
|
1879
|
+
};
|
|
1880
|
+
} | {
|
|
1881
|
+
status: 500;
|
|
1882
|
+
data: {
|
|
1883
|
+
code: string;
|
|
1884
|
+
status: number;
|
|
1885
|
+
details: string;
|
|
1886
|
+
validationDetails?: ValidationDetails[];
|
|
1887
|
+
};
|
|
1888
|
+
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/docs`, oazapfts.multipart({
|
|
1889
|
+
...opts,
|
|
1890
|
+
method: "PUT",
|
|
1891
|
+
body
|
|
1892
|
+
})));
|
|
1893
|
+
}
|
|
1794
1894
|
/**
|
|
1795
1895
|
* Update Stack and starter docs
|
|
1796
1896
|
*/
|
|
@@ -2171,7 +2271,8 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
|
|
|
2171
2271
|
/**
|
|
2172
2272
|
* Validate and return info from a workflow
|
|
2173
2273
|
*/
|
|
2174
|
-
export function validateWorkflow({ body }: {
|
|
2274
|
+
export function validateWorkflow({ studioSlug, body }: {
|
|
2275
|
+
studioSlug?: string;
|
|
2175
2276
|
body?: {
|
|
2176
2277
|
file: Blob;
|
|
2177
2278
|
};
|
|
@@ -2195,7 +2296,9 @@ export function validateWorkflow({ body }: {
|
|
|
2195
2296
|
details: string;
|
|
2196
2297
|
validationDetails?: ValidationDetails[];
|
|
2197
2298
|
};
|
|
2198
|
-
}>(
|
|
2299
|
+
}>(`/v1/workflows/validate${QS.query(QS.explode({
|
|
2300
|
+
studioSlug
|
|
2301
|
+
}))}`, oazapfts.json({
|
|
2199
2302
|
...opts,
|
|
2200
2303
|
method: "POST",
|
|
2201
2304
|
body
|
|
@@ -2334,9 +2437,10 @@ export function addWorkspace({ studioSlug, studioWorkspaceRequest }: {
|
|
|
2334
2437
|
/**
|
|
2335
2438
|
* Publish Workflow
|
|
2336
2439
|
*/
|
|
2337
|
-
export function publishWorkflow({ studioSlug, workflowSlug, body }: {
|
|
2440
|
+
export function publishWorkflow({ studioSlug, workflowSlug, userAgent, body }: {
|
|
2338
2441
|
studioSlug: string;
|
|
2339
2442
|
workflowSlug: string;
|
|
2443
|
+
userAgent?: string;
|
|
2340
2444
|
body?: {
|
|
2341
2445
|
file: Blob;
|
|
2342
2446
|
};
|
|
@@ -2363,7 +2467,10 @@ export function publishWorkflow({ studioSlug, workflowSlug, body }: {
|
|
|
2363
2467
|
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}`, oazapfts.multipart({
|
|
2364
2468
|
...opts,
|
|
2365
2469
|
method: "POST",
|
|
2366
|
-
body
|
|
2470
|
+
body,
|
|
2471
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2472
|
+
"User-Agent": userAgent
|
|
2473
|
+
})
|
|
2367
2474
|
})));
|
|
2368
2475
|
}
|
|
2369
2476
|
/**
|
|
@@ -2517,7 +2624,7 @@ export function publishPluginController({ studioSlug, pluginSlug, body }: {
|
|
|
2517
2624
|
/**
|
|
2518
2625
|
* Get available plugin versions by plugin slug
|
|
2519
2626
|
*/
|
|
2520
|
-
export function
|
|
2627
|
+
export function getAvailablePluginVersionsByPluginSlug1({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }: {
|
|
2521
2628
|
studioSlug: string;
|
|
2522
2629
|
pluginSlug: string;
|
|
2523
2630
|
xWorkspaceId?: string;
|
|
@@ -2768,7 +2875,7 @@ export function createAction({ studioSlug, actionSlug, body }: {
|
|
|
2768
2875
|
/**
|
|
2769
2876
|
* Get available action versions by action slug
|
|
2770
2877
|
*/
|
|
2771
|
-
export function
|
|
2878
|
+
export function getAvailableActionVersionsByActionSlug1({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }: {
|
|
2772
2879
|
studioSlug: string;
|
|
2773
2880
|
actionSlug: string;
|
|
2774
2881
|
xWorkspaceId?: string;
|
|
@@ -2916,8 +3023,9 @@ export function listStudios({ xWorkspaceId, filterStudioRequest }: {
|
|
|
2916
3023
|
/**
|
|
2917
3024
|
* Validate and return info from a starter
|
|
2918
3025
|
*/
|
|
2919
|
-
export function validateStack({ starterPath, body }: {
|
|
3026
|
+
export function validateStack({ starterPath, studioSlug, body }: {
|
|
2920
3027
|
starterPath: string;
|
|
3028
|
+
studioSlug?: string;
|
|
2921
3029
|
body?: {
|
|
2922
3030
|
file: Blob;
|
|
2923
3031
|
};
|
|
@@ -2942,7 +3050,8 @@ export function validateStack({ starterPath, body }: {
|
|
|
2942
3050
|
validationDetails?: ValidationDetails[];
|
|
2943
3051
|
};
|
|
2944
3052
|
}>(`/v1/starters/validate${QS.query(QS.explode({
|
|
2945
|
-
starterPath
|
|
3053
|
+
starterPath,
|
|
3054
|
+
studioSlug
|
|
2946
3055
|
}))}`, oazapfts.json({
|
|
2947
3056
|
...opts,
|
|
2948
3057
|
method: "POST",
|
|
@@ -3587,7 +3696,8 @@ export function getStackVersionListByIds({ xWorkspaceId, filterStackVersionReque
|
|
|
3587
3696
|
/**
|
|
3588
3697
|
* Validate and return info from a stack
|
|
3589
3698
|
*/
|
|
3590
|
-
export function validateStack1({ body }: {
|
|
3699
|
+
export function validateStack1({ studioSlug, body }: {
|
|
3700
|
+
studioSlug?: string;
|
|
3591
3701
|
body?: {
|
|
3592
3702
|
file: Blob;
|
|
3593
3703
|
};
|
|
@@ -3611,7 +3721,9 @@ export function validateStack1({ body }: {
|
|
|
3611
3721
|
details: string;
|
|
3612
3722
|
validationDetails?: ValidationDetails[];
|
|
3613
3723
|
};
|
|
3614
|
-
}>(
|
|
3724
|
+
}>(`/v1/stacks/validate${QS.query(QS.explode({
|
|
3725
|
+
studioSlug
|
|
3726
|
+
}))}`, oazapfts.json({
|
|
3615
3727
|
...opts,
|
|
3616
3728
|
method: "POST",
|
|
3617
3729
|
body
|
|
@@ -3717,7 +3829,8 @@ export function deprecatePluginVersion({ pluginVersionId, deprecateContentReques
|
|
|
3717
3829
|
/**
|
|
3718
3830
|
* Validate and return info from a plugin
|
|
3719
3831
|
*/
|
|
3720
|
-
export function validatePlugin({ body }: {
|
|
3832
|
+
export function validatePlugin({ studioSlug, body }: {
|
|
3833
|
+
studioSlug?: string;
|
|
3721
3834
|
body?: {
|
|
3722
3835
|
file: Blob;
|
|
3723
3836
|
};
|
|
@@ -3741,7 +3854,9 @@ export function validatePlugin({ body }: {
|
|
|
3741
3854
|
details: string;
|
|
3742
3855
|
validationDetails?: ValidationDetails[];
|
|
3743
3856
|
};
|
|
3744
|
-
}>(
|
|
3857
|
+
}>(`/v1/plugins/validate${QS.query(QS.explode({
|
|
3858
|
+
studioSlug
|
|
3859
|
+
}))}`, oazapfts.json({
|
|
3745
3860
|
...opts,
|
|
3746
3861
|
method: "POST",
|
|
3747
3862
|
body
|
|
@@ -3986,7 +4101,8 @@ export function deprecateActionVersion({ actionVersionId, deprecateContentReques
|
|
|
3986
4101
|
/**
|
|
3987
4102
|
* Validate and return info from a action
|
|
3988
4103
|
*/
|
|
3989
|
-
export function validateAction({ body }: {
|
|
4104
|
+
export function validateAction({ studioSlug, body }: {
|
|
4105
|
+
studioSlug?: string;
|
|
3990
4106
|
body?: {
|
|
3991
4107
|
file: Blob;
|
|
3992
4108
|
};
|
|
@@ -4010,7 +4126,9 @@ export function validateAction({ body }: {
|
|
|
4010
4126
|
details: string;
|
|
4011
4127
|
validationDetails?: ValidationDetails[];
|
|
4012
4128
|
};
|
|
4013
|
-
}>(
|
|
4129
|
+
}>(`/v1/actions/validate${QS.query(QS.explode({
|
|
4130
|
+
studioSlug
|
|
4131
|
+
}))}`, oazapfts.json({
|
|
4014
4132
|
...opts,
|
|
4015
4133
|
method: "POST",
|
|
4016
4134
|
body
|
|
@@ -4694,6 +4812,45 @@ export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAcc
|
|
|
4694
4812
|
})
|
|
4695
4813
|
}));
|
|
4696
4814
|
}
|
|
4815
|
+
/**
|
|
4816
|
+
* Get available plugin versions by plugin slug
|
|
4817
|
+
*/
|
|
4818
|
+
export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed, pageable }: {
|
|
4819
|
+
studioSlug: string;
|
|
4820
|
+
pluginSlug: string;
|
|
4821
|
+
xWorkspaceId?: string;
|
|
4822
|
+
range: string;
|
|
4823
|
+
appAllowed?: boolean;
|
|
4824
|
+
pageable: Pageable;
|
|
4825
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4826
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4827
|
+
status: 200;
|
|
4828
|
+
data: PagePluginVersionDto;
|
|
4829
|
+
} | {
|
|
4830
|
+
status: 422;
|
|
4831
|
+
data: {
|
|
4832
|
+
code: string;
|
|
4833
|
+
status: number;
|
|
4834
|
+
details: string;
|
|
4835
|
+
validationDetails?: ValidationDetails[];
|
|
4836
|
+
};
|
|
4837
|
+
} | {
|
|
4838
|
+
status: 500;
|
|
4839
|
+
data: {
|
|
4840
|
+
code: string;
|
|
4841
|
+
status: number;
|
|
4842
|
+
details: string;
|
|
4843
|
+
validationDetails?: ValidationDetails[];
|
|
4844
|
+
};
|
|
4845
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
|
|
4846
|
+
"x-workspace-id": xWorkspaceId,
|
|
4847
|
+
range,
|
|
4848
|
+
appAllowed,
|
|
4849
|
+
pageable
|
|
4850
|
+
}))}`, {
|
|
4851
|
+
...opts
|
|
4852
|
+
}));
|
|
4853
|
+
}
|
|
4697
4854
|
/**
|
|
4698
4855
|
* Download an action by version
|
|
4699
4856
|
*/
|
|
@@ -4729,6 +4886,45 @@ export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId }
|
|
|
4729
4886
|
})
|
|
4730
4887
|
}));
|
|
4731
4888
|
}
|
|
4889
|
+
/**
|
|
4890
|
+
* Get available action versions by action slug
|
|
4891
|
+
*/
|
|
4892
|
+
export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection, pageable }: {
|
|
4893
|
+
studioSlug: string;
|
|
4894
|
+
actionSlug: string;
|
|
4895
|
+
xWorkspaceId?: string;
|
|
4896
|
+
range: string;
|
|
4897
|
+
requiresConnection?: boolean;
|
|
4898
|
+
pageable: Pageable;
|
|
4899
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4900
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4901
|
+
status: 200;
|
|
4902
|
+
data: PageActionVersionDto;
|
|
4903
|
+
} | {
|
|
4904
|
+
status: 422;
|
|
4905
|
+
data: {
|
|
4906
|
+
code: string;
|
|
4907
|
+
status: number;
|
|
4908
|
+
details: string;
|
|
4909
|
+
validationDetails?: ValidationDetails[];
|
|
4910
|
+
};
|
|
4911
|
+
} | {
|
|
4912
|
+
status: 500;
|
|
4913
|
+
data: {
|
|
4914
|
+
code: string;
|
|
4915
|
+
status: number;
|
|
4916
|
+
details: string;
|
|
4917
|
+
validationDetails?: ValidationDetails[];
|
|
4918
|
+
};
|
|
4919
|
+
}>(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
|
|
4920
|
+
"x-workspace-id": xWorkspaceId,
|
|
4921
|
+
range,
|
|
4922
|
+
requiresConnection,
|
|
4923
|
+
pageable
|
|
4924
|
+
}))}`, {
|
|
4925
|
+
...opts
|
|
4926
|
+
}));
|
|
4927
|
+
}
|
|
4732
4928
|
/**
|
|
4733
4929
|
* List stacks from account
|
|
4734
4930
|
*/
|
|
@@ -4868,9 +5064,11 @@ export function listInputs({ actionVersionId, xWorkspaceId, accountId }: {
|
|
|
4868
5064
|
/**
|
|
4869
5065
|
* Get workflows from studio
|
|
4870
5066
|
*/
|
|
4871
|
-
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }: {
|
|
5067
|
+
export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, displayName, $type, pageable }: {
|
|
4872
5068
|
studioSlug: string;
|
|
4873
5069
|
xWorkspaceId?: string;
|
|
5070
|
+
displayName?: string;
|
|
5071
|
+
$type?: "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
|
|
4874
5072
|
pageable: Pageable;
|
|
4875
5073
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4876
5074
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -4894,6 +5092,8 @@ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }:
|
|
|
4894
5092
|
};
|
|
4895
5093
|
}>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows${QS.query(QS.explode({
|
|
4896
5094
|
"x-workspace-id": xWorkspaceId,
|
|
5095
|
+
displayName,
|
|
5096
|
+
"type": $type,
|
|
4897
5097
|
pageable
|
|
4898
5098
|
}))}`, {
|
|
4899
5099
|
...opts
|