@stacksjs/ts-cloud 0.2.2 → 0.2.5

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 +4500 -809
  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 +24067 -6430
  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,424 @@
1
+ /**
2
+ * AWS Translate Client
3
+ * Machine translation service
4
+ * No external SDK dependencies - implements AWS Signature V4 directly
5
+ */
6
+ export interface TranslateTextCommandInput {
7
+ Text: string;
8
+ SourceLanguageCode: string;
9
+ TargetLanguageCode: string;
10
+ TerminologyNames?: string[];
11
+ Settings?: {
12
+ Formality?: 'FORMAL' | 'INFORMAL';
13
+ Profanity?: 'MASK';
14
+ Brevity?: 'ON';
15
+ };
16
+ }
17
+ export interface TranslatedDocument {
18
+ Content: Uint8Array;
19
+ }
20
+ export interface AppliedTerminology {
21
+ Name?: string;
22
+ Terms?: Array<{
23
+ SourceText?: string;
24
+ TargetText?: string;
25
+ }>;
26
+ }
27
+ export interface TranslateTextCommandOutput {
28
+ TranslatedText: string;
29
+ SourceLanguageCode: string;
30
+ TargetLanguageCode: string;
31
+ AppliedTerminologies?: AppliedTerminology[];
32
+ AppliedSettings?: {
33
+ Formality?: 'FORMAL' | 'INFORMAL';
34
+ Profanity?: 'MASK';
35
+ Brevity?: 'ON';
36
+ };
37
+ }
38
+ export interface TranslateDocumentCommandInput {
39
+ Document: {
40
+ Content: Uint8Array;
41
+ ContentType: 'text/html' | 'text/plain' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
42
+ };
43
+ SourceLanguageCode: string;
44
+ TargetLanguageCode: string;
45
+ TerminologyNames?: string[];
46
+ Settings?: {
47
+ Formality?: 'FORMAL' | 'INFORMAL';
48
+ Profanity?: 'MASK';
49
+ Brevity?: 'ON';
50
+ };
51
+ }
52
+ export interface TranslateDocumentCommandOutput {
53
+ TranslatedDocument: TranslatedDocument;
54
+ SourceLanguageCode: string;
55
+ TargetLanguageCode: string;
56
+ AppliedTerminologies?: AppliedTerminology[];
57
+ AppliedSettings?: {
58
+ Formality?: 'FORMAL' | 'INFORMAL';
59
+ Profanity?: 'MASK';
60
+ Brevity?: 'ON';
61
+ };
62
+ }
63
+ export interface StartTextTranslationJobCommandInput {
64
+ JobName?: string;
65
+ InputDataConfig: {
66
+ S3Uri: string;
67
+ ContentType: 'text/html' | 'text/plain' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' | 'application/x-xliff+xml';
68
+ };
69
+ OutputDataConfig: {
70
+ S3Uri: string;
71
+ EncryptionKey?: {
72
+ Type: 'KMS';
73
+ Id: string;
74
+ };
75
+ };
76
+ DataAccessRoleArn: string;
77
+ SourceLanguageCode: string;
78
+ TargetLanguageCodes: string[];
79
+ TerminologyNames?: string[];
80
+ ParallelDataNames?: string[];
81
+ ClientToken?: string;
82
+ Settings?: {
83
+ Formality?: 'FORMAL' | 'INFORMAL';
84
+ Profanity?: 'MASK';
85
+ Brevity?: 'ON';
86
+ };
87
+ }
88
+ export interface StartTextTranslationJobCommandOutput {
89
+ JobId?: string;
90
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED';
91
+ }
92
+ export interface DescribeTextTranslationJobCommandInput {
93
+ JobId: string;
94
+ }
95
+ export interface TextTranslationJobProperties {
96
+ JobId?: string;
97
+ JobName?: string;
98
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED';
99
+ JobDetails?: {
100
+ TranslatedDocumentsCount?: number;
101
+ DocumentsWithErrorsCount?: number;
102
+ InputDocumentsCount?: number;
103
+ };
104
+ SourceLanguageCode?: string;
105
+ TargetLanguageCodes?: string[];
106
+ TerminologyNames?: string[];
107
+ ParallelDataNames?: string[];
108
+ Message?: string;
109
+ SubmittedTime?: string;
110
+ EndTime?: string;
111
+ InputDataConfig?: {
112
+ S3Uri?: string;
113
+ ContentType?: string;
114
+ };
115
+ OutputDataConfig?: {
116
+ S3Uri?: string;
117
+ EncryptionKey?: {
118
+ Type?: string;
119
+ Id?: string;
120
+ };
121
+ };
122
+ DataAccessRoleArn?: string;
123
+ Settings?: {
124
+ Formality?: 'FORMAL' | 'INFORMAL';
125
+ Profanity?: 'MASK';
126
+ Brevity?: 'ON';
127
+ };
128
+ }
129
+ export interface DescribeTextTranslationJobCommandOutput {
130
+ TextTranslationJobProperties?: TextTranslationJobProperties;
131
+ }
132
+ export interface ListTextTranslationJobsCommandInput {
133
+ Filter?: {
134
+ JobName?: string;
135
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED';
136
+ SubmittedBeforeTime?: string;
137
+ SubmittedAfterTime?: string;
138
+ };
139
+ NextToken?: string;
140
+ MaxResults?: number;
141
+ }
142
+ export interface ListTextTranslationJobsCommandOutput {
143
+ TextTranslationJobPropertiesList?: TextTranslationJobProperties[];
144
+ NextToken?: string;
145
+ }
146
+ export interface StopTextTranslationJobCommandInput {
147
+ JobId: string;
148
+ }
149
+ export interface StopTextTranslationJobCommandOutput {
150
+ JobId?: string;
151
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'COMPLETED_WITH_ERROR' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED';
152
+ }
153
+ export interface ListLanguagesCommandInput {
154
+ DisplayLanguageCode?: string;
155
+ NextToken?: string;
156
+ MaxResults?: number;
157
+ }
158
+ export interface Language {
159
+ LanguageName?: string;
160
+ LanguageCode?: string;
161
+ }
162
+ export interface ListLanguagesCommandOutput {
163
+ Languages?: Language[];
164
+ DisplayLanguageCode?: string;
165
+ NextToken?: string;
166
+ }
167
+ export interface ImportTerminologyCommandInput {
168
+ Name: string;
169
+ MergeStrategy: 'OVERWRITE';
170
+ Description?: string;
171
+ TerminologyData: {
172
+ File: Uint8Array;
173
+ Format: 'CSV' | 'TMX' | 'TSV';
174
+ Directionality?: 'UNI' | 'MULTI';
175
+ };
176
+ EncryptionKey?: {
177
+ Type: 'KMS';
178
+ Id: string;
179
+ };
180
+ Tags?: Array<{
181
+ Key: string;
182
+ Value: string;
183
+ }>;
184
+ }
185
+ export interface TerminologyProperties {
186
+ Name?: string;
187
+ Description?: string;
188
+ Arn?: string;
189
+ SourceLanguageCode?: string;
190
+ TargetLanguageCodes?: string[];
191
+ EncryptionKey?: {
192
+ Type?: string;
193
+ Id?: string;
194
+ };
195
+ SizeBytes?: number;
196
+ TermCount?: number;
197
+ CreatedAt?: string;
198
+ LastUpdatedAt?: string;
199
+ Directionality?: 'UNI' | 'MULTI';
200
+ Message?: string;
201
+ SkippedTermCount?: number;
202
+ Format?: 'CSV' | 'TMX' | 'TSV';
203
+ }
204
+ export interface ImportTerminologyCommandOutput {
205
+ TerminologyProperties?: TerminologyProperties;
206
+ AuxiliaryDataLocation?: {
207
+ RepositoryType?: string;
208
+ Location?: string;
209
+ };
210
+ }
211
+ export interface GetTerminologyCommandInput {
212
+ Name: string;
213
+ TerminologyDataFormat?: 'CSV' | 'TMX' | 'TSV';
214
+ }
215
+ export interface GetTerminologyCommandOutput {
216
+ TerminologyProperties?: TerminologyProperties;
217
+ TerminologyDataLocation?: {
218
+ RepositoryType?: string;
219
+ Location?: string;
220
+ };
221
+ AuxiliaryDataLocation?: {
222
+ RepositoryType?: string;
223
+ Location?: string;
224
+ };
225
+ }
226
+ export interface ListTerminologiesCommandInput {
227
+ NextToken?: string;
228
+ MaxResults?: number;
229
+ }
230
+ export interface ListTerminologiesCommandOutput {
231
+ TerminologyPropertiesList?: TerminologyProperties[];
232
+ NextToken?: string;
233
+ }
234
+ export interface DeleteTerminologyCommandInput {
235
+ Name: string;
236
+ }
237
+ export interface DeleteTerminologyCommandOutput {
238
+ }
239
+ export interface CreateParallelDataCommandInput {
240
+ Name: string;
241
+ Description?: string;
242
+ ParallelDataConfig: {
243
+ S3Uri: string;
244
+ Format: 'TSV' | 'CSV' | 'TMX';
245
+ };
246
+ EncryptionKey?: {
247
+ Type: 'KMS';
248
+ Id: string;
249
+ };
250
+ ClientToken?: string;
251
+ Tags?: Array<{
252
+ Key: string;
253
+ Value: string;
254
+ }>;
255
+ }
256
+ export interface ParallelDataProperties {
257
+ Name?: string;
258
+ Arn?: string;
259
+ Description?: string;
260
+ Status?: 'CREATING' | 'UPDATING' | 'ACTIVE' | 'DELETING' | 'FAILED';
261
+ SourceLanguageCode?: string;
262
+ TargetLanguageCodes?: string[];
263
+ ParallelDataConfig?: {
264
+ S3Uri?: string;
265
+ Format?: 'TSV' | 'CSV' | 'TMX';
266
+ };
267
+ Message?: string;
268
+ ImportedDataSize?: number;
269
+ ImportedRecordCount?: number;
270
+ FailedRecordCount?: number;
271
+ SkippedRecordCount?: number;
272
+ EncryptionKey?: {
273
+ Type?: string;
274
+ Id?: string;
275
+ };
276
+ CreatedAt?: string;
277
+ LastUpdatedAt?: string;
278
+ LatestUpdateAttemptStatus?: 'CREATING' | 'UPDATING' | 'ACTIVE' | 'DELETING' | 'FAILED';
279
+ LatestUpdateAttemptAt?: string;
280
+ }
281
+ export interface CreateParallelDataCommandOutput {
282
+ Name?: string;
283
+ Status?: 'CREATING' | 'UPDATING' | 'ACTIVE' | 'DELETING' | 'FAILED';
284
+ }
285
+ export interface GetParallelDataCommandInput {
286
+ Name: string;
287
+ }
288
+ export interface GetParallelDataCommandOutput {
289
+ ParallelDataProperties?: ParallelDataProperties;
290
+ DataLocation?: {
291
+ RepositoryType?: string;
292
+ Location?: string;
293
+ };
294
+ AuxiliaryDataLocation?: {
295
+ RepositoryType?: string;
296
+ Location?: string;
297
+ };
298
+ LatestUpdateAttemptAuxiliaryDataLocation?: {
299
+ RepositoryType?: string;
300
+ Location?: string;
301
+ };
302
+ }
303
+ export interface ListParallelDataCommandInput {
304
+ NextToken?: string;
305
+ MaxResults?: number;
306
+ }
307
+ export interface ListParallelDataCommandOutput {
308
+ ParallelDataPropertiesList?: ParallelDataProperties[];
309
+ NextToken?: string;
310
+ }
311
+ export interface DeleteParallelDataCommandInput {
312
+ Name: string;
313
+ }
314
+ export interface DeleteParallelDataCommandOutput {
315
+ Name?: string;
316
+ Status?: 'CREATING' | 'UPDATING' | 'ACTIVE' | 'DELETING' | 'FAILED';
317
+ }
318
+ export declare class TranslateClient {
319
+ private client;
320
+ private region;
321
+ constructor(region?: string);
322
+ private request;
323
+ /**
324
+ * Translate text
325
+ */
326
+ translateText(params: TranslateTextCommandInput): Promise<TranslateTextCommandOutput>;
327
+ /**
328
+ * Translate a document
329
+ */
330
+ translateDocument(params: TranslateDocumentCommandInput): Promise<TranslateDocumentCommandOutput>;
331
+ /**
332
+ * Start a batch translation job
333
+ */
334
+ startTextTranslationJob(params: StartTextTranslationJobCommandInput): Promise<StartTextTranslationJobCommandOutput>;
335
+ /**
336
+ * Describe a batch translation job
337
+ */
338
+ describeTextTranslationJob(params: DescribeTextTranslationJobCommandInput): Promise<DescribeTextTranslationJobCommandOutput>;
339
+ /**
340
+ * List batch translation jobs
341
+ */
342
+ listTextTranslationJobs(params?: ListTextTranslationJobsCommandInput): Promise<ListTextTranslationJobsCommandOutput>;
343
+ /**
344
+ * Stop a batch translation job
345
+ */
346
+ stopTextTranslationJob(params: StopTextTranslationJobCommandInput): Promise<StopTextTranslationJobCommandOutput>;
347
+ /**
348
+ * List supported languages
349
+ */
350
+ listLanguages(params?: ListLanguagesCommandInput): Promise<ListLanguagesCommandOutput>;
351
+ /**
352
+ * Import a custom terminology
353
+ */
354
+ importTerminology(params: ImportTerminologyCommandInput): Promise<ImportTerminologyCommandOutput>;
355
+ /**
356
+ * Get a terminology
357
+ */
358
+ getTerminology(params: GetTerminologyCommandInput): Promise<GetTerminologyCommandOutput>;
359
+ /**
360
+ * List terminologies
361
+ */
362
+ listTerminologies(params?: ListTerminologiesCommandInput): Promise<ListTerminologiesCommandOutput>;
363
+ /**
364
+ * Delete a terminology
365
+ */
366
+ deleteTerminology(params: DeleteTerminologyCommandInput): Promise<DeleteTerminologyCommandOutput>;
367
+ /**
368
+ * Create parallel data for custom translation
369
+ */
370
+ createParallelData(params: CreateParallelDataCommandInput): Promise<CreateParallelDataCommandOutput>;
371
+ /**
372
+ * Get parallel data
373
+ */
374
+ getParallelData(params: GetParallelDataCommandInput): Promise<GetParallelDataCommandOutput>;
375
+ /**
376
+ * List parallel data
377
+ */
378
+ listParallelData(params?: ListParallelDataCommandInput): Promise<ListParallelDataCommandOutput>;
379
+ /**
380
+ * Delete parallel data
381
+ */
382
+ deleteParallelData(params: DeleteParallelDataCommandInput): Promise<DeleteParallelDataCommandOutput>;
383
+ /**
384
+ * Simple translation
385
+ */
386
+ translate(text: string, targetLanguage: string, sourceLanguage?: string): Promise<string>;
387
+ /**
388
+ * Translate with formality setting
389
+ */
390
+ translateFormal(text: string, targetLanguage: string, sourceLanguage?: string, formality?: 'FORMAL' | 'INFORMAL'): Promise<string>;
391
+ /**
392
+ * Translate to multiple languages
393
+ */
394
+ translateToMultiple(text: string, targetLanguages: string[], sourceLanguage?: string): Promise<Record<string, string>>;
395
+ /**
396
+ * Wait for batch translation job to complete
397
+ */
398
+ waitForJob(jobId: string, options?: {
399
+ maxWaitMs?: number;
400
+ pollIntervalMs?: number;
401
+ }): Promise<TextTranslationJobProperties>;
402
+ /**
403
+ * Get all supported language codes
404
+ */
405
+ getSupportedLanguages(): Promise<string[]>;
406
+ }
407
+ /**
408
+ * Quick translation
409
+ */
410
+ export declare function translate(text: string, targetLanguage: string, options?: {
411
+ sourceLanguage?: string;
412
+ region?: string;
413
+ }): Promise<string>;
414
+ /**
415
+ * Translate to multiple languages
416
+ */
417
+ export declare function translateToMultiple(text: string, targetLanguages: string[], options?: {
418
+ sourceLanguage?: string;
419
+ region?: string;
420
+ }): Promise<Record<string, string>>;
421
+ /**
422
+ * List supported languages
423
+ */
424
+ export declare function listLanguages(region?: string): Promise<Language[]>;