@stack-spot/portal-network 0.31.0 → 0.32.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.
@@ -23,7 +23,7 @@ export type ValidationDetails = {
23
23
  export type CreateStackVersionRequest = {
24
24
  copyFromStackVersionId: string;
25
25
  };
26
- export type WarningResponse = {
26
+ export type StackVersionSummaryWarningResponse = {
27
27
  code?: string;
28
28
  field?: string;
29
29
  details?: string;
@@ -35,7 +35,7 @@ export type StackVersionSummaryResponse = {
35
35
  semanticVersion?: string;
36
36
  version: number;
37
37
  referenceCopyStackVersionId?: string;
38
- warnings: WarningResponse[];
38
+ warnings: StackVersionSummaryWarningResponse[];
39
39
  };
40
40
  export type AddPluginRequest = {
41
41
  pluginId: string;
@@ -109,6 +109,21 @@ export type CreateConnectionInterfaceTypeRequest = {
109
109
  description: string;
110
110
  outputs: CreateConnectionInterfaceTypeOutputRequest[];
111
111
  };
112
+ export type YamlValidationError = {
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_DEPENDS_ON_JOBS" | "STK_VAL_5081_DUPLICATED_JOB" | "STK_VAL_5082_DUPLICATED_STEP" | "STK_VAL_5083_WORKFLOW_VERSION_NOT_FOUND" | "STK_VAL_5084_MISSING_INPUT_REQUIRED_IN_STEP_JOB" | "STK_VAL_5085_CYCLIC_DEPENDENCY_JOB" | "STK_VAL_5086_CYCLIC_DEPENDENCY_WORKFLOW" | "STK_VAL_5087_WORKFLOW_CREATE_DEPENDENCY" | "STK_VAL_5088_INVALID_VARIABLE";
115
+ field?: string;
116
+ value?: object;
117
+ examples: string[];
118
+ };
119
+ export type ValidateResponse = {
120
+ kind: "PLUGIN" | "ACTION" | "STACK" | "STARTER" | "WORKFLOW";
121
+ schemaVersion?: "V1" | "V2" | "V3";
122
+ specType?: "INFRA" | "APP" | "SHELL" | "PYTHON" | "DEPLOY" | "STARTER" | "DESTROY" | "ROLLBACK" | "REUSABLE" | "CREATE";
123
+ errors: YamlValidationError[];
124
+ warnings: YamlValidationError[];
125
+ path: string;
126
+ };
112
127
  export type StudioResponse = {
113
128
  id: string;
114
129
  slug: string;
@@ -117,19 +132,18 @@ export type StudioResponse = {
117
132
  verified: boolean;
118
133
  description: string;
119
134
  accountSlug: string;
120
- teams: string[];
121
135
  editAllowed: boolean;
122
136
  createdBy: string;
123
137
  visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
124
138
  isGoverned: boolean;
125
139
  tabs: string[];
140
+ teams: string[];
126
141
  };
127
142
  export type CreateStudioRequest = {
128
143
  name: string;
129
144
  slug: string;
130
145
  description: string;
131
146
  image?: string;
132
- teams?: string[];
133
147
  };
134
148
  export type CreateStudioResponse = {
135
149
  id: string;
@@ -140,7 +154,6 @@ export type CreateStudioResponse = {
140
154
  description: string;
141
155
  accountSlug: string;
142
156
  createdBy: string;
143
- teams?: string[];
144
157
  visibility: string;
145
158
  tabs: string[];
146
159
  };
@@ -153,12 +166,23 @@ export type StudioWorkspaceResponse = {
153
166
  export type StudioWorkspaceRequest = {
154
167
  workspacesIds: string[];
155
168
  };
156
- export type StudioInfo = {
169
+ export type WarningResponse = {
170
+ code?: string;
171
+ field?: string;
172
+ details?: string;
173
+ values?: string[];
174
+ };
175
+ export type PublishWorkflowResponse = {
176
+ workflowId: string;
177
+ workflowVersionId: string;
178
+ warnings?: WarningResponse[];
179
+ };
180
+ export type GetStackVersionStudioResponse = {
157
181
  slug: string;
158
182
  name: string;
159
183
  imageUrl?: string;
160
184
  };
161
- export type StackResponse = {
185
+ export type GetStackVersionStackResponse = {
162
186
  stackId: string;
163
187
  slug: string;
164
188
  displayName: string;
@@ -168,7 +192,7 @@ export type StackResponse = {
168
192
  createdBy: string;
169
193
  createdAt: string;
170
194
  lastModificationAt: string;
171
- studio: StudioInfo;
195
+ studio: GetStackVersionStudioResponse;
172
196
  tabs: string[];
173
197
  tags?: string[];
174
198
  };
@@ -186,7 +210,7 @@ export type StackVersionResponse = {
186
210
  copyFromStackVersionId?: string;
187
211
  documentation?: DocumentationContentResponse;
188
212
  };
189
- export type StackPluginResponseStudio = {
213
+ export type StackPluginStudioResponse = {
190
214
  id: string;
191
215
  slug: string;
192
216
  name: string;
@@ -213,19 +237,21 @@ export type PluginRequiresResponse = {
213
237
  connections: PluginRequiresConnectionResponse[];
214
238
  actions: PluginVersionRequiresActionsResponse[];
215
239
  plugins: PluginVersionRequiresPluginsResponse[];
240
+ variables: string[];
216
241
  };
217
- export type StackPluginResponseConnections = {
242
+ export type StackPluginActionRequiresConnectionsResponse = {
218
243
  typeId: string;
219
244
  "type": string;
220
245
  alias: string;
221
246
  optional?: boolean;
222
247
  source?: string;
223
248
  };
224
- export type StackPluginResponseGenerates = {
225
- connections: StackPluginResponseConnections[];
249
+ export type StackPluginGeneratesResponse = {
250
+ connections: StackPluginActionRequiresConnectionsResponse[];
226
251
  };
227
- export type StackPluginActionsResponseRequires = {
228
- connections: StackPluginResponseConnections[];
252
+ export type StackPluginActionsRequiresResponse = {
253
+ connections: StackPluginActionRequiresConnectionsResponse[];
254
+ variables: string[];
229
255
  };
230
256
  export type StackPluginActionsResponse = {
231
257
  id: string;
@@ -237,7 +263,7 @@ export type StackPluginActionsResponse = {
237
263
  description: string;
238
264
  qualifier: string;
239
265
  status: string;
240
- requires?: StackPluginActionsResponseRequires;
266
+ requires?: StackPluginActionsRequiresResponse;
241
267
  };
242
268
  export type StackPluginResponse = {
243
269
  pluginId: string;
@@ -246,25 +272,25 @@ export type StackPluginResponse = {
246
272
  displayName: string;
247
273
  description?: string;
248
274
  pluginQualifier: string;
249
- studio: StackPluginResponseStudio;
275
+ studio: StackPluginStudioResponse;
250
276
  range?: string;
251
277
  version: string;
252
278
  "type": string;
253
279
  status: string;
254
280
  requires: PluginRequiresResponse;
255
- generates: StackPluginResponseGenerates;
281
+ generates: StackPluginGeneratesResponse;
256
282
  appAllowed: boolean;
257
283
  singleUse: boolean;
258
284
  stkProjectsOnly: boolean;
259
285
  actions?: StackPluginActionsResponse[];
260
286
  };
261
- export type GetPluginsResponse = {
287
+ export type GetStackPluginsResponse = {
262
288
  stackSlug: string;
263
289
  stackSemanticVersion: string;
264
290
  appPluginVersions: StackPluginResponse[];
265
291
  infraPluginVersions: StackPluginResponse[];
266
292
  };
267
- export type StackActionStudioResponse = {
293
+ export type GetStackActionStudioResponse = {
268
294
  slug: string;
269
295
  name: string;
270
296
  description?: string;
@@ -277,17 +303,17 @@ export type GetStackActionResponse = {
277
303
  displayName: string;
278
304
  description: string;
279
305
  accountSlug: string;
280
- studio: StackActionStudioResponse;
306
+ studio: GetStackActionStudioResponse;
281
307
  range?: string;
282
308
  version: string;
283
309
  "type": string;
284
310
  qualifier: string;
285
311
  status: string;
286
312
  };
287
- export type GetStackResponse = {
288
- stack: StackResponse;
313
+ export type GetStackVersionResponse = {
314
+ stack: GetStackVersionStackResponse;
289
315
  version: StackVersionResponse;
290
- plugins?: GetPluginsResponse;
316
+ plugins?: GetStackPluginsResponse;
291
317
  actions?: GetStackActionResponse[];
292
318
  };
293
319
  export type Pageable = {
@@ -345,14 +371,20 @@ export type PageGetStackStudioResponse = {
345
371
  content?: GetStackStudioResponse[];
346
372
  "number"?: number;
347
373
  sort?: SortObject[];
348
- numberOfElements?: number;
349
374
  pageable?: PageableObject;
375
+ numberOfElements?: number;
350
376
  empty?: boolean;
351
377
  };
352
- export type PublishResponse = {
378
+ export type PublishPluginWarningResponse = {
379
+ code?: string;
380
+ field?: string;
381
+ details?: string;
382
+ values?: string[];
383
+ };
384
+ export type PublishPluginResponse = {
353
385
  id: string;
354
386
  versionId: string;
355
- warnings: WarningResponse[];
387
+ warnings: PublishPluginWarningResponse[];
356
388
  };
357
389
  export type GetAvailablePluginVersionsResponse = {
358
390
  pluginVersionId: string;
@@ -426,7 +458,7 @@ export type PluginGeneratesConnectionResponse = {
426
458
  alias: string;
427
459
  outputs?: OutputResponse[];
428
460
  };
429
- export type LinkResponse = {
461
+ export type PluginGeneratesLinkResponse = {
430
462
  id: string;
431
463
  imageUrl?: string;
432
464
  name: string;
@@ -435,7 +467,7 @@ export type LinkResponse = {
435
467
  };
436
468
  export type PluginGeneratesResponse = {
437
469
  connections: PluginGeneratesConnectionResponse[];
438
- links?: LinkResponse[];
470
+ links?: PluginGeneratesLinkResponse[];
439
471
  };
440
472
  export type PluginGovernanceResponse = {
441
473
  id?: string;
@@ -475,20 +507,20 @@ export type PagePluginVersionResponse = {
475
507
  content?: PluginVersionResponse[];
476
508
  "number"?: number;
477
509
  sort?: SortObject[];
478
- numberOfElements?: number;
479
510
  pageable?: PageableObject;
511
+ numberOfElements?: number;
480
512
  empty?: boolean;
481
513
  };
482
- export type ActionCommandResponse = {
514
+ export type GetActionCommandResponse = {
483
515
  "default": string;
484
516
  workspace: string;
485
517
  };
486
- export type ActionInputResponseExternalItems = {
518
+ export type ActionVersionInputExternalItemsResponse = {
487
519
  source: string;
488
520
  value: string;
489
521
  label?: string;
490
522
  };
491
- export type ActionInputResponseCondition = {
523
+ export type ActionVersionInputConditionResponse = {
492
524
  variable: string;
493
525
  operator: string;
494
526
  value: object;
@@ -501,8 +533,8 @@ export type ActionVersionSubInputResponse = {
501
533
  help?: string;
502
534
  "default"?: JsonNode;
503
535
  items?: string[];
504
- condition?: ActionInputResponseCondition;
505
- externalItems?: ActionInputResponseExternalItems;
536
+ condition?: ActionVersionInputConditionResponse;
537
+ externalItems?: ActionVersionInputExternalItemsResponse;
506
538
  connectionInterfaceType?: string;
507
539
  input?: ActionVersionSubInputResponse;
508
540
  inputs?: ActionVersionInputResponse[];
@@ -516,25 +548,21 @@ export type ActionVersionInputResponse = {
516
548
  help?: string;
517
549
  "default"?: JsonNode;
518
550
  items?: string[];
519
- externalItems?: ActionInputResponseExternalItems;
520
- condition?: ActionInputResponseCondition;
551
+ externalItems?: ActionVersionInputExternalItemsResponse;
552
+ condition?: ActionVersionInputConditionResponse;
521
553
  envInput?: boolean;
522
554
  connectionInterfaceType?: string;
523
555
  input?: ActionVersionSubInputResponse;
524
556
  };
525
- export type ComputedInputResponse = {
526
- name: string;
527
- expression: string;
528
- };
529
- export type ConnectionResponse = {
557
+ export type GetActionConnectionResponse = {
530
558
  "type": string;
531
559
  alias: string;
532
560
  optional: boolean;
533
561
  source: string;
534
562
  };
535
- export type ActionRequiresResponse = {
536
- connections?: ConnectionResponse[];
537
- secrets?: string[];
563
+ export type GetActionRequiresResponse = {
564
+ connections?: GetActionConnectionResponse[];
565
+ variables?: string[];
538
566
  };
539
567
  export type ActionGovernanceResponse = {
540
568
  id?: string;
@@ -552,7 +580,7 @@ export type GetActionResponse = {
552
580
  description?: string;
553
581
  scopes: string[];
554
582
  command: string;
555
- commands: ActionCommandResponse;
583
+ commands: GetActionCommandResponse;
556
584
  repository?: string;
557
585
  requirements?: string;
558
586
  about?: string;
@@ -562,10 +590,8 @@ export type GetActionResponse = {
562
590
  createdAt: string;
563
591
  updatedAt?: string;
564
592
  createdBy: string;
565
- inputs: ActionVersionInputResponse[];
566
- computedInputs: ComputedInputResponse[];
567
- globalComputedInputs: ComputedInputResponse[];
568
- requires?: ActionRequiresResponse;
593
+ inputs?: ActionVersionInputResponse[];
594
+ requires?: GetActionRequiresResponse;
569
595
  isDocumented: boolean;
570
596
  qualifier: string;
571
597
  studioSlug: string;
@@ -575,10 +601,16 @@ export type GetActionResponse = {
575
601
  documentation?: DocumentationContentResponse;
576
602
  justify?: string;
577
603
  };
604
+ export type PublishActionWarningResponse = {
605
+ code?: string;
606
+ field?: string;
607
+ details?: string;
608
+ values?: string[];
609
+ };
578
610
  export type PublishActionResponse = {
579
611
  actionId: string;
580
612
  versionId: string;
581
- warnings?: WarningResponse[];
613
+ warnings?: PublishActionWarningResponse[];
582
614
  };
583
615
  export type GetAvailableActionVersionsResponse = {
584
616
  actionVersionId: string;
@@ -615,8 +647,8 @@ export type PageActionResponse = {
615
647
  content?: ActionResponse[];
616
648
  "number"?: number;
617
649
  sort?: SortObject[];
618
- numberOfElements?: number;
619
650
  pageable?: PageableObject;
651
+ numberOfElements?: number;
620
652
  empty?: boolean;
621
653
  };
622
654
  export type FilterStudioRequest = {
@@ -629,21 +661,6 @@ export type FilterStudioResponse = {
629
661
  displayName: string;
630
662
  imageUrl: string;
631
663
  };
632
- export type YamlValidationError = {
633
- details: string;
634
- "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_SECRET";
635
- field?: string;
636
- value?: object;
637
- examples: string[];
638
- };
639
- export type ValidateResponse = {
640
- kind: "PLUGIN" | "ACTION" | "STACK" | "STARTER";
641
- schemaVersion?: "V1" | "V2" | "V3";
642
- specType?: "INFRA" | "APP" | "SHELL" | "PYTHON";
643
- errors: YamlValidationError[];
644
- warnings: YamlValidationError[];
645
- path: string;
646
- };
647
664
  export type CreateStackRequest = {
648
665
  slug: string;
649
666
  displayName: string;
@@ -652,14 +669,14 @@ export type CreateStackRequest = {
652
669
  image?: string;
653
670
  tags?: string[];
654
671
  };
655
- export type StackVersionDocumentationLanguageResponse = {
672
+ export type StackVersionListDocumentationLanguageResponse = {
656
673
  language: "ENGLISH" | "PTBR";
657
674
  status: "DRAFT" | "PUBLISHED";
658
675
  lastUpdated: string;
659
676
  };
660
- export type StackVersionDocumentationResponse = {
677
+ export type StackVersionListDocumentationResponse = {
661
678
  documentationId: string;
662
- languages: StackVersionDocumentationLanguageResponse[];
679
+ languages: StackVersionListDocumentationLanguageResponse[];
663
680
  };
664
681
  export type StackVersionListResponse = {
665
682
  stackVersionId: string;
@@ -673,7 +690,7 @@ export type StackVersionListResponse = {
673
690
  unpublishedBy?: string;
674
691
  semanticVersion?: string;
675
692
  copyFromStackVersionId?: string;
676
- documentation?: StackVersionDocumentationResponse;
693
+ documentation?: StackVersionListDocumentationResponse;
677
694
  };
678
695
  export type DeprecateContentRequest = {
679
696
  reason: string;
@@ -691,8 +708,8 @@ export type PageStarterResponseWithRange = {
691
708
  content?: StarterResponseWithRange[];
692
709
  "number"?: number;
693
710
  sort?: SortObject[];
694
- numberOfElements?: number;
695
711
  pageable?: PageableObject;
712
+ numberOfElements?: number;
696
713
  empty?: boolean;
697
714
  };
698
715
  export type FilterStackVersionPluginRequest = {
@@ -709,23 +726,24 @@ export type PageStackPluginResponse = {
709
726
  content?: StackPluginResponse[];
710
727
  "number"?: number;
711
728
  sort?: SortObject[];
712
- numberOfElements?: number;
713
729
  pageable?: PageableObject;
730
+ numberOfElements?: number;
714
731
  empty?: boolean;
715
732
  };
716
- export type LinkPluginStudioResponse = {
733
+ export type GetLinkPluginVersionStudioResponse = {
717
734
  id: string;
718
735
  slug: string;
719
736
  name: string;
720
737
  };
721
- export type LinkPluginActionsResponseConnections = {
738
+ export type GetLinkPluginVersionActionRequiresConnectionsResponse = {
722
739
  "type": string;
723
740
  alias: string;
724
741
  };
725
- export type LinkPluginActionsResponseRequires = {
726
- connections: LinkPluginActionsResponseConnections[];
742
+ export type GetLinkPluginVersionActionRequiresResponse = {
743
+ connections: GetLinkPluginVersionActionRequiresConnectionsResponse[];
744
+ variables: string[];
727
745
  };
728
- export type LinkPluginActionsResponse = {
746
+ export type GetLinkPluginVersionActionsResponse = {
729
747
  id: string;
730
748
  versionId: string;
731
749
  version: string;
@@ -733,17 +751,17 @@ export type LinkPluginActionsResponse = {
733
751
  displayName: string;
734
752
  description: string;
735
753
  qualifier: string;
736
- requires?: LinkPluginActionsResponseRequires;
754
+ requires?: GetLinkPluginVersionActionRequiresResponse;
737
755
  };
738
- export type LinkPluginVersionResponse = {
756
+ export type GetLinkPluginVersionResponse = {
739
757
  pluginId: string;
740
758
  id: string;
741
759
  slug: string;
742
760
  displayName: string;
743
761
  description?: string;
744
762
  qualifier: string;
745
- studio: LinkPluginStudioResponse;
746
- actions?: LinkPluginActionsResponse[];
763
+ studio: GetLinkPluginVersionStudioResponse;
764
+ actions?: GetLinkPluginVersionActionsResponse[];
747
765
  };
748
766
  export type GetLinkResponse = {
749
767
  id: string;
@@ -752,13 +770,20 @@ export type GetLinkResponse = {
752
770
  source: "PLUGIN" | "STACK";
753
771
  "type"?: string;
754
772
  imageUrl?: string;
755
- pluginVersion?: LinkPluginVersionResponse;
773
+ pluginVersion?: GetLinkPluginVersionResponse;
756
774
  };
757
775
  export type AddLinkRequest = {
758
776
  name: string;
759
777
  url: string;
760
778
  image?: string;
761
779
  };
780
+ export type LinkResponse = {
781
+ id: string;
782
+ name: string;
783
+ url: string;
784
+ source: "PLUGIN" | "STACK";
785
+ imageUrl?: string;
786
+ };
762
787
  export type GetConnectionInterfaceSuggestionResponse = {
763
788
  id: string;
764
789
  parentId?: string;
@@ -800,8 +825,8 @@ export type PageGetStackActionResponse = {
800
825
  content?: GetStackActionResponse[];
801
826
  "number"?: number;
802
827
  sort?: SortObject[];
803
- numberOfElements?: number;
804
828
  pageable?: PageableObject;
829
+ numberOfElements?: number;
805
830
  empty?: boolean;
806
831
  };
807
832
  export type FilterStackVersionRequest = {
@@ -816,18 +841,18 @@ export type StackValidateResponse = {
816
841
  export type FilterStackByIdsRequest = {
817
842
  ids: string[];
818
843
  };
819
- export type StackInfoResponse = {
844
+ export type StackSummaryStackInfoResponse = {
820
845
  id: string;
821
846
  slug: string;
822
847
  name: string;
823
848
  };
824
- export type StudioInfoResponse = {
849
+ export type StackSummaryStudioInfoResponse = {
825
850
  slug: string;
826
851
  name: string;
827
852
  };
828
853
  export type StackSummaryResponse = {
829
- stack: StackInfoResponse;
830
- studio: StudioInfoResponse;
854
+ stack: StackSummaryStackInfoResponse;
855
+ studio: StackSummaryStudioInfoResponse;
831
856
  };
832
857
  export type FilterPluginVersionByIdsRequest = {
833
858
  ids: string[];
@@ -847,7 +872,7 @@ export type AddContentEvaluationRevisionRequest = {
847
872
  isApprover: boolean;
848
873
  comments?: string;
849
874
  };
850
- export type CreateConnectionInterfaceOutputResponse = {
875
+ export type ConnectionInterfaceOutputResponse = {
851
876
  id: string;
852
877
  name: string;
853
878
  "type": "STRING" | "NUMBER" | "INTEGER" | "OBJECT" | "BOOLEAN";
@@ -857,7 +882,7 @@ export type ConnectionInterfaceResponse = {
857
882
  id: string;
858
883
  slug: string;
859
884
  description: string;
860
- outputs: CreateConnectionInterfaceOutputResponse[];
885
+ outputs: ConnectionInterfaceOutputResponse[];
861
886
  };
862
887
  export type ValidateConnectionInterfaceTypeSchemaRequest = {
863
888
  value: JsonNode;
@@ -868,6 +893,10 @@ export type ActionIdAndVersionReferenceRequest = {
868
893
  /** Action version reference. This value can be simple semantic version or range semantic version. */
869
894
  versionReference: string;
870
895
  };
896
+ export type ComputedInputResponse = {
897
+ name: string;
898
+ expression: string;
899
+ };
871
900
  export type ActionVersionDataSubInputResponse = {
872
901
  label: string;
873
902
  "type": string;
@@ -876,8 +905,8 @@ export type ActionVersionDataSubInputResponse = {
876
905
  help?: string;
877
906
  "default"?: JsonNode;
878
907
  items?: string[];
879
- condition?: ActionInputResponseCondition;
880
- externalItems?: ActionInputResponseExternalItems;
908
+ condition?: ActionVersionInputConditionResponse;
909
+ externalItems?: ActionVersionInputExternalItemsResponse;
881
910
  connectionInterfaceType?: string;
882
911
  input?: ActionVersionSubInputResponse;
883
912
  };
@@ -890,14 +919,11 @@ export type ActionVersionDataInputResponse = {
890
919
  help?: string;
891
920
  "default"?: JsonNode;
892
921
  items?: string[];
893
- externalItems?: ActionInputResponseExternalItems;
894
- condition?: ActionInputResponseCondition;
922
+ externalItems?: ActionVersionInputExternalItemsResponse;
923
+ condition?: ActionVersionInputConditionResponse;
895
924
  connectionInterfaceType?: string;
896
925
  input?: ActionVersionDataSubInputResponse;
897
926
  };
898
- export type ActionVersionDataRequiresResponse = {
899
- secrets?: string[];
900
- };
901
927
  export type ActionVersionDataWithInputsResponse = {
902
928
  id: string;
903
929
  versionId: string;
@@ -917,7 +943,6 @@ export type ActionVersionDataWithInputsResponse = {
917
943
  studioSlug: string;
918
944
  accountSlug: string;
919
945
  status: string;
920
- requires?: ActionVersionDataRequiresResponse;
921
946
  };
922
947
  export type PatchStarterV2Request = {
923
948
  description?: string;
@@ -963,7 +988,7 @@ export type EditLinkRequest = {
963
988
  };
964
989
  export type DocumentationResponse = {
965
990
  documentationId: string;
966
- documentationType: "STUDIO_GOVERNANCE" | "ACTION" | "PLUGIN" | "STACK" | "STARTER";
991
+ documentationType: "STUDIO_GOVERNANCE" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "WORKFLOW";
967
992
  language: "ENGLISH" | "PTBR";
968
993
  content: string;
969
994
  status: "DRAFT" | "PUBLISHED";
@@ -983,8 +1008,8 @@ export type PageStudioResponse = {
983
1008
  content?: StudioResponse[];
984
1009
  "number"?: number;
985
1010
  sort?: SortObject[];
986
- numberOfElements?: number;
987
1011
  pageable?: PageableObject;
1012
+ numberOfElements?: number;
988
1013
  empty?: boolean;
989
1014
  };
990
1015
  export type DownloadBase64Response = {
@@ -1037,12 +1062,12 @@ export type GetStackV2Response = {
1037
1062
  latestVersion: StackVersionV2Response;
1038
1063
  versions: StackVersionShortV2Response[];
1039
1064
  };
1040
- export type PluginInputResponseExternalItem = {
1065
+ export type PluginInputExternalItemsResponse = {
1041
1066
  source: string;
1042
1067
  value: string;
1043
1068
  label?: string;
1044
1069
  };
1045
- export type PluginInputResponseCondition = {
1070
+ export type PluginInputConditionResponse = {
1046
1071
  variable?: string;
1047
1072
  operator?: string;
1048
1073
  value?: JsonNode;
@@ -1056,24 +1081,84 @@ export type PluginInputResponse = {
1056
1081
  help?: string;
1057
1082
  "default"?: JsonNode;
1058
1083
  items?: string;
1059
- externalItems?: PluginInputResponseExternalItem;
1084
+ externalItems?: PluginInputExternalItemsResponse;
1060
1085
  itemsValues?: string[];
1061
- condition?: PluginInputResponseCondition;
1086
+ condition?: PluginInputConditionResponse;
1062
1087
  isGlobal?: boolean;
1063
1088
  inputEnv?: boolean;
1064
1089
  connectionInterfaceType?: string;
1065
1090
  input?: PluginInputResponse;
1066
1091
  };
1092
+ export type PluginComputedInputResponse = {
1093
+ name: string;
1094
+ expression: string;
1095
+ };
1067
1096
  export type PluginInputV2Response = {
1068
1097
  inputs: PluginInputResponse[];
1069
- computedInputs: ComputedInputResponse[];
1070
- globalComputedInputs: ComputedInputResponse[];
1098
+ computedInputs: PluginComputedInputResponse[];
1099
+ globalComputedInputs: PluginComputedInputResponse[];
1071
1100
  };
1072
1101
  export type ActionInputV2Response = {
1073
1102
  computedInputs: ComputedInputResponse[];
1074
1103
  globalComputedInputs: ComputedInputResponse[];
1075
1104
  inputs: ActionVersionInputResponse[];
1076
1105
  };
1106
+ export type GetWorkflowsByStudioDataResponse = {
1107
+ id: string;
1108
+ slug: string;
1109
+ name: string;
1110
+ imageUrl?: string;
1111
+ };
1112
+ export type GetWorkflowsByStudioLatestVersionDataResponse = {
1113
+ id: string;
1114
+ displayName: string;
1115
+ label: string;
1116
+ semanticVersion: string;
1117
+ targetApp: boolean;
1118
+ targetInfra: boolean;
1119
+ };
1120
+ export type GetWorkflowsByStudioResponse = {
1121
+ id: string;
1122
+ slug: string;
1123
+ "type": "starter" | "deploy" | "destroy" | "rollback" | "reusable" | "create";
1124
+ studio: GetWorkflowsByStudioDataResponse;
1125
+ latestVersion?: GetWorkflowsByStudioLatestVersionDataResponse;
1126
+ };
1127
+ export type PageGetWorkflowsByStudioResponse = {
1128
+ totalElements?: number;
1129
+ totalPages?: number;
1130
+ first?: boolean;
1131
+ last?: boolean;
1132
+ size?: number;
1133
+ content?: GetWorkflowsByStudioResponse[];
1134
+ "number"?: number;
1135
+ sort?: SortObject[];
1136
+ pageable?: PageableObject;
1137
+ numberOfElements?: number;
1138
+ empty?: boolean;
1139
+ };
1140
+ export type DownloadWorkflowBase64Response = {
1141
+ file_base_64: string;
1142
+ file_name: string;
1143
+ workflowVersionId: string;
1144
+ };
1145
+ export type GetAvailableWorkflowVersionsResponse = {
1146
+ workflowVersionId: string;
1147
+ version: string;
1148
+ };
1149
+ export type PageGetAvailableWorkflowVersionsResponse = {
1150
+ totalElements?: number;
1151
+ totalPages?: number;
1152
+ first?: boolean;
1153
+ last?: boolean;
1154
+ size?: number;
1155
+ content?: GetAvailableWorkflowVersionsResponse[];
1156
+ "number"?: number;
1157
+ sort?: SortObject[];
1158
+ pageable?: PageableObject;
1159
+ numberOfElements?: number;
1160
+ empty?: boolean;
1161
+ };
1077
1162
  export type StackWorkspaceViewResponse = {
1078
1163
  id: string;
1079
1164
  name: string;
@@ -1090,8 +1175,8 @@ export type PageStackWorkspaceViewResponse = {
1090
1175
  content?: StackWorkspaceViewResponse[];
1091
1176
  "number"?: number;
1092
1177
  sort?: SortObject[];
1093
- numberOfElements?: number;
1094
1178
  pageable?: PageableObject;
1179
+ numberOfElements?: number;
1095
1180
  empty?: boolean;
1096
1181
  };
1097
1182
  export type StackVersionInWorkspaceDetailResponse = {
@@ -1101,13 +1186,13 @@ export type StackVersionInWorkspaceDetailResponse = {
1101
1186
  totalLinkedApps: number;
1102
1187
  totalLinkedInfra: number;
1103
1188
  };
1104
- export type Environment = {
1189
+ export type StackWorkspaceDetailViewEnvironmentResponse = {
1105
1190
  id?: string;
1106
1191
  name?: string;
1107
1192
  };
1108
1193
  export type StackWorkspaceDetailViewResponse = {
1109
1194
  stackVersion: StackVersionInWorkspaceDetailResponse;
1110
- environment?: Environment;
1195
+ environment?: StackWorkspaceDetailViewEnvironmentResponse;
1111
1196
  };
1112
1197
  export type PageStackWorkspaceDetailViewResponse = {
1113
1198
  totalElements?: number;
@@ -1118,8 +1203,8 @@ export type PageStackWorkspaceDetailViewResponse = {
1118
1203
  content?: StackWorkspaceDetailViewResponse[];
1119
1204
  "number"?: number;
1120
1205
  sort?: SortObject[];
1121
- numberOfElements?: number;
1122
1206
  pageable?: PageableObject;
1207
+ numberOfElements?: number;
1123
1208
  empty?: boolean;
1124
1209
  };
1125
1210
  export type GetUnusedStackVersionsResponse = {
@@ -1137,8 +1222,8 @@ export type PageGetUnusedStackVersionsResponse = {
1137
1222
  content?: GetUnusedStackVersionsResponse[];
1138
1223
  "number"?: number;
1139
1224
  sort?: SortObject[];
1140
- numberOfElements?: number;
1141
1225
  pageable?: PageableObject;
1226
+ numberOfElements?: number;
1142
1227
  empty?: boolean;
1143
1228
  };
1144
1229
  export type StackModalViewResponse = {
@@ -1162,10 +1247,10 @@ export type PluginVersionShortResponse = {
1162
1247
  governance?: PluginGovernanceResponse;
1163
1248
  requires?: PluginRequiresResponse;
1164
1249
  };
1165
- export type RequirementsPluginResponseActionStudio = {
1250
+ export type GetRequirementsActionStudioResponse = {
1166
1251
  slug: string;
1167
1252
  };
1168
- export type RequirementsPluginActionsResponse = {
1253
+ export type GetRequirementsPluginActionsResponse = {
1169
1254
  actionId: string;
1170
1255
  actionVersionId: string;
1171
1256
  version: string;
@@ -1175,22 +1260,22 @@ export type RequirementsPluginActionsResponse = {
1175
1260
  description: string;
1176
1261
  actionQualifier: string;
1177
1262
  status: string;
1178
- studio: RequirementsPluginResponseActionStudio;
1263
+ studio: GetRequirementsActionStudioResponse;
1179
1264
  };
1180
- export type RequirementsPluginResponseStudio = {
1265
+ export type GetRequirementsPluginStudioResponse = {
1181
1266
  id: string;
1182
1267
  slug: string;
1183
1268
  name: string;
1184
1269
  };
1185
- export type RequirementsPluginResponseConnections = {
1270
+ export type GetRequirementsPluginConnectionsResponse = {
1186
1271
  typeId: string;
1187
1272
  "type": string;
1188
1273
  alias: string;
1189
1274
  };
1190
- export type RequirementsPluginResponseGenerates = {
1191
- connections: RequirementsPluginResponseConnections[];
1275
+ export type GetRequirementsPluginGeneratesResponse = {
1276
+ connections: GetRequirementsPluginConnectionsResponse[];
1192
1277
  };
1193
- export type RequirementsPluginResponse = {
1278
+ export type GetRequirementsPluginResponse = {
1194
1279
  pluginId: string;
1195
1280
  pluginVersionId: string;
1196
1281
  slug: string;
@@ -1198,11 +1283,11 @@ export type RequirementsPluginResponse = {
1198
1283
  displayName: string;
1199
1284
  description?: string;
1200
1285
  pluginQualifier: string;
1201
- studio: RequirementsPluginResponseStudio;
1286
+ studio: GetRequirementsPluginStudioResponse;
1202
1287
  range?: string;
1203
1288
  version: string;
1204
1289
  status: string;
1205
- generates: RequirementsPluginResponseGenerates;
1290
+ generates: GetRequirementsPluginGeneratesResponse;
1206
1291
  appAllowed: boolean;
1207
1292
  };
1208
1293
  export type DependencyTree = {
@@ -1211,8 +1296,8 @@ export type DependencyTree = {
1211
1296
  plugins: DependencyTree[];
1212
1297
  };
1213
1298
  export type GetPluginRequirementsResponse = {
1214
- actions: RequirementsPluginActionsResponse[];
1215
- plugins: RequirementsPluginResponse[];
1299
+ actions: GetRequirementsPluginActionsResponse[];
1300
+ plugins: GetRequirementsPluginResponse[];
1216
1301
  dependencyTree: DependencyTree;
1217
1302
  };
1218
1303
  export type PluginDownloadBase64Response = {
@@ -1220,7 +1305,7 @@ export type PluginDownloadBase64Response = {
1220
1305
  file_name: string;
1221
1306
  pluginVersionId: string;
1222
1307
  };
1223
- export type PluginCommandResponse = {
1308
+ export type GetPluginCommandResponse = {
1224
1309
  "default": string;
1225
1310
  workspace: string;
1226
1311
  };
@@ -1242,7 +1327,7 @@ export type GetPluginResponse = {
1242
1327
  usage?: string;
1243
1328
  implementation?: string;
1244
1329
  command?: string;
1245
- commands?: PluginCommandResponse;
1330
+ commands?: GetPluginCommandResponse;
1246
1331
  releaseNotes?: string;
1247
1332
  appAllowed: boolean;
1248
1333
  createdAt: string;
@@ -1266,8 +1351,12 @@ export type GetPluginResponse = {
1266
1351
  stkProjectOnly: boolean;
1267
1352
  stkProjectsOnly: boolean;
1268
1353
  };
1354
+ export type StackResponse = {
1355
+ slug: string;
1356
+ name: string;
1357
+ imageUrl?: string;
1358
+ };
1269
1359
  export type PluginStarterResponse = {
1270
- id: string;
1271
1360
  slug: string;
1272
1361
  "type": string;
1273
1362
  description?: string;
@@ -1284,8 +1373,8 @@ export type PagePluginStarterResponse = {
1284
1373
  content?: PluginStarterResponse[];
1285
1374
  "number"?: number;
1286
1375
  sort?: SortObject[];
1287
- numberOfElements?: number;
1288
1376
  pageable?: PageableObject;
1377
+ numberOfElements?: number;
1289
1378
  empty?: boolean;
1290
1379
  };
1291
1380
  export type GetPluginStackStarterUsageStackResponse = {
@@ -1310,8 +1399,8 @@ export type PageGetPluginStackStarterUsageResponse = {
1310
1399
  content?: GetPluginStackStarterUsageResponse[];
1311
1400
  "number"?: number;
1312
1401
  sort?: SortObject[];
1313
- numberOfElements?: number;
1314
1402
  pageable?: PageableObject;
1403
+ numberOfElements?: number;
1315
1404
  empty?: boolean;
1316
1405
  };
1317
1406
  export type PluginStacksResponse = {
@@ -1332,8 +1421,8 @@ export type PagePluginStacksResponse = {
1332
1421
  content?: PluginStacksResponse[];
1333
1422
  "number"?: number;
1334
1423
  sort?: SortObject[];
1335
- numberOfElements?: number;
1336
1424
  pageable?: PageableObject;
1425
+ numberOfElements?: number;
1337
1426
  empty?: boolean;
1338
1427
  };
1339
1428
  export type GetPluginStackUsageStackResponse = {
@@ -1358,20 +1447,20 @@ export type PageGetPluginStackUsageResponse = {
1358
1447
  content?: GetPluginStackUsageResponse[];
1359
1448
  "number"?: number;
1360
1449
  sort?: SortObject[];
1361
- numberOfElements?: number;
1362
1450
  pageable?: PageableObject;
1451
+ numberOfElements?: number;
1363
1452
  empty?: boolean;
1364
1453
  };
1365
1454
  export type PluginInfrastructureWorkspaceResponse = {
1366
1455
  id: string;
1367
1456
  name: string;
1368
- description: string;
1369
- imageUrl: string;
1457
+ description?: string;
1458
+ imageUrl?: string;
1370
1459
  };
1371
1460
  export type PluginInfrastructureViewResponse = {
1372
1461
  id: string;
1373
1462
  name: string;
1374
- description: string;
1463
+ description?: string;
1375
1464
  totalLinkedVersions: number;
1376
1465
  workspace: PluginInfrastructureWorkspaceResponse;
1377
1466
  };
@@ -1384,8 +1473,8 @@ export type PagePluginInfrastructureViewResponse = {
1384
1473
  content?: PluginInfrastructureViewResponse[];
1385
1474
  "number"?: number;
1386
1475
  sort?: SortObject[];
1387
- numberOfElements?: number;
1388
1476
  pageable?: PageableObject;
1477
+ numberOfElements?: number;
1389
1478
  empty?: boolean;
1390
1479
  };
1391
1480
  export type GetInfrastructureEnvironmentsUsageEnvironmentResponse = {
@@ -1410,16 +1499,13 @@ export type PageInfrastructureEnvironmentsUsesPluginResponse = {
1410
1499
  content?: InfrastructureEnvironmentsUsesPluginResponse[];
1411
1500
  "number"?: number;
1412
1501
  sort?: SortObject[];
1413
- numberOfElements?: number;
1414
1502
  pageable?: PageableObject;
1503
+ numberOfElements?: number;
1415
1504
  empty?: boolean;
1416
1505
  };
1417
1506
  export type PluginViewUsageMonitorResponse = {
1418
1507
  id: string;
1419
1508
  slug: string;
1420
- displayName: string;
1421
- description: string;
1422
- imageUrl: string;
1423
1509
  "type": string;
1424
1510
  totalLinkedVersions: number;
1425
1511
  studio: PluginStudioResponse;
@@ -1433,8 +1519,8 @@ export type PagePluginViewUsageMonitorResponse = {
1433
1519
  content?: PluginViewUsageMonitorResponse[];
1434
1520
  "number"?: number;
1435
1521
  sort?: SortObject[];
1436
- numberOfElements?: number;
1437
1522
  pageable?: PageableObject;
1523
+ numberOfElements?: number;
1438
1524
  empty?: boolean;
1439
1525
  };
1440
1526
  export type DependentPluginVersionResponse = {
@@ -1454,8 +1540,8 @@ export type PageGetDependentPluginsVersionsResponse = {
1454
1540
  content?: GetDependentPluginsVersionsResponse[];
1455
1541
  "number"?: number;
1456
1542
  sort?: SortObject[];
1457
- numberOfElements?: number;
1458
1543
  pageable?: PageableObject;
1544
+ numberOfElements?: number;
1459
1545
  empty?: boolean;
1460
1546
  };
1461
1547
  export type GetPluginVersionsNotInUseResponse = {
@@ -1472,8 +1558,8 @@ export type PageGetPluginVersionsNotInUseResponse = {
1472
1558
  content?: GetPluginVersionsNotInUseResponse[];
1473
1559
  "number"?: number;
1474
1560
  sort?: SortObject[];
1475
- numberOfElements?: number;
1476
1561
  pageable?: PageableObject;
1562
+ numberOfElements?: number;
1477
1563
  empty?: boolean;
1478
1564
  };
1479
1565
  export type PluginInUseSummaryResponse = {
@@ -1484,18 +1570,18 @@ export type PluginInUseSummaryResponse = {
1484
1570
  totalUsedInApplications: number;
1485
1571
  totalNotUsed: number;
1486
1572
  };
1487
- export type WorkspaceResponse = {
1573
+ export type PluginApplicationsWorkspaceResponse = {
1488
1574
  id: string;
1489
1575
  name: string;
1490
- description: string;
1491
- imageUrl: string;
1576
+ description?: string;
1577
+ imageUrl?: string;
1492
1578
  };
1493
1579
  export type PluginApplicationsResponse = {
1494
1580
  id: string;
1495
1581
  name: string;
1496
- description: string;
1582
+ description?: string;
1497
1583
  totalLinkedVersions: number;
1498
- workspace: WorkspaceResponse;
1584
+ workspace: PluginApplicationsWorkspaceResponse;
1499
1585
  };
1500
1586
  export type PagePluginApplicationsResponse = {
1501
1587
  totalElements?: number;
@@ -1506,18 +1592,22 @@ export type PagePluginApplicationsResponse = {
1506
1592
  content?: PluginApplicationsResponse[];
1507
1593
  "number"?: number;
1508
1594
  sort?: SortObject[];
1509
- numberOfElements?: number;
1510
1595
  pageable?: PageableObject;
1596
+ numberOfElements?: number;
1511
1597
  empty?: boolean;
1512
1598
  };
1513
- export type PluginVersionUsed = {
1599
+ export type PluginUsageMonitorApplicationViewVersionResponse = {
1514
1600
  id: string;
1515
1601
  version: string;
1516
1602
  status: string;
1517
1603
  };
1604
+ export type PluginUsageMonitorApplicationViewEnvironmentResponse = {
1605
+ id: string;
1606
+ name: string;
1607
+ };
1518
1608
  export type PluginUsageMonitorApplicationViewResponse = {
1519
- pluginVersion: PluginVersionUsed;
1520
- environment: Environment;
1609
+ pluginVersion: PluginUsageMonitorApplicationViewVersionResponse;
1610
+ environment: PluginUsageMonitorApplicationViewEnvironmentResponse;
1521
1611
  };
1522
1612
  export type PagePluginUsageMonitorApplicationViewResponse = {
1523
1613
  totalElements?: number;
@@ -1528,11 +1618,11 @@ export type PagePluginUsageMonitorApplicationViewResponse = {
1528
1618
  content?: PluginUsageMonitorApplicationViewResponse[];
1529
1619
  "number"?: number;
1530
1620
  sort?: SortObject[];
1531
- numberOfElements?: number;
1532
1621
  pageable?: PageableObject;
1622
+ numberOfElements?: number;
1533
1623
  empty?: boolean;
1534
1624
  };
1535
- export type ActionVersionResponse = {
1625
+ export type ListActionVersionItemResponse = {
1536
1626
  actionVersionId: string;
1537
1627
  version: string;
1538
1628
  createdBy: string;
@@ -1541,9 +1631,9 @@ export type ActionVersionResponse = {
1541
1631
  status: string;
1542
1632
  governance?: ActionGovernanceResponse;
1543
1633
  };
1544
- export type GetActionVersionListResponse = {
1634
+ export type ListActionVersionResponse = {
1545
1635
  actionId: string;
1546
- versions: ActionVersionResponse[];
1636
+ versions: ListActionVersionItemResponse[];
1547
1637
  };
1548
1638
  export type StudioSummaryResponse = {
1549
1639
  id: string;
@@ -1553,7 +1643,7 @@ export type StudioSummaryResponse = {
1553
1643
  visibility: string;
1554
1644
  };
1555
1645
  export type DeleteStackVersionResponse = {
1556
- stack?: StackResponse;
1646
+ stack?: GetStackVersionStackResponse;
1557
1647
  version?: StackVersionResponse;
1558
1648
  };
1559
1649
  export type GetStackWorkspaceResponse = {
@@ -1587,24 +1677,45 @@ export type PluginVersionUsageSummaryResponse = {
1587
1677
  totalUsedInInfrastructures: number;
1588
1678
  totalUsedInApplications: number;
1589
1679
  };
1680
+ export type PluginSummaryResponse = {
1681
+ id: string;
1682
+ versionId: string;
1683
+ "type": string;
1684
+ versionMajor: number;
1685
+ versionMinor: number;
1686
+ versionPatch: number;
1687
+ slug: string;
1688
+ fullQualifier: string;
1689
+ qualifier: string;
1690
+ studioSlug: string;
1691
+ accountSlug: string;
1692
+ };
1693
+ export type PluginVersionByConnectionVersionResponse = {
1694
+ id: string;
1695
+ displayName?: string;
1696
+ version: string;
1697
+ description?: string;
1698
+ appAllowed: boolean;
1699
+ requires?: PluginRequiresResponse;
1700
+ generates: PluginGeneratesResponse;
1701
+ };
1590
1702
  export type PluginVersionByConnectionResponse = {
1591
1703
  id: string;
1592
1704
  slug: string;
1593
1705
  accountSlug?: string;
1594
1706
  studio: PluginStudioResponse;
1595
- pluginVersions?: PluginVersionResponse[];
1707
+ pluginVersions?: PluginVersionByConnectionVersionResponse[];
1596
1708
  };
1597
1709
  export type ContentStudioResponse = {
1598
1710
  slug: string;
1599
1711
  createdBy: string;
1600
1712
  visibility: "ACCOUNT_ONLY" | "SELECTED_WORKSPACES" | "RESTRICTED_ACCESS" | "PUBLIC";
1601
- teams: string[];
1602
1713
  workspaces: string[];
1603
1714
  };
1604
1715
  export type ContentDataResponse = {
1605
1716
  id: string;
1606
1717
  slug: string;
1607
- contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION";
1718
+ contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
1608
1719
  };
1609
1720
  export type ContentResponse = {
1610
1721
  studio: ContentStudioResponse;
@@ -1630,8 +1741,8 @@ export type PageContentEvaluationResponse = {
1630
1741
  content?: ContentEvaluationResponse[];
1631
1742
  "number"?: number;
1632
1743
  sort?: SortObject[];
1633
- numberOfElements?: number;
1634
1744
  pageable?: PageableObject;
1745
+ numberOfElements?: number;
1635
1746
  empty?: boolean;
1636
1747
  };
1637
1748
  export type ContentEvaluationSummaryDetailsResponse = {
@@ -2057,13 +2168,44 @@ export function createConnectionInterfaceType({ createConnectionInterfaceTypeReq
2057
2168
  body: createConnectionInterfaceTypeRequest
2058
2169
  })));
2059
2170
  }
2171
+ /**
2172
+ * Validate and return info from a workflow
2173
+ */
2174
+ export function validateWorkflow({ body }: {
2175
+ body?: {
2176
+ file: Blob;
2177
+ };
2178
+ }, opts?: Oazapfts.RequestOpts) {
2179
+ return oazapfts.ok(oazapfts.fetchJson<{
2180
+ status: 200;
2181
+ data: ValidateResponse;
2182
+ } | {
2183
+ status: 422;
2184
+ data: {
2185
+ code: string;
2186
+ status: number;
2187
+ details: string;
2188
+ validationDetails?: ValidationDetails[];
2189
+ };
2190
+ } | {
2191
+ status: 500;
2192
+ data: {
2193
+ code: string;
2194
+ status: number;
2195
+ details: string;
2196
+ validationDetails?: ValidationDetails[];
2197
+ };
2198
+ }>("/v1/workflows/validate", oazapfts.json({
2199
+ ...opts,
2200
+ method: "POST",
2201
+ body
2202
+ })));
2203
+ }
2060
2204
  /**
2061
2205
  * Find studios
2062
2206
  */
2063
- export function getStudios1({ xWorkspaceId, authorization, teamId, aclOnly, filter, isAccountHolder }: {
2207
+ export function getStudios1({ xWorkspaceId, aclOnly, filter, isAccountHolder }: {
2064
2208
  xWorkspaceId?: string;
2065
- authorization: string;
2066
- teamId?: string;
2067
2209
  aclOnly?: boolean;
2068
2210
  filter?: string;
2069
2211
  isAccountHolder?: boolean;
@@ -2088,23 +2230,20 @@ export function getStudios1({ xWorkspaceId, authorization, teamId, aclOnly, filt
2088
2230
  validationDetails?: ValidationDetails[];
2089
2231
  };
2090
2232
  }>(`/v1/studios${QS.query(QS.explode({
2091
- teamId,
2092
2233
  aclOnly,
2093
2234
  filter,
2094
2235
  isAccountHolder
2095
2236
  }))}`, {
2096
2237
  ...opts,
2097
2238
  headers: oazapfts.mergeHeaders(opts?.headers, {
2098
- "x-workspace-id": xWorkspaceId,
2099
- Authorization: authorization
2239
+ "x-workspace-id": xWorkspaceId
2100
2240
  })
2101
2241
  }));
2102
2242
  }
2103
2243
  /**
2104
2244
  * Create a new studio
2105
2245
  */
2106
- export function createStudio({ authorization, createStudioRequest }: {
2107
- authorization: string;
2246
+ export function createStudio({ createStudioRequest }: {
2108
2247
  createStudioRequest: CreateStudioRequest;
2109
2248
  }, opts?: Oazapfts.RequestOpts) {
2110
2249
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -2129,10 +2268,7 @@ export function createStudio({ authorization, createStudioRequest }: {
2129
2268
  }>("/v1/studios", oazapfts.json({
2130
2269
  ...opts,
2131
2270
  method: "POST",
2132
- body: createStudioRequest,
2133
- headers: oazapfts.mergeHeaders(opts?.headers, {
2134
- Authorization: authorization
2135
- })
2271
+ body: createStudioRequest
2136
2272
  })));
2137
2273
  }
2138
2274
  /**
@@ -2195,6 +2331,41 @@ export function addWorkspace({ studioSlug, studioWorkspaceRequest }: {
2195
2331
  body: studioWorkspaceRequest
2196
2332
  })));
2197
2333
  }
2334
+ /**
2335
+ * Publish Workflow
2336
+ */
2337
+ export function publishWorkflow({ studioSlug, workflowSlug, body }: {
2338
+ studioSlug: string;
2339
+ workflowSlug: string;
2340
+ body?: {
2341
+ file: Blob;
2342
+ };
2343
+ }, opts?: Oazapfts.RequestOpts) {
2344
+ return oazapfts.ok(oazapfts.fetchJson<{
2345
+ status: 200;
2346
+ data: PublishWorkflowResponse;
2347
+ } | {
2348
+ status: 422;
2349
+ data: {
2350
+ code: string;
2351
+ status: number;
2352
+ details: string;
2353
+ validationDetails?: ValidationDetails[];
2354
+ };
2355
+ } | {
2356
+ status: 500;
2357
+ data: {
2358
+ code: string;
2359
+ status: number;
2360
+ details: string;
2361
+ validationDetails?: ValidationDetails[];
2362
+ };
2363
+ }>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}`, oazapfts.multipart({
2364
+ ...opts,
2365
+ method: "POST",
2366
+ body
2367
+ })));
2368
+ }
2198
2369
  /**
2199
2370
  * Get Stack by slugs
2200
2371
  */
@@ -2207,7 +2378,7 @@ export function getStackBySlug({ studioSlug, stackSlug, semanticVersion, onlyPub
2207
2378
  }, opts?: Oazapfts.RequestOpts) {
2208
2379
  return oazapfts.ok(oazapfts.fetchJson<{
2209
2380
  status: 200;
2210
- data: GetStackResponse;
2381
+ data: GetStackVersionResponse;
2211
2382
  } | {
2212
2383
  status: 422;
2213
2384
  data: {
@@ -2320,7 +2491,7 @@ export function publishPluginController({ studioSlug, pluginSlug, body }: {
2320
2491
  }, opts?: Oazapfts.RequestOpts) {
2321
2492
  return oazapfts.ok(oazapfts.fetchJson<{
2322
2493
  status: 200;
2323
- data: PublishResponse;
2494
+ data: PublishPluginResponse;
2324
2495
  } | {
2325
2496
  status: 422;
2326
2497
  data: {
@@ -2597,11 +2768,12 @@ export function createAction({ studioSlug, actionSlug, body }: {
2597
2768
  /**
2598
2769
  * Get available action versions by action slug
2599
2770
  */
2600
- export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range }: {
2771
+ export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range, requiresConnection }: {
2601
2772
  studioSlug: string;
2602
2773
  actionSlug: string;
2603
2774
  xWorkspaceId?: string;
2604
2775
  range: string;
2776
+ requiresConnection?: boolean;
2605
2777
  }, opts?: Oazapfts.RequestOpts) {
2606
2778
  return oazapfts.ok(oazapfts.fetchJson<{
2607
2779
  status: 200;
@@ -2624,7 +2796,8 @@ export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug,
2624
2796
  };
2625
2797
  }>(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
2626
2798
  "x-workspace-id": xWorkspaceId,
2627
- range
2799
+ range,
2800
+ requiresConnection
2628
2801
  }))}`, {
2629
2802
  ...opts
2630
2803
  }));
@@ -2705,42 +2878,10 @@ export function listActionsByFilters({ xWorkspaceId, studioSlug, pageable, filte
2705
2878
  })
2706
2879
  })));
2707
2880
  }
2708
- /**
2709
- * Adds a team to a studio
2710
- */
2711
- export function addTeamsInStudio({ studioId, body }: {
2712
- studioId: string;
2713
- body: string[];
2714
- }, opts?: Oazapfts.RequestOpts) {
2715
- return oazapfts.ok(oazapfts.fetchJson<{
2716
- status: 200;
2717
- } | {
2718
- status: 422;
2719
- data: {
2720
- code: string;
2721
- status: number;
2722
- details: string;
2723
- validationDetails?: ValidationDetails[];
2724
- };
2725
- } | {
2726
- status: 500;
2727
- data: {
2728
- code: string;
2729
- status: number;
2730
- details: string;
2731
- validationDetails?: ValidationDetails[];
2732
- };
2733
- }>(`/v1/studios/${encodeURIComponent(studioId)}/teams`, oazapfts.json({
2734
- ...opts,
2735
- method: "POST",
2736
- body
2737
- })));
2738
- }
2739
2881
  /**
2740
2882
  * List studios by filters
2741
2883
  */
2742
- export function listStudios({ authorization, xWorkspaceId, filterStudioRequest }: {
2743
- authorization: string;
2884
+ export function listStudios({ xWorkspaceId, filterStudioRequest }: {
2744
2885
  xWorkspaceId?: string;
2745
2886
  filterStudioRequest: FilterStudioRequest;
2746
2887
  }, opts?: Oazapfts.RequestOpts) {
@@ -2768,7 +2909,6 @@ export function listStudios({ authorization, xWorkspaceId, filterStudioRequest }
2768
2909
  method: "POST",
2769
2910
  body: filterStudioRequest,
2770
2911
  headers: oazapfts.mergeHeaders(opts?.headers, {
2771
- Authorization: authorization,
2772
2912
  "x-workspace-id": xWorkspaceId
2773
2913
  })
2774
2914
  })));
@@ -2818,7 +2958,7 @@ export function listStacks1({ xWorkspaceId, isAccountHolder }: {
2818
2958
  }, opts?: Oazapfts.RequestOpts) {
2819
2959
  return oazapfts.ok(oazapfts.fetchJson<{
2820
2960
  status: 200;
2821
- data: GetStackResponse[];
2961
+ data: GetStackVersionResponse[];
2822
2962
  } | {
2823
2963
  status: 422;
2824
2964
  data: {
@@ -3245,9 +3385,8 @@ export function addLink({ stackVersionId, addLinkRequest }: {
3245
3385
  /**
3246
3386
  * Deprecate a stack
3247
3387
  */
3248
- export function deprecateStackVersionBy({ stackVersionId, authorization, deprecateContentRequest }: {
3388
+ export function deprecateStackVersionBy({ stackVersionId, deprecateContentRequest }: {
3249
3389
  stackVersionId: string;
3250
- authorization: string;
3251
3390
  deprecateContentRequest: DeprecateContentRequest;
3252
3391
  }, opts?: Oazapfts.RequestOpts) {
3253
3392
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3271,10 +3410,7 @@ export function deprecateStackVersionBy({ stackVersionId, authorization, depreca
3271
3410
  }>(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/deprecate`, oazapfts.json({
3272
3411
  ...opts,
3273
3412
  method: "POST",
3274
- body: deprecateContentRequest,
3275
- headers: oazapfts.mergeHeaders(opts?.headers, {
3276
- Authorization: authorization
3277
- })
3413
+ body: deprecateContentRequest
3278
3414
  })));
3279
3415
  }
3280
3416
  /**
@@ -3422,7 +3558,7 @@ export function getStackVersionListByIds({ xWorkspaceId, filterStackVersionReque
3422
3558
  }, opts?: Oazapfts.RequestOpts) {
3423
3559
  return oazapfts.ok(oazapfts.fetchJson<{
3424
3560
  status: 200;
3425
- data: GetStackResponse[];
3561
+ data: GetStackVersionResponse[];
3426
3562
  } | {
3427
3563
  status: 422;
3428
3564
  data: {
@@ -3550,9 +3686,8 @@ export function listPluginVersionByIdsController({ xWorkspaceId, filterPluginVer
3550
3686
  /**
3551
3687
  * Deprecate a plugin version
3552
3688
  */
3553
- export function deprecatePluginVersion({ pluginVersionId, authorization, deprecateContentRequest }: {
3689
+ export function deprecatePluginVersion({ pluginVersionId, deprecateContentRequest }: {
3554
3690
  pluginVersionId: string;
3555
- authorization: string;
3556
3691
  deprecateContentRequest: DeprecateContentRequest;
3557
3692
  }, opts?: Oazapfts.RequestOpts) {
3558
3693
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3576,10 +3711,7 @@ export function deprecatePluginVersion({ pluginVersionId, authorization, depreca
3576
3711
  }>(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/deprecate`, oazapfts.json({
3577
3712
  ...opts,
3578
3713
  method: "POST",
3579
- body: deprecateContentRequest,
3580
- headers: oazapfts.mergeHeaders(opts?.headers, {
3581
- Authorization: authorization
3582
- })
3714
+ body: deprecateContentRequest
3583
3715
  })));
3584
3716
  }
3585
3717
  /**
@@ -4240,7 +4372,7 @@ export function getStackById({ stackId, semanticVersion, xWorkspaceId }: {
4240
4372
  }, opts?: Oazapfts.RequestOpts) {
4241
4373
  return oazapfts.ok(oazapfts.fetchJson<{
4242
4374
  status: 200;
4243
- data: GetStackResponse;
4375
+ data: GetStackVersionResponse;
4244
4376
  } | {
4245
4377
  status: 422;
4246
4378
  data: {
@@ -4275,7 +4407,7 @@ export function updateStackById({ stackId, updateStackRequest }: {
4275
4407
  }, opts?: Oazapfts.RequestOpts) {
4276
4408
  return oazapfts.ok(oazapfts.fetchJson<{
4277
4409
  status: 200;
4278
- data: StackResponse;
4410
+ data: GetStackVersionStackResponse;
4279
4411
  } | {
4280
4412
  status: 422;
4281
4413
  data: {
@@ -4516,10 +4648,9 @@ export function updateConnectionInterfaceType1({ connectionInterfaceTypeId, upda
4516
4648
  /**
4517
4649
  * Find studios
4518
4650
  */
4519
- export function getStudios({ xWorkspaceId, authorization, teamId, aclOnly, filter, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
4651
+ export function getStudios({ xWorkspaceId, authorization, aclOnly, filter, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }: {
4520
4652
  xWorkspaceId?: string;
4521
4653
  authorization: string;
4522
- teamId?: string;
4523
4654
  aclOnly?: boolean;
4524
4655
  filter?: string;
4525
4656
  isAccountHolder?: boolean;
@@ -4548,7 +4679,6 @@ export function getStudios({ xWorkspaceId, authorization, teamId, aclOnly, filte
4548
4679
  validationDetails?: ValidationDetails[];
4549
4680
  };
4550
4681
  }>(`/v2/studios${QS.query(QS.explode({
4551
- teamId,
4552
4682
  aclOnly,
4553
4683
  filter,
4554
4684
  isAccountHolder,
@@ -4735,6 +4865,147 @@ export function listInputs({ actionVersionId, xWorkspaceId, accountId }: {
4735
4865
  })
4736
4866
  }));
4737
4867
  }
4868
+ /**
4869
+ * Get workflows from studio
4870
+ */
4871
+ export function getWorkflowByStudioSlug({ studioSlug, xWorkspaceId, pageable }: {
4872
+ studioSlug: string;
4873
+ xWorkspaceId?: string;
4874
+ pageable: Pageable;
4875
+ }, opts?: Oazapfts.RequestOpts) {
4876
+ return oazapfts.ok(oazapfts.fetchJson<{
4877
+ status: 200;
4878
+ data: PageGetWorkflowsByStudioResponse;
4879
+ } | {
4880
+ status: 422;
4881
+ data: {
4882
+ code: string;
4883
+ status: number;
4884
+ details: string;
4885
+ validationDetails?: ValidationDetails[];
4886
+ };
4887
+ } | {
4888
+ status: 500;
4889
+ data: {
4890
+ code: string;
4891
+ status: number;
4892
+ details: string;
4893
+ validationDetails?: ValidationDetails[];
4894
+ };
4895
+ }>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows${QS.query(QS.explode({
4896
+ "x-workspace-id": xWorkspaceId,
4897
+ pageable
4898
+ }))}`, {
4899
+ ...opts
4900
+ }));
4901
+ }
4902
+ /**
4903
+ * Download a workflow by version
4904
+ */
4905
+ export function downloadWorkflow({ studioSlug, workflowSlug, version, xWorkspaceId }: {
4906
+ studioSlug: string;
4907
+ workflowSlug: string;
4908
+ version: string;
4909
+ xWorkspaceId?: string;
4910
+ }, opts?: Oazapfts.RequestOpts) {
4911
+ return oazapfts.ok(oazapfts.fetchJson<{
4912
+ status: 200;
4913
+ data: string;
4914
+ } | {
4915
+ status: 422;
4916
+ data: {
4917
+ code: string;
4918
+ status: number;
4919
+ details: string;
4920
+ validationDetails?: ValidationDetails[];
4921
+ };
4922
+ } | {
4923
+ status: 500;
4924
+ data: {
4925
+ code: string;
4926
+ status: number;
4927
+ details: string;
4928
+ validationDetails?: ValidationDetails[];
4929
+ };
4930
+ }>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download`, {
4931
+ ...opts,
4932
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4933
+ "x-workspace-id": xWorkspaceId
4934
+ })
4935
+ }));
4936
+ }
4937
+ /**
4938
+ * Download a workflow by version (base64 response version)
4939
+ */
4940
+ export function downloadWorkflowBase64({ studioSlug, workflowSlug, version, xWorkspaceId }: {
4941
+ studioSlug: string;
4942
+ workflowSlug: string;
4943
+ version: string;
4944
+ xWorkspaceId?: string;
4945
+ }, opts?: Oazapfts.RequestOpts) {
4946
+ return oazapfts.ok(oazapfts.fetchJson<{
4947
+ status: 200;
4948
+ data: DownloadWorkflowBase64Response;
4949
+ } | {
4950
+ status: 422;
4951
+ data: {
4952
+ code: string;
4953
+ status: number;
4954
+ details: string;
4955
+ validationDetails?: ValidationDetails[];
4956
+ };
4957
+ } | {
4958
+ status: 500;
4959
+ data: {
4960
+ code: string;
4961
+ status: number;
4962
+ details: string;
4963
+ validationDetails?: ValidationDetails[];
4964
+ };
4965
+ }>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
4966
+ ...opts,
4967
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4968
+ "x-workspace-id": xWorkspaceId
4969
+ })
4970
+ }));
4971
+ }
4972
+ /**
4973
+ * Get available workflow versions by workflow slug
4974
+ */
4975
+ export function getAvailableWorkflowVersionsByWorkflowSlug({ studioSlug, workflowSlug, xWorkspaceId, range, pageable }: {
4976
+ studioSlug: string;
4977
+ workflowSlug: string;
4978
+ xWorkspaceId?: string;
4979
+ range: string;
4980
+ pageable: Pageable;
4981
+ }, opts?: Oazapfts.RequestOpts) {
4982
+ return oazapfts.ok(oazapfts.fetchJson<{
4983
+ status: 200;
4984
+ data: PageGetAvailableWorkflowVersionsResponse;
4985
+ } | {
4986
+ status: 422;
4987
+ data: {
4988
+ code: string;
4989
+ status: number;
4990
+ details: string;
4991
+ validationDetails?: ValidationDetails[];
4992
+ };
4993
+ } | {
4994
+ status: 500;
4995
+ data: {
4996
+ code: string;
4997
+ status: number;
4998
+ details: string;
4999
+ validationDetails?: ValidationDetails[];
5000
+ };
5001
+ }>(`/v1/studios/${encodeURIComponent(studioSlug)}/workflows/${encodeURIComponent(workflowSlug)}/range${QS.query(QS.explode({
5002
+ "x-workspace-id": xWorkspaceId,
5003
+ range,
5004
+ pageable
5005
+ }))}`, {
5006
+ ...opts
5007
+ }));
5008
+ }
4738
5009
  /**
4739
5010
  * Get a starter documentation
4740
5011
  */
@@ -5220,7 +5491,7 @@ export function getStarterUsesPlugin({ studioSlug, pluginSlug, filter, $type, pa
5220
5491
  studioSlug: string;
5221
5492
  pluginSlug: string;
5222
5493
  filter?: string;
5223
- $type?: string;
5494
+ $type?: "APP" | "INFRA";
5224
5495
  pageable: Pageable;
5225
5496
  }, opts?: Oazapfts.RequestOpts) {
5226
5497
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -5434,7 +5705,7 @@ export function getGetPluginView({ studioSlug, pluginSlug, studio, filter, $type
5434
5705
  pluginSlug: string;
5435
5706
  studio?: string;
5436
5707
  filter?: string;
5437
- $type?: string;
5708
+ $type?: "INFRA" | "APP";
5438
5709
  pageable: Pageable;
5439
5710
  }, opts?: Oazapfts.RequestOpts) {
5440
5711
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -5722,15 +5993,16 @@ export function getPluginDoc({ studioSlug, documentationId, language, status }:
5722
5993
  /**
5723
5994
  * List all action versions
5724
5995
  */
5725
- export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspaceId }: {
5996
+ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspaceId, requiresConnection }: {
5726
5997
  studioSlug: string;
5727
5998
  actionSlug: string;
5728
5999
  status?: ("DRAFT" | "PUBLISHED" | "DEPRECATED" | "REPROVED")[];
5729
6000
  xWorkspaceId?: string;
6001
+ requiresConnection?: boolean;
5730
6002
  }, opts?: Oazapfts.RequestOpts) {
5731
6003
  return oazapfts.ok(oazapfts.fetchJson<{
5732
6004
  status: 200;
5733
- data: GetActionVersionListResponse;
6005
+ data: ListActionVersionResponse;
5734
6006
  } | {
5735
6007
  status: 422;
5736
6008
  data: {
@@ -5748,7 +6020,8 @@ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspac
5748
6020
  validationDetails?: ValidationDetails[];
5749
6021
  };
5750
6022
  }>(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions${QS.query(QS.explode({
5751
- status
6023
+ status,
6024
+ requiresConnection
5752
6025
  }))}`, {
5753
6026
  ...opts,
5754
6027
  headers: oazapfts.mergeHeaders(opts?.headers, {
@@ -5869,9 +6142,8 @@ export function getActionDoc({ studioSlug, documentationId, language, status }:
5869
6142
  /**
5870
6143
  * Get a studio by id or slug
5871
6144
  */
5872
- export function getStudioByIdOrSlug({ studioIdOrSlug, authorization, xWorkspaceId }: {
6145
+ export function getStudioByIdOrSlug({ studioIdOrSlug, xWorkspaceId }: {
5873
6146
  studioIdOrSlug: string;
5874
- authorization?: string;
5875
6147
  xWorkspaceId?: string;
5876
6148
  }, opts?: Oazapfts.RequestOpts) {
5877
6149
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -5896,7 +6168,6 @@ export function getStudioByIdOrSlug({ studioIdOrSlug, authorization, xWorkspaceI
5896
6168
  }>(`/v1/studios/${encodeURIComponent(studioIdOrSlug)}`, {
5897
6169
  ...opts,
5898
6170
  headers: oazapfts.mergeHeaders(opts?.headers, {
5899
- Authorization: authorization,
5900
6171
  "x-workspace-id": xWorkspaceId
5901
6172
  })
5902
6173
  }));
@@ -5904,9 +6175,7 @@ export function getStudioByIdOrSlug({ studioIdOrSlug, authorization, xWorkspaceI
5904
6175
  /**
5905
6176
  * Get studios from token
5906
6177
  */
5907
- export function getStudiosToCreateButton({ authorization }: {
5908
- authorization: string;
5909
- }, opts?: Oazapfts.RequestOpts) {
6178
+ export function getStudiosToCreateButton(opts?: Oazapfts.RequestOpts) {
5910
6179
  return oazapfts.ok(oazapfts.fetchJson<{
5911
6180
  status: 200;
5912
6181
  data: StudioSummaryResponse[];
@@ -5927,10 +6196,7 @@ export function getStudiosToCreateButton({ authorization }: {
5927
6196
  validationDetails?: ValidationDetails[];
5928
6197
  };
5929
6198
  }>("/v1/studios/create", {
5930
- ...opts,
5931
- headers: oazapfts.mergeHeaders(opts?.headers, {
5932
- Authorization: authorization
5933
- })
6199
+ ...opts
5934
6200
  }));
5935
6201
  }
5936
6202
  /**
@@ -5942,7 +6208,7 @@ export function getStackVersionListByIds1({ stackVersionIds, xWorkspaceId }: {
5942
6208
  }, opts?: Oazapfts.RequestOpts) {
5943
6209
  return oazapfts.ok(oazapfts.fetchJson<{
5944
6210
  status: 200;
5945
- data: GetStackResponse[];
6211
+ data: GetStackVersionResponse[];
5946
6212
  } | {
5947
6213
  status: 422;
5948
6214
  data: {
@@ -5977,7 +6243,7 @@ export function getStackVersionById({ stackVersionId, xWorkspaceId }: {
5977
6243
  }, opts?: Oazapfts.RequestOpts) {
5978
6244
  return oazapfts.ok(oazapfts.fetchJson<{
5979
6245
  status: 200;
5980
- data: GetStackResponse;
6246
+ data: GetStackVersionResponse;
5981
6247
  } | {
5982
6248
  status: 422;
5983
6249
  data: {
@@ -6230,7 +6496,7 @@ export function listPlugins({ stackVersionId, starterType, xWorkspaceId }: {
6230
6496
  }, opts?: Oazapfts.RequestOpts) {
6231
6497
  return oazapfts.ok(oazapfts.fetchJson<{
6232
6498
  status: 200;
6233
- data: GetPluginsResponse;
6499
+ data: GetStackPluginsResponse;
6234
6500
  } | {
6235
6501
  status: 422;
6236
6502
  data: {
@@ -6540,6 +6806,39 @@ export function getPluginVersionUsageSummary({ pluginVersionId }: {
6540
6806
  ...opts
6541
6807
  }));
6542
6808
  }
6809
+ /**
6810
+ * Get Plugins Versions by require variable
6811
+ */
6812
+ export function getPluginVersionsByVariable({ variableName, accountId }: {
6813
+ variableName: string;
6814
+ accountId: string;
6815
+ }, opts?: Oazapfts.RequestOpts) {
6816
+ return oazapfts.ok(oazapfts.fetchJson<{
6817
+ status: 200;
6818
+ data: PluginSummaryResponse[];
6819
+ } | {
6820
+ status: 422;
6821
+ data: {
6822
+ code: string;
6823
+ status: number;
6824
+ details: string;
6825
+ validationDetails?: ValidationDetails[];
6826
+ };
6827
+ } | {
6828
+ status: 500;
6829
+ data: {
6830
+ code: string;
6831
+ status: number;
6832
+ details: string;
6833
+ validationDetails?: ValidationDetails[];
6834
+ };
6835
+ }>(`/v1/plugins/variables/${encodeURIComponent(variableName)}`, {
6836
+ ...opts,
6837
+ headers: oazapfts.mergeHeaders(opts?.headers, {
6838
+ accountId
6839
+ })
6840
+ }));
6841
+ }
6543
6842
  /**
6544
6843
  * List plugins version by connection
6545
6844
  */
@@ -6607,7 +6906,7 @@ export function listReasons(opts?: Oazapfts.RequestOpts) {
6607
6906
  * Get Studio and Content data from Content Type and Content ID
6608
6907
  */
6609
6908
  export function getContent({ contentType, contentIdentifier, studioSlug, accountId }: {
6610
- contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION";
6909
+ contentType: "STUDIO" | "ACTION" | "PLUGIN" | "STACK" | "STARTER" | "ACTION_VERSION" | "PLUGIN_VERSION" | "STACK_VERSION" | "WORKFLOW";
6611
6910
  contentIdentifier: string;
6612
6911
  studioSlug?: string;
6613
6912
  accountId?: string;
@@ -6951,10 +7250,11 @@ export function getListOfInputs({ actionVersionId, xWorkspaceId, accountId }: {
6951
7250
  }));
6952
7251
  }
6953
7252
  /**
6954
- * Get Actions Versions by secret
7253
+ * Get Actions Versions by require variable
6955
7254
  */
6956
- export function getActionVersionsBySecret({ secretName }: {
6957
- secretName: string;
7255
+ export function getActionVersionsByVariable({ variableName, accountId }: {
7256
+ variableName: string;
7257
+ accountId: string;
6958
7258
  }, opts?: Oazapfts.RequestOpts) {
6959
7259
  return oazapfts.ok(oazapfts.fetchJson<{
6960
7260
  status: 200;
@@ -6975,8 +7275,11 @@ export function getActionVersionsBySecret({ secretName }: {
6975
7275
  details: string;
6976
7276
  validationDetails?: ValidationDetails[];
6977
7277
  };
6978
- }>(`/v1/actions/secrets/${encodeURIComponent(secretName)}`, {
6979
- ...opts
7278
+ }>(`/v1/actions/variables/${encodeURIComponent(variableName)}`, {
7279
+ ...opts,
7280
+ headers: oazapfts.mergeHeaders(opts?.headers, {
7281
+ accountId
7282
+ })
6980
7283
  }));
6981
7284
  }
6982
7285
  /**
@@ -7022,7 +7325,7 @@ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, sta
7022
7325
  }, opts?: Oazapfts.RequestOpts) {
7023
7326
  return oazapfts.ok(oazapfts.fetchJson<{
7024
7327
  status: 200;
7025
- data: GetActionVersionListResponse;
7328
+ data: ListActionVersionResponse;
7026
7329
  } | {
7027
7330
  status: 422;
7028
7331
  data: {
@@ -7147,36 +7450,6 @@ export function delWorkspace({ studioSlug, workspaceId }: {
7147
7450
  method: "DELETE"
7148
7451
  }));
7149
7452
  }
7150
- /**
7151
- * Remove an team from a studio
7152
- */
7153
- export function deleteTeam({ studioId, teamId }: {
7154
- studioId: string;
7155
- teamId: string;
7156
- }, opts?: Oazapfts.RequestOpts) {
7157
- return oazapfts.ok(oazapfts.fetchJson<{
7158
- status: 204;
7159
- } | {
7160
- status: 422;
7161
- data: {
7162
- code: string;
7163
- status: number;
7164
- details: string;
7165
- validationDetails?: ValidationDetails[];
7166
- };
7167
- } | {
7168
- status: 500;
7169
- data: {
7170
- code: string;
7171
- status: number;
7172
- details: string;
7173
- validationDetails?: ValidationDetails[];
7174
- };
7175
- }>(`/v1/studios/${encodeURIComponent(studioId)}/teams/${encodeURIComponent(teamId)}`, {
7176
- ...opts,
7177
- method: "DELETE"
7178
- }));
7179
- }
7180
7453
  /**
7181
7454
  * Deletes a Starter from a StackVersion
7182
7455
  */