@ts-cloud/core 0.2.26 → 0.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.
@@ -13,6 +13,10 @@ export interface ComputeStackOutputs {
13
13
  appInstanceId?: string;
14
14
  appPublicIp?: string;
15
15
  sshUser?: string;
16
+ /** Fleet: private IP of the dedicated services box (DB/cache/search). */
17
+ servicesPrivateIp?: string;
18
+ /** Fleet: public IP of the load balancer fronting the app servers. */
19
+ loadBalancerIp?: string;
16
20
  }
17
21
  export interface RemoteDeployInstanceResult {
18
22
  instanceId: string;
@@ -65,6 +69,15 @@ export interface CloudDriver {
65
69
  readonly usesCloudFormation: boolean;
66
70
  /** Provision compute infrastructure (Hetzner). AWS uses InfrastructureGenerator + CFN. */
67
71
  provisionComputeInfrastructure?(options: ProvisionComputeOptions): Promise<ComputeStackOutputs>;
72
+ /**
73
+ * Tear down the lightweight single-server compute (instance + security
74
+ * group/firewall + local state) provisioned by
75
+ * {@link provisionComputeInfrastructure}. Returns a human-readable summary of
76
+ * what was destroyed. Not for CloudFormation-managed stacks.
77
+ */
78
+ destroyCompute?(options: ProvisionComputeOptions): Promise<{
79
+ destroyed: string[];
80
+ }>;
68
81
  /** Read outputs needed for deploy (stack outputs, state file, or live API) */
69
82
  getComputeOutputs(options: ProvisionComputeOptions): Promise<ComputeStackOutputs>;
70
83
  /** Upload a release tarball to provider-specific staging storage */
@@ -81,8 +94,13 @@ export interface DeploySiteReleaseOptions {
81
94
  site: SiteConfig;
82
95
  slug: string;
83
96
  sha: string;
84
- runtime: 'bun' | 'node' | 'deno';
85
- localTarballPath: string;
97
+ runtime: 'bun' | 'node' | 'deno' | 'php';
98
+ /**
99
+ * Local release tarball to ship. Required for tarball deploys (bun/node/deno
100
+ * apps and server-static sites); omitted for PHP/Laravel sites, which clone
101
+ * from git on the box instead.
102
+ */
103
+ localTarballPath?: string;
86
104
  }
87
105
  export interface DeploySiteReleaseResult {
88
106
  success: boolean;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './cloudformation/types';
16
16
  export * from './presets/static-site';
17
17
  export * from './presets/nodejs-server';
18
18
  export * from './presets/nodejs-serverless';
19
+ export * from './presets/serverless-node';
19
20
  export * from './presets/fullstack-app';
20
21
  export * from './presets/api-backend';
21
22
  export * from './presets/wordpress';
@@ -25,6 +26,9 @@ export * from './presets/realtime-app';
25
26
  export * from './presets/data-pipeline';
26
27
  export * from './presets/ml-api';
27
28
  export * from './presets/traditional-web-app';
29
+ export * from './presets/laravel';
30
+ export * from './presets/serverless-laravel';
31
+ export * from './presets/dashboard';
28
32
  export * from './presets/extend';
29
33
  export * from './aws/signature';
30
34
  export * from './aws/credentials';
@@ -81,6 +85,8 @@ export * from './email';
81
85
  export * from './phone';
82
86
  export * from './sms';
83
87
  export * from './queue';
88
+ export * from './serverless';
89
+ export * from './serverless-php';
84
90
  export * from './static-site';
85
91
  export { StorageAdvancedManager, storageAdvancedManager, type LifecyclePolicy as S3LifecyclePolicy, type VersioningConfig, type ReplicationRule as S3ReplicationRule, type IntelligentTieringConfig, type ObjectLockConfig, type TransferAccelerationConfig, type AccessPoint, type GlacierArchiveConfig, type InventoryConfig, type BatchOperation, type EventNotification, } from './s3';
86
92
  export * from './health-checks';