@stack-spot/portal-network 0.58.7 → 0.59.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.
@@ -109,9 +109,35 @@ export type CreateConnectionInterfaceTypeRequest = {
109
109
  description: string;
110
110
  outputs: CreateConnectionInterfaceTypeOutputRequest[];
111
111
  };
112
+ export type ListWorkflowsByVersionIdsRequest = {
113
+ ids: string[];
114
+ };
115
+ export type ListWorkflowsByVersionIdsStudioResponse = {
116
+ id: string;
117
+ slug: string;
118
+ name: string;
119
+ imageUrl?: string;
120
+ };
121
+ export type ListWorkflowsByVersionIdsLatestVersionResponse = {
122
+ id: string;
123
+ displayName: string;
124
+ label: string;
125
+ description: string;
126
+ semanticVersion: string;
127
+ targetApp: boolean;
128
+ targetInfra: boolean;
129
+ createdAt: string;
130
+ };
131
+ export type ListWorkflowsByVersionIdsResponse = {
132
+ id: string;
133
+ slug: string;
134
+ "type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
135
+ studio: ListWorkflowsByVersionIdsStudioResponse;
136
+ versionInfo?: ListWorkflowsByVersionIdsLatestVersionResponse;
137
+ };
112
138
  export type YamlValidationError = {
113
139
  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" | "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";
140
+ "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_STACK_PUBLISH_REQUIRED_CONTENT_ERROR" | "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
141
  field?: string;
116
142
  value?: object;
117
143
  examples: string[];
@@ -311,11 +337,35 @@ export type GetStackActionResponse = {
311
337
  status: string;
312
338
  isDocumented: boolean;
313
339
  };
340
+ export type GetStackWorkflowStudioResponse = {
341
+ id: string;
342
+ slug: string;
343
+ name: string;
344
+ imageUrl?: string;
345
+ };
346
+ export type GetStackWorkflowLatestVersionResponse = {
347
+ id: string;
348
+ displayName: string;
349
+ label: string;
350
+ description: string;
351
+ semanticVersion: string;
352
+ targetApp: boolean;
353
+ targetInfra: boolean;
354
+ addedAt: string;
355
+ };
356
+ export type GetStackWorkflowResponse = {
357
+ id: string;
358
+ slug: string;
359
+ "type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
360
+ studio: GetStackWorkflowStudioResponse;
361
+ latestVersion?: GetStackWorkflowLatestVersionResponse;
362
+ };
314
363
  export type GetStackVersionResponse = {
315
364
  stack: GetStackVersionStackResponse;
316
365
  version: StackVersionResponse;
317
366
  plugins?: GetStackPluginsResponse;
318
367
  actions?: GetStackActionResponse[];
368
+ workflows?: GetStackWorkflowResponse[];
319
369
  };
320
370
  export type Pageable = {
321
371
  page?: number;
@@ -358,9 +408,9 @@ export type SortObject = {
358
408
  export type PageableObject = {
359
409
  offset?: number;
360
410
  sort?: SortObject[];
411
+ paged?: boolean;
361
412
  pageSize?: number;
362
413
  pageNumber?: number;
363
- paged?: boolean;
364
414
  unpaged?: boolean;
365
415
  };
366
416
  export type PageGetStackStudioResponse = {
@@ -372,8 +422,8 @@ export type PageGetStackStudioResponse = {
372
422
  content?: GetStackStudioResponse[];
373
423
  "number"?: number;
374
424
  sort?: SortObject[];
375
- pageable?: PageableObject;
376
425
  numberOfElements?: number;
426
+ pageable?: PageableObject;
377
427
  empty?: boolean;
378
428
  };
379
429
  export type PublishPluginWarningResponse = {
@@ -510,8 +560,8 @@ export type PagePluginVersionResponse = {
510
560
  content?: PluginVersionResponse[];
511
561
  "number"?: number;
512
562
  sort?: SortObject[];
513
- pageable?: PageableObject;
514
563
  numberOfElements?: number;
564
+ pageable?: PageableObject;
515
565
  empty?: boolean;
516
566
  };
517
567
  export type GetActionCommandResponse = {
@@ -651,8 +701,8 @@ export type PageActionResponse = {
651
701
  content?: ActionResponse[];
652
702
  "number"?: number;
653
703
  sort?: SortObject[];
654
- pageable?: PageableObject;
655
704
  numberOfElements?: number;
705
+ pageable?: PageableObject;
656
706
  empty?: boolean;
657
707
  };
658
708
  export type FilterStudioRequest = {
@@ -696,29 +746,6 @@ export type StackVersionListResponse = {
696
746
  copyFromStackVersionId?: string;
697
747
  documentation?: StackVersionListDocumentationResponse;
698
748
  };
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
749
  export type PageGetStackWorkflowResponse = {
723
750
  totalElements?: number;
724
751
  totalPages?: number;
@@ -728,8 +755,8 @@ export type PageGetStackWorkflowResponse = {
728
755
  content?: GetStackWorkflowResponse[];
729
756
  "number"?: number;
730
757
  sort?: SortObject[];
731
- pageable?: PageableObject;
732
758
  numberOfElements?: number;
759
+ pageable?: PageableObject;
733
760
  empty?: boolean;
734
761
  };
735
762
  export type AddWorkflowRequest = {
@@ -753,8 +780,8 @@ export type PageStarterResponseWithRange = {
753
780
  content?: StarterResponseWithRange[];
754
781
  "number"?: number;
755
782
  sort?: SortObject[];
756
- pageable?: PageableObject;
757
783
  numberOfElements?: number;
784
+ pageable?: PageableObject;
758
785
  empty?: boolean;
759
786
  };
760
787
  export type FilterStackVersionPluginRequest = {
@@ -771,8 +798,8 @@ export type PageStackPluginResponse = {
771
798
  content?: StackPluginResponse[];
772
799
  "number"?: number;
773
800
  sort?: SortObject[];
774
- pageable?: PageableObject;
775
801
  numberOfElements?: number;
802
+ pageable?: PageableObject;
776
803
  empty?: boolean;
777
804
  };
778
805
  export type GetLinkPluginVersionStudioResponse = {
@@ -870,14 +897,15 @@ export type PageGetStackActionResponse = {
870
897
  content?: GetStackActionResponse[];
871
898
  "number"?: number;
872
899
  sort?: SortObject[];
873
- pageable?: PageableObject;
874
900
  numberOfElements?: number;
901
+ pageable?: PageableObject;
875
902
  empty?: boolean;
876
903
  };
877
904
  export type FilterStackVersionRequest = {
878
905
  ids: string[];
879
906
  withPlugins?: boolean;
880
907
  withActions?: boolean;
908
+ withWorkflows?: boolean;
881
909
  };
882
910
  export type StackValidateResponse = {
883
911
  stack: ValidateResponse;
@@ -1066,8 +1094,8 @@ export type PageGetStackV3Response = {
1066
1094
  content?: GetStackV3Response[];
1067
1095
  "number"?: number;
1068
1096
  sort?: SortObject[];
1069
- pageable?: PageableObject;
1070
1097
  numberOfElements?: number;
1098
+ pageable?: PageableObject;
1071
1099
  empty?: boolean;
1072
1100
  };
1073
1101
  export type PageStudioResponse = {
@@ -1079,8 +1107,8 @@ export type PageStudioResponse = {
1079
1107
  content?: StudioResponse[];
1080
1108
  "number"?: number;
1081
1109
  sort?: SortObject[];
1082
- pageable?: PageableObject;
1083
1110
  numberOfElements?: number;
1111
+ pageable?: PageableObject;
1084
1112
  empty?: boolean;
1085
1113
  };
1086
1114
  export type GovernanceDto = {
@@ -1106,8 +1134,8 @@ export type PagePluginVersionDto = {
1106
1134
  content?: PluginVersionDto[];
1107
1135
  "number"?: number;
1108
1136
  sort?: SortObject[];
1109
- pageable?: PageableObject;
1110
1137
  numberOfElements?: number;
1138
+ pageable?: PageableObject;
1111
1139
  empty?: boolean;
1112
1140
  };
1113
1141
  export type DownloadBase64Response = {
@@ -1133,8 +1161,8 @@ export type PageActionVersionDto = {
1133
1161
  content?: ActionVersionDto[];
1134
1162
  "number"?: number;
1135
1163
  sort?: SortObject[];
1136
- pageable?: PageableObject;
1137
1164
  numberOfElements?: number;
1165
+ pageable?: PageableObject;
1138
1166
  empty?: boolean;
1139
1167
  };
1140
1168
  export type StackStudioV2Response = {
@@ -1257,8 +1285,8 @@ export type PageListActionV2Response = {
1257
1285
  content?: ListActionV2Response[];
1258
1286
  "number"?: number;
1259
1287
  sort?: SortObject[];
1260
- pageable?: PageableObject;
1261
1288
  numberOfElements?: number;
1289
+ pageable?: PageableObject;
1262
1290
  empty?: boolean;
1263
1291
  };
1264
1292
  export type ActionInputV2Response = {
@@ -1266,6 +1294,81 @@ export type ActionInputV2Response = {
1266
1294
  globalComputedInputs: ComputedInputResponse[];
1267
1295
  inputs: ActionVersionInputResponse[];
1268
1296
  };
1297
+ export type AccountStudioResponse = {
1298
+ id: string;
1299
+ slug: string;
1300
+ name: string;
1301
+ imageUrl?: string;
1302
+ };
1303
+ export type AccountWorkflowVersionResponse = {
1304
+ id: string;
1305
+ displayName: string;
1306
+ label: string;
1307
+ description: string;
1308
+ semanticVersion: string;
1309
+ targetApp: boolean;
1310
+ targetInfra: boolean;
1311
+ status: "PUBLISHED" | "DEPRECATED";
1312
+ createdAt: string;
1313
+ };
1314
+ export type AccountWorkflowResponse = {
1315
+ id: string;
1316
+ slug: string;
1317
+ "type": "create" | "deploy" | "destroy" | "reusable" | "rollback" | "starter";
1318
+ studio: AccountStudioResponse;
1319
+ latestVersion: AccountWorkflowVersionResponse;
1320
+ };
1321
+ export type PageAccountWorkflowResponse = {
1322
+ totalElements?: number;
1323
+ totalPages?: number;
1324
+ first?: boolean;
1325
+ last?: boolean;
1326
+ size?: number;
1327
+ content?: AccountWorkflowResponse[];
1328
+ "number"?: number;
1329
+ sort?: SortObject[];
1330
+ numberOfElements?: number;
1331
+ pageable?: PageableObject;
1332
+ empty?: boolean;
1333
+ };
1334
+ export type WorkflowInputExternalItemsResponse = {
1335
+ source: string;
1336
+ value: string;
1337
+ label?: string;
1338
+ };
1339
+ export type WorkflowInputConditionResponse = {
1340
+ variable?: string;
1341
+ operator?: string;
1342
+ value?: JsonNode;
1343
+ };
1344
+ export type WorkflowOutputResponse = {
1345
+ "from": string;
1346
+ to: string;
1347
+ };
1348
+ export type WorkflowInputResponse = {
1349
+ label?: string;
1350
+ name?: string;
1351
+ "type"?: string;
1352
+ required: boolean;
1353
+ pattern?: string;
1354
+ help?: string;
1355
+ "default"?: JsonNode;
1356
+ items?: string;
1357
+ externalItems?: WorkflowInputExternalItemsResponse;
1358
+ itemsValues?: string[];
1359
+ condition?: WorkflowInputConditionResponse;
1360
+ connectionInterfaceType?: string;
1361
+ outputs?: WorkflowOutputResponse[];
1362
+ input?: WorkflowInputResponse;
1363
+ };
1364
+ export type WorkflowComputedInputResponse = {
1365
+ name: string;
1366
+ expression: string;
1367
+ };
1368
+ export type WorkflowInputV2Response = {
1369
+ inputs: WorkflowInputResponse[];
1370
+ computedInputs: WorkflowComputedInputResponse[];
1371
+ };
1269
1372
  export type GetWorkflowsByStudioDataResponse = {
1270
1373
  id: string;
1271
1374
  slug: string;
@@ -1298,8 +1401,8 @@ export type PageGetWorkflowsByStudioResponse = {
1298
1401
  content?: GetWorkflowsByStudioResponse[];
1299
1402
  "number"?: number;
1300
1403
  sort?: SortObject[];
1301
- pageable?: PageableObject;
1302
1404
  numberOfElements?: number;
1405
+ pageable?: PageableObject;
1303
1406
  empty?: boolean;
1304
1407
  };
1305
1408
  export type ListWorkflowVersionsResponse = {
@@ -1319,8 +1422,8 @@ export type PageListWorkflowVersionsResponse = {
1319
1422
  content?: ListWorkflowVersionsResponse[];
1320
1423
  "number"?: number;
1321
1424
  sort?: SortObject[];
1322
- pageable?: PageableObject;
1323
1425
  numberOfElements?: number;
1426
+ pageable?: PageableObject;
1324
1427
  empty?: boolean;
1325
1428
  };
1326
1429
  export type DownloadWorkflowBase64Response = {
@@ -1392,8 +1495,8 @@ export type PageGetAvailableWorkflowVersionsResponse = {
1392
1495
  content?: GetAvailableWorkflowVersionsResponse[];
1393
1496
  "number"?: number;
1394
1497
  sort?: SortObject[];
1395
- pageable?: PageableObject;
1396
1498
  numberOfElements?: number;
1499
+ pageable?: PageableObject;
1397
1500
  empty?: boolean;
1398
1501
  };
1399
1502
  export type StackWorkspaceViewResponse = {
@@ -1412,8 +1515,8 @@ export type PageStackWorkspaceViewResponse = {
1412
1515
  content?: StackWorkspaceViewResponse[];
1413
1516
  "number"?: number;
1414
1517
  sort?: SortObject[];
1415
- pageable?: PageableObject;
1416
1518
  numberOfElements?: number;
1519
+ pageable?: PageableObject;
1417
1520
  empty?: boolean;
1418
1521
  };
1419
1522
  export type StackVersionInWorkspaceDetailResponse = {
@@ -1440,8 +1543,8 @@ export type PageStackWorkspaceDetailViewResponse = {
1440
1543
  content?: StackWorkspaceDetailViewResponse[];
1441
1544
  "number"?: number;
1442
1545
  sort?: SortObject[];
1443
- pageable?: PageableObject;
1444
1546
  numberOfElements?: number;
1547
+ pageable?: PageableObject;
1445
1548
  empty?: boolean;
1446
1549
  };
1447
1550
  export type GetUnusedStackVersionsResponse = {
@@ -1459,8 +1562,8 @@ export type PageGetUnusedStackVersionsResponse = {
1459
1562
  content?: GetUnusedStackVersionsResponse[];
1460
1563
  "number"?: number;
1461
1564
  sort?: SortObject[];
1462
- pageable?: PageableObject;
1463
1565
  numberOfElements?: number;
1566
+ pageable?: PageableObject;
1464
1567
  empty?: boolean;
1465
1568
  };
1466
1569
  export type StackModalViewResponse = {
@@ -1610,8 +1713,8 @@ export type PagePluginStarterResponse = {
1610
1713
  content?: PluginStarterResponse[];
1611
1714
  "number"?: number;
1612
1715
  sort?: SortObject[];
1613
- pageable?: PageableObject;
1614
1716
  numberOfElements?: number;
1717
+ pageable?: PageableObject;
1615
1718
  empty?: boolean;
1616
1719
  };
1617
1720
  export type GetPluginStackStarterUsageStackResponse = {
@@ -1636,8 +1739,8 @@ export type PageGetPluginStackStarterUsageResponse = {
1636
1739
  content?: GetPluginStackStarterUsageResponse[];
1637
1740
  "number"?: number;
1638
1741
  sort?: SortObject[];
1639
- pageable?: PageableObject;
1640
1742
  numberOfElements?: number;
1743
+ pageable?: PageableObject;
1641
1744
  empty?: boolean;
1642
1745
  };
1643
1746
  export type PluginStacksResponse = {
@@ -1658,8 +1761,8 @@ export type PagePluginStacksResponse = {
1658
1761
  content?: PluginStacksResponse[];
1659
1762
  "number"?: number;
1660
1763
  sort?: SortObject[];
1661
- pageable?: PageableObject;
1662
1764
  numberOfElements?: number;
1765
+ pageable?: PageableObject;
1663
1766
  empty?: boolean;
1664
1767
  };
1665
1768
  export type GetPluginStackUsageStackResponse = {
@@ -1684,8 +1787,8 @@ export type PageGetPluginStackUsageResponse = {
1684
1787
  content?: GetPluginStackUsageResponse[];
1685
1788
  "number"?: number;
1686
1789
  sort?: SortObject[];
1687
- pageable?: PageableObject;
1688
1790
  numberOfElements?: number;
1791
+ pageable?: PageableObject;
1689
1792
  empty?: boolean;
1690
1793
  };
1691
1794
  export type PluginInfrastructureWorkspaceResponse = {
@@ -1710,8 +1813,8 @@ export type PagePluginInfrastructureViewResponse = {
1710
1813
  content?: PluginInfrastructureViewResponse[];
1711
1814
  "number"?: number;
1712
1815
  sort?: SortObject[];
1713
- pageable?: PageableObject;
1714
1816
  numberOfElements?: number;
1817
+ pageable?: PageableObject;
1715
1818
  empty?: boolean;
1716
1819
  };
1717
1820
  export type GetInfrastructureEnvironmentsUsageEnvironmentResponse = {
@@ -1736,8 +1839,8 @@ export type PageInfrastructureEnvironmentsUsesPluginResponse = {
1736
1839
  content?: InfrastructureEnvironmentsUsesPluginResponse[];
1737
1840
  "number"?: number;
1738
1841
  sort?: SortObject[];
1739
- pageable?: PageableObject;
1740
1842
  numberOfElements?: number;
1843
+ pageable?: PageableObject;
1741
1844
  empty?: boolean;
1742
1845
  };
1743
1846
  export type PluginViewUsageMonitorResponse = {
@@ -1756,8 +1859,8 @@ export type PagePluginViewUsageMonitorResponse = {
1756
1859
  content?: PluginViewUsageMonitorResponse[];
1757
1860
  "number"?: number;
1758
1861
  sort?: SortObject[];
1759
- pageable?: PageableObject;
1760
1862
  numberOfElements?: number;
1863
+ pageable?: PageableObject;
1761
1864
  empty?: boolean;
1762
1865
  };
1763
1866
  export type DependentPluginVersionResponse = {
@@ -1777,8 +1880,8 @@ export type PageGetDependentPluginsVersionsResponse = {
1777
1880
  content?: GetDependentPluginsVersionsResponse[];
1778
1881
  "number"?: number;
1779
1882
  sort?: SortObject[];
1780
- pageable?: PageableObject;
1781
1883
  numberOfElements?: number;
1884
+ pageable?: PageableObject;
1782
1885
  empty?: boolean;
1783
1886
  };
1784
1887
  export type GetPluginVersionsNotInUseResponse = {
@@ -1795,8 +1898,8 @@ export type PageGetPluginVersionsNotInUseResponse = {
1795
1898
  content?: GetPluginVersionsNotInUseResponse[];
1796
1899
  "number"?: number;
1797
1900
  sort?: SortObject[];
1798
- pageable?: PageableObject;
1799
1901
  numberOfElements?: number;
1902
+ pageable?: PageableObject;
1800
1903
  empty?: boolean;
1801
1904
  };
1802
1905
  export type PluginInUseSummaryResponse = {
@@ -1829,8 +1932,8 @@ export type PagePluginApplicationsResponse = {
1829
1932
  content?: PluginApplicationsResponse[];
1830
1933
  "number"?: number;
1831
1934
  sort?: SortObject[];
1832
- pageable?: PageableObject;
1833
1935
  numberOfElements?: number;
1936
+ pageable?: PageableObject;
1834
1937
  empty?: boolean;
1835
1938
  };
1836
1939
  export type PluginUsageMonitorApplicationViewVersionResponse = {
@@ -1855,8 +1958,8 @@ export type PagePluginUsageMonitorApplicationViewResponse = {
1855
1958
  content?: PluginUsageMonitorApplicationViewResponse[];
1856
1959
  "number"?: number;
1857
1960
  sort?: SortObject[];
1858
- pageable?: PageableObject;
1859
1961
  numberOfElements?: number;
1962
+ pageable?: PageableObject;
1860
1963
  empty?: boolean;
1861
1964
  };
1862
1965
  export type ListActionVersionItemResponse = {
@@ -1926,8 +2029,8 @@ export type PageStackVersionMostUsedListResponse = {
1926
2029
  content?: StackVersionMostUsedListResponse[];
1927
2030
  "number"?: number;
1928
2031
  sort?: SortObject[];
1929
- pageable?: PageableObject;
1930
2032
  numberOfElements?: number;
2033
+ pageable?: PageableObject;
1931
2034
  empty?: boolean;
1932
2035
  };
1933
2036
  export type GetPluginYamlResponse = {
@@ -2005,8 +2108,8 @@ export type PageContentEvaluationResponse = {
2005
2108
  content?: ContentEvaluationResponse[];
2006
2109
  "number"?: number;
2007
2110
  sort?: SortObject[];
2008
- pageable?: PageableObject;
2009
2111
  numberOfElements?: number;
2112
+ pageable?: PageableObject;
2010
2113
  empty?: boolean;
2011
2114
  };
2012
2115
  export type ContentEvaluationSummaryDetailsResponse = {
@@ -2478,6 +2581,41 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
2478
2581
  body: createConnectionInterfaceTypeRequest
2479
2582
  })));
2480
2583
  }
2584
+ /**
2585
+ * List workflows by version ids
2586
+ */
2587
+ export function listWorkflowsByVersionIds({ xWorkspaceId, listWorkflowsByVersionIdsRequest }: {
2588
+ xWorkspaceId?: string;
2589
+ listWorkflowsByVersionIdsRequest: ListWorkflowsByVersionIdsRequest;
2590
+ }, opts?: Oazapfts.RequestOpts) {
2591
+ return oazapfts.ok(oazapfts.fetchJson<{
2592
+ status: 200;
2593
+ data: ListWorkflowsByVersionIdsResponse[];
2594
+ } | {
2595
+ status: 422;
2596
+ data: {
2597
+ code: string;
2598
+ status: number;
2599
+ details: string;
2600
+ validationDetails?: ValidationDetails[];
2601
+ };
2602
+ } | {
2603
+ status: 500;
2604
+ data: {
2605
+ code: string;
2606
+ status: number;
2607
+ details: string;
2608
+ validationDetails?: ValidationDetails[];
2609
+ };
2610
+ }>("/v1/workflows/versions", oazapfts.json({
2611
+ ...opts,
2612
+ method: "POST",
2613
+ body: listWorkflowsByVersionIdsRequest,
2614
+ headers: oazapfts.mergeHeaders(opts?.headers, {
2615
+ "x-workspace-id": xWorkspaceId
2616
+ })
2617
+ })));
2618
+ }
2481
2619
  /**
2482
2620
  * Validate and return info from a workflow
2483
2621
  */
@@ -5438,6 +5576,43 @@ export function listInputs({ actionVersionId, xWorkspaceId, accountId }: {
5438
5576
  })
5439
5577
  }));
5440
5578
  }
5579
+ /**
5580
+ * List account workflow latest versions
5581
+ */
5582
+ export function listAccountWorkflow({ filter, accountOnly, page, size }: {
5583
+ filter?: string;
5584
+ accountOnly?: boolean;
5585
+ page?: number;
5586
+ size?: number;
5587
+ }, opts?: Oazapfts.RequestOpts) {
5588
+ return oazapfts.ok(oazapfts.fetchJson<{
5589
+ status: 200;
5590
+ data: PageAccountWorkflowResponse;
5591
+ } | {
5592
+ status: 422;
5593
+ data: {
5594
+ code: string;
5595
+ status: number;
5596
+ details: string;
5597
+ validationDetails?: ValidationDetails[];
5598
+ };
5599
+ } | {
5600
+ status: 500;
5601
+ data: {
5602
+ code: string;
5603
+ status: number;
5604
+ details: string;
5605
+ validationDetails?: ValidationDetails[];
5606
+ };
5607
+ }>(`/v1/workflows${QS.query(QS.explode({
5608
+ filter,
5609
+ accountOnly,
5610
+ page,
5611
+ size
5612
+ }))}`, {
5613
+ ...opts
5614
+ }));
5615
+ }
5441
5616
  /**
5442
5617
  * Validate an workflow version to delete
5443
5618
  */
@@ -5466,6 +5641,39 @@ export function validateUnpublishWorkflowVersion({ workflowVersionId }: {
5466
5641
  ...opts
5467
5642
  }));
5468
5643
  }
5644
+ /**
5645
+ * Get inputs from a workflow version
5646
+ */
5647
+ export function getInputs1({ workflowVersionId, xWorkspaceId }: {
5648
+ workflowVersionId: string;
5649
+ xWorkspaceId?: string;
5650
+ }, opts?: Oazapfts.RequestOpts) {
5651
+ return oazapfts.ok(oazapfts.fetchJson<{
5652
+ status: 200;
5653
+ data: WorkflowInputV2Response;
5654
+ } | {
5655
+ status: 422;
5656
+ data: {
5657
+ code: string;
5658
+ status: number;
5659
+ details: string;
5660
+ validationDetails?: ValidationDetails[];
5661
+ };
5662
+ } | {
5663
+ status: 500;
5664
+ data: {
5665
+ code: string;
5666
+ status: number;
5667
+ details: string;
5668
+ validationDetails?: ValidationDetails[];
5669
+ };
5670
+ }>(`/v1/workflows/versions/${encodeURIComponent(workflowVersionId)}/inputs`, {
5671
+ ...opts,
5672
+ headers: oazapfts.mergeHeaders(opts?.headers, {
5673
+ "x-workspace-id": xWorkspaceId
5674
+ })
5675
+ }));
5676
+ }
5469
5677
  /**
5470
5678
  * Get workflows from studio
5471
5679
  */
@@ -7499,7 +7707,7 @@ export function getPluginYamlContent({ pluginVersionId, xWorkspaceId }: {
7499
7707
  /**
7500
7708
  * Get inputs from a plugin version
7501
7709
  */
7502
- export function getInputs1({ pluginVersionId, xWorkspaceId }: {
7710
+ export function getInputs2({ pluginVersionId, xWorkspaceId }: {
7503
7711
  pluginVersionId: string;
7504
7712
  xWorkspaceId?: string;
7505
7713
  }, opts?: Oazapfts.RequestOpts) {
@@ -26,6 +26,7 @@ import {
26
26
  getApplicationDetailsView,
27
27
  getApplicationsUsesPlugin,
28
28
  getAvailableActionVersionsByActionSlug,
29
+ getAvailableWorkflowVersionsByWorkflowSlug,
29
30
  getDependentPluginsVersions,
30
31
  getGetPluginView,
31
32
  getInfrastructureEnvironmentsUsesPlugin,
@@ -51,6 +52,7 @@ import {
51
52
  getWorkflow,
52
53
  getWorkflowByStudioSlug,
53
54
  getWorkflowDoc,
55
+ listAccountWorkflow,
54
56
  listActions,
55
57
  listActions1,
56
58
  listActions2,
@@ -184,7 +186,11 @@ class ContentClient extends ReactQueryNetworkClient {
184
186
  },
185
187
  })
186
188
  /**
187
- * Gets workflows from a given studio
189
+ * Gets all account workflows
190
+ */
191
+ accountWorkflows = this.infiniteQuery(listAccountWorkflow, { accumulator: 'content', initialPageParam: 0 })
192
+ /**
193
+ * Gets workflow doc
188
194
  */
189
195
  workflowDoc = this.query(getWorkflowDoc)
190
196
  /**
@@ -207,6 +213,10 @@ class ContentClient extends ReactQueryNetworkClient {
207
213
  * Adds a workflow from a stack version
208
214
  */
209
215
  addWorkflowToStack = this.mutation(addWorkflow)
216
+ /**
217
+ * Gets workflow doc
218
+ */
219
+ availableWorkflowVersionsBySlug = this.query(getAvailableWorkflowVersionsByWorkflowSlug)
210
220
  /**
211
221
  * Gets usage summary of stack
212
222
  */