@ts-cloud/core 0.7.55 → 0.7.57

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 (44) hide show
  1. package/dist/aws/cloudformation.d.ts +0 -4
  2. package/dist/aws/cloudfront.d.ts +0 -4
  3. package/dist/aws/credentials.d.ts +0 -10
  4. package/dist/aws/index.d.ts +7 -7
  5. package/dist/aws/s3.d.ts +2 -2
  6. package/dist/backup/index.d.ts +3 -3
  7. package/dist/cloudformation/builder.d.ts +1 -1
  8. package/dist/cloudformation/builders/api-gateway.d.ts +2 -0
  9. package/dist/cloudformation/builders/api-gateway.test.d.ts +1 -0
  10. package/dist/cloudformation/builders/compute-fargate.test.d.ts +1 -0
  11. package/dist/cloudformation/builders/compute.d.ts +31 -1
  12. package/dist/cloudformation/index.d.ts +2 -2
  13. package/dist/compliance/index.d.ts +5 -5
  14. package/dist/deployment/index.d.ts +7 -7
  15. package/dist/errors/index.d.ts +2 -2
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +3839 -4039
  18. package/dist/modules/ai.d.ts +1 -1
  19. package/dist/modules/auth.d.ts +1 -1
  20. package/dist/modules/cdn.d.ts +1 -1
  21. package/dist/modules/deployment.d.ts +1 -1
  22. package/dist/modules/monitoring.d.ts +1 -1
  23. package/dist/modules/phone.d.ts +0 -5
  24. package/dist/modules/secrets.d.ts +1 -1
  25. package/dist/modules/sms.d.ts +2 -2
  26. package/dist/modules/storage.d.ts +1 -2
  27. package/dist/modules/workflow.d.ts +1 -1
  28. package/dist/presets/fullstack-app.d.ts +17 -0
  29. package/dist/presets/fullstack-app.test.d.ts +1 -0
  30. package/dist/presets/index.d.ts +1 -1
  31. package/dist/preview/index.d.ts +4 -4
  32. package/dist/runtime/adapter.ts +22 -13
  33. package/dist/serverless/app-image.d.ts +0 -12
  34. package/dist/serverless/composer.d.ts +1 -1
  35. package/dist/serverless/runtimes/index.d.ts +0 -9
  36. package/dist/serverless/zip.d.ts +0 -9
  37. package/dist/serverless-php/layer-build.d.ts +1 -13
  38. package/dist/serverless-php/package-php.d.ts +1 -1
  39. package/dist/serverless-php/runtime-assets.d.ts +0 -7
  40. package/dist/types.d.ts +21 -0
  41. package/dist/utils/cache.d.ts +0 -4
  42. package/dist/utils/hash.d.ts +0 -4
  43. package/dist/validators/quotas.d.ts +0 -4
  44. package/package.json +2 -2
@@ -1,7 +1,3 @@
1
- /**
2
- * AWS CloudFormation API Client
3
- * Direct API calls without AWS SDK dependency
4
- */
5
1
  export interface CloudFormationStack {
6
2
  StackName: string;
7
3
  StackId?: string;
@@ -1,7 +1,3 @@
1
- /**
2
- * AWS CloudFront API Client
3
- * Direct API calls for CloudFront invalidations without AWS SDK
4
- */
5
1
  export interface InvalidationOptions {
6
2
  distributionId: string;
7
3
  paths: string[];
@@ -1,13 +1,3 @@
1
- /**
2
- * AWS Credential Providers
3
- *
4
- * Automatically load AWS credentials from various sources:
5
- * - Environment variables
6
- * - Shared credentials file (~/.aws/credentials)
7
- * - EC2 instance metadata
8
- * - ECS task metadata
9
- * - Web identity token (for Kubernetes/IRSA)
10
- */
11
1
  export interface AWSCredentials {
12
2
  accessKeyId: string;
13
3
  secretAccessKey: string;
@@ -1,10 +1,10 @@
1
1
  export { signRequest, signRequestAsync, makeAWSRequest, makeAWSRequestAsync, makeAWSRequestOnce, createPresignedUrl, createPresignedUrlAsync, detectServiceRegion, clearSigningKeyCache, getSigningKeyCacheSize, parseXMLResponse, parseJSONResponse, isNodeCryptoAvailable, isWebCryptoAvailable, } from './signature';
2
- export type { SignatureOptions, SignedRequest, PresignedUrlOptions, RetryOptions, } from './signature';
2
+ export type { SignatureOptions, SignedRequest, PresignedUrlOptions, RetryOptions } from './signature';
3
3
  export { fromEnvironment, fromSharedCredentials, fromEC2Metadata, fromECSMetadata, fromWebIdentity, getCredentials, createCredentialProvider, resolveCredentials, resolveRegion, getAccountId, } from './credentials';
4
- export type { AWSCredentials, AWSProfile, CredentialProviderOptions, } from './credentials';
5
- export { CloudFormationClient, } from './cloudformation';
6
- export type { CloudFormationStack, CreateStackOptions, UpdateStackOptions, StackEvent, } from './cloudformation';
7
- export { S3Client, S3Error, createS3Client, } from './s3';
4
+ export type { AWSCredentials, AWSProfile, CredentialProviderOptions } from './credentials';
5
+ export { CloudFormationClient } from './cloudformation';
6
+ export type { CloudFormationStack, CreateStackOptions, UpdateStackOptions, StackEvent } from './cloudformation';
7
+ export { S3Client, S3Error, createS3Client } from './s3';
8
8
  export type { S3ClientOptions, GetObjectOptions, PutObjectOptions, ListObjectsOptions, ListObjectsResult, S3Object, HeadObjectResult, CopyObjectOptions, MultipartUploadOptions, MultipartProgress, } from './s3';
9
- export { CloudFrontClient, } from './cloudfront';
10
- export type { InvalidationOptions, } from './cloudfront';
9
+ export { CloudFrontClient } from './cloudfront';
10
+ export type { InvalidationOptions } from './cloudfront';
package/dist/aws/s3.d.ts CHANGED
@@ -7,8 +7,8 @@
7
7
  * - Multipart uploads for large files
8
8
  * - Automatic content type detection
9
9
  */
10
- import { type RetryOptions } from './signature';
11
- import { type AWSCredentials, type CredentialProviderOptions } from './credentials';
10
+ import type { AWSCredentials, CredentialProviderOptions } from './credentials';
11
+ import type { RetryOptions } from './signature';
12
12
  export interface S3ClientOptions {
13
13
  /** AWS region (default: 'us-east-1') */
14
14
  region?: string;
@@ -2,7 +2,7 @@
2
2
  * Backup & Disaster Recovery
3
3
  * Automated backup schedules and disaster recovery planning
4
4
  */
5
- export { BackupManager, backupManager, } from './manager';
6
- export type { BackupPlan, BackupResource, BackupLifecycle, BackupVault, RestoreJob, ContinuousBackup, } from './manager';
7
- export { DisasterRecoveryManager, drManager, } from './disaster-recovery';
5
+ export { BackupManager, backupManager } from './manager';
6
+ export type { BackupPlan, BackupResource, BackupLifecycle, BackupVault, RestoreJob, ContinuousBackup } from './manager';
7
+ export { DisasterRecoveryManager, drManager } from './disaster-recovery';
8
8
  export type { DisasterRecoveryPlan, DRResource, RecoveryRunbook, RecoveryStep, FailoverTest, FailoverTestResult, } from './disaster-recovery';
@@ -1,5 +1,5 @@
1
1
  import type { CloudConfig } from '../types';
2
- import type { CloudFormationTemplate, CloudFormationResource } from './types';
2
+ import type { CloudFormationResource, CloudFormationTemplate } from './types';
3
3
  /**
4
4
  * CloudFormation Template Builder
5
5
  * Converts-cloudConfig to CloudFormation templates
@@ -4,6 +4,8 @@ export interface ApiGatewayConfig {
4
4
  customDomain?: {
5
5
  domain: string;
6
6
  certificateArn: string;
7
+ /** Route53 creates the alias in-stack; external returns DNS targets as outputs. */
8
+ dnsProvider?: 'route53' | 'external';
7
9
  };
8
10
  cors?: {
9
11
  allowOrigins: string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -38,12 +38,30 @@ export interface ComputeConfig {
38
38
  portMappings?: Array<{
39
39
  containerPort: number;
40
40
  }>;
41
- environment?: Record<string, string>;
41
+ environment?: Record<string, any> | Array<{
42
+ name?: string;
43
+ value?: any;
44
+ Name?: string;
45
+ Value?: any;
46
+ }>;
47
+ secrets?: Array<{
48
+ name?: string;
49
+ valueFrom?: any;
50
+ Name?: string;
51
+ ValueFrom?: any;
52
+ }>;
42
53
  healthCheck?: any;
43
54
  }>;
44
55
  };
45
56
  service: {
46
57
  desiredCount: number;
58
+ healthCheck?: {
59
+ path?: string;
60
+ interval?: number;
61
+ timeout?: number;
62
+ healthyThreshold?: number;
63
+ unhealthyThreshold?: number;
64
+ };
47
65
  serviceDiscovery?: {
48
66
  enabled: boolean;
49
67
  namespace?: string;
@@ -54,6 +72,18 @@ export interface ComputeConfig {
54
72
  targetCPU?: number;
55
73
  };
56
74
  };
75
+ loadBalancer?: {
76
+ type?: 'application';
77
+ customDomain?: {
78
+ domain?: string;
79
+ certificateArn?: string;
80
+ };
81
+ originVerifyHeader?: {
82
+ name: string;
83
+ value: string;
84
+ };
85
+ deletionProtection?: boolean;
86
+ };
57
87
  };
58
88
  services?: Array<{
59
89
  name: string;
@@ -1,6 +1,6 @@
1
- export { CloudFormationBuilder, buildCloudFormationTemplate, } from './builder';
1
+ export { CloudFormationBuilder, buildCloudFormationTemplate } from './builder';
2
2
  export type { CloudFormationTemplate, CloudFormationResource, CloudFormationParameter, CloudFormationOutput, CloudFormationCondition, CloudFormationIntrinsicFunction, } from './types';
3
- export { Fn, Arn, AWS_PSEUDO_PARAMETERS, } from './types';
3
+ export { Fn, Arn, AWS_PSEUDO_PARAMETERS } from './types';
4
4
  export { addNetworkResources } from './builders/network';
5
5
  export { addStorageResources } from './builders/storage';
6
6
  export { addComputeResources } from './builders/compute';
@@ -2,11 +2,11 @@
2
2
  * Compliance & Governance
3
3
  * AWS Config, CloudTrail, GuardDuty, and Security Hub integrations
4
4
  */
5
- export { AWSConfigManager, awsConfigManager, } from './aws-config';
6
- export type { ConfigRule, ConfigScope, ConfigRecorder, RecordingGroup, DeliveryChannel, } from './aws-config';
7
- export { CloudTrailManager, cloudTrailManager, } from './cloudtrail';
5
+ export { AWSConfigManager, awsConfigManager } from './aws-config';
6
+ export type { ConfigRule, ConfigScope, ConfigRecorder, RecordingGroup, DeliveryChannel } from './aws-config';
7
+ export { CloudTrailManager, cloudTrailManager } from './cloudtrail';
8
8
  export type { CloudTrailConfig, EventSelector, DataResource, InsightSelector, AdvancedEventSelector, FieldSelector, } from './cloudtrail';
9
- export { GuardDutyManager, guardDutyManager, } from './guardduty';
9
+ export { GuardDutyManager, guardDutyManager } from './guardduty';
10
10
  export type { GuardDutyDetector, DataSourceConfigurations, DetectorFeature, ThreatIntelSet, IPSet, FindingFilter, FindingCriteria, } from './guardduty';
11
- export { SecurityHubManager, securityHubManager, } from './security-hub';
11
+ export { SecurityHubManager, securityHubManager } from './security-hub';
12
12
  export type { SecurityHubConfig, SecurityStandard, AutomationRule, AutomationAction, AutomationCriteria, StringFilter, NumberFilter, MapFilter, } from './security-hub';
@@ -2,11 +2,11 @@
2
2
  * Advanced Deployment Strategies
3
3
  * Blue/green, canary, and A/B testing implementations
4
4
  */
5
- export { BlueGreenManager, blueGreenManager, } from './blue-green';
6
- export type { BlueGreenDeployment, Environment, RoutingConfig, HealthCheckConfig, DeploymentResult, } from './blue-green';
7
- export { CanaryManager, canaryManager, } from './canary';
5
+ export { BlueGreenManager, blueGreenManager } from './blue-green';
6
+ export type { BlueGreenDeployment, Environment, RoutingConfig, HealthCheckConfig, DeploymentResult } from './blue-green';
7
+ export { CanaryManager, canaryManager } from './canary';
8
8
  export type { CanaryDeployment, DeploymentVersion, CanaryStage, AlarmThresholds, CustomMetric, CanaryMetrics, CanaryResult, } from './canary';
9
- export { ABTestManager, abTestManager, } from './ab-testing';
10
- export type { ABTest, ABVariant, RoutingStrategy, ABMetrics, VariantMetrics, ABTestResult, } from './ab-testing';
11
- export { ProgressiveDeploymentManager, progressiveDeploymentManager, } from './progressive';
12
- export type { ProgressiveRollout, FeatureFlag, DeploymentGate, } from './progressive';
9
+ export { ABTestManager, abTestManager } from './ab-testing';
10
+ export type { ABTest, ABVariant, RoutingStrategy, ABMetrics, VariantMetrics, ABTestResult } from './ab-testing';
11
+ export { ProgressiveDeploymentManager, progressiveDeploymentManager } from './progressive';
12
+ export type { ProgressiveRollout, FeatureFlag, DeploymentGate } from './progressive';
@@ -86,7 +86,7 @@ export declare const ErrorCodes: {
86
86
  };
87
87
  readonly INSUFFICIENT_PERMISSIONS: {
88
88
  readonly message: 'Insufficient IAM permissions';
89
- readonly solution: 'Ensure your IAM user/role has the necessary permissions for CloudFormation and the resources you\'re deploying';
89
+ readonly solution: "Ensure your IAM user/role has the necessary permissions for CloudFormation and the resources you're deploying";
90
90
  };
91
91
  readonly RESOURCE_LIMIT_EXCEEDED: {
92
92
  readonly message: 'AWS service limit exceeded';
@@ -110,7 +110,7 @@ export declare const ErrorCodes: {
110
110
  };
111
111
  readonly VPC_CIDR_CONFLICT: {
112
112
  readonly message: 'VPC CIDR block conflicts with existing VPC';
113
- readonly solution: 'Use a different CIDR block that doesn\'t overlap with existing VPCs';
113
+ readonly solution: "Use a different CIDR block that doesn't overlap with existing VPCs";
114
114
  };
115
115
  readonly SUBNET_CIDR_INVALID: {
116
116
  readonly message: 'Subnet CIDR block is invalid or outside VPC range';
package/dist/index.d.ts CHANGED
@@ -41,7 +41,7 @@ export * from './aws/cloudfront';
41
41
  export * from './errors';
42
42
  export * from './validators/credentials';
43
43
  export * from './validators/quotas';
44
- export { FileCache, TemplateCache, templateCache, type CacheOptions, type CacheEntry, } from './utils/cache';
44
+ export { FileCache, TemplateCache, templateCache, type CacheOptions, type CacheEntry } from './utils/cache';
45
45
  export * from './utils/hash';
46
46
  export * from './utils/parallel';
47
47
  export * from './utils/diff';