@stacksjs/ts-cloud 0.2.3 → 0.2.6

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 (76) hide show
  1. package/dist/aws/acm.d.ts +215 -0
  2. package/dist/aws/application-autoscaling.d.ts +345 -0
  3. package/dist/aws/bedrock.d.ts +2672 -0
  4. package/dist/aws/client.d.ts +181 -0
  5. package/dist/aws/cloudformation.d.ts +187 -0
  6. package/dist/aws/cloudfront.d.ts +416 -0
  7. package/dist/aws/cloudwatch-logs.d.ts +70 -0
  8. package/dist/aws/comprehend.d.ts +616 -0
  9. package/dist/aws/connect.d.ts +533 -0
  10. package/dist/aws/deploy-imap.d.ts +26 -0
  11. package/dist/aws/dynamodb.d.ts +270 -0
  12. package/dist/aws/ec2.d.ts +545 -0
  13. package/dist/aws/ecr.d.ts +240 -0
  14. package/dist/aws/ecs.d.ts +267 -0
  15. package/dist/aws/efs.d.ts +36 -0
  16. package/dist/aws/elasticache.d.ts +112 -0
  17. package/dist/aws/elbv2.d.ts +389 -0
  18. package/dist/aws/email.d.ts +260 -0
  19. package/dist/aws/eventbridge.d.ts +197 -0
  20. package/dist/aws/iam.d.ts +1013 -0
  21. package/dist/aws/imap-server.d.ts +298 -0
  22. package/dist/aws/index.d.ts +53 -0
  23. package/dist/aws/kendra.d.ts +831 -0
  24. package/dist/aws/lambda.d.ts +319 -0
  25. package/dist/aws/opensearch.d.ts +121 -0
  26. package/dist/aws/personalize.d.ts +586 -0
  27. package/dist/aws/polly.d.ts +243 -0
  28. package/dist/aws/rds.d.ts +346 -0
  29. package/dist/aws/rekognition.d.ts +691 -0
  30. package/dist/aws/route53-domains.d.ts +161 -0
  31. package/dist/aws/route53.d.ts +330 -0
  32. package/dist/aws/s3.d.ts +535 -0
  33. package/dist/aws/scheduler.d.ts +224 -0
  34. package/dist/aws/secrets-manager.d.ts +267 -0
  35. package/dist/aws/ses.d.ts +441 -0
  36. package/dist/aws/setup-phone.d.ts +1 -0
  37. package/dist/aws/setup-sms.d.ts +116 -0
  38. package/dist/aws/sms.d.ts +477 -0
  39. package/dist/aws/smtp-server.d.ts +108 -0
  40. package/dist/aws/sns.d.ts +224 -0
  41. package/dist/aws/sqs.d.ts +107 -0
  42. package/dist/aws/ssm.d.ts +311 -0
  43. package/dist/aws/sts.d.ts +21 -0
  44. package/dist/aws/support.d.ts +139 -0
  45. package/dist/aws/test-imap.d.ts +15 -0
  46. package/dist/aws/textract.d.ts +477 -0
  47. package/dist/aws/transcribe.d.ts +79 -0
  48. package/dist/aws/translate.d.ts +424 -0
  49. package/dist/aws/voice.d.ts +361 -0
  50. package/dist/bin/cli.js +4480 -804
  51. package/dist/config.d.ts +5 -0
  52. package/dist/deploy/index.d.ts +6 -0
  53. package/dist/deploy/static-site-external-dns.d.ts +70 -0
  54. package/dist/deploy/static-site.d.ts +110 -0
  55. package/dist/dns/cloudflare.d.ts +74 -0
  56. package/dist/dns/godaddy.d.ts +63 -0
  57. package/dist/dns/index.d.ts +67 -0
  58. package/dist/dns/porkbun.d.ts +43 -0
  59. package/dist/dns/route53-adapter.d.ts +67 -0
  60. package/dist/dns/types.d.ts +100 -0
  61. package/dist/dns/validator.d.ts +105 -0
  62. package/dist/generators/index.d.ts +4 -0
  63. package/dist/generators/infrastructure.d.ts +115 -0
  64. package/dist/index.d.ts +9 -165
  65. package/dist/index.js +4971 -6013
  66. package/dist/push/apns.d.ts +140 -0
  67. package/dist/push/fcm.d.ts +205 -0
  68. package/dist/push/index.d.ts +44 -0
  69. package/dist/security/pre-deploy-scanner.d.ts +97 -0
  70. package/dist/ssl/acme-client.d.ts +133 -0
  71. package/dist/ssl/index.d.ts +6 -0
  72. package/dist/ssl/letsencrypt.d.ts +96 -0
  73. package/dist/utils/cli.d.ts +121 -0
  74. package/dist/validation/index.d.ts +4 -0
  75. package/dist/validation/template.d.ts +27 -0
  76. package/package.json +6 -6
@@ -0,0 +1,270 @@
1
+ /**
2
+ * AWS DynamoDB Client
3
+ * Direct API calls for DynamoDB operations
4
+ */
5
+ export interface AttributeValue {
6
+ S?: string;
7
+ N?: string;
8
+ B?: string;
9
+ SS?: string[];
10
+ NS?: string[];
11
+ BS?: string[];
12
+ M?: Record<string, AttributeValue>;
13
+ L?: AttributeValue[];
14
+ NULL?: boolean;
15
+ BOOL?: boolean;
16
+ }
17
+ export interface KeySchemaElement {
18
+ AttributeName: string;
19
+ KeyType: 'HASH' | 'RANGE';
20
+ }
21
+ export interface AttributeDefinition {
22
+ AttributeName: string;
23
+ AttributeType: 'S' | 'N' | 'B';
24
+ }
25
+ export interface GlobalSecondaryIndex {
26
+ IndexName: string;
27
+ KeySchema: KeySchemaElement[];
28
+ Projection: {
29
+ ProjectionType: 'ALL' | 'KEYS_ONLY' | 'INCLUDE';
30
+ NonKeyAttributes?: string[];
31
+ };
32
+ ProvisionedThroughput?: {
33
+ ReadCapacityUnits: number;
34
+ WriteCapacityUnits: number;
35
+ };
36
+ }
37
+ export interface TableDescription {
38
+ TableName: string;
39
+ TableStatus: 'CREATING' | 'UPDATING' | 'DELETING' | 'ACTIVE' | 'INACCESSIBLE_ENCRYPTION_CREDENTIALS' | 'ARCHIVING' | 'ARCHIVED';
40
+ TableArn: string;
41
+ ItemCount: number;
42
+ TableSizeBytes: number;
43
+ CreationDateTime: string;
44
+ KeySchema: KeySchemaElement[];
45
+ AttributeDefinitions: AttributeDefinition[];
46
+ GlobalSecondaryIndexes?: GlobalSecondaryIndex[];
47
+ }
48
+ /**
49
+ * DynamoDB client for direct API calls
50
+ */
51
+ export declare class DynamoDBClient {
52
+ private client;
53
+ private region;
54
+ private endpoint?;
55
+ constructor(region?: string, options?: {
56
+ endpoint?: string;
57
+ });
58
+ private request;
59
+ /**
60
+ * Create a new DynamoDB table
61
+ */
62
+ createTable(params: {
63
+ TableName: string;
64
+ KeySchema: KeySchemaElement[];
65
+ AttributeDefinitions: AttributeDefinition[];
66
+ BillingMode?: 'PROVISIONED' | 'PAY_PER_REQUEST';
67
+ ProvisionedThroughput?: {
68
+ ReadCapacityUnits: number;
69
+ WriteCapacityUnits: number;
70
+ };
71
+ GlobalSecondaryIndexes?: GlobalSecondaryIndex[];
72
+ Tags?: Array<{
73
+ Key: string;
74
+ Value: string;
75
+ }>;
76
+ TimeToLiveSpecification?: {
77
+ AttributeName: string;
78
+ Enabled: boolean;
79
+ };
80
+ }): Promise<{
81
+ TableDescription: TableDescription;
82
+ }>;
83
+ /**
84
+ * Delete a DynamoDB table
85
+ */
86
+ deleteTable(params: {
87
+ TableName: string;
88
+ }): Promise<{
89
+ TableDescription: TableDescription;
90
+ }>;
91
+ /**
92
+ * Describe a DynamoDB table
93
+ */
94
+ describeTable(params: {
95
+ TableName: string;
96
+ }): Promise<{
97
+ Table: TableDescription;
98
+ }>;
99
+ /**
100
+ * List all DynamoDB tables
101
+ */
102
+ listTables(params?: {
103
+ ExclusiveStartTableName?: string;
104
+ Limit?: number;
105
+ }): Promise<{
106
+ TableNames: string[];
107
+ LastEvaluatedTableName?: string;
108
+ }>;
109
+ /**
110
+ * Put an item into a table
111
+ */
112
+ putItem(params: {
113
+ TableName: string;
114
+ Item: Record<string, AttributeValue>;
115
+ ConditionExpression?: string;
116
+ ExpressionAttributeNames?: Record<string, string>;
117
+ ExpressionAttributeValues?: Record<string, AttributeValue>;
118
+ ReturnValues?: 'NONE' | 'ALL_OLD';
119
+ }): Promise<{
120
+ Attributes?: Record<string, AttributeValue>;
121
+ }>;
122
+ /**
123
+ * Get an item from a table
124
+ */
125
+ getItem(params: {
126
+ TableName: string;
127
+ Key: Record<string, AttributeValue>;
128
+ ProjectionExpression?: string;
129
+ ExpressionAttributeNames?: Record<string, string>;
130
+ ConsistentRead?: boolean;
131
+ }): Promise<{
132
+ Item?: Record<string, AttributeValue>;
133
+ }>;
134
+ /**
135
+ * Update an item in a table
136
+ */
137
+ updateItem(params: {
138
+ TableName: string;
139
+ Key: Record<string, AttributeValue>;
140
+ UpdateExpression: string;
141
+ ConditionExpression?: string;
142
+ ExpressionAttributeNames?: Record<string, string>;
143
+ ExpressionAttributeValues?: Record<string, AttributeValue>;
144
+ ReturnValues?: 'NONE' | 'ALL_OLD' | 'UPDATED_OLD' | 'ALL_NEW' | 'UPDATED_NEW';
145
+ }): Promise<{
146
+ Attributes?: Record<string, AttributeValue>;
147
+ }>;
148
+ /**
149
+ * Delete an item from a table
150
+ */
151
+ deleteItem(params: {
152
+ TableName: string;
153
+ Key: Record<string, AttributeValue>;
154
+ ConditionExpression?: string;
155
+ ExpressionAttributeNames?: Record<string, string>;
156
+ ExpressionAttributeValues?: Record<string, AttributeValue>;
157
+ ReturnValues?: 'NONE' | 'ALL_OLD';
158
+ }): Promise<{
159
+ Attributes?: Record<string, AttributeValue>;
160
+ }>;
161
+ /**
162
+ * Query items from a table
163
+ */
164
+ query(params: {
165
+ TableName: string;
166
+ IndexName?: string;
167
+ KeyConditionExpression: string;
168
+ FilterExpression?: string;
169
+ ProjectionExpression?: string;
170
+ ExpressionAttributeNames?: Record<string, string>;
171
+ ExpressionAttributeValues?: Record<string, AttributeValue>;
172
+ Limit?: number;
173
+ ExclusiveStartKey?: Record<string, AttributeValue>;
174
+ ScanIndexForward?: boolean;
175
+ ConsistentRead?: boolean;
176
+ }): Promise<{
177
+ Items: Array<Record<string, AttributeValue>>;
178
+ Count: number;
179
+ ScannedCount: number;
180
+ LastEvaluatedKey?: Record<string, AttributeValue>;
181
+ }>;
182
+ /**
183
+ * Scan items from a table
184
+ */
185
+ scan(params: {
186
+ TableName: string;
187
+ IndexName?: string;
188
+ FilterExpression?: string;
189
+ ProjectionExpression?: string;
190
+ ExpressionAttributeNames?: Record<string, string>;
191
+ ExpressionAttributeValues?: Record<string, AttributeValue>;
192
+ Limit?: number;
193
+ ExclusiveStartKey?: Record<string, AttributeValue>;
194
+ ConsistentRead?: boolean;
195
+ }): Promise<{
196
+ Items: Array<Record<string, AttributeValue>>;
197
+ Count: number;
198
+ ScannedCount: number;
199
+ LastEvaluatedKey?: Record<string, AttributeValue>;
200
+ }>;
201
+ /**
202
+ * Batch write items
203
+ */
204
+ batchWriteItem(params: {
205
+ RequestItems: Record<string, Array<{
206
+ PutRequest?: {
207
+ Item: Record<string, AttributeValue>;
208
+ };
209
+ DeleteRequest?: {
210
+ Key: Record<string, AttributeValue>;
211
+ };
212
+ }>>;
213
+ }): Promise<{
214
+ UnprocessedItems: Record<string, Array<{
215
+ PutRequest?: {
216
+ Item: Record<string, AttributeValue>;
217
+ };
218
+ DeleteRequest?: {
219
+ Key: Record<string, AttributeValue>;
220
+ };
221
+ }>>;
222
+ }>;
223
+ /**
224
+ * Batch get items
225
+ */
226
+ batchGetItem(params: {
227
+ RequestItems: Record<string, {
228
+ Keys: Array<Record<string, AttributeValue>>;
229
+ ProjectionExpression?: string;
230
+ ExpressionAttributeNames?: Record<string, string>;
231
+ ConsistentRead?: boolean;
232
+ }>;
233
+ }): Promise<{
234
+ Responses: Record<string, Array<Record<string, AttributeValue>>>;
235
+ UnprocessedKeys: Record<string, {
236
+ Keys: Array<Record<string, AttributeValue>>;
237
+ }>;
238
+ }>;
239
+ /**
240
+ * Update time to live settings
241
+ */
242
+ updateTimeToLive(params: {
243
+ TableName: string;
244
+ TimeToLiveSpecification: {
245
+ AttributeName: string;
246
+ Enabled: boolean;
247
+ };
248
+ }): Promise<{
249
+ TimeToLiveSpecification: {
250
+ AttributeName: string;
251
+ Enabled: boolean;
252
+ };
253
+ }>;
254
+ /**
255
+ * Helper: Marshal a JavaScript object to DynamoDB format
256
+ */
257
+ static marshal(obj: Record<string, any>): Record<string, AttributeValue>;
258
+ /**
259
+ * Helper: Marshal a single value to DynamoDB format
260
+ */
261
+ static marshalValue(value: any): AttributeValue;
262
+ /**
263
+ * Helper: Unmarshal DynamoDB format to JavaScript object
264
+ */
265
+ static unmarshal(item: Record<string, AttributeValue>): Record<string, any>;
266
+ /**
267
+ * Helper: Unmarshal a single DynamoDB value
268
+ */
269
+ static unmarshalValue(value: AttributeValue): any;
270
+ }