@ts-cloud/core 0.7.12 → 0.7.14
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/dist/cloudformation/types.d.ts +26 -26
- package/dist/email/advanced/rules.d.ts +24 -24
- package/dist/email/advanced/templates.d.ts +4 -4
- package/dist/errors/index.d.ts +52 -48
- package/dist/intrinsic-functions.d.ts +8 -8
- package/dist/modules/ai.d.ts +32 -32
- package/dist/modules/api.d.ts +8 -8
- package/dist/modules/auth.d.ts +6 -6
- package/dist/modules/cache.d.ts +16 -16
- package/dist/modules/cdn.d.ts +6 -6
- package/dist/modules/compute.d.ts +56 -56
- package/dist/modules/database.d.ts +13 -13
- package/dist/modules/deployment.d.ts +15 -15
- package/dist/modules/monitoring.d.ts +40 -39
- package/dist/modules/permissions.d.ts +35 -35
- package/dist/modules/queue.d.ts +26 -26
- package/dist/modules/redirects.d.ts +2 -2
- package/dist/modules/search.d.ts +2 -2
- package/dist/modules/security.d.ts +16 -16
- package/dist/modules/storage.d.ts +15 -15
- package/dist/multi-account/config.d.ts +28 -28
- package/dist/serverless/runtime-resolve.d.ts +1 -1
- package/dist/sms/advanced/mms.d.ts +3 -3
- package/dist/types.d.ts +4 -0
- package/package.json +3 -3
|
@@ -89,49 +89,49 @@ export declare const Fn: {
|
|
|
89
89
|
Ref: string;
|
|
90
90
|
};
|
|
91
91
|
getAtt: (logicalId: string, attribute: string) => {
|
|
92
|
-
|
|
92
|
+
'Fn::GetAtt': [string, string];
|
|
93
93
|
};
|
|
94
94
|
join: (delimiter: string, values: any[]) => {
|
|
95
|
-
|
|
95
|
+
'Fn::Join': [string, any[]];
|
|
96
96
|
};
|
|
97
97
|
sub: (template: string, variables?: Record<string, any>) => {
|
|
98
|
-
|
|
98
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
99
99
|
};
|
|
100
100
|
select: (index: number, list: any[] | CloudFormationIntrinsicFunction) => {
|
|
101
|
-
|
|
101
|
+
'Fn::Select': [number, any[] | CloudFormationIntrinsicFunction];
|
|
102
102
|
};
|
|
103
103
|
split: (delimiter: string, source: string) => {
|
|
104
|
-
|
|
104
|
+
'Fn::Split': [string, string];
|
|
105
105
|
};
|
|
106
106
|
getAZs: (region?: string) => {
|
|
107
|
-
|
|
107
|
+
'Fn::GetAZs': string;
|
|
108
108
|
};
|
|
109
109
|
importValue: (name: any) => {
|
|
110
|
-
|
|
110
|
+
'Fn::ImportValue': any;
|
|
111
111
|
};
|
|
112
112
|
findInMap: (mapName: string, topLevelKey: any, secondLevelKey: any) => {
|
|
113
|
-
|
|
113
|
+
'Fn::FindInMap': [string, any, any];
|
|
114
114
|
};
|
|
115
115
|
base64: (value: any) => {
|
|
116
|
-
|
|
116
|
+
'Fn::Base64': any;
|
|
117
117
|
};
|
|
118
118
|
cidr: (ipBlock: any, count: number, cidrBits: number) => {
|
|
119
|
-
|
|
119
|
+
'Fn::Cidr': [any, number, number];
|
|
120
120
|
};
|
|
121
121
|
equals: (value1: any, value2: any) => {
|
|
122
|
-
|
|
122
|
+
'Fn::Equals': [any, any];
|
|
123
123
|
};
|
|
124
124
|
if: (conditionName: string, trueValue: any, falseValue: any) => {
|
|
125
|
-
|
|
125
|
+
'Fn::If': [string, any, any];
|
|
126
126
|
};
|
|
127
127
|
not: (condition: any) => {
|
|
128
|
-
|
|
128
|
+
'Fn::Not': [any];
|
|
129
129
|
};
|
|
130
130
|
and: (...conditions: any[]) => {
|
|
131
|
-
|
|
131
|
+
'Fn::And': any[];
|
|
132
132
|
};
|
|
133
133
|
or: (...conditions: any[]) => {
|
|
134
|
-
|
|
134
|
+
'Fn::Or': any[];
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
137
|
/**
|
|
@@ -139,34 +139,34 @@ export declare const Fn: {
|
|
|
139
139
|
*/
|
|
140
140
|
export declare const Arn: {
|
|
141
141
|
s3Bucket: (bucketName: any) => {
|
|
142
|
-
|
|
142
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
143
143
|
};
|
|
144
144
|
s3Object: (bucketName: any, key?: string) => {
|
|
145
|
-
|
|
145
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
146
146
|
};
|
|
147
147
|
lambda: (functionName: string, region?: string, account?: string) => {
|
|
148
|
-
|
|
148
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
149
149
|
};
|
|
150
150
|
dynamodb: (tableName: string) => {
|
|
151
|
-
|
|
151
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
152
152
|
};
|
|
153
153
|
sqs: (queueName: string) => {
|
|
154
|
-
|
|
154
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
155
155
|
};
|
|
156
156
|
sns: (topicName: string) => {
|
|
157
|
-
|
|
157
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
158
158
|
};
|
|
159
159
|
kinesis: (streamName: string) => {
|
|
160
|
-
|
|
160
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
161
161
|
};
|
|
162
|
-
iam: (resourceType:
|
|
163
|
-
|
|
162
|
+
iam: (resourceType: 'role' | 'policy' | 'user' | 'group', name: string) => {
|
|
163
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
164
164
|
};
|
|
165
165
|
secretsManager: (secretName: string) => {
|
|
166
|
-
|
|
166
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
167
167
|
};
|
|
168
168
|
cloudwatch: (logGroup: string) => {
|
|
169
|
-
|
|
169
|
+
'Fn::Sub': string | [string, Record<string, any>];
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
/**
|
|
@@ -71,58 +71,58 @@ export declare class EmailRules {
|
|
|
71
71
|
*/
|
|
72
72
|
static readonly RuleTemplates: {
|
|
73
73
|
readonly spamFilter: {
|
|
74
|
-
readonly name:
|
|
74
|
+
readonly name: 'Spam Filter';
|
|
75
75
|
readonly conditions: readonly [{
|
|
76
|
-
readonly field:
|
|
77
|
-
readonly operator:
|
|
78
|
-
readonly value:
|
|
76
|
+
readonly field: 'subject';
|
|
77
|
+
readonly operator: 'regex';
|
|
78
|
+
readonly value: '(viagra|lottery|winner|prince|inheritance)';
|
|
79
79
|
readonly caseSensitive: false;
|
|
80
80
|
}];
|
|
81
|
-
readonly conditionOperator:
|
|
81
|
+
readonly conditionOperator: 'or';
|
|
82
82
|
readonly actions: readonly [{
|
|
83
|
-
readonly type:
|
|
83
|
+
readonly type: 'move';
|
|
84
84
|
readonly params: {
|
|
85
|
-
readonly folder:
|
|
85
|
+
readonly folder: 'spam';
|
|
86
86
|
};
|
|
87
87
|
}, {
|
|
88
|
-
readonly type:
|
|
88
|
+
readonly type: 'mark-read';
|
|
89
89
|
readonly params: {};
|
|
90
90
|
}];
|
|
91
91
|
};
|
|
92
92
|
readonly autoLabel: {
|
|
93
|
-
readonly name:
|
|
93
|
+
readonly name: 'Auto Label Invoices';
|
|
94
94
|
readonly conditions: readonly [{
|
|
95
|
-
readonly field:
|
|
96
|
-
readonly operator:
|
|
97
|
-
readonly value:
|
|
95
|
+
readonly field: 'subject';
|
|
96
|
+
readonly operator: 'contains';
|
|
97
|
+
readonly value: 'invoice';
|
|
98
98
|
readonly caseSensitive: false;
|
|
99
99
|
}];
|
|
100
|
-
readonly conditionOperator:
|
|
100
|
+
readonly conditionOperator: 'and';
|
|
101
101
|
readonly actions: readonly [{
|
|
102
|
-
readonly type:
|
|
102
|
+
readonly type: 'label';
|
|
103
103
|
readonly params: {
|
|
104
|
-
readonly label:
|
|
104
|
+
readonly label: 'invoices';
|
|
105
105
|
};
|
|
106
106
|
}];
|
|
107
107
|
};
|
|
108
108
|
readonly forwardUrgent: {
|
|
109
|
-
readonly name:
|
|
109
|
+
readonly name: 'Forward Urgent';
|
|
110
110
|
readonly conditions: readonly [{
|
|
111
|
-
readonly field:
|
|
112
|
-
readonly operator:
|
|
113
|
-
readonly value:
|
|
111
|
+
readonly field: 'subject';
|
|
112
|
+
readonly operator: 'contains';
|
|
113
|
+
readonly value: 'urgent';
|
|
114
114
|
readonly caseSensitive: false;
|
|
115
115
|
}];
|
|
116
|
-
readonly conditionOperator:
|
|
116
|
+
readonly conditionOperator: 'and';
|
|
117
117
|
readonly actions: readonly [{
|
|
118
|
-
readonly type:
|
|
118
|
+
readonly type: 'forward';
|
|
119
119
|
readonly params: {
|
|
120
|
-
readonly to:
|
|
120
|
+
readonly to: 'admin@example.com';
|
|
121
121
|
};
|
|
122
122
|
}, {
|
|
123
|
-
readonly type:
|
|
123
|
+
readonly type: 'label';
|
|
124
124
|
readonly params: {
|
|
125
|
-
readonly label:
|
|
125
|
+
readonly label: 'urgent';
|
|
126
126
|
};
|
|
127
127
|
}];
|
|
128
128
|
};
|
|
@@ -38,7 +38,7 @@ export declare class EmailTemplates {
|
|
|
38
38
|
subject: string;
|
|
39
39
|
html: string;
|
|
40
40
|
text: string;
|
|
41
|
-
variables: readonly [
|
|
41
|
+
variables: readonly ['appName', 'userName', 'verificationUrl'];
|
|
42
42
|
category: string;
|
|
43
43
|
};
|
|
44
44
|
passwordReset: {
|
|
@@ -47,7 +47,7 @@ export declare class EmailTemplates {
|
|
|
47
47
|
subject: string;
|
|
48
48
|
html: string;
|
|
49
49
|
text: string;
|
|
50
|
-
variables: readonly [
|
|
50
|
+
variables: readonly ['appName', 'userName', 'resetUrl', 'expiresIn'];
|
|
51
51
|
category: string;
|
|
52
52
|
};
|
|
53
53
|
notification: {
|
|
@@ -56,7 +56,7 @@ export declare class EmailTemplates {
|
|
|
56
56
|
subject: string;
|
|
57
57
|
html: string;
|
|
58
58
|
text: string;
|
|
59
|
-
variables: readonly [
|
|
59
|
+
variables: readonly ['subject', 'title', 'message', 'actionUrl', 'actionText', 'appName'];
|
|
60
60
|
category: string;
|
|
61
61
|
};
|
|
62
62
|
invoice: {
|
|
@@ -64,7 +64,7 @@ export declare class EmailTemplates {
|
|
|
64
64
|
name: string;
|
|
65
65
|
subject: string;
|
|
66
66
|
html: string;
|
|
67
|
-
variables: readonly [
|
|
67
|
+
variables: readonly ['invoiceNumber', 'customerName', 'period', 'items', 'total', 'paymentUrl', 'appName'];
|
|
68
68
|
category: string;
|
|
69
69
|
};
|
|
70
70
|
};
|
package/dist/errors/index.d.ts
CHANGED
|
@@ -45,100 +45,104 @@ export declare class AWSAPIError extends CloudError {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const ErrorCodes: {
|
|
47
47
|
readonly NO_CREDENTIALS: {
|
|
48
|
-
readonly message:
|
|
49
|
-
readonly solution:
|
|
48
|
+
readonly message: 'AWS credentials not found';
|
|
49
|
+
readonly solution: `Configure AWS credentials using one of these methods:
|
|
50
|
+
1. Set environment variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
|
|
51
|
+
2. Create ~/.aws/credentials file with your credentials
|
|
52
|
+
3. Use an IAM role (for EC2 instances)
|
|
53
|
+
4. Run 'aws configure' if you have AWS CLI installed`;
|
|
50
54
|
};
|
|
51
55
|
readonly INVALID_CREDENTIALS: {
|
|
52
|
-
readonly message:
|
|
53
|
-
readonly solution:
|
|
56
|
+
readonly message: 'AWS credentials are invalid';
|
|
57
|
+
readonly solution: 'Verify your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are correct. Run: aws sts get-caller-identity';
|
|
54
58
|
};
|
|
55
59
|
readonly EXPIRED_CREDENTIALS: {
|
|
56
|
-
readonly message:
|
|
57
|
-
readonly solution:
|
|
60
|
+
readonly message: 'AWS credentials have expired';
|
|
61
|
+
readonly solution: 'Refresh your AWS credentials. If using temporary credentials, generate new ones.';
|
|
58
62
|
};
|
|
59
63
|
readonly MISSING_CONFIG: {
|
|
60
|
-
readonly message:
|
|
61
|
-
readonly solution:
|
|
64
|
+
readonly message: 'Configuration file not found';
|
|
65
|
+
readonly solution: 'Create a cloud.config.ts file in your project root. Use: cloud init';
|
|
62
66
|
};
|
|
63
67
|
readonly INVALID_CONFIG: {
|
|
64
|
-
readonly message:
|
|
65
|
-
readonly solution:
|
|
68
|
+
readonly message: 'Configuration is invalid';
|
|
69
|
+
readonly solution: 'Check your cloud.config.ts file for syntax errors. Use: cloud config:validate';
|
|
66
70
|
};
|
|
67
71
|
readonly MISSING_REQUIRED_FIELD: {
|
|
68
|
-
readonly message:
|
|
69
|
-
readonly solution:
|
|
72
|
+
readonly message: 'Required configuration field is missing';
|
|
73
|
+
readonly solution: 'Add the missing field to your cloud.config.ts file';
|
|
70
74
|
};
|
|
71
75
|
readonly INVALID_REGION: {
|
|
72
|
-
readonly message:
|
|
73
|
-
readonly solution:
|
|
76
|
+
readonly message: 'AWS region is invalid';
|
|
77
|
+
readonly solution: 'Use a valid AWS region like us-east-1, us-west-2, eu-west-1, etc.';
|
|
74
78
|
};
|
|
75
79
|
readonly STACK_ALREADY_EXISTS: {
|
|
76
|
-
readonly message:
|
|
77
|
-
readonly solution:
|
|
80
|
+
readonly message: 'CloudFormation stack already exists';
|
|
81
|
+
readonly solution: 'Use: cloud deploy --update to update the existing stack, or cloud destroy to delete it first';
|
|
78
82
|
};
|
|
79
83
|
readonly STACK_IN_PROGRESS: {
|
|
80
|
-
readonly message:
|
|
81
|
-
readonly solution:
|
|
84
|
+
readonly message: 'Stack operation already in progress';
|
|
85
|
+
readonly solution: 'Wait for the current operation to complete, or cancel it in the AWS Console';
|
|
82
86
|
};
|
|
83
87
|
readonly INSUFFICIENT_PERMISSIONS: {
|
|
84
|
-
readonly message:
|
|
85
|
-
readonly solution:
|
|
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';
|
|
86
90
|
};
|
|
87
91
|
readonly RESOURCE_LIMIT_EXCEEDED: {
|
|
88
|
-
readonly message:
|
|
89
|
-
readonly solution:
|
|
92
|
+
readonly message: 'AWS service limit exceeded';
|
|
93
|
+
readonly solution: 'Request a service limit increase in the AWS Console, or clean up unused resources';
|
|
90
94
|
};
|
|
91
95
|
readonly ROLLBACK_COMPLETE: {
|
|
92
|
-
readonly message:
|
|
93
|
-
readonly solution:
|
|
96
|
+
readonly message: 'Stack creation failed and rolled back';
|
|
97
|
+
readonly solution: 'Check the CloudFormation events to see which resource failed. Fix the issue and try again.';
|
|
94
98
|
};
|
|
95
99
|
readonly CIRCULAR_DEPENDENCY: {
|
|
96
|
-
readonly message:
|
|
97
|
-
readonly solution:
|
|
100
|
+
readonly message: 'Circular dependency detected in resources';
|
|
101
|
+
readonly solution: 'Review your resource dependencies and remove the circular reference';
|
|
98
102
|
};
|
|
99
103
|
readonly INVALID_RESOURCE_NAME: {
|
|
100
|
-
readonly message:
|
|
101
|
-
readonly solution:
|
|
104
|
+
readonly message: 'Resource name contains invalid characters';
|
|
105
|
+
readonly solution: 'Use only alphanumeric characters and hyphens in resource names';
|
|
102
106
|
};
|
|
103
107
|
readonly DUPLICATE_RESOURCE: {
|
|
104
|
-
readonly message:
|
|
105
|
-
readonly solution:
|
|
108
|
+
readonly message: 'Duplicate resource name detected';
|
|
109
|
+
readonly solution: 'Ensure all resource names are unique in your configuration';
|
|
106
110
|
};
|
|
107
111
|
readonly VPC_CIDR_CONFLICT: {
|
|
108
|
-
readonly message:
|
|
109
|
-
readonly solution:
|
|
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';
|
|
110
114
|
};
|
|
111
115
|
readonly SUBNET_CIDR_INVALID: {
|
|
112
|
-
readonly message:
|
|
113
|
-
readonly solution:
|
|
116
|
+
readonly message: 'Subnet CIDR block is invalid or outside VPC range';
|
|
117
|
+
readonly solution: 'Ensure subnet CIDR is within the VPC CIDR range and properly sized';
|
|
114
118
|
};
|
|
115
119
|
readonly DB_INSTANCE_LIMIT: {
|
|
116
|
-
readonly message:
|
|
117
|
-
readonly solution:
|
|
120
|
+
readonly message: 'RDS instance limit reached';
|
|
121
|
+
readonly solution: 'Delete unused RDS instances or request a limit increase';
|
|
118
122
|
};
|
|
119
123
|
readonly INVALID_DB_NAME: {
|
|
120
|
-
readonly message:
|
|
121
|
-
readonly solution:
|
|
124
|
+
readonly message: 'Database name contains invalid characters';
|
|
125
|
+
readonly solution: 'Use only alphanumeric characters and underscores, starting with a letter';
|
|
122
126
|
};
|
|
123
127
|
readonly BUCKET_ALREADY_EXISTS: {
|
|
124
|
-
readonly message:
|
|
125
|
-
readonly solution:
|
|
128
|
+
readonly message: 'S3 bucket name already exists globally';
|
|
129
|
+
readonly solution: 'S3 bucket names must be globally unique. Try a different name with your organization prefix';
|
|
126
130
|
};
|
|
127
131
|
readonly INVALID_BUCKET_NAME: {
|
|
128
|
-
readonly message:
|
|
129
|
-
readonly solution:
|
|
132
|
+
readonly message: 'S3 bucket name is invalid';
|
|
133
|
+
readonly solution: 'Use lowercase letters, numbers, and hyphens. Must start/end with letter/number. 3-63 characters.';
|
|
130
134
|
};
|
|
131
135
|
readonly TEMPLATE_TOO_LARGE: {
|
|
132
|
-
readonly message:
|
|
133
|
-
readonly solution:
|
|
136
|
+
readonly message: 'CloudFormation template exceeds size limit';
|
|
137
|
+
readonly solution: 'Split your infrastructure into multiple stacks or use nested stacks';
|
|
134
138
|
};
|
|
135
139
|
readonly INVALID_TEMPLATE: {
|
|
136
|
-
readonly message:
|
|
137
|
-
readonly solution:
|
|
140
|
+
readonly message: 'CloudFormation template is invalid';
|
|
141
|
+
readonly solution: 'Validate your template with: cloud config:validate';
|
|
138
142
|
};
|
|
139
143
|
readonly PARAMETER_NOT_FOUND: {
|
|
140
|
-
readonly message:
|
|
141
|
-
readonly solution:
|
|
144
|
+
readonly message: 'CloudFormation parameter not found';
|
|
145
|
+
readonly solution: 'Check that all referenced parameters are defined in your template';
|
|
142
146
|
};
|
|
143
147
|
};
|
|
144
148
|
/**
|
|
@@ -51,27 +51,27 @@ export declare const Fn: IntrinsicFunctions;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const Pseudo: {
|
|
53
53
|
readonly AccountId: {
|
|
54
|
-
readonly Ref:
|
|
54
|
+
readonly Ref: 'AWS::AccountId';
|
|
55
55
|
};
|
|
56
56
|
readonly Region: {
|
|
57
|
-
readonly Ref:
|
|
57
|
+
readonly Ref: 'AWS::Region';
|
|
58
58
|
};
|
|
59
59
|
readonly StackId: {
|
|
60
|
-
readonly Ref:
|
|
60
|
+
readonly Ref: 'AWS::StackId';
|
|
61
61
|
};
|
|
62
62
|
readonly StackName: {
|
|
63
|
-
readonly Ref:
|
|
63
|
+
readonly Ref: 'AWS::StackName';
|
|
64
64
|
};
|
|
65
65
|
readonly NotificationARNs: {
|
|
66
|
-
readonly Ref:
|
|
66
|
+
readonly Ref: 'AWS::NotificationARNs';
|
|
67
67
|
};
|
|
68
68
|
readonly Partition: {
|
|
69
|
-
readonly Ref:
|
|
69
|
+
readonly Ref: 'AWS::Partition';
|
|
70
70
|
};
|
|
71
71
|
readonly URLSuffix: {
|
|
72
|
-
readonly Ref:
|
|
72
|
+
readonly Ref: 'AWS::URLSuffix';
|
|
73
73
|
};
|
|
74
74
|
readonly NoValue: {
|
|
75
|
-
readonly Ref:
|
|
75
|
+
readonly Ref: 'AWS::NoValue';
|
|
76
76
|
};
|
|
77
77
|
};
|
package/dist/modules/ai.d.ts
CHANGED
|
@@ -67,42 +67,42 @@ export declare class AI {
|
|
|
67
67
|
* Common Bedrock model IDs
|
|
68
68
|
*/
|
|
69
69
|
static readonly Models: {
|
|
70
|
-
readonly Claude3_5_Sonnet:
|
|
71
|
-
readonly Claude3_5_Haiku:
|
|
72
|
-
readonly Claude3_Opus:
|
|
73
|
-
readonly Claude3_Sonnet:
|
|
74
|
-
readonly Claude3_Haiku:
|
|
75
|
-
readonly TitanTextG1Express:
|
|
76
|
-
readonly TitanTextG1Lite:
|
|
77
|
-
readonly TitanEmbedG1Text:
|
|
78
|
-
readonly TitanImageG1:
|
|
79
|
-
readonly JurassicUltra:
|
|
80
|
-
readonly JurassicMid:
|
|
81
|
-
readonly CommandText:
|
|
82
|
-
readonly CommandLight:
|
|
83
|
-
readonly EmbedEnglish:
|
|
84
|
-
readonly EmbedMultilingual:
|
|
85
|
-
readonly Llama3_2_1B:
|
|
86
|
-
readonly Llama3_2_3B:
|
|
87
|
-
readonly Llama3_2_11B:
|
|
88
|
-
readonly Llama3_2_90B:
|
|
89
|
-
readonly Llama3_1_8B:
|
|
90
|
-
readonly Llama3_1_70B:
|
|
91
|
-
readonly Llama3_1_405B:
|
|
92
|
-
readonly Mistral7B:
|
|
93
|
-
readonly Mixtral8x7B:
|
|
94
|
-
readonly MistralLarge:
|
|
95
|
-
readonly StableDiffusionXL:
|
|
70
|
+
readonly Claude3_5_Sonnet: 'anthropic.claude-3-5-sonnet-20241022-v2:0';
|
|
71
|
+
readonly Claude3_5_Haiku: 'anthropic.claude-3-5-haiku-20241022-v1:0';
|
|
72
|
+
readonly Claude3_Opus: 'anthropic.claude-3-opus-20240229-v1:0';
|
|
73
|
+
readonly Claude3_Sonnet: 'anthropic.claude-3-sonnet-20240229-v1:0';
|
|
74
|
+
readonly Claude3_Haiku: 'anthropic.claude-3-haiku-20240307-v1:0';
|
|
75
|
+
readonly TitanTextG1Express: 'amazon.titan-text-express-v1';
|
|
76
|
+
readonly TitanTextG1Lite: 'amazon.titan-text-lite-v1';
|
|
77
|
+
readonly TitanEmbedG1Text: 'amazon.titan-embed-text-v1';
|
|
78
|
+
readonly TitanImageG1: 'amazon.titan-image-generator-v1';
|
|
79
|
+
readonly JurassicUltra: 'ai21.j2-ultra-v1';
|
|
80
|
+
readonly JurassicMid: 'ai21.j2-mid-v1';
|
|
81
|
+
readonly CommandText: 'cohere.command-text-v14';
|
|
82
|
+
readonly CommandLight: 'cohere.command-light-text-v14';
|
|
83
|
+
readonly EmbedEnglish: 'cohere.embed-english-v3';
|
|
84
|
+
readonly EmbedMultilingual: 'cohere.embed-multilingual-v3';
|
|
85
|
+
readonly Llama3_2_1B: 'meta.llama3-2-1b-instruct-v1:0';
|
|
86
|
+
readonly Llama3_2_3B: 'meta.llama3-2-3b-instruct-v1:0';
|
|
87
|
+
readonly Llama3_2_11B: 'meta.llama3-2-11b-instruct-v1:0';
|
|
88
|
+
readonly Llama3_2_90B: 'meta.llama3-2-90b-instruct-v1:0';
|
|
89
|
+
readonly Llama3_1_8B: 'meta.llama3-1-8b-instruct-v1:0';
|
|
90
|
+
readonly Llama3_1_70B: 'meta.llama3-1-70b-instruct-v1:0';
|
|
91
|
+
readonly Llama3_1_405B: 'meta.llama3-1-405b-instruct-v1:0';
|
|
92
|
+
readonly Mistral7B: 'mistral.mistral-7b-instruct-v0:2';
|
|
93
|
+
readonly Mixtral8x7B: 'mistral.mixtral-8x7b-instruct-v0:1';
|
|
94
|
+
readonly MistralLarge: 'mistral.mistral-large-2402-v1:0';
|
|
95
|
+
readonly StableDiffusionXL: 'stability.stable-diffusion-xl-v1';
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
98
|
* Common model groups for easier permission management
|
|
99
99
|
*/
|
|
100
100
|
static readonly ModelGroups: {
|
|
101
|
-
readonly AllClaude: readonly [
|
|
102
|
-
readonly AllTitan: readonly [
|
|
103
|
-
readonly AllLlama: readonly [
|
|
104
|
-
readonly TextModels: readonly [
|
|
105
|
-
readonly EmbeddingModels: readonly [
|
|
106
|
-
readonly ImageModels: readonly [
|
|
101
|
+
readonly AllClaude: readonly ['anthropic.claude-3-5-sonnet-20241022-v2:0', 'anthropic.claude-3-5-haiku-20241022-v1:0', 'anthropic.claude-3-opus-20240229-v1:0', 'anthropic.claude-3-sonnet-20240229-v1:0', 'anthropic.claude-3-haiku-20240307-v1:0'];
|
|
102
|
+
readonly AllTitan: readonly ['amazon.titan-text-express-v1', 'amazon.titan-text-lite-v1', 'amazon.titan-embed-text-v1', 'amazon.titan-image-generator-v1'];
|
|
103
|
+
readonly AllLlama: readonly ['meta.llama3-2-1b-instruct-v1:0', 'meta.llama3-2-3b-instruct-v1:0', 'meta.llama3-2-11b-instruct-v1:0', 'meta.llama3-2-90b-instruct-v1:0', 'meta.llama3-1-8b-instruct-v1:0', 'meta.llama3-1-70b-instruct-v1:0', 'meta.llama3-1-405b-instruct-v1:0'];
|
|
104
|
+
readonly TextModels: readonly ['anthropic.claude-3-5-sonnet-20241022-v2:0', 'anthropic.claude-3-5-haiku-20241022-v1:0', 'amazon.titan-text-express-v1', 'meta.llama3-2-11b-instruct-v1:0', 'mistral.mistral-7b-instruct-v0:2'];
|
|
105
|
+
readonly EmbeddingModels: readonly ['amazon.titan-embed-text-v1', 'cohere.embed-english-v3', 'cohere.embed-multilingual-v3'];
|
|
106
|
+
readonly ImageModels: readonly ['amazon.titan-image-generator-v1', 'stability.stable-diffusion-xl-v1'];
|
|
107
107
|
};
|
|
108
108
|
}
|
package/dist/modules/api.d.ts
CHANGED
|
@@ -124,14 +124,14 @@ export declare class ApiGateway {
|
|
|
124
124
|
* Common cache sizes (in GB)
|
|
125
125
|
*/
|
|
126
126
|
static readonly CacheSizes: {
|
|
127
|
-
readonly Small:
|
|
128
|
-
readonly Medium:
|
|
129
|
-
readonly Large:
|
|
130
|
-
readonly XLarge:
|
|
131
|
-
readonly XXLarge:
|
|
132
|
-
readonly XXXLarge:
|
|
133
|
-
readonly Huge:
|
|
134
|
-
readonly Massive:
|
|
127
|
+
readonly Small: '0.5';
|
|
128
|
+
readonly Medium: '1.6';
|
|
129
|
+
readonly Large: '6.1';
|
|
130
|
+
readonly XLarge: '13.5';
|
|
131
|
+
readonly XXLarge: '28.4';
|
|
132
|
+
readonly XXXLarge: '58.2';
|
|
133
|
+
readonly Huge: '118';
|
|
134
|
+
readonly Massive: '237';
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
137
137
|
* Common throttling presets
|
package/dist/modules/auth.d.ts
CHANGED
|
@@ -203,19 +203,19 @@ export declare class Auth {
|
|
|
203
203
|
/**
|
|
204
204
|
* Standard auth flows (SRP, refresh token)
|
|
205
205
|
*/
|
|
206
|
-
readonly standard: readonly [
|
|
206
|
+
readonly standard: readonly ['ALLOW_USER_SRP_AUTH', 'ALLOW_REFRESH_TOKEN_AUTH'];
|
|
207
207
|
/**
|
|
208
208
|
* Admin auth flows (for server-side authentication)
|
|
209
209
|
*/
|
|
210
|
-
readonly admin: readonly [
|
|
210
|
+
readonly admin: readonly ['ALLOW_ADMIN_USER_PASSWORD_AUTH', 'ALLOW_REFRESH_TOKEN_AUTH'];
|
|
211
211
|
/**
|
|
212
212
|
* Custom auth flows
|
|
213
213
|
*/
|
|
214
|
-
readonly custom: readonly [
|
|
214
|
+
readonly custom: readonly ['ALLOW_CUSTOM_AUTH', 'ALLOW_REFRESH_TOKEN_AUTH'];
|
|
215
215
|
/**
|
|
216
216
|
* All auth flows (not recommended for production)
|
|
217
217
|
*/
|
|
218
|
-
readonly all: readonly [
|
|
218
|
+
readonly all: readonly ['ALLOW_USER_SRP_AUTH', 'ALLOW_USER_PASSWORD_AUTH', 'ALLOW_ADMIN_USER_PASSWORD_AUTH', 'ALLOW_CUSTOM_AUTH', 'ALLOW_REFRESH_TOKEN_AUTH'];
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
221
221
|
* Common OAuth scopes
|
|
@@ -224,11 +224,11 @@ export declare class Auth {
|
|
|
224
224
|
/**
|
|
225
225
|
* Basic OAuth scopes
|
|
226
226
|
*/
|
|
227
|
-
readonly basic: readonly [
|
|
227
|
+
readonly basic: readonly ['openid', 'email', 'profile'];
|
|
228
228
|
/**
|
|
229
229
|
* All standard scopes
|
|
230
230
|
*/
|
|
231
|
-
readonly all: readonly [
|
|
231
|
+
readonly all: readonly ['openid', 'email', 'profile', 'phone', 'aws.cognito.signin.user.admin'];
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
234
234
|
* Common use cases
|
package/dist/modules/cache.d.ts
CHANGED
|
@@ -88,21 +88,21 @@ export declare class Cache {
|
|
|
88
88
|
* Common ElastiCache node types
|
|
89
89
|
*/
|
|
90
90
|
static readonly NodeTypes: {
|
|
91
|
-
readonly T3_Micro:
|
|
92
|
-
readonly T3_Small:
|
|
93
|
-
readonly T3_Medium:
|
|
94
|
-
readonly T4g_Micro:
|
|
95
|
-
readonly T4g_Small:
|
|
96
|
-
readonly T4g_Medium:
|
|
97
|
-
readonly M5_Large:
|
|
98
|
-
readonly M5_XLarge:
|
|
99
|
-
readonly M5_2XLarge:
|
|
100
|
-
readonly R5_Large:
|
|
101
|
-
readonly R5_XLarge:
|
|
102
|
-
readonly R5_2XLarge:
|
|
103
|
-
readonly R5_4XLarge:
|
|
104
|
-
readonly R6g_Large:
|
|
105
|
-
readonly R6g_XLarge:
|
|
106
|
-
readonly R6g_2XLarge:
|
|
91
|
+
readonly T3_Micro: 'cache.t3.micro';
|
|
92
|
+
readonly T3_Small: 'cache.t3.small';
|
|
93
|
+
readonly T3_Medium: 'cache.t3.medium';
|
|
94
|
+
readonly T4g_Micro: 'cache.t4g.micro';
|
|
95
|
+
readonly T4g_Small: 'cache.t4g.small';
|
|
96
|
+
readonly T4g_Medium: 'cache.t4g.medium';
|
|
97
|
+
readonly M5_Large: 'cache.m5.large';
|
|
98
|
+
readonly M5_XLarge: 'cache.m5.xlarge';
|
|
99
|
+
readonly M5_2XLarge: 'cache.m5.2xlarge';
|
|
100
|
+
readonly R5_Large: 'cache.r5.large';
|
|
101
|
+
readonly R5_XLarge: 'cache.r5.xlarge';
|
|
102
|
+
readonly R5_2XLarge: 'cache.r5.2xlarge';
|
|
103
|
+
readonly R5_4XLarge: 'cache.r5.4xlarge';
|
|
104
|
+
readonly R6g_Large: 'cache.r6g.large';
|
|
105
|
+
readonly R6g_XLarge: 'cache.r6g.xlarge';
|
|
106
|
+
readonly R6g_2XLarge: 'cache.r6g.2xlarge';
|
|
107
107
|
};
|
|
108
108
|
}
|