@fractal_cloud/sdk 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -4
- package/dist/index.cjs +1836 -452
- package/dist/index.d.cts +612 -59
- package/dist/index.d.mts +612 -59
- package/dist/index.mjs +1750 -414
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1563,6 +1563,29 @@ type LiveSystemBuilder = {
|
|
|
1563
1563
|
//#region src/live_system/index.d.ts
|
|
1564
1564
|
declare namespace LiveSystem$1 {
|
|
1565
1565
|
type Status = 'Unknown' | 'Mutating' | 'Active' | 'FailedMutation' | 'Processing' | 'Error' | 'Ready' | 'Deleting' | 'Stale';
|
|
1566
|
+
/**
|
|
1567
|
+
* Controls how deploy() behaves after submitting the live system to the API.
|
|
1568
|
+
*
|
|
1569
|
+
* - `'fire-and-forget'` (default): submit and return immediately. Errors are
|
|
1570
|
+
* logged to the console but not thrown. Suitable for applications and CLIs
|
|
1571
|
+
* where deployment is a background concern.
|
|
1572
|
+
*
|
|
1573
|
+
* - `'wait'`: submit then poll until the live system reaches `Active` status.
|
|
1574
|
+
* Throws if deployment fails or if the timeout is exceeded. Suitable for
|
|
1575
|
+
* CI/CD pipelines where the pipeline must not advance until infrastructure
|
|
1576
|
+
* is fully provisioned.
|
|
1577
|
+
*/
|
|
1578
|
+
type DeployOptions = {
|
|
1579
|
+
mode: 'fire-and-forget' | 'wait'; /** Polling interval in milliseconds. Default: 5000 (5 s). Only used with `mode: 'wait'`. */
|
|
1580
|
+
pollIntervalMs?: number; /** Maximum time to wait in milliseconds. Default: 600000 (10 min). Only used with `mode: 'wait'`. */
|
|
1581
|
+
timeoutMs?: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* Suppress all SDK log output. Default: false.
|
|
1584
|
+
* Set to `true` when a CLI or wrapper layer owns the presentation layer.
|
|
1585
|
+
* Only applies to `mode: 'wait'` — `fire-and-forget` is always silent.
|
|
1586
|
+
*/
|
|
1587
|
+
quiet?: boolean;
|
|
1588
|
+
};
|
|
1566
1589
|
type Id = LiveSystemId;
|
|
1567
1590
|
namespace Id {
|
|
1568
1591
|
type Builder = LiveSystemIdBuilder;
|
|
@@ -1590,21 +1613,59 @@ type LiveSystem$1 = {
|
|
|
1590
1613
|
environment: Environment$1;
|
|
1591
1614
|
createdAt: Date;
|
|
1592
1615
|
updatedAt: Date;
|
|
1593
|
-
deploy: (credentials: ServiceAccountCredentials$1) => Promise<void>;
|
|
1616
|
+
deploy: (credentials: ServiceAccountCredentials$1, options?: LiveSystem$1.DeployOptions) => Promise<void>;
|
|
1594
1617
|
destroy: (credentials: ServiceAccountCredentials$1) => Promise<void>;
|
|
1595
1618
|
};
|
|
1596
1619
|
//#endregion
|
|
1620
|
+
//#region src/fractal/component/network_and_compute/iaas/security_group.d.ts
|
|
1621
|
+
type IngressRule = {
|
|
1622
|
+
protocol?: string;
|
|
1623
|
+
fromPort: number;
|
|
1624
|
+
toPort?: number;
|
|
1625
|
+
sourceCidr?: string;
|
|
1626
|
+
sourceGroupId?: string;
|
|
1627
|
+
};
|
|
1628
|
+
type SecurityGroupBuilder = {
|
|
1629
|
+
withId: (id: string) => SecurityGroupBuilder;
|
|
1630
|
+
withVersion: (major: number, minor: number, patch: number) => SecurityGroupBuilder;
|
|
1631
|
+
withDisplayName: (displayName: string) => SecurityGroupBuilder;
|
|
1632
|
+
withDescription: (description: string) => SecurityGroupBuilder;
|
|
1633
|
+
withIngressRules: (rules: IngressRule[]) => SecurityGroupBuilder;
|
|
1634
|
+
withLinks: (links: ComponentLink[]) => SecurityGroupBuilder;
|
|
1635
|
+
build: () => SecurityGroupComponent;
|
|
1636
|
+
};
|
|
1637
|
+
type SecurityGroupConfig = {
|
|
1638
|
+
id: string;
|
|
1639
|
+
version: {
|
|
1640
|
+
major: number;
|
|
1641
|
+
minor: number;
|
|
1642
|
+
patch: number;
|
|
1643
|
+
};
|
|
1644
|
+
displayName: string;
|
|
1645
|
+
description: string;
|
|
1646
|
+
ingressRules?: IngressRule[];
|
|
1647
|
+
};
|
|
1648
|
+
/** A BlueprintComponent that is guaranteed to be a SecurityGroup. */
|
|
1649
|
+
type SecurityGroupComponent = BlueprintComponent & {
|
|
1650
|
+
readonly _brand: 'SecurityGroup';
|
|
1651
|
+
};
|
|
1652
|
+
declare namespace SecurityGroup {
|
|
1653
|
+
const getBuilder: () => SecurityGroupBuilder;
|
|
1654
|
+
const create: (config: SecurityGroupConfig) => SecurityGroupComponent;
|
|
1655
|
+
}
|
|
1656
|
+
//#endregion
|
|
1597
1657
|
//#region src/fractal/component/network_and_compute/iaas/vm.d.ts
|
|
1598
1658
|
type VmPortLink = {
|
|
1599
|
-
target:
|
|
1659
|
+
target: VirtualMachineComponent;
|
|
1600
1660
|
fromPort: number;
|
|
1601
1661
|
toPort?: number;
|
|
1602
1662
|
protocol?: string;
|
|
1603
1663
|
};
|
|
1604
|
-
type
|
|
1664
|
+
type VirtualMachineComponent = {
|
|
1605
1665
|
readonly component: BlueprintComponent;
|
|
1606
|
-
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1607
|
-
|
|
1666
|
+
readonly components: ReadonlyArray<BlueprintComponent>; /** Declares a traffic rule from this VM to another. The agent derives managed SG egress/ingress rules. */
|
|
1667
|
+
linkToVirtualMachine: (links: VmPortLink[]) => VirtualMachineComponent; /** Declares SG membership. The agent assigns the VM to the given security group at launch. No settings required. */
|
|
1668
|
+
linkToSecurityGroup: (sgs: SecurityGroupComponent[]) => VirtualMachineComponent;
|
|
1608
1669
|
};
|
|
1609
1670
|
type VirtualMachineBuilder = {
|
|
1610
1671
|
withId: (id: string) => VirtualMachineBuilder;
|
|
@@ -1626,7 +1687,7 @@ type VirtualMachineConfig = {
|
|
|
1626
1687
|
};
|
|
1627
1688
|
declare namespace VirtualMachine {
|
|
1628
1689
|
const getBuilder: () => VirtualMachineBuilder;
|
|
1629
|
-
const create: (config: VirtualMachineConfig) =>
|
|
1690
|
+
const create: (config: VirtualMachineConfig) => VirtualMachineComponent;
|
|
1630
1691
|
}
|
|
1631
1692
|
//#endregion
|
|
1632
1693
|
//#region src/fractal/component/custom_workloads/caas/workload.d.ts
|
|
@@ -1635,16 +1696,16 @@ declare namespace VirtualMachine {
|
|
|
1635
1696
|
* The agent derives managed SG egress/ingress rules from these.
|
|
1636
1697
|
*/
|
|
1637
1698
|
type WorkloadPortLink = {
|
|
1638
|
-
target:
|
|
1699
|
+
target: WorkloadComponent;
|
|
1639
1700
|
fromPort: number;
|
|
1640
1701
|
toPort?: number;
|
|
1641
1702
|
protocol?: string;
|
|
1642
1703
|
};
|
|
1643
|
-
type
|
|
1704
|
+
type WorkloadComponent = {
|
|
1644
1705
|
readonly component: BlueprintComponent;
|
|
1645
|
-
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1646
|
-
|
|
1647
|
-
|
|
1706
|
+
readonly components: ReadonlyArray<BlueprintComponent>; /** Declares a traffic rule from this workload to another. The agent derives managed SG egress/ingress rules. */
|
|
1707
|
+
linkToWorkload: (links: WorkloadPortLink[]) => WorkloadComponent; /** Declares SG membership. The agent assigns the workload to the given security group at launch. No settings required. */
|
|
1708
|
+
linkToSecurityGroup: (sgs: SecurityGroupComponent[]) => WorkloadComponent;
|
|
1648
1709
|
};
|
|
1649
1710
|
type WorkloadBuilder = {
|
|
1650
1711
|
withId: (id: string) => WorkloadBuilder;
|
|
@@ -1677,17 +1738,17 @@ type WorkloadConfig = {
|
|
|
1677
1738
|
};
|
|
1678
1739
|
declare namespace Workload {
|
|
1679
1740
|
const getBuilder: () => WorkloadBuilder;
|
|
1680
|
-
const create: (config: WorkloadConfig) =>
|
|
1741
|
+
const create: (config: WorkloadConfig) => WorkloadComponent;
|
|
1681
1742
|
}
|
|
1682
1743
|
//#endregion
|
|
1683
1744
|
//#region src/fractal/component/network_and_compute/iaas/subnet.d.ts
|
|
1684
|
-
type
|
|
1745
|
+
type SubnetComponent = {
|
|
1685
1746
|
readonly subnet: BlueprintComponent;
|
|
1686
1747
|
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1687
1748
|
readonly workloads: ReadonlyArray<BlueprintComponent>;
|
|
1688
1749
|
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1689
|
-
withVirtualMachines: (vms:
|
|
1690
|
-
withWorkloads: (workloads: ReadonlyArray<
|
|
1750
|
+
withVirtualMachines: (vms: VirtualMachineComponent[]) => SubnetComponent;
|
|
1751
|
+
withWorkloads: (workloads: ReadonlyArray<WorkloadComponent>) => SubnetComponent;
|
|
1691
1752
|
};
|
|
1692
1753
|
type SubnetResult = {
|
|
1693
1754
|
readonly subnet: BlueprintComponent;
|
|
@@ -1717,52 +1778,19 @@ type SubnetConfig = {
|
|
|
1717
1778
|
};
|
|
1718
1779
|
declare namespace Subnet {
|
|
1719
1780
|
const getBuilder: () => SubnetBuilder;
|
|
1720
|
-
const create: (config: SubnetConfig) =>
|
|
1721
|
-
}
|
|
1722
|
-
//#endregion
|
|
1723
|
-
//#region src/fractal/component/network_and_compute/iaas/security_group.d.ts
|
|
1724
|
-
type IngressRule = {
|
|
1725
|
-
protocol?: string;
|
|
1726
|
-
fromPort: number;
|
|
1727
|
-
toPort?: number;
|
|
1728
|
-
sourceCidr?: string;
|
|
1729
|
-
sourceGroupId?: string;
|
|
1730
|
-
};
|
|
1731
|
-
type SecurityGroupBuilder = {
|
|
1732
|
-
withId: (id: string) => SecurityGroupBuilder;
|
|
1733
|
-
withVersion: (major: number, minor: number, patch: number) => SecurityGroupBuilder;
|
|
1734
|
-
withDisplayName: (displayName: string) => SecurityGroupBuilder;
|
|
1735
|
-
withDescription: (description: string) => SecurityGroupBuilder;
|
|
1736
|
-
withIngressRules: (rules: IngressRule[]) => SecurityGroupBuilder;
|
|
1737
|
-
withLinks: (links: ComponentLink[]) => SecurityGroupBuilder;
|
|
1738
|
-
build: () => BlueprintComponent;
|
|
1739
|
-
};
|
|
1740
|
-
type SecurityGroupConfig = {
|
|
1741
|
-
id: string;
|
|
1742
|
-
version: {
|
|
1743
|
-
major: number;
|
|
1744
|
-
minor: number;
|
|
1745
|
-
patch: number;
|
|
1746
|
-
};
|
|
1747
|
-
displayName: string;
|
|
1748
|
-
description: string;
|
|
1749
|
-
ingressRules?: IngressRule[];
|
|
1750
|
-
};
|
|
1751
|
-
declare namespace SecurityGroup {
|
|
1752
|
-
const getBuilder: () => SecurityGroupBuilder;
|
|
1753
|
-
const create: (config: SecurityGroupConfig) => BlueprintComponent;
|
|
1781
|
+
const create: (config: SubnetConfig) => SubnetComponent;
|
|
1754
1782
|
}
|
|
1755
1783
|
//#endregion
|
|
1756
1784
|
//#region src/fractal/component/network_and_compute/iaas/virtual_network.d.ts
|
|
1757
|
-
type
|
|
1785
|
+
type VirtualNetworkComponent = {
|
|
1758
1786
|
readonly vpc: BlueprintComponent;
|
|
1759
1787
|
readonly subnets: ReadonlyArray<BlueprintComponent>;
|
|
1760
1788
|
readonly securityGroups: ReadonlyArray<BlueprintComponent>;
|
|
1761
1789
|
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1762
1790
|
readonly workloads: ReadonlyArray<BlueprintComponent>;
|
|
1763
1791
|
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1764
|
-
withSubnets: (subnets:
|
|
1765
|
-
withSecurityGroups: (sgs: BlueprintComponent[]) =>
|
|
1792
|
+
withSubnets: (subnets: SubnetComponent[]) => VirtualNetworkComponent;
|
|
1793
|
+
withSecurityGroups: (sgs: BlueprintComponent[]) => VirtualNetworkComponent;
|
|
1766
1794
|
};
|
|
1767
1795
|
type VirtualNetworkResult = {
|
|
1768
1796
|
readonly vpc: BlueprintComponent;
|
|
@@ -1796,7 +1824,7 @@ type VirtualNetworkConfig = {
|
|
|
1796
1824
|
};
|
|
1797
1825
|
declare namespace VirtualNetwork {
|
|
1798
1826
|
const getBuilder: () => VirtualNetworkBuilder;
|
|
1799
|
-
const create: (config: VirtualNetworkConfig) =>
|
|
1827
|
+
const create: (config: VirtualNetworkConfig) => VirtualNetworkComponent;
|
|
1800
1828
|
}
|
|
1801
1829
|
//#endregion
|
|
1802
1830
|
//#region src/live_system/component/network_and_compute/iaas/vpc.d.ts
|
|
@@ -2626,14 +2654,14 @@ declare namespace HetznerServer {
|
|
|
2626
2654
|
}
|
|
2627
2655
|
//#endregion
|
|
2628
2656
|
//#region src/fractal/component/network_and_compute/paas/container_platform.d.ts
|
|
2629
|
-
type
|
|
2657
|
+
type ContainerPlatformComponent = {
|
|
2630
2658
|
readonly platform: BlueprintComponent;
|
|
2631
2659
|
/**
|
|
2632
2660
|
* Workload nodes with the platform dependency auto-wired into each component.
|
|
2633
2661
|
* Pass these to Subnet.withWorkloads() so the subnet dep is stacked on top.
|
|
2634
2662
|
*/
|
|
2635
|
-
readonly workloads: ReadonlyArray<
|
|
2636
|
-
withWorkloads: (workloads:
|
|
2663
|
+
readonly workloads: ReadonlyArray<WorkloadComponent>;
|
|
2664
|
+
withWorkloads: (workloads: WorkloadComponent[]) => ContainerPlatformComponent;
|
|
2637
2665
|
};
|
|
2638
2666
|
type ContainerPlatformBuilder = {
|
|
2639
2667
|
withId: (id: string) => ContainerPlatformBuilder;
|
|
@@ -2654,7 +2682,76 @@ type ContainerPlatformConfig = {
|
|
|
2654
2682
|
};
|
|
2655
2683
|
declare namespace ContainerPlatform {
|
|
2656
2684
|
const getBuilder: () => ContainerPlatformBuilder;
|
|
2657
|
-
const create: (config: ContainerPlatformConfig) =>
|
|
2685
|
+
const create: (config: ContainerPlatformConfig) => ContainerPlatformComponent;
|
|
2686
|
+
}
|
|
2687
|
+
//#endregion
|
|
2688
|
+
//#region src/live_system/component/network_and_compute/paas/eks_cluster.d.ts
|
|
2689
|
+
type SatisfiedAwsEksClusterBuilder = {
|
|
2690
|
+
withKubernetesVersion: (version: string) => SatisfiedAwsEksClusterBuilder;
|
|
2691
|
+
withNetworkPolicyProvider: (provider: string) => SatisfiedAwsEksClusterBuilder;
|
|
2692
|
+
withMasterIpv4CidrBlock: (cidr: string) => SatisfiedAwsEksClusterBuilder;
|
|
2693
|
+
withVpcCidrBlock: (cidr: string) => SatisfiedAwsEksClusterBuilder;
|
|
2694
|
+
withPrivateSubnetCidrs: (cidrs: string[]) => SatisfiedAwsEksClusterBuilder;
|
|
2695
|
+
withDesiredAvailabilityZoneCount: (count: number) => SatisfiedAwsEksClusterBuilder;
|
|
2696
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => SatisfiedAwsEksClusterBuilder;
|
|
2697
|
+
withAddons: (addons: Record<string, unknown>[]) => SatisfiedAwsEksClusterBuilder;
|
|
2698
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => SatisfiedAwsEksClusterBuilder;
|
|
2699
|
+
withRoles: (roles: Record<string, unknown>[]) => SatisfiedAwsEksClusterBuilder;
|
|
2700
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => SatisfiedAwsEksClusterBuilder;
|
|
2701
|
+
withPrivateClusterDisabled: (disabled: boolean) => SatisfiedAwsEksClusterBuilder;
|
|
2702
|
+
build: () => LiveSystemComponent;
|
|
2703
|
+
};
|
|
2704
|
+
type AwsEksClusterBuilder = {
|
|
2705
|
+
withId: (id: string) => AwsEksClusterBuilder;
|
|
2706
|
+
withVersion: (major: number, minor: number, patch: number) => AwsEksClusterBuilder;
|
|
2707
|
+
withDisplayName: (displayName: string) => AwsEksClusterBuilder;
|
|
2708
|
+
withDescription: (description: string) => AwsEksClusterBuilder;
|
|
2709
|
+
withKubernetesVersion: (version: string) => AwsEksClusterBuilder;
|
|
2710
|
+
withNetworkPolicyProvider: (provider: string) => AwsEksClusterBuilder;
|
|
2711
|
+
withMasterIpv4CidrBlock: (cidr: string) => AwsEksClusterBuilder;
|
|
2712
|
+
withVpcCidrBlock: (cidr: string) => AwsEksClusterBuilder;
|
|
2713
|
+
withPrivateSubnetCidrs: (cidrs: string[]) => AwsEksClusterBuilder;
|
|
2714
|
+
withDesiredAvailabilityZoneCount: (count: number) => AwsEksClusterBuilder;
|
|
2715
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => AwsEksClusterBuilder;
|
|
2716
|
+
withAddons: (addons: Record<string, unknown>[]) => AwsEksClusterBuilder;
|
|
2717
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => AwsEksClusterBuilder;
|
|
2718
|
+
withRoles: (roles: Record<string, unknown>[]) => AwsEksClusterBuilder;
|
|
2719
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => AwsEksClusterBuilder;
|
|
2720
|
+
withPrivateClusterDisabled: (disabled: boolean) => AwsEksClusterBuilder;
|
|
2721
|
+
build: () => LiveSystemComponent;
|
|
2722
|
+
};
|
|
2723
|
+
type AwsEksClusterConfig = {
|
|
2724
|
+
id: string;
|
|
2725
|
+
version: {
|
|
2726
|
+
major: number;
|
|
2727
|
+
minor: number;
|
|
2728
|
+
patch: number;
|
|
2729
|
+
};
|
|
2730
|
+
displayName: string;
|
|
2731
|
+
description?: string;
|
|
2732
|
+
kubernetesVersion?: string;
|
|
2733
|
+
networkPolicyProvider?: string;
|
|
2734
|
+
masterIpv4CidrBlock?: string;
|
|
2735
|
+
vpcCidrBlock?: string;
|
|
2736
|
+
privateSubnetCidrs?: string[];
|
|
2737
|
+
desiredAvailabilityZoneCount?: number;
|
|
2738
|
+
nodePools?: Record<string, unknown>[];
|
|
2739
|
+
addons?: Record<string, unknown>[];
|
|
2740
|
+
priorityClasses?: Record<string, unknown>[];
|
|
2741
|
+
roles?: Record<string, unknown>[];
|
|
2742
|
+
workloadIdentityEnabled?: boolean;
|
|
2743
|
+
privateClusterDisabled?: boolean;
|
|
2744
|
+
};
|
|
2745
|
+
declare namespace AwsEksCluster {
|
|
2746
|
+
const getBuilder: () => AwsEksClusterBuilder;
|
|
2747
|
+
/**
|
|
2748
|
+
* Satisfies a blueprint ContainerPlatform component as an AWS EKS Cluster.
|
|
2749
|
+
* Carries id, version, displayName, and description from the blueprint.
|
|
2750
|
+
* All cluster-specific parameters (Kubernetes version, node pools, etc.)
|
|
2751
|
+
* are AWS-specific and must be added via the builder methods.
|
|
2752
|
+
*/
|
|
2753
|
+
const satisfy: (platform: BlueprintComponent) => SatisfiedAwsEksClusterBuilder;
|
|
2754
|
+
const create: (config: AwsEksClusterConfig) => LiveSystemComponent;
|
|
2658
2755
|
}
|
|
2659
2756
|
//#endregion
|
|
2660
2757
|
//#region src/live_system/component/network_and_compute/paas/ecs_cluster.d.ts
|
|
@@ -2755,11 +2852,17 @@ declare namespace AwsEcsTaskDefinition {
|
|
|
2755
2852
|
/**
|
|
2756
2853
|
* Returned by satisfy() — all structural properties (dependencies, links,
|
|
2757
2854
|
* desiredCount) are locked from the blueprint. Only AWS-specific launch
|
|
2758
|
-
* parameters are set here.
|
|
2855
|
+
* parameters and live-system sub-component dependencies are set here.
|
|
2759
2856
|
*/
|
|
2760
2857
|
type SatisfiedAwsEcsServiceBuilder = {
|
|
2761
2858
|
withLaunchType: (type: string) => SatisfiedAwsEcsServiceBuilder;
|
|
2762
2859
|
withAssignPublicIp: (assign: boolean) => SatisfiedAwsEcsServiceBuilder;
|
|
2860
|
+
/**
|
|
2861
|
+
* Declares a live-system-only dependency on the ECS Task Definition that
|
|
2862
|
+
* this service will run. This has no blueprint equivalent — it is an
|
|
2863
|
+
* AWS-specific sub-component relationship.
|
|
2864
|
+
*/
|
|
2865
|
+
withTaskDefinition: (taskDef: LiveSystemComponent) => SatisfiedAwsEcsServiceBuilder;
|
|
2763
2866
|
build: () => LiveSystemComponent;
|
|
2764
2867
|
};
|
|
2765
2868
|
type AwsEcsServiceBuilder = {
|
|
@@ -2787,6 +2890,12 @@ type AwsEcsServiceConfig = {
|
|
|
2787
2890
|
};
|
|
2788
2891
|
declare namespace AwsEcsService {
|
|
2789
2892
|
const getBuilder: () => AwsEcsServiceBuilder;
|
|
2893
|
+
/**
|
|
2894
|
+
* Satisfies a blueprint Workload component as an AWS ECS Service.
|
|
2895
|
+
* All structural properties — dependencies (subnet, cluster), links
|
|
2896
|
+
* (traffic rules, SG membership), and desiredCount — are carried from
|
|
2897
|
+
* the blueprint unchanged. Only AWS-specific launch parameters are added here.
|
|
2898
|
+
*/
|
|
2790
2899
|
/**
|
|
2791
2900
|
* Satisfies a blueprint Workload component as an AWS ECS Service.
|
|
2792
2901
|
* All structural properties — dependencies (subnet, cluster), links
|
|
@@ -2797,6 +2906,450 @@ declare namespace AwsEcsService {
|
|
|
2797
2906
|
const create: (config: AwsEcsServiceConfig) => LiveSystemComponent;
|
|
2798
2907
|
}
|
|
2799
2908
|
//#endregion
|
|
2909
|
+
//#region src/live_system/component/network_and_compute/paas/azure_aks.d.ts
|
|
2910
|
+
type SatisfiedAzureAksClusterBuilder = {
|
|
2911
|
+
withKubernetesVersion: (version: string) => SatisfiedAzureAksClusterBuilder;
|
|
2912
|
+
withNetworkPolicyProvider: (provider: string) => SatisfiedAzureAksClusterBuilder;
|
|
2913
|
+
withMasterIpv4CidrBlock: (cidr: string) => SatisfiedAzureAksClusterBuilder;
|
|
2914
|
+
withVnetSubnetAddressIpRange: (range: string) => SatisfiedAzureAksClusterBuilder;
|
|
2915
|
+
withManagedClusterSkuTier: (tier: string) => SatisfiedAzureAksClusterBuilder;
|
|
2916
|
+
withWindowsAdminUsername: (username: string) => SatisfiedAzureAksClusterBuilder;
|
|
2917
|
+
withExternalWorkspaceResourceId: (id: string) => SatisfiedAzureAksClusterBuilder;
|
|
2918
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => SatisfiedAzureAksClusterBuilder;
|
|
2919
|
+
withAzureActiveDirectoryProfile: (profile: Record<string, unknown>) => SatisfiedAzureAksClusterBuilder;
|
|
2920
|
+
withOutboundIps: (ips: Record<string, unknown>[]) => SatisfiedAzureAksClusterBuilder;
|
|
2921
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => SatisfiedAzureAksClusterBuilder;
|
|
2922
|
+
withRoles: (roles: Record<string, unknown>[]) => SatisfiedAzureAksClusterBuilder;
|
|
2923
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => SatisfiedAzureAksClusterBuilder;
|
|
2924
|
+
withPrivateClusterDisabled: (disabled: boolean) => SatisfiedAzureAksClusterBuilder;
|
|
2925
|
+
build: () => LiveSystemComponent;
|
|
2926
|
+
};
|
|
2927
|
+
type AzureAksClusterBuilder = {
|
|
2928
|
+
withId: (id: string) => AzureAksClusterBuilder;
|
|
2929
|
+
withVersion: (major: number, minor: number, patch: number) => AzureAksClusterBuilder;
|
|
2930
|
+
withDisplayName: (displayName: string) => AzureAksClusterBuilder;
|
|
2931
|
+
withDescription: (description: string) => AzureAksClusterBuilder;
|
|
2932
|
+
withKubernetesVersion: (version: string) => AzureAksClusterBuilder;
|
|
2933
|
+
withNetworkPolicyProvider: (provider: string) => AzureAksClusterBuilder;
|
|
2934
|
+
withMasterIpv4CidrBlock: (cidr: string) => AzureAksClusterBuilder;
|
|
2935
|
+
withVnetSubnetAddressIpRange: (range: string) => AzureAksClusterBuilder;
|
|
2936
|
+
withManagedClusterSkuTier: (tier: string) => AzureAksClusterBuilder;
|
|
2937
|
+
withWindowsAdminUsername: (username: string) => AzureAksClusterBuilder;
|
|
2938
|
+
withExternalWorkspaceResourceId: (id: string) => AzureAksClusterBuilder;
|
|
2939
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => AzureAksClusterBuilder;
|
|
2940
|
+
withAzureActiveDirectoryProfile: (profile: Record<string, unknown>) => AzureAksClusterBuilder;
|
|
2941
|
+
withOutboundIps: (ips: Record<string, unknown>[]) => AzureAksClusterBuilder;
|
|
2942
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => AzureAksClusterBuilder;
|
|
2943
|
+
withRoles: (roles: Record<string, unknown>[]) => AzureAksClusterBuilder;
|
|
2944
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => AzureAksClusterBuilder;
|
|
2945
|
+
withPrivateClusterDisabled: (disabled: boolean) => AzureAksClusterBuilder;
|
|
2946
|
+
build: () => LiveSystemComponent;
|
|
2947
|
+
};
|
|
2948
|
+
type AzureAksClusterConfig = {
|
|
2949
|
+
id: string;
|
|
2950
|
+
version: {
|
|
2951
|
+
major: number;
|
|
2952
|
+
minor: number;
|
|
2953
|
+
patch: number;
|
|
2954
|
+
};
|
|
2955
|
+
displayName: string;
|
|
2956
|
+
description?: string;
|
|
2957
|
+
kubernetesVersion?: string;
|
|
2958
|
+
networkPolicyProvider?: string;
|
|
2959
|
+
masterIpv4CidrBlock?: string;
|
|
2960
|
+
vnetSubnetAddressIpRange?: string;
|
|
2961
|
+
managedClusterSkuTier?: string;
|
|
2962
|
+
windowsAdminUsername?: string;
|
|
2963
|
+
externalWorkspaceResourceId?: string;
|
|
2964
|
+
nodePools?: Record<string, unknown>[];
|
|
2965
|
+
azureActiveDirectoryProfile?: Record<string, unknown>;
|
|
2966
|
+
outboundIps?: Record<string, unknown>[];
|
|
2967
|
+
priorityClasses?: Record<string, unknown>[];
|
|
2968
|
+
roles?: Record<string, unknown>[];
|
|
2969
|
+
workloadIdentityEnabled?: boolean;
|
|
2970
|
+
privateClusterDisabled?: boolean;
|
|
2971
|
+
};
|
|
2972
|
+
declare namespace AzureAksCluster {
|
|
2973
|
+
const getBuilder: () => AzureAksClusterBuilder;
|
|
2974
|
+
/**
|
|
2975
|
+
* Satisfies a blueprint ContainerPlatform component as an Azure AKS Cluster.
|
|
2976
|
+
* Carries id, version, displayName, and description from the blueprint.
|
|
2977
|
+
* All cluster-specific parameters are Azure-specific and must be added via
|
|
2978
|
+
* the builder methods.
|
|
2979
|
+
*/
|
|
2980
|
+
const satisfy: (platform: BlueprintComponent) => SatisfiedAzureAksClusterBuilder;
|
|
2981
|
+
const create: (config: AzureAksClusterConfig) => LiveSystemComponent;
|
|
2982
|
+
}
|
|
2983
|
+
//#endregion
|
|
2984
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_apps_environment.d.ts
|
|
2985
|
+
type SatisfiedAzureContainerAppsEnvironmentBuilder = {
|
|
2986
|
+
withLocation: (location: string) => SatisfiedAzureContainerAppsEnvironmentBuilder;
|
|
2987
|
+
withResourceGroup: (resourceGroup: string) => SatisfiedAzureContainerAppsEnvironmentBuilder;
|
|
2988
|
+
withLogAnalyticsWorkspaceId: (id: string) => SatisfiedAzureContainerAppsEnvironmentBuilder;
|
|
2989
|
+
withLogAnalyticsSharedKey: (key: string) => SatisfiedAzureContainerAppsEnvironmentBuilder;
|
|
2990
|
+
build: () => LiveSystemComponent;
|
|
2991
|
+
};
|
|
2992
|
+
type AzureContainerAppsEnvironmentBuilder = {
|
|
2993
|
+
withId: (id: string) => AzureContainerAppsEnvironmentBuilder;
|
|
2994
|
+
withVersion: (major: number, minor: number, patch: number) => AzureContainerAppsEnvironmentBuilder;
|
|
2995
|
+
withDisplayName: (displayName: string) => AzureContainerAppsEnvironmentBuilder;
|
|
2996
|
+
withDescription: (description: string) => AzureContainerAppsEnvironmentBuilder;
|
|
2997
|
+
withLocation: (location: string) => AzureContainerAppsEnvironmentBuilder;
|
|
2998
|
+
withResourceGroup: (resourceGroup: string) => AzureContainerAppsEnvironmentBuilder;
|
|
2999
|
+
withLogAnalyticsWorkspaceId: (id: string) => AzureContainerAppsEnvironmentBuilder;
|
|
3000
|
+
withLogAnalyticsSharedKey: (key: string) => AzureContainerAppsEnvironmentBuilder;
|
|
3001
|
+
build: () => LiveSystemComponent;
|
|
3002
|
+
};
|
|
3003
|
+
type AzureContainerAppsEnvironmentConfig = {
|
|
3004
|
+
id: string;
|
|
3005
|
+
version: {
|
|
3006
|
+
major: number;
|
|
3007
|
+
minor: number;
|
|
3008
|
+
patch: number;
|
|
3009
|
+
};
|
|
3010
|
+
displayName: string;
|
|
3011
|
+
description?: string;
|
|
3012
|
+
location: string;
|
|
3013
|
+
resourceGroup: string;
|
|
3014
|
+
logAnalyticsWorkspaceId?: string;
|
|
3015
|
+
logAnalyticsSharedKey?: string;
|
|
3016
|
+
};
|
|
3017
|
+
declare namespace AzureContainerAppsEnvironment {
|
|
3018
|
+
const getBuilder: () => AzureContainerAppsEnvironmentBuilder;
|
|
3019
|
+
/**
|
|
3020
|
+
* Satisfies a blueprint ContainerPlatform component as an Azure Container
|
|
3021
|
+
* Apps Environment. Carries id, version, displayName, and description from
|
|
3022
|
+
* the blueprint. Location and resourceGroup are Azure-specific and required.
|
|
3023
|
+
*
|
|
3024
|
+
* Dependencies declared in the blueprint (e.g. optional subnet for VNet
|
|
3025
|
+
* integration) are carried automatically.
|
|
3026
|
+
*/
|
|
3027
|
+
const satisfy: (platform: BlueprintComponent) => SatisfiedAzureContainerAppsEnvironmentBuilder;
|
|
3028
|
+
const create: (config: AzureContainerAppsEnvironmentConfig) => LiveSystemComponent;
|
|
3029
|
+
}
|
|
3030
|
+
//#endregion
|
|
3031
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_instance.d.ts
|
|
3032
|
+
type SatisfiedAzureContainerInstanceBuilder = {
|
|
3033
|
+
withLocation: (location: string) => SatisfiedAzureContainerInstanceBuilder;
|
|
3034
|
+
withResourceGroup: (resourceGroup: string) => SatisfiedAzureContainerInstanceBuilder;
|
|
3035
|
+
withCpu: (cpu: number) => SatisfiedAzureContainerInstanceBuilder;
|
|
3036
|
+
withMemoryInGb: (memoryInGb: number) => SatisfiedAzureContainerInstanceBuilder;
|
|
3037
|
+
withRestartPolicy: (policy: string) => SatisfiedAzureContainerInstanceBuilder;
|
|
3038
|
+
withPublicIp: (publicIp: boolean) => SatisfiedAzureContainerInstanceBuilder;
|
|
3039
|
+
withDnsNameLabel: (label: string) => SatisfiedAzureContainerInstanceBuilder;
|
|
3040
|
+
build: () => LiveSystemComponent;
|
|
3041
|
+
};
|
|
3042
|
+
type AzureContainerInstanceBuilder = {
|
|
3043
|
+
withId: (id: string) => AzureContainerInstanceBuilder;
|
|
3044
|
+
withVersion: (major: number, minor: number, patch: number) => AzureContainerInstanceBuilder;
|
|
3045
|
+
withDisplayName: (displayName: string) => AzureContainerInstanceBuilder;
|
|
3046
|
+
withDescription: (description: string) => AzureContainerInstanceBuilder;
|
|
3047
|
+
withImage: (image: string) => AzureContainerInstanceBuilder;
|
|
3048
|
+
withPort: (port: number) => AzureContainerInstanceBuilder;
|
|
3049
|
+
withLocation: (location: string) => AzureContainerInstanceBuilder;
|
|
3050
|
+
withResourceGroup: (resourceGroup: string) => AzureContainerInstanceBuilder;
|
|
3051
|
+
withCpu: (cpu: number) => AzureContainerInstanceBuilder;
|
|
3052
|
+
withMemoryInGb: (memoryInGb: number) => AzureContainerInstanceBuilder;
|
|
3053
|
+
withRestartPolicy: (policy: string) => AzureContainerInstanceBuilder;
|
|
3054
|
+
withPublicIp: (publicIp: boolean) => AzureContainerInstanceBuilder;
|
|
3055
|
+
withDnsNameLabel: (label: string) => AzureContainerInstanceBuilder;
|
|
3056
|
+
build: () => LiveSystemComponent;
|
|
3057
|
+
};
|
|
3058
|
+
type AzureContainerInstanceConfig = {
|
|
3059
|
+
id: string;
|
|
3060
|
+
version: {
|
|
3061
|
+
major: number;
|
|
3062
|
+
minor: number;
|
|
3063
|
+
patch: number;
|
|
3064
|
+
};
|
|
3065
|
+
displayName: string;
|
|
3066
|
+
description?: string;
|
|
3067
|
+
image: string;
|
|
3068
|
+
port?: number;
|
|
3069
|
+
location: string;
|
|
3070
|
+
resourceGroup: string;
|
|
3071
|
+
cpu?: number;
|
|
3072
|
+
memoryInGb?: number;
|
|
3073
|
+
restartPolicy?: string;
|
|
3074
|
+
publicIp?: boolean;
|
|
3075
|
+
dnsNameLabel?: string;
|
|
3076
|
+
};
|
|
3077
|
+
declare namespace AzureContainerInstance {
|
|
3078
|
+
const getBuilder: () => AzureContainerInstanceBuilder;
|
|
3079
|
+
/**
|
|
3080
|
+
* Satisfies a blueprint Workload component as an Azure Container Instance.
|
|
3081
|
+
* Carries id, version, displayName, description, dependencies, links, and
|
|
3082
|
+
* container image/port from the blueprint. Location and resourceGroup are
|
|
3083
|
+
* Azure-specific and required — add them via withLocation/withResourceGroup.
|
|
3084
|
+
*
|
|
3085
|
+
* Note: the container image is immutable after creation — drift on the image
|
|
3086
|
+
* triggers delete + recreate.
|
|
3087
|
+
*/
|
|
3088
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedAzureContainerInstanceBuilder;
|
|
3089
|
+
const create: (config: AzureContainerInstanceConfig) => LiveSystemComponent;
|
|
3090
|
+
}
|
|
3091
|
+
//#endregion
|
|
3092
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_app.d.ts
|
|
3093
|
+
type SatisfiedAzureContainerAppBuilder = {
|
|
3094
|
+
withLocation: (location: string) => SatisfiedAzureContainerAppBuilder;
|
|
3095
|
+
withResourceGroup: (resourceGroup: string) => SatisfiedAzureContainerAppBuilder;
|
|
3096
|
+
withExternalIngress: (external: boolean) => SatisfiedAzureContainerAppBuilder;
|
|
3097
|
+
withMinReplicas: (min: number) => SatisfiedAzureContainerAppBuilder;
|
|
3098
|
+
withMaxReplicas: (max: number) => SatisfiedAzureContainerAppBuilder;
|
|
3099
|
+
build: () => LiveSystemComponent;
|
|
3100
|
+
};
|
|
3101
|
+
type AzureContainerAppBuilder = {
|
|
3102
|
+
withId: (id: string) => AzureContainerAppBuilder;
|
|
3103
|
+
withVersion: (major: number, minor: number, patch: number) => AzureContainerAppBuilder;
|
|
3104
|
+
withDisplayName: (displayName: string) => AzureContainerAppBuilder;
|
|
3105
|
+
withDescription: (description: string) => AzureContainerAppBuilder;
|
|
3106
|
+
withImage: (image: string) => AzureContainerAppBuilder;
|
|
3107
|
+
withPort: (port: number) => AzureContainerAppBuilder;
|
|
3108
|
+
withCpu: (cpu: number) => AzureContainerAppBuilder;
|
|
3109
|
+
withMemory: (memory: string) => AzureContainerAppBuilder;
|
|
3110
|
+
withLocation: (location: string) => AzureContainerAppBuilder;
|
|
3111
|
+
withResourceGroup: (resourceGroup: string) => AzureContainerAppBuilder;
|
|
3112
|
+
withExternalIngress: (external: boolean) => AzureContainerAppBuilder;
|
|
3113
|
+
withMinReplicas: (min: number) => AzureContainerAppBuilder;
|
|
3114
|
+
withMaxReplicas: (max: number) => AzureContainerAppBuilder;
|
|
3115
|
+
build: () => LiveSystemComponent;
|
|
3116
|
+
};
|
|
3117
|
+
type AzureContainerAppConfig = {
|
|
3118
|
+
id: string;
|
|
3119
|
+
version: {
|
|
3120
|
+
major: number;
|
|
3121
|
+
minor: number;
|
|
3122
|
+
patch: number;
|
|
3123
|
+
};
|
|
3124
|
+
displayName: string;
|
|
3125
|
+
description?: string;
|
|
3126
|
+
image: string;
|
|
3127
|
+
port?: number;
|
|
3128
|
+
cpu?: number;
|
|
3129
|
+
memory?: string;
|
|
3130
|
+
location: string;
|
|
3131
|
+
resourceGroup: string;
|
|
3132
|
+
externalIngress?: boolean;
|
|
3133
|
+
minReplicas?: number;
|
|
3134
|
+
maxReplicas?: number;
|
|
3135
|
+
};
|
|
3136
|
+
declare namespace AzureContainerApp {
|
|
3137
|
+
const getBuilder: () => AzureContainerAppBuilder;
|
|
3138
|
+
/**
|
|
3139
|
+
* Satisfies a blueprint Workload component as an Azure Container App.
|
|
3140
|
+
* Carries id, version, displayName, description, dependencies (including
|
|
3141
|
+
* the AzureContainerAppsEnvironment dep auto-wired via ContainerPlatform),
|
|
3142
|
+
* links, container image, port, cpu, and memory from the blueprint.
|
|
3143
|
+
* Location and resourceGroup are Azure-specific and required.
|
|
3144
|
+
*/
|
|
3145
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedAzureContainerAppBuilder;
|
|
3146
|
+
const create: (config: AzureContainerAppConfig) => LiveSystemComponent;
|
|
3147
|
+
}
|
|
3148
|
+
//#endregion
|
|
3149
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_gke.d.ts
|
|
3150
|
+
type SatisfiedGcpGkeClusterBuilder = {
|
|
3151
|
+
withKubernetesVersion: (version: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3152
|
+
withNetworkPolicyProvider: (provider: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3153
|
+
withMasterIpv4CidrBlock: (cidr: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3154
|
+
withNetworkName: (name: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3155
|
+
withSubnetworkName: (name: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3156
|
+
withSubnetworkIpRange: (range: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3157
|
+
withServiceIpRange: (range: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3158
|
+
withPodIpRange: (range: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3159
|
+
withPodsRangeName: (name: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3160
|
+
withServicesRangeName: (name: string) => SatisfiedGcpGkeClusterBuilder;
|
|
3161
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => SatisfiedGcpGkeClusterBuilder;
|
|
3162
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => SatisfiedGcpGkeClusterBuilder;
|
|
3163
|
+
withRoles: (roles: Record<string, unknown>[]) => SatisfiedGcpGkeClusterBuilder;
|
|
3164
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => SatisfiedGcpGkeClusterBuilder;
|
|
3165
|
+
withPrivateClusterDisabled: (disabled: boolean) => SatisfiedGcpGkeClusterBuilder;
|
|
3166
|
+
build: () => LiveSystemComponent;
|
|
3167
|
+
};
|
|
3168
|
+
type GcpGkeClusterBuilder = {
|
|
3169
|
+
withId: (id: string) => GcpGkeClusterBuilder;
|
|
3170
|
+
withVersion: (major: number, minor: number, patch: number) => GcpGkeClusterBuilder;
|
|
3171
|
+
withDisplayName: (displayName: string) => GcpGkeClusterBuilder;
|
|
3172
|
+
withDescription: (description: string) => GcpGkeClusterBuilder;
|
|
3173
|
+
withKubernetesVersion: (version: string) => GcpGkeClusterBuilder;
|
|
3174
|
+
withNetworkPolicyProvider: (provider: string) => GcpGkeClusterBuilder;
|
|
3175
|
+
withMasterIpv4CidrBlock: (cidr: string) => GcpGkeClusterBuilder;
|
|
3176
|
+
withNetworkName: (name: string) => GcpGkeClusterBuilder;
|
|
3177
|
+
withSubnetworkName: (name: string) => GcpGkeClusterBuilder;
|
|
3178
|
+
withSubnetworkIpRange: (range: string) => GcpGkeClusterBuilder;
|
|
3179
|
+
withServiceIpRange: (range: string) => GcpGkeClusterBuilder;
|
|
3180
|
+
withPodIpRange: (range: string) => GcpGkeClusterBuilder;
|
|
3181
|
+
withPodsRangeName: (name: string) => GcpGkeClusterBuilder;
|
|
3182
|
+
withServicesRangeName: (name: string) => GcpGkeClusterBuilder;
|
|
3183
|
+
withNodePools: (nodePools: Record<string, unknown>[]) => GcpGkeClusterBuilder;
|
|
3184
|
+
withPriorityClasses: (classes: Record<string, unknown>[]) => GcpGkeClusterBuilder;
|
|
3185
|
+
withRoles: (roles: Record<string, unknown>[]) => GcpGkeClusterBuilder;
|
|
3186
|
+
withWorkloadIdentityEnabled: (enabled: boolean) => GcpGkeClusterBuilder;
|
|
3187
|
+
withPrivateClusterDisabled: (disabled: boolean) => GcpGkeClusterBuilder;
|
|
3188
|
+
build: () => LiveSystemComponent;
|
|
3189
|
+
};
|
|
3190
|
+
type GcpGkeClusterConfig = {
|
|
3191
|
+
id: string;
|
|
3192
|
+
version: {
|
|
3193
|
+
major: number;
|
|
3194
|
+
minor: number;
|
|
3195
|
+
patch: number;
|
|
3196
|
+
};
|
|
3197
|
+
displayName: string;
|
|
3198
|
+
description?: string;
|
|
3199
|
+
kubernetesVersion?: string;
|
|
3200
|
+
networkPolicyProvider?: string;
|
|
3201
|
+
masterIpv4CidrBlock?: string;
|
|
3202
|
+
networkName?: string;
|
|
3203
|
+
subnetworkName?: string;
|
|
3204
|
+
subnetworkIpRange?: string;
|
|
3205
|
+
serviceIpRange?: string;
|
|
3206
|
+
podIpRange?: string;
|
|
3207
|
+
podsRangeName?: string;
|
|
3208
|
+
servicesRangeName?: string;
|
|
3209
|
+
nodePools?: Record<string, unknown>[];
|
|
3210
|
+
priorityClasses?: Record<string, unknown>[];
|
|
3211
|
+
roles?: Record<string, unknown>[];
|
|
3212
|
+
workloadIdentityEnabled?: boolean;
|
|
3213
|
+
privateClusterDisabled?: boolean;
|
|
3214
|
+
};
|
|
3215
|
+
declare namespace GcpGkeCluster {
|
|
3216
|
+
const getBuilder: () => GcpGkeClusterBuilder;
|
|
3217
|
+
/**
|
|
3218
|
+
* Satisfies a blueprint ContainerPlatform component as a GCP GKE Cluster.
|
|
3219
|
+
* Carries id, version, displayName, and description from the blueprint.
|
|
3220
|
+
* All cluster-specific parameters are GCP-specific and must be added via
|
|
3221
|
+
* the builder methods.
|
|
3222
|
+
*/
|
|
3223
|
+
const satisfy: (platform: BlueprintComponent) => SatisfiedGcpGkeClusterBuilder;
|
|
3224
|
+
const create: (config: GcpGkeClusterConfig) => LiveSystemComponent;
|
|
3225
|
+
}
|
|
3226
|
+
//#endregion
|
|
3227
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_cloud_run_service.d.ts
|
|
3228
|
+
type SatisfiedGcpCloudRunServiceBuilder = {
|
|
3229
|
+
withRegion: (region: string) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3230
|
+
withMinInstances: (min: number) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3231
|
+
withMaxInstances: (max: number) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3232
|
+
withConcurrency: (concurrency: number) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3233
|
+
withServiceAccountEmail: (email: string) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3234
|
+
withIngress: (ingress: string) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3235
|
+
build: () => LiveSystemComponent;
|
|
3236
|
+
};
|
|
3237
|
+
type GcpCloudRunServiceBuilder = {
|
|
3238
|
+
withId: (id: string) => GcpCloudRunServiceBuilder;
|
|
3239
|
+
withVersion: (major: number, minor: number, patch: number) => GcpCloudRunServiceBuilder;
|
|
3240
|
+
withDisplayName: (displayName: string) => GcpCloudRunServiceBuilder;
|
|
3241
|
+
withDescription: (description: string) => GcpCloudRunServiceBuilder;
|
|
3242
|
+
withImage: (image: string) => GcpCloudRunServiceBuilder;
|
|
3243
|
+
withPort: (port: number) => GcpCloudRunServiceBuilder;
|
|
3244
|
+
withCpu: (cpu: string) => GcpCloudRunServiceBuilder;
|
|
3245
|
+
withMemory: (memory: string) => GcpCloudRunServiceBuilder;
|
|
3246
|
+
withRegion: (region: string) => GcpCloudRunServiceBuilder;
|
|
3247
|
+
withMinInstances: (min: number) => GcpCloudRunServiceBuilder;
|
|
3248
|
+
withMaxInstances: (max: number) => GcpCloudRunServiceBuilder;
|
|
3249
|
+
withConcurrency: (concurrency: number) => GcpCloudRunServiceBuilder;
|
|
3250
|
+
withServiceAccountEmail: (email: string) => GcpCloudRunServiceBuilder;
|
|
3251
|
+
withIngress: (ingress: string) => GcpCloudRunServiceBuilder;
|
|
3252
|
+
build: () => LiveSystemComponent;
|
|
3253
|
+
};
|
|
3254
|
+
type GcpCloudRunServiceConfig = {
|
|
3255
|
+
id: string;
|
|
3256
|
+
version: {
|
|
3257
|
+
major: number;
|
|
3258
|
+
minor: number;
|
|
3259
|
+
patch: number;
|
|
3260
|
+
};
|
|
3261
|
+
displayName: string;
|
|
3262
|
+
description?: string;
|
|
3263
|
+
image: string;
|
|
3264
|
+
port?: number;
|
|
3265
|
+
cpu?: string;
|
|
3266
|
+
memory?: string;
|
|
3267
|
+
region: string;
|
|
3268
|
+
minInstances?: number;
|
|
3269
|
+
maxInstances?: number;
|
|
3270
|
+
concurrency?: number;
|
|
3271
|
+
serviceAccountEmail?: string;
|
|
3272
|
+
ingress?: string;
|
|
3273
|
+
};
|
|
3274
|
+
declare namespace GcpCloudRunService {
|
|
3275
|
+
const getBuilder: () => GcpCloudRunServiceBuilder;
|
|
3276
|
+
/**
|
|
3277
|
+
* Satisfies a blueprint Workload component as a GCP Cloud Run Service.
|
|
3278
|
+
* Carries id, version, displayName, description, dependencies, links,
|
|
3279
|
+
* container image, port, cpu, and memory from the blueprint.
|
|
3280
|
+
* Region is GCP-specific and required — add it via withRegion().
|
|
3281
|
+
*
|
|
3282
|
+
* An optional dependency on a GcpSubnet blueprint component enables
|
|
3283
|
+
* Direct VPC egress (declare the dependency in the blueprint).
|
|
3284
|
+
*/
|
|
3285
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedGcpCloudRunServiceBuilder;
|
|
3286
|
+
const create: (config: GcpCloudRunServiceConfig) => LiveSystemComponent;
|
|
3287
|
+
}
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region src/live_system/component/network_and_compute/paas/oci_container_instance.d.ts
|
|
3290
|
+
type SatisfiedOciContainerInstanceBuilder = {
|
|
3291
|
+
withAvailabilityDomain: (domain: string) => SatisfiedOciContainerInstanceBuilder;
|
|
3292
|
+
withCompartmentId: (compartmentId: string) => SatisfiedOciContainerInstanceBuilder;
|
|
3293
|
+
withOcpus: (ocpus: number) => SatisfiedOciContainerInstanceBuilder;
|
|
3294
|
+
withMemoryInGbs: (memoryInGbs: number) => SatisfiedOciContainerInstanceBuilder;
|
|
3295
|
+
withShape: (shape: string) => SatisfiedOciContainerInstanceBuilder;
|
|
3296
|
+
withAssignPublicIp: (assignPublicIp: boolean) => SatisfiedOciContainerInstanceBuilder;
|
|
3297
|
+
withContainerRestartPolicy: (policy: string) => SatisfiedOciContainerInstanceBuilder;
|
|
3298
|
+
build: () => LiveSystemComponent;
|
|
3299
|
+
};
|
|
3300
|
+
type OciContainerInstanceBuilder = {
|
|
3301
|
+
withId: (id: string) => OciContainerInstanceBuilder;
|
|
3302
|
+
withVersion: (major: number, minor: number, patch: number) => OciContainerInstanceBuilder;
|
|
3303
|
+
withDisplayName: (displayName: string) => OciContainerInstanceBuilder;
|
|
3304
|
+
withDescription: (description: string) => OciContainerInstanceBuilder;
|
|
3305
|
+
withImageUrl: (imageUrl: string) => OciContainerInstanceBuilder;
|
|
3306
|
+
withAvailabilityDomain: (domain: string) => OciContainerInstanceBuilder;
|
|
3307
|
+
withCompartmentId: (compartmentId: string) => OciContainerInstanceBuilder;
|
|
3308
|
+
withOcpus: (ocpus: number) => OciContainerInstanceBuilder;
|
|
3309
|
+
withMemoryInGbs: (memoryInGbs: number) => OciContainerInstanceBuilder;
|
|
3310
|
+
withShape: (shape: string) => OciContainerInstanceBuilder;
|
|
3311
|
+
withPort: (port: number) => OciContainerInstanceBuilder;
|
|
3312
|
+
withAssignPublicIp: (assignPublicIp: boolean) => OciContainerInstanceBuilder;
|
|
3313
|
+
withContainerRestartPolicy: (policy: string) => OciContainerInstanceBuilder;
|
|
3314
|
+
build: () => LiveSystemComponent;
|
|
3315
|
+
};
|
|
3316
|
+
type OciContainerInstanceConfig = {
|
|
3317
|
+
id: string;
|
|
3318
|
+
version: {
|
|
3319
|
+
major: number;
|
|
3320
|
+
minor: number;
|
|
3321
|
+
patch: number;
|
|
3322
|
+
};
|
|
3323
|
+
displayName: string;
|
|
3324
|
+
description?: string;
|
|
3325
|
+
imageUrl: string;
|
|
3326
|
+
availabilityDomain: string;
|
|
3327
|
+
compartmentId: string;
|
|
3328
|
+
ocpus?: number;
|
|
3329
|
+
memoryInGbs?: number;
|
|
3330
|
+
shape?: string;
|
|
3331
|
+
port?: number;
|
|
3332
|
+
assignPublicIp?: boolean;
|
|
3333
|
+
containerRestartPolicy?: string;
|
|
3334
|
+
};
|
|
3335
|
+
declare namespace OciContainerInstance {
|
|
3336
|
+
const getBuilder: () => OciContainerInstanceBuilder;
|
|
3337
|
+
/**
|
|
3338
|
+
* Satisfies a blueprint Workload component as an OCI Container Instance.
|
|
3339
|
+
* Carries id, version, displayName, description, dependencies, and links
|
|
3340
|
+
* from the blueprint. The blueprint containerImage is re-mapped to the
|
|
3341
|
+
* agent's `imageUrl` key.
|
|
3342
|
+
*
|
|
3343
|
+
* availabilityDomain and compartmentId are OCI-specific and required.
|
|
3344
|
+
* The image URL is immutable after creation — drift triggers delete + recreate.
|
|
3345
|
+
*
|
|
3346
|
+
* Dependencies: must declare a dependency on an OciSubnet component in the
|
|
3347
|
+
* blueprint (add it via Subnet.withWorkloads() in fractal.ts).
|
|
3348
|
+
*/
|
|
3349
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedOciContainerInstanceBuilder;
|
|
3350
|
+
const create: (config: OciContainerInstanceConfig) => LiveSystemComponent;
|
|
3351
|
+
}
|
|
3352
|
+
//#endregion
|
|
2800
3353
|
//#region src/index.d.ts
|
|
2801
3354
|
declare const BoundedContext: typeof BoundedContext$1;
|
|
2802
3355
|
type BoundedContext = BoundedContext$1;
|
|
@@ -2825,4 +3378,4 @@ type Environment = Environment$1;
|
|
|
2825
3378
|
declare const LiveSystem: typeof LiveSystem$1;
|
|
2826
3379
|
type LiveSystem = LiveSystem$1;
|
|
2827
3380
|
//#endregion
|
|
2828
|
-
export { AwsEcsCluster, type AwsEcsClusterBuilder, type AwsEcsClusterConfig, AwsEcsService, type AwsEcsServiceBuilder, type AwsEcsServiceConfig, AwsEcsTaskDefinition, type AwsEcsTaskDefinitionBuilder, type AwsEcsTaskDefinitionConfig, AwsSecurityGroup, type AwsSecurityGroupBuilder, type AwsSecurityGroupConfig, AwsSubnet, type AwsSubnetBuilder, type AwsSubnetConfig, AwsVpc, type AwsVpcBuilder, type AwsVpcConfig, AzureNsg, type AzureNsgBuilder, type AzureNsgConfig, AzureSubnet, type AzureSubnetBuilder, type AzureSubnetConfig, AzureVm, type AzureVmBuilder, type AzureVmConfig, AzureVnet, type AzureVnetBuilder, type AzureVnetConfig, BoundedContext, ContainerPlatform, type ContainerPlatformBuilder, type
|
|
3381
|
+
export { AwsEcsCluster, type AwsEcsClusterBuilder, type AwsEcsClusterConfig, AwsEcsService, type AwsEcsServiceBuilder, type AwsEcsServiceConfig, AwsEcsTaskDefinition, type AwsEcsTaskDefinitionBuilder, type AwsEcsTaskDefinitionConfig, AwsEksCluster, type AwsEksClusterBuilder, type AwsEksClusterConfig, AwsSecurityGroup, type AwsSecurityGroupBuilder, type AwsSecurityGroupConfig, AwsSubnet, type AwsSubnetBuilder, type AwsSubnetConfig, AwsVpc, type AwsVpcBuilder, type AwsVpcConfig, AzureAksCluster, type AzureAksClusterBuilder, type AzureAksClusterConfig, AzureContainerApp, type AzureContainerAppBuilder, type AzureContainerAppConfig, AzureContainerAppsEnvironment, type AzureContainerAppsEnvironmentBuilder, type AzureContainerAppsEnvironmentConfig, AzureContainerInstance, type AzureContainerInstanceBuilder, type AzureContainerInstanceConfig, AzureNsg, type AzureNsgBuilder, type AzureNsgConfig, AzureSubnet, type AzureSubnetBuilder, type AzureSubnetConfig, AzureVm, type AzureVmBuilder, type AzureVmConfig, AzureVnet, type AzureVnetBuilder, type AzureVnetConfig, BoundedContext, ContainerPlatform, type ContainerPlatformBuilder, type ContainerPlatformComponent, type ContainerPlatformConfig, Ec2Instance, type Ec2InstanceBuilder, type Ec2InstanceConfig, Environment, Fractal, GcpCloudRunService, type GcpCloudRunServiceBuilder, type GcpCloudRunServiceConfig, GcpFirewall, type GcpFirewallBuilder, type GcpFirewallConfig, GcpGkeCluster, type GcpGkeClusterBuilder, type GcpGkeClusterConfig, GcpSubnet, type GcpSubnetBuilder, type GcpSubnetConfig, GcpVm, type GcpVmBuilder, type GcpVmConfig, GcpVpc, type GcpVpcBuilder, type GcpVpcConfig, HetznerFirewall, type HetznerFirewallBuilder, type HetznerFirewallConfig, HetznerNetwork, type HetznerNetworkBuilder, type HetznerNetworkConfig, HetznerServer, type HetznerServerBuilder, type HetznerServerConfig, HetznerSubnet, type HetznerSubnetBuilder, type HetznerSubnetConfig, InfrastructureDomain, type IngressRule, KebabCaseString, LiveSystem, OciContainerInstance, type OciContainerInstanceBuilder, type OciContainerInstanceConfig, OciInstance, type OciInstanceBuilder, type OciInstanceConfig, OciSecurityList, type OciSecurityListBuilder, type OciSecurityListConfig, OciSubnet, type OciSubnetBuilder, type OciSubnetConfig, OciVcn, type OciVcnBuilder, type OciVcnConfig, OwnerId, OwnerType, PascalCaseString, type SatisfiedAwsEcsClusterBuilder, type SatisfiedAwsEcsServiceBuilder, type SatisfiedAwsEcsTaskDefinitionBuilder, type SatisfiedAwsEksClusterBuilder, type SatisfiedAwsSecurityGroupBuilder, type SatisfiedAwsSubnetBuilder, type SatisfiedAwsVpcBuilder, type SatisfiedAzureAksClusterBuilder, type SatisfiedAzureContainerAppBuilder, type SatisfiedAzureContainerAppsEnvironmentBuilder, type SatisfiedAzureContainerInstanceBuilder, type SatisfiedAzureNsgBuilder, type SatisfiedAzureSubnetBuilder, type SatisfiedAzureVmBuilder, type SatisfiedAzureVnetBuilder, type SatisfiedEc2Builder, type SatisfiedGcpCloudRunServiceBuilder, type SatisfiedGcpFirewallBuilder, type SatisfiedGcpGkeClusterBuilder, type SatisfiedGcpSubnetBuilder, type SatisfiedGcpVmBuilder, type SatisfiedGcpVpcBuilder, type SatisfiedHetznerFirewallBuilder, type SatisfiedHetznerNetworkBuilder, type SatisfiedHetznerServerBuilder, type SatisfiedHetznerSubnetBuilder, type SatisfiedOciContainerInstanceBuilder, type SatisfiedOciInstanceBuilder, type SatisfiedOciSecurityListBuilder, type SatisfiedOciSubnetBuilder, type SatisfiedOciVcnBuilder, SecurityGroup, type SecurityGroupBuilder, type SecurityGroupComponent, type SecurityGroupConfig, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Subnet, type SubnetBuilder, type SubnetComponent, type SubnetConfig, type SubnetResult, Version, VirtualMachine, type VirtualMachineBuilder, type VirtualMachineComponent, type VirtualMachineConfig, VirtualNetwork, type VirtualNetworkBuilder, type VirtualNetworkComponent, type VirtualNetworkConfig, type VirtualNetworkResult, type VmPortLink, Workload, type WorkloadBuilder, type WorkloadComponent, type WorkloadConfig, type WorkloadPortLink };
|