@stack-spot/portal-network 0.27.2 → 0.28.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/api/apiManagement.d.ts +289 -0
  3. package/dist/api/apiManagement.d.ts.map +1 -0
  4. package/dist/api/apiManagement.js +143 -0
  5. package/dist/api/apiManagement.js.map +1 -0
  6. package/dist/api/workspaceManager.d.ts +320 -218
  7. package/dist/api/workspaceManager.d.ts.map +1 -1
  8. package/dist/api/workspaceManager.js +68 -20
  9. package/dist/api/workspaceManager.js.map +1 -1
  10. package/dist/apis.json +8 -8
  11. package/dist/client/content.d.ts +43 -0
  12. package/dist/client/content.d.ts.map +1 -1
  13. package/dist/client/content.js +55 -1
  14. package/dist/client/content.js.map +1 -1
  15. package/dist/client/notification.d.ts +1 -1
  16. package/dist/client/types.d.ts +29 -0
  17. package/dist/client/types.d.ts.map +1 -1
  18. package/dist/client/workspace-manager.d.ts +121 -0
  19. package/dist/client/workspace-manager.d.ts.map +1 -0
  20. package/dist/client/workspace-manager.js +204 -0
  21. package/dist/client/workspace-manager.js.map +1 -0
  22. package/dist/client/workspace.d.ts +45 -0
  23. package/dist/client/workspace.d.ts.map +1 -1
  24. package/dist/client/workspace.js +46 -1
  25. package/dist/client/workspace.js.map +1 -1
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/network/ManualOperation.js +1 -1
  31. package/package.json +1 -1
  32. package/src/api/apiManagement.ts +498 -0
  33. package/src/api/workspaceManager.ts +402 -234
  34. package/src/apis.json +8 -8
  35. package/src/client/content.ts +39 -2
  36. package/src/client/types.ts +38 -0
  37. package/src/client/workspace-manager.ts +171 -0
  38. package/src/client/workspace.ts +40 -15
  39. package/src/index.ts +1 -1
  40. package/src/network/ManualOperation.ts +1 -1
@@ -17,16 +17,16 @@ export const servers = {
17
17
  export type ExternalItemsResponse = {
18
18
  source: string;
19
19
  value: string;
20
- label: string;
20
+ label?: string;
21
21
  };
22
- export type ConditionResponse = {
22
+ export type InputConditionResponse = {
23
23
  variable: string;
24
24
  operator: string;
25
25
  value?: object;
26
26
  };
27
27
  export type ActionConsolidatedAttributeResponse = {
28
- key: string;
29
- value: object;
28
+ key?: string;
29
+ value?: object;
30
30
  final: boolean;
31
31
  label: string;
32
32
  "type": string;
@@ -36,7 +36,7 @@ export type ActionConsolidatedAttributeResponse = {
36
36
  "default"?: object;
37
37
  items?: string[];
38
38
  externalItems?: ExternalItemsResponse;
39
- condition?: ConditionResponse;
39
+ condition?: InputConditionResponse;
40
40
  source: "ACCOUNT" | "STACK" | "WORKSPACE";
41
41
  readOnly: boolean;
42
42
  connectionInterfaceType?: string;
@@ -44,12 +44,18 @@ export type ActionConsolidatedAttributeResponse = {
44
44
  input?: object;
45
45
  inputs: object[];
46
46
  };
47
+ export type ComputedInputResponse = {
48
+ name: string;
49
+ expression: string;
50
+ };
47
51
  export type WorkflowActionWithContextResponse = {
48
52
  actionId: string;
49
53
  versionRange: string;
50
54
  name: string;
51
55
  stepType?: "CREATE_REPO";
52
56
  valuesContext: ActionConsolidatedAttributeResponse[];
57
+ computedInputs: ComputedInputResponse[];
58
+ globalComputedInputs: ComputedInputResponse[];
53
59
  };
54
60
  export type WorkflowAccountContextResponse = {
55
61
  actionsBefore: WorkflowActionWithContextResponse[];
@@ -72,38 +78,28 @@ export type WorkflowContextSaveRequest = {
72
78
  };
73
79
  export type ConnectionInterfaceAttribute = {
74
80
  /** Attribute key. */
75
- key?: string;
81
+ key: string;
76
82
  /** Attribute value. */
77
- value?: object;
83
+ value: object;
78
84
  /** Indicates if this attribute value is sensitive or not. */
79
- sensitive?: boolean;
85
+ sensitive: boolean;
80
86
  /** Indicates the outuput id for the respective attribute and is used for validation. */
81
- id?: string;
87
+ id: string;
82
88
  };
83
89
  export type ConnectionInterfaceAttributesByEnv = {
84
90
  /** Environment id. */
85
- environmentId?: string;
91
+ environmentId: string;
86
92
  /** List of attributes */
87
- attributes?: ConnectionInterfaceAttribute[];
93
+ attributes: ConnectionInterfaceAttribute[];
88
94
  };
89
- export type ExternalItems = {
90
- source: string;
91
- value: string;
92
- label?: string;
93
- };
94
- export type ConsolidatedValueByEnv = {
95
+ export type PluginInputValuesInConsolidatedContextResponseConsolidatedValueByEnv = {
95
96
  envName: string;
96
97
  value: object;
97
98
  mandate: boolean;
98
99
  source: string;
99
100
  };
100
- export type Condition = {
101
- variable: string;
102
- operator: string;
103
- value: object;
104
- };
105
101
  export type PluginInputValuesInConsolidatedContextResponse = {
106
- name: string;
102
+ name?: string;
107
103
  label: string;
108
104
  "type": string;
109
105
  inputEnv: boolean;
@@ -112,9 +108,10 @@ export type PluginInputValuesInConsolidatedContextResponse = {
112
108
  pattern?: string;
113
109
  help?: string;
114
110
  items?: string[];
115
- externalItems?: ExternalItems;
116
- valuesByEnv: ConsolidatedValueByEnv[];
117
- condition?: Condition;
111
+ itemsValues?: string[];
112
+ externalItems?: ExternalItemsResponse;
113
+ valuesByEnv: PluginInputValuesInConsolidatedContextResponseConsolidatedValueByEnv[];
114
+ condition?: InputConditionResponse;
118
115
  isGlobal?: boolean;
119
116
  connectionInterfaceType?: string;
120
117
  addQuestion?: string;
@@ -135,13 +132,18 @@ export type UpsertActionInputContextRequest = {
135
132
  value: object;
136
133
  mandate?: boolean;
137
134
  };
138
- export type AccValueByEnv = {
135
+ export type PluginInputValuesInAccountContextResponseAccValueByEnv = {
139
136
  envName: string;
140
137
  value: object;
141
138
  mandate: boolean;
142
139
  };
140
+ export type PluginInputValuesInAccountContextResponseCondition = {
141
+ variable: string;
142
+ operator: string;
143
+ value: object;
144
+ };
143
145
  export type PluginInputValuesInAccountContextResponse = {
144
- name: string;
146
+ name?: string;
145
147
  label: string;
146
148
  "type": string;
147
149
  inputEnv: boolean;
@@ -150,9 +152,9 @@ export type PluginInputValuesInAccountContextResponse = {
150
152
  pattern?: string;
151
153
  help?: string;
152
154
  items?: string[];
153
- externalItems?: ExternalItems;
154
- valuesByEnv: AccValueByEnv[];
155
- condition?: Condition;
155
+ externalItems?: ExternalItemsResponse;
156
+ valuesByEnv: PluginInputValuesInAccountContextResponseAccValueByEnv[];
157
+ condition?: PluginInputValuesInAccountContextResponseCondition;
156
158
  isGlobal?: boolean;
157
159
  connectionInterfaceType?: string;
158
160
  addQuestion?: string;
@@ -207,19 +209,19 @@ export type WorkflowActionsRequest = {
207
209
  };
208
210
  export type RequiresRequest = {
209
211
  /** Connections requires name. */
210
- selected?: string;
212
+ selected: string;
211
213
  /** Connections requires alias. */
212
- alias?: string;
214
+ alias: string;
213
215
  /** Connections requires type. */
214
- "type"?: string;
216
+ "type": string;
215
217
  };
216
218
  export type GeneratesRequest = {
217
219
  /** Connections generates name. */
218
- selected?: string;
220
+ selected: string;
219
221
  /** Connections generates alias. */
220
- alias?: string;
222
+ alias: string;
221
223
  /** Connections generates type. */
222
- "type"?: string;
224
+ "type": string;
223
225
  };
224
226
  export type PluginsConnectionsRequest = {
225
227
  /** List of connections requires. */
@@ -229,19 +231,17 @@ export type PluginsConnectionsRequest = {
229
231
  };
230
232
  export type PluginRequest = {
231
233
  /** Name used in workflow. */
232
- name?: string;
234
+ name: string;
233
235
  alias: string;
234
- /** Type of plugin (APP/INFRA). */
235
- "type"?: string;
236
236
  pluginVersionId?: string;
237
237
  /** Inputs used in workflow. */
238
- inputs?: {
238
+ inputs: {
239
239
  [key: string]: object;
240
240
  };
241
241
  /** Inputs sensitives used in workflow. */
242
242
  inputsSensitive?: string[];
243
243
  /** Inputs Env used in workflow. */
244
- inputsEnv?: {
244
+ inputsEnv: {
245
245
  [key: string]: {
246
246
  [key: string]: object;
247
247
  };
@@ -268,32 +268,32 @@ export type Infra = {
268
268
  };
269
269
  export type ActionsConnectionsRequest = {
270
270
  /** List of connections requires. */
271
- requires?: RequiresRequest[];
271
+ requires: RequiresRequest[];
272
272
  };
273
273
  export type ActionsBeforeRequest = {
274
274
  /** Actions before name. */
275
- name?: string;
275
+ name: string;
276
276
  /** Actions before inputs. */
277
- inputs?: {
277
+ inputs: {
278
278
  [key: string]: object;
279
279
  };
280
280
  /** Actions before inputs sensitive. */
281
281
  inputsSensitive?: string[];
282
282
  /** Create repo?. */
283
- repoCreate?: boolean;
283
+ repoCreate: boolean;
284
284
  connections?: ActionsConnectionsRequest;
285
285
  };
286
286
  export type ActionsAfterRequest = {
287
287
  /** Actions after name. */
288
- name?: string;
288
+ name: string;
289
289
  /** Actions after inputs. */
290
- inputs?: {
290
+ inputs: {
291
291
  [key: string]: object;
292
292
  };
293
293
  /** Actions after inputs sensitive. */
294
294
  inputsSensitive?: string[];
295
295
  /** Create repo?. */
296
- repoCreate?: boolean;
296
+ repoCreate: boolean;
297
297
  connections?: ActionsConnectionsRequest;
298
298
  };
299
299
  export type CreateSharedRequest = {
@@ -357,7 +357,7 @@ export type CreateApplicationResponse = {
357
357
  workflowId: string;
358
358
  logs: string;
359
359
  };
360
- export type StackResponse = {
360
+ export type WorkspaceStackResponseStackResponse = {
361
361
  id: string;
362
362
  version: number;
363
363
  displayName: string;
@@ -375,7 +375,7 @@ export type WorkspaceStackResponse = {
375
375
  workspaceId: string;
376
376
  accountId: string;
377
377
  qualifier: string;
378
- stack: StackResponse;
378
+ stack: WorkspaceStackResponseStackResponse;
379
379
  };
380
380
  export type AddStackInWorkspaceRequest = {
381
381
  /** Stack version id. */
@@ -383,9 +383,9 @@ export type AddStackInWorkspaceRequest = {
383
383
  };
384
384
  export type CreateConnectionInterfaceRequest = {
385
385
  /** Connection interface type id. */
386
- typeId?: string;
386
+ typeId: string;
387
387
  /** Connection interface id generated by client. */
388
- connectionInterfaceId?: string;
388
+ connectionInterfaceId: string;
389
389
  /** Connection interface owner applications. */
390
390
  applicationId?: string;
391
391
  /** Connection interface owner shared infra. */
@@ -393,9 +393,9 @@ export type CreateConnectionInterfaceRequest = {
393
393
  /** Version id from plugin that generated this connection interface. */
394
394
  sourcePluginVersionId?: string;
395
395
  /** Indicates if this connection interface was generated by a plugin or manually. */
396
- automaticallyGenerated?: boolean;
396
+ automaticallyGenerated: boolean;
397
397
  /** Connection interface attributes. */
398
- attributesByEnv?: ConnectionInterfaceAttributesByEnv[];
398
+ attributesByEnv: ConnectionInterfaceAttributesByEnv[];
399
399
  };
400
400
  export type IdResponse = {
401
401
  id: string;
@@ -423,34 +423,40 @@ export type AccountWorkflowCreateRequest = {
423
423
  export type IdResponseString = {
424
424
  id: string;
425
425
  };
426
- export type ConnectionInterfacesIdResponse = {
426
+ export type ManagerRunResponse = {
427
+ environmentName?: string;
428
+ runId: string;
429
+ };
430
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponseConnectionInterfacesIdResponse = {
427
431
  connectionInterfaceId: string;
428
432
  typeId: string;
429
433
  alias?: string;
430
434
  typeName: string;
431
435
  };
432
- export type ConnectionInterfaceResponse = {
436
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponseRequiresConnectionInterfaceResponse = {
433
437
  typeId?: string;
434
438
  typeName: string;
435
439
  alias: string;
440
+ optional?: boolean;
441
+ source?: string;
436
442
  };
437
- export type Requires = {
438
- connectionInterfaces: ConnectionInterfaceResponse[];
443
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponseRequires = {
444
+ connectionInterfaces: SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponseRequiresConnectionInterfaceResponse[];
439
445
  };
440
- export type ActionsResponse = {
446
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponse = {
441
447
  versionId: string;
442
448
  qualifier: string;
443
449
  description: string;
444
450
  slug: string;
445
451
  displayName: string;
446
- requires: Requires;
452
+ requires: SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponseRequires;
447
453
  };
448
- export type Link = {
454
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponseLink = {
449
455
  name: string;
450
456
  url: string;
451
457
  imageUrl?: string;
452
458
  };
453
- export type PluginsResponse = {
459
+ export type SharedInfraAppliedPluginsV2ResponsePluginsResponse = {
454
460
  versionId: string;
455
461
  qualifier: string;
456
462
  slug: string;
@@ -464,90 +470,156 @@ export type PluginsResponse = {
464
470
  attributes?: {
465
471
  [key: string]: object;
466
472
  };
467
- connectionInterfaces?: ConnectionInterfacesIdResponse[];
468
- actions?: ActionsResponse[];
469
- links?: Link[];
473
+ connectionInterfaces?: SharedInfraAppliedPluginsV2ResponsePluginsResponseConnectionInterfacesIdResponse[];
474
+ actions?: SharedInfraAppliedPluginsV2ResponsePluginsResponseActionsResponse[];
475
+ links?: SharedInfraAppliedPluginsV2ResponsePluginsResponseLink[];
470
476
  };
471
477
  export type SharedInfraAppliedPluginsV2Response = {
472
- plugins: PluginsResponse[];
478
+ plugins: SharedInfraAppliedPluginsV2ResponsePluginsResponse[];
479
+ };
480
+ export type ActivityResponse = {
481
+ title: string;
482
+ owner?: string;
483
+ status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN";
484
+ "type"?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
485
+ action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
486
+ requestedBy?: string;
487
+ time: number;
488
+ version: string;
489
+ detail: {
490
+ [key: string]: object;
491
+ };
492
+ };
493
+ export type PaginatedActivityResponse = {
494
+ items: ActivityResponse[];
495
+ currentPage: number;
496
+ totalItems: number;
497
+ totalPages: number;
498
+ };
499
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponseConnectionInterfacesIdResponse = {
500
+ connectionInterfaceId: string;
501
+ typeId: string;
502
+ alias?: string;
503
+ typeName: string;
504
+ };
505
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponseConnectionInterfaceResponse = {
506
+ typeId?: string;
507
+ typeName: string;
508
+ alias: string;
509
+ optional?: boolean;
510
+ source?: string;
511
+ };
512
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponseRequires = {
513
+ connectionInterfaces: ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponseConnectionInterfaceResponse[];
514
+ };
515
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponse = {
516
+ versionId: string;
517
+ qualifier: string;
518
+ description: string;
519
+ slug: string;
520
+ displayName: string;
521
+ requires: ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponseRequires;
522
+ };
523
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponseLink = {
524
+ name: string;
525
+ url: string;
526
+ imageUrl?: string;
527
+ };
528
+ export type ApplicationAppliedPluginsV2ResponsePluginsResponse = {
529
+ versionId: string;
530
+ qualifier: string;
531
+ slug: string;
532
+ description: string;
533
+ displayName: string;
534
+ "type": string;
535
+ status: string;
536
+ deployStatus: string;
537
+ inCloud?: boolean;
538
+ singleUse?: boolean;
539
+ attributes?: {
540
+ [key: string]: object;
541
+ };
542
+ connectionInterfaces?: ApplicationAppliedPluginsV2ResponsePluginsResponseConnectionInterfacesIdResponse[];
543
+ actions?: ApplicationAppliedPluginsV2ResponsePluginsResponseActionsResponse[];
544
+ links?: ApplicationAppliedPluginsV2ResponsePluginsResponseLink[];
473
545
  };
474
546
  export type ApplicationAppliedPluginsV2Response = {
475
- plugins: PluginsResponse[];
547
+ plugins: ApplicationAppliedPluginsV2ResponsePluginsResponse[];
476
548
  };
477
549
  export type WorkspaceContextV2ResponseWorkspacePluginAttributeContext = {
478
550
  /** Key identifier of an input */
479
- key?: string;
551
+ key: string;
480
552
  /** Value of an input */
481
- value?: object;
553
+ value: object;
482
554
  /** Identifies whether this attribute can be overwritten or not */
483
- mandate?: boolean;
555
+ mandate: boolean;
484
556
  /** Source */
485
- source?: string;
557
+ source: string;
486
558
  };
487
559
  export type WorkspaceContextV2ResponseEnvironment = {
488
560
  /** Identifier of a environment */
489
- environmentId?: string;
561
+ environmentId: string;
490
562
  /** name of a environment */
491
563
  environmentName?: string;
492
564
  /** Attributes environments */
493
- attributes?: WorkspaceContextV2ResponseWorkspacePluginAttributeContext[];
565
+ attributes: WorkspaceContextV2ResponseWorkspacePluginAttributeContext[];
494
566
  };
495
567
  export type WorkspaceContextV2ResponseConnectionInterfaceRequired = {
496
568
  /** Connection interface type required */
497
- typeName?: string;
569
+ typeName: string;
498
570
  /** Identifier of the pluginVersionId that should be used for the connection interface type */
499
571
  pluginVersionId?: string;
500
572
  alias?: string;
501
573
  };
502
574
  export type WorkspaceContextV2ResponsePlugin = {
503
575
  /** Identifier of a plugin version */
504
- pluginVersionId?: string;
576
+ pluginVersionId: string;
505
577
  /** Plugin slugs name with format `accountSlug/studioSlug/pluginSlug@x.y.z` */
506
- pluginQualifier?: string;
578
+ pluginQualifier: string;
507
579
  /** Plugin type */
508
- pluginType?: string;
580
+ pluginType: string;
509
581
  /** Status Plugin */
510
- status?: string;
582
+ status: string;
511
583
  /** Attributes show by environments */
512
- environments?: WorkspaceContextV2ResponseEnvironment[];
584
+ environments: WorkspaceContextV2ResponseEnvironment[];
513
585
  /** Connection interfaces required */
514
- connectionInterfaceRequired?: WorkspaceContextV2ResponseConnectionInterfaceRequired[];
586
+ connectionInterfaceRequired: WorkspaceContextV2ResponseConnectionInterfaceRequired[];
515
587
  };
516
588
  export type WorkspaceContextV2ResponseConnectionInterface = {
517
589
  /** Connection interface type */
518
- typeName?: string;
590
+ typeName: string;
519
591
  /** Connection interface id. */
520
592
  id?: string;
521
593
  /** Connection interface id generated by client. */
522
- connectionInterfaceId?: string;
594
+ connectionInterfaceId: string;
523
595
  /** Automatically generated */
524
- automaticallyGenerated?: boolean;
596
+ automaticallyGenerated: boolean;
525
597
  };
526
598
  export type WorkspaceContextV2Response = {
527
599
  /** Cloud accounts information */
528
- cloudAccounts?: object[];
600
+ cloudAccounts: object[];
529
601
  /** Context information for each environment and plugin in stack */
530
- context?: WorkspaceContextV2ResponsePlugin[];
602
+ context: WorkspaceContextV2ResponsePlugin[];
531
603
  /** Workspace Connection Interfaces information */
532
- connectionInterfaces?: WorkspaceContextV2ResponseConnectionInterface[];
604
+ connectionInterfaces: WorkspaceContextV2ResponseConnectionInterface[];
533
605
  };
534
- export type AvailableConnectionInterface = {
606
+ export type PluginForAppCreationV2ResponseRequiredConnectionInterfaceByTypeAvailableConnectionInterface = {
535
607
  id: string;
536
608
  slug: string;
537
609
  sourcePluginUri?: string;
538
610
  };
539
- export type ConnectionInterfaceInput = {
611
+ export type PluginForAppCreationV2ResponseRequiredConnectionInterfaceByTypeConnectionInterfaceInput = {
540
612
  name: string;
541
613
  "type": "BOOLEAN" | "NUMBER" | "STRING" | "SECRET" | "ARRAY" | "OBJECT";
542
614
  };
543
- export type RequiredConnectionInterfaceByType = {
615
+ export type PluginForAppCreationV2ResponseRequiredConnectionInterfaceByType = {
544
616
  typeId: string;
545
617
  typeName: string;
546
618
  alias: string;
547
- available: AvailableConnectionInterface[];
548
- inputDefinitions: ConnectionInterfaceInput[];
619
+ available: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByTypeAvailableConnectionInterface[];
620
+ inputDefinitions: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByTypeConnectionInterfaceInput[];
549
621
  };
550
- export type GeneratesConnectionInterfaceByType = {
622
+ export type PluginForAppCreationV2ResponseGeneratesConnectionInterfaceByType = {
551
623
  typeId: string;
552
624
  typeName: string;
553
625
  alias: string;
@@ -559,8 +631,40 @@ export type PluginForAppCreationV2Response = {
559
631
  version: string;
560
632
  singleUse?: boolean;
561
633
  inputs: PluginInputValuesInConsolidatedContextResponse[];
562
- requiredConnectionInterfacesByType: RequiredConnectionInterfaceByType[];
563
- generatesConnectionInterfacesByType: GeneratesConnectionInterfaceByType[];
634
+ computedInputs: ComputedInputResponse[];
635
+ globalComputedInputs: ComputedInputResponse[];
636
+ requiredConnectionInterfacesByType: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByType[];
637
+ generatesConnectionInterfacesByType: PluginForAppCreationV2ResponseGeneratesConnectionInterfaceByType[];
638
+ };
639
+ export type ValueByEnvResponse = {
640
+ envName: string;
641
+ value: object;
642
+ mandate: boolean;
643
+ source: string;
644
+ };
645
+ export type InputValuesContextResponse = {
646
+ name?: string;
647
+ label: string;
648
+ "type": string;
649
+ items?: string[];
650
+ externalItems?: ExternalItemsResponse;
651
+ inputEnv: boolean;
652
+ "default"?: object;
653
+ required?: boolean;
654
+ pattern?: string;
655
+ help?: string;
656
+ valuesByEnv: ValueByEnvResponse[];
657
+ connectionInterfaceType?: string;
658
+ addQuestion?: string;
659
+ input?: object;
660
+ inputs: object[];
661
+ condition?: InputConditionResponse;
662
+ isGlobal?: boolean;
663
+ };
664
+ export type FullInputContextResponse = {
665
+ inputs: InputValuesContextResponse[];
666
+ computedInputs: ComputedInputResponse[];
667
+ globalComputedInputs: ComputedInputResponse[];
564
668
  };
565
669
  export type SimpleStackWithImageResponse = {
566
670
  stackId: string;
@@ -592,7 +696,7 @@ export type StackVersionResponse = {
592
696
  copyFromStackVersionId?: string;
593
697
  hasContext?: boolean;
594
698
  };
595
- export type VersionStackResponse = {
699
+ export type WorkspaceStackContextResponseVersionStackResponse = {
596
700
  id: string;
597
701
  version: number;
598
702
  displayName: string;
@@ -613,7 +717,7 @@ export type WorkspaceStackContextResponse = {
613
717
  accountId: string;
614
718
  qualifier: string;
615
719
  hasContext: boolean;
616
- stack: VersionStackResponse;
720
+ stack: WorkspaceStackContextResponseVersionStackResponse;
617
721
  };
618
722
  export type LinksConsolidateResponse = {
619
723
  id: string;
@@ -626,17 +730,17 @@ export type LinksConsolidateResponse = {
626
730
  };
627
731
  export type SharedInfraResponse = {
628
732
  /** Shared-infra id. */
629
- id?: string;
733
+ id: string;
630
734
  /** Shared-infra name. */
631
- name?: string;
735
+ name: string;
632
736
  /** Shared-infra description. */
633
737
  description?: string;
634
738
  /** Shared-infra repository url. */
635
739
  repoUrl?: string;
636
740
  /** Shared-infra repository base branch. */
637
- repoBaseBranch?: string;
741
+ repoBaseBranch: string;
638
742
  /** Stack used to generate this shared-infra. */
639
- stackVersionId?: string;
743
+ stackVersionId: string;
640
744
  /** Starter used to generate this shared-infra. */
641
745
  version?: string;
642
746
  /** Shared-infra Deploy Status. */
@@ -646,7 +750,7 @@ export type WorkspaceActivitiesResponse = {
646
750
  title: string;
647
751
  owner?: string;
648
752
  status: "SUCCESS" | "FAILED" | "RUNNING" | "PENDING" | "SKIPPED" | "CANCELLED" | "NONE" | "DRIFT" | "SUCCEEDED" | "RUNTIME_ERROR" | "USER_ERROR" | "INTERNAL_ERROR" | "ABORTED" | "ABORTING" | "EXTERNAL_ERROR" | "READY_TO_RUN";
649
- "type"?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
753
+ "type"?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
650
754
  action?: "CREATE" | "UPDATE" | "DELETE" | "RUN";
651
755
  requestedBy?: string;
652
756
  time: number;
@@ -655,7 +759,7 @@ export type WorkspaceActivitiesResponse = {
655
759
  [key: string]: object;
656
760
  };
657
761
  };
658
- export type Studio = {
762
+ export type WorkspacePluginResponseStudio = {
659
763
  id: string;
660
764
  slug: string;
661
765
  name: string;
@@ -675,29 +779,41 @@ export type WorkspacePluginResponse = {
675
779
  displayName: string;
676
780
  description: string;
677
781
  pluginQualifier: string;
678
- studio: Studio;
782
+ studio: WorkspacePluginResponseStudio;
679
783
  uri: string;
680
784
  requiredConnectionInterfacesByType?: WorkspacePluginConnectionsResponse[];
681
785
  generatesConnectionInterfacesByType: WorkspacePluginConnectionsResponse[];
682
786
  };
683
- export type Visibility = {
787
+ export type ConnectionInterfaceDetailsResponseVisibility = {
684
788
  "type": string;
685
789
  ids: string[];
686
790
  };
791
+ export type ConnectionInterfaceDetailsResponseConnectionInterfaceAttribute = {
792
+ id?: string;
793
+ key: string;
794
+ value: object;
795
+ sensitive: boolean;
796
+ schema?: object;
797
+ };
798
+ export type ConnectionInterfaceDetailsResponseConnectionInterfaceAttributesByEnv = {
799
+ environmentId: string;
800
+ envName: string;
801
+ attributes: ConnectionInterfaceDetailsResponseConnectionInterfaceAttribute[];
802
+ };
687
803
  export type ConnectionInterfaceDetailsResponse = {
688
804
  /** Connection Interface Details id. */
689
- id?: string;
805
+ id: string;
690
806
  /** Connection Interface Type id. */
691
- typeId?: string;
807
+ typeId: string;
692
808
  /** Connection Interface id. */
693
- connectionInterfaceId?: string;
694
- visibility?: Visibility;
809
+ connectionInterfaceId: string;
810
+ visibility?: ConnectionInterfaceDetailsResponseVisibility;
695
811
  /** Source Plugin Version id. */
696
812
  sourcePluginVersionId?: string;
697
813
  /** Was this Connection Interface automatically generated?. */
698
- automaticallyGenerated?: boolean;
814
+ automaticallyGenerated: boolean;
699
815
  /** Connection interface attribute's by environment. */
700
- attributesByEnv?: ConnectionInterfaceAttributesByEnv[];
816
+ attributesByEnv: ConnectionInterfaceDetailsResponseConnectionInterfaceAttributesByEnv[];
701
817
  };
702
818
  export type AvailableConnectionInterfaceResponse = {
703
819
  slug: string;
@@ -707,135 +823,85 @@ export type AvailableConnectionInterfaceResponse = {
707
823
  };
708
824
  export type ApplicationResponse = {
709
825
  /** Application id. */
710
- id?: string;
826
+ id: string;
711
827
  /** Application name. */
712
- name?: string;
828
+ name: string;
713
829
  /** Application description. */
714
830
  description?: string;
715
831
  /** Application repository url. */
716
832
  repoUrl?: string;
717
833
  /** Application repository base branch. */
718
- repoBaseBranch?: string;
834
+ repoBaseBranch: string;
719
835
  /** Stack used to generate this application. */
720
- stackVersionId?: string;
836
+ stackVersionId: string;
721
837
  /** Starter used to generate this application. */
722
- starterId?: string;
723
- /** Application Deploy Version. */
838
+ starterId: string;
839
+ /** Version of the infrastructure deployed for this application. */
724
840
  version?: string;
841
+ /** Application Deploy Version. */
842
+ appVersion?: string;
725
843
  /** Application Deploy Status. */
726
844
  status?: string;
727
845
  };
728
- export type WorkspaceContextResponseWorkspacePluginAttributeContext = {
729
- /** Key identifier of an input */
730
- key?: string;
731
- /** Value of an input */
732
- value?: object;
733
- /** Identifies whether this attribute can be overwritten or not */
734
- mandate?: boolean;
735
- /** Source */
736
- source?: string;
737
- };
738
- export type WorkspaceContextResponseEnvironment = {
739
- /** Identifier of a environment */
740
- environmentId?: string;
741
- /** name of a environment */
742
- environmentName?: string;
743
- /** Attributes environments */
744
- attributes?: WorkspaceContextResponseWorkspacePluginAttributeContext[];
745
- };
746
- export type WorkspaceContextResponseConnectionInterfaceRequired = {
747
- /** Connection interface type required */
748
- "type"?: string;
749
- /** Identifier of the pluginVersionId that should be used for the connection interface type */
750
- pluginVersionId?: string;
751
- alias?: string;
752
- };
753
- export type WorkspaceContextResponsePlugin = {
754
- /** Identifier of a plugin version */
755
- pluginVersionId?: string;
756
- /** Plugin slugs name with format `accountSlug/studioSlug/pluginSlug@x.y.z` */
757
- pluginQualifier?: string;
758
- /** Plugin type */
759
- pluginType?: string;
760
- /** Status Plugin */
761
- status?: string;
762
- /** Attributes show by environments */
763
- environments?: WorkspaceContextResponseEnvironment[];
764
- /** Connection interfaces required */
765
- connectionInterfaceRequired?: WorkspaceContextResponseConnectionInterfaceRequired[];
766
- };
767
- export type WorkspaceContextResponseConnectionInterface = {
768
- /** Connection interface type */
769
- "type"?: string;
770
- /** Connection interface id. */
771
- id?: string;
772
- /** Connection interface id generated by client. */
773
- connectionInterfaceId?: string;
774
- /** Automatically generated */
775
- automaticallyGenerated?: boolean;
776
- };
777
- export type WorkspaceContextResponse = {
778
- /** Cloud accounts information */
779
- cloudAccounts?: object[];
780
- /** Context information for each environment and plugin in stack */
781
- context?: WorkspaceContextResponsePlugin[];
782
- /** Workspace Connection Interfaces information */
783
- connectionInterfaces?: WorkspaceContextResponseConnectionInterface[];
784
- };
785
- export type PluginForAppCreationResponse = {
786
- displayName: string;
787
- status: string;
788
- uri: string;
789
- inputs: PluginInputValuesInConsolidatedContextResponse[];
790
- requiredConnectionInterfacesByType: RequiredConnectionInterfaceByType[];
791
- generatesConnectionInterfacesByType: GeneratesConnectionInterfaceByType[];
792
- };
793
- export type ValueByEnvWorkspaceResponse = {
846
+ export type StackActionInputValuesByEnvInWorkspaceContextResponseValueByEnvWorkspaceResponse = {
794
847
  envName: string;
795
848
  value: object;
796
849
  mandate: boolean;
797
850
  source: string;
798
851
  };
799
852
  export type StackActionInputValuesByEnvInWorkspaceContextResponse = {
800
- name: string;
853
+ name?: string;
801
854
  label: string;
802
855
  "type": string;
803
856
  items?: string[];
804
- externalItems?: ExternalItems;
857
+ externalItems?: ExternalItemsResponse;
805
858
  inputEnv: boolean;
806
859
  "default"?: object;
807
860
  required?: boolean;
808
861
  pattern?: string;
809
862
  help?: string;
810
- valuesByEnv: ValueByEnvWorkspaceResponse[];
863
+ valuesByEnv: StackActionInputValuesByEnvInWorkspaceContextResponseValueByEnvWorkspaceResponse[];
811
864
  connectionInterfaceType?: string;
812
865
  addQuestion?: string;
813
866
  input?: object;
814
867
  inputs: object[];
815
868
  };
816
- export type ValueByEnvAccountResponse = {
869
+ export type StackActionInputValuesByEnvInAccountContextResponseValueByEnvAccountResponse = {
817
870
  envName: string;
818
871
  value: object;
819
872
  mandate: boolean;
820
873
  };
821
874
  export type StackActionInputValuesByEnvInAccountContextResponse = {
822
- name: string;
875
+ name?: string;
823
876
  label: string;
824
877
  "type": string;
825
878
  items?: string[];
826
- externalItems?: ExternalItems;
879
+ externalItems?: ExternalItemsResponse;
827
880
  inputEnv: boolean;
828
881
  "default"?: object;
829
882
  required?: boolean;
830
883
  pattern?: string;
831
884
  help?: string;
832
- valuesByEnv: ValueByEnvAccountResponse[];
885
+ valuesByEnv: StackActionInputValuesByEnvInAccountContextResponseValueByEnvAccountResponse[];
833
886
  connectionInterfaceType?: string;
834
887
  addQuestion?: string;
835
888
  input?: object;
836
889
  inputs: object[];
837
890
  };
838
- export type StackVersion = {
891
+ export type StackResponse = {
892
+ stackId: string;
893
+ slug: string;
894
+ displayName: string;
895
+ description: string;
896
+ imageUrl?: string;
897
+ existsDraft: boolean;
898
+ createdBy: string;
899
+ createdAt: string;
900
+ lastModificationAt: string;
901
+ studio: StudioResponse;
902
+ tags?: string[];
903
+ };
904
+ export type StacksByAccountWithWorkflowResponseStackVersion = {
839
905
  stackVersionId: string;
840
906
  version: number;
841
907
  published: boolean;
@@ -846,14 +912,14 @@ export type StackVersion = {
846
912
  semanticVersion?: string;
847
913
  copyFromStackVersionId?: string;
848
914
  };
849
- export type StackVersionShortForm = {
915
+ export type StacksByAccountWithWorkflowResponseStackVersionShortForm = {
850
916
  stackVersionId: string;
851
917
  version: number;
852
918
  published: boolean;
853
919
  semanticVersion?: string;
854
920
  copyFromStackVersionId?: string;
855
921
  };
856
- export type Workflow = {
922
+ export type StacksByAccountWithWorkflowResponseWorkflow = {
857
923
  id: string;
858
924
  name: string;
859
925
  "type": "CREATE_APP" | "CREATE_INFRA" | "CREATE_API";
@@ -861,9 +927,9 @@ export type Workflow = {
861
927
  };
862
928
  export type StacksByAccountWithWorkflowResponse = {
863
929
  stack: StackResponse;
864
- latestVersion: StackVersion;
865
- versions: StackVersionShortForm[];
866
- workflows: Workflow[];
930
+ latestVersion: StacksByAccountWithWorkflowResponseStackVersion;
931
+ versions: StacksByAccountWithWorkflowResponseStackVersionShortForm[];
932
+ workflows: StacksByAccountWithWorkflowResponseWorkflow[];
867
933
  };
868
934
  export type StackVersionWksResponse = {
869
935
  stackVersionId: string;
@@ -916,7 +982,7 @@ export function updateConnectionInterfaceAttributes({ workspaceId, connectionInt
916
982
  body: connectionInterfaceAttributesByEnv
917
983
  })));
918
984
  }
919
- export function getConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
985
+ export function getConsolidatedPluginInputs1({ workspaceId, stackVersionId, pluginVersionId, envName }: {
920
986
  workspaceId: string;
921
987
  stackVersionId: string;
922
988
  pluginVersionId: string;
@@ -955,7 +1021,7 @@ export function upsertWorkspaceActionsInputContext({ workspaceId, stackVersionId
955
1021
  body
956
1022
  })));
957
1023
  }
958
- export function getAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
1024
+ export function getAccountPluginInputs1({ stackVersionId, pluginVersionId, envName }: {
959
1025
  stackVersionId: string;
960
1026
  pluginVersionId: string;
961
1027
  envName?: string;
@@ -1129,6 +1195,19 @@ export function addStacksInWorkspace({ workspaceId, addStackInWorkspaceRequest }
1129
1195
  body: addStackInWorkspaceRequest
1130
1196
  })));
1131
1197
  }
1198
+ export function createSharedInfra1({ workspaceId, createSharedRequest }: {
1199
+ workspaceId: string;
1200
+ createSharedRequest: CreateSharedRequest;
1201
+ }, opts?: Oazapfts.RequestOpts) {
1202
+ return oazapfts.ok(oazapfts.fetchJson<{
1203
+ status: 200;
1204
+ data: CreateShareInfraResponse;
1205
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra`, oazapfts.json({
1206
+ ...opts,
1207
+ method: "POST",
1208
+ body: createSharedRequest
1209
+ })));
1210
+ }
1132
1211
  export function createConnectionInterface({ workspaceId, createConnectionInterfaceRequest }: {
1133
1212
  workspaceId: string;
1134
1213
  createConnectionInterfaceRequest: CreateConnectionInterfaceRequest;
@@ -1142,6 +1221,19 @@ export function createConnectionInterface({ workspaceId, createConnectionInterfa
1142
1221
  body: createConnectionInterfaceRequest
1143
1222
  })));
1144
1223
  }
1224
+ export function createApp1({ workspaceId, createAppRequest }: {
1225
+ workspaceId: string;
1226
+ createAppRequest: CreateAppRequest;
1227
+ }, opts?: Oazapfts.RequestOpts) {
1228
+ return oazapfts.ok(oazapfts.fetchJson<{
1229
+ status: 200;
1230
+ data: CreateApplicationResponse;
1231
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications`, oazapfts.json({
1232
+ ...opts,
1233
+ method: "POST",
1234
+ body: createAppRequest
1235
+ })));
1236
+ }
1145
1237
  export function importContextInWorkspace({ workspaceId, body }: {
1146
1238
  workspaceId: string;
1147
1239
  body: ImportContextRequest[];
@@ -1177,7 +1269,10 @@ export function archiveApplication({ workspaceId, applicationId }: {
1177
1269
  workspaceId: string;
1178
1270
  applicationId: string;
1179
1271
  }, opts?: Oazapfts.RequestOpts) {
1180
- return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/archive`, {
1272
+ return oazapfts.ok(oazapfts.fetchJson<{
1273
+ status: 200;
1274
+ data: ManagerRunResponse[];
1275
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/archive`, {
1181
1276
  ...opts,
1182
1277
  method: "PATCH"
1183
1278
  }));
@@ -1187,7 +1282,7 @@ export function getSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envNa
1187
1282
  sharedInfraId: string;
1188
1283
  envName: string;
1189
1284
  pluginType?: string;
1190
- containsLinks: boolean;
1285
+ containsLinks?: boolean;
1191
1286
  }, opts?: Oazapfts.RequestOpts) {
1192
1287
  return oazapfts.ok(oazapfts.fetchJson<{
1193
1288
  status: 200;
@@ -1199,12 +1294,31 @@ export function getSharedInfraAppliedPlugins({ workspaceId, sharedInfraId, envNa
1199
1294
  ...opts
1200
1295
  }));
1201
1296
  }
1297
+ export function getSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type, page, size }: {
1298
+ workspaceId: string;
1299
+ sharedInfraId: string;
1300
+ envName: string;
1301
+ $type?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1302
+ page: number;
1303
+ size: number;
1304
+ }, opts?: Oazapfts.RequestOpts) {
1305
+ return oazapfts.ok(oazapfts.fetchJson<{
1306
+ status: 200;
1307
+ data: PaginatedActivityResponse;
1308
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
1309
+ "type": $type,
1310
+ page,
1311
+ size
1312
+ }))}`, {
1313
+ ...opts
1314
+ }));
1315
+ }
1202
1316
  export function getApplicationAppliedPlugins({ workspaceId, applicationId, envName, pluginType, containsLinks }: {
1203
1317
  workspaceId: string;
1204
1318
  applicationId: string;
1205
1319
  envName: string;
1206
1320
  pluginType?: string;
1207
- containsLinks: boolean;
1321
+ containsLinks?: boolean;
1208
1322
  }, opts?: Oazapfts.RequestOpts) {
1209
1323
  return oazapfts.ok(oazapfts.fetchJson<{
1210
1324
  status: 200;
@@ -1216,6 +1330,25 @@ export function getApplicationAppliedPlugins({ workspaceId, applicationId, envNa
1216
1330
  ...opts
1217
1331
  }));
1218
1332
  }
1333
+ export function getApplicationActivities({ workspaceId, applicationId, envName, $type, page, size }: {
1334
+ workspaceId: string;
1335
+ applicationId: string;
1336
+ envName: string;
1337
+ $type?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1338
+ page: number;
1339
+ size: number;
1340
+ }, opts?: Oazapfts.RequestOpts) {
1341
+ return oazapfts.ok(oazapfts.fetchJson<{
1342
+ status: 200;
1343
+ data: PaginatedActivityResponse;
1344
+ }>(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(envName)}/activities${QS.query(QS.explode({
1345
+ "type": $type,
1346
+ page,
1347
+ size
1348
+ }))}`, {
1349
+ ...opts
1350
+ }));
1351
+ }
1219
1352
  export function getWorkspaceContext({ workspaceId, stackVersionId, envName }: {
1220
1353
  workspaceId: string;
1221
1354
  stackVersionId: string;
@@ -1242,6 +1375,64 @@ export function getConsolidatedPluginInputsWithConnectionInterfaces({ workspaceI
1242
1375
  ...opts
1243
1376
  }));
1244
1377
  }
1378
+ export function getConsolidatedPluginInputs({ workspaceId, stackVersionId, pluginVersionId, envName }: {
1379
+ workspaceId: string;
1380
+ stackVersionId: string;
1381
+ pluginVersionId: string;
1382
+ envName?: string;
1383
+ }, opts?: Oazapfts.RequestOpts) {
1384
+ return oazapfts.ok(oazapfts.fetchJson<{
1385
+ status: 200;
1386
+ data: FullInputContextResponse;
1387
+ }>(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
1388
+ envName
1389
+ }))}`, {
1390
+ ...opts
1391
+ }));
1392
+ }
1393
+ export function getStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
1394
+ workspaceId: string;
1395
+ stackVersionId: string;
1396
+ actionsVersionId: string;
1397
+ envName?: string;
1398
+ }, opts?: Oazapfts.RequestOpts) {
1399
+ return oazapfts.ok(oazapfts.fetchJson<{
1400
+ status: 200;
1401
+ data: FullInputContextResponse;
1402
+ }>(`/v2/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
1403
+ envName
1404
+ }))}`, {
1405
+ ...opts
1406
+ }));
1407
+ }
1408
+ export function getAccountPluginInputs({ stackVersionId, pluginVersionId, envName }: {
1409
+ stackVersionId: string;
1410
+ pluginVersionId: string;
1411
+ envName?: string;
1412
+ }, opts?: Oazapfts.RequestOpts) {
1413
+ return oazapfts.ok(oazapfts.fetchJson<{
1414
+ status: 200;
1415
+ data: FullInputContextResponse;
1416
+ }>(`/v2/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/inputs${QS.query(QS.explode({
1417
+ envName
1418
+ }))}`, {
1419
+ ...opts
1420
+ }));
1421
+ }
1422
+ export function getStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
1423
+ stackVersionId: string;
1424
+ actionsVersionId: string;
1425
+ envName?: string;
1426
+ }, opts?: Oazapfts.RequestOpts) {
1427
+ return oazapfts.ok(oazapfts.fetchJson<{
1428
+ status: 200;
1429
+ data: FullInputContextResponse;
1430
+ }>(`/v2/contexts/account/stacks/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionsVersionId)}/inputs${QS.query(QS.explode({
1431
+ envName
1432
+ }))}`, {
1433
+ ...opts
1434
+ }));
1435
+ }
1245
1436
  export function listStacks({ workspaceId, workflowId }: {
1246
1437
  workspaceId: string;
1247
1438
  workflowId: string;
@@ -1299,11 +1490,11 @@ export function getSharedInfraAppliedPlugins1({ workspaceId, sharedInfraId, envN
1299
1490
  ...opts
1300
1491
  }));
1301
1492
  }
1302
- export function getSharedInfraActivities({ workspaceId, sharedInfraId, envName, $type }: {
1493
+ export function getSharedInfraActivities1({ workspaceId, sharedInfraId, envName, $type }: {
1303
1494
  workspaceId: string;
1304
1495
  sharedInfraId: string;
1305
1496
  envName: string;
1306
- $type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1497
+ $type?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1307
1498
  }, opts?: Oazapfts.RequestOpts) {
1308
1499
  return oazapfts.ok(oazapfts.fetchJson<{
1309
1500
  status: 200;
@@ -1377,11 +1568,11 @@ export function getApplicationDetails({ workspaceId, applicationId, envName }: {
1377
1568
  ...opts
1378
1569
  }));
1379
1570
  }
1380
- export function getApplicationActivities({ workspaceId, applicationId, envName, $type }: {
1571
+ export function getApplicationActivities1({ workspaceId, applicationId, envName, $type }: {
1381
1572
  workspaceId: string;
1382
1573
  applicationId: string;
1383
1574
  envName: string;
1384
- $type?: "DEPLOY" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1575
+ $type?: "DEPLOY" | "CUSTOMER_WORKFLOW" | "ACTION" | "WORKFLOW" | "DRIFT" | "DESTROY" | "ROLLBACK" | "DEPLOY_SELF_HOSTED" | "DESTROY_SELF_HOSTED" | "ROLLBACK_SELF_HOSTED";
1385
1576
  }, opts?: Oazapfts.RequestOpts) {
1386
1577
  return oazapfts.ok(oazapfts.fetchJson<{
1387
1578
  status: 200;
@@ -1392,33 +1583,7 @@ export function getApplicationActivities({ workspaceId, applicationId, envName,
1392
1583
  ...opts
1393
1584
  }));
1394
1585
  }
1395
- export function getWorkspaceContext1({ workspaceId, stackVersionId, envName }: {
1396
- workspaceId: string;
1397
- stackVersionId: string;
1398
- envName?: string;
1399
- }, opts?: Oazapfts.RequestOpts) {
1400
- return oazapfts.ok(oazapfts.fetchJson<{
1401
- status: 200;
1402
- data: WorkspaceContextResponse;
1403
- }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}${QS.query(QS.explode({
1404
- envName
1405
- }))}`, {
1406
- ...opts
1407
- }));
1408
- }
1409
- export function getConsolidatedPluginInputsWithConnectionInterfaces1({ workspaceId, stackVersionId, pluginVersionId }: {
1410
- workspaceId: string;
1411
- stackVersionId: string;
1412
- pluginVersionId: string;
1413
- }, opts?: Oazapfts.RequestOpts) {
1414
- return oazapfts.ok(oazapfts.fetchJson<{
1415
- status: 200;
1416
- data: PluginForAppCreationResponse;
1417
- }>(`/v1/contexts/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
1418
- ...opts
1419
- }));
1420
- }
1421
- export function getStackActionInputsInWorkspaceContext({ workspaceId, stackVersionId, actionsVersionId, envName }: {
1586
+ export function getStackActionInputsInWorkspaceContext1({ workspaceId, stackVersionId, actionsVersionId, envName }: {
1422
1587
  workspaceId: string;
1423
1588
  stackVersionId: string;
1424
1589
  actionsVersionId: string;
@@ -1433,7 +1598,7 @@ export function getStackActionInputsInWorkspaceContext({ workspaceId, stackVersi
1433
1598
  ...opts
1434
1599
  }));
1435
1600
  }
1436
- export function getStackActionInputsInAccountContext({ stackVersionId, actionsVersionId, envName }: {
1601
+ export function getStackActionInputsInAccountContext1({ stackVersionId, actionsVersionId, envName }: {
1437
1602
  stackVersionId: string;
1438
1603
  actionsVersionId: string;
1439
1604
  envName?: string;
@@ -1509,7 +1674,10 @@ export function deleteApplication({ workspaceId, applicationId }: {
1509
1674
  workspaceId: string;
1510
1675
  applicationId: string;
1511
1676
  }, opts?: Oazapfts.RequestOpts) {
1512
- return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
1677
+ return oazapfts.ok(oazapfts.fetchJson<{
1678
+ status: 200;
1679
+ data: ManagerRunResponse[];
1680
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
1513
1681
  ...opts,
1514
1682
  method: "DELETE"
1515
1683
  }));