@stacksjs/ts-cloud 0.1.3 → 0.1.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 (187) hide show
  1. package/README.md +98 -13
  2. package/dist/aws/acm.d.ts +129 -0
  3. package/dist/aws/application-autoscaling.d.ts +282 -0
  4. package/dist/aws/bedrock.d.ts +2292 -0
  5. package/dist/aws/client.d.ts +79 -0
  6. package/dist/aws/cloudformation.d.ts +105 -0
  7. package/dist/aws/cloudfront.d.ts +265 -0
  8. package/dist/aws/cloudwatch-logs.d.ts +48 -0
  9. package/dist/aws/comprehend.d.ts +505 -0
  10. package/dist/aws/connect.d.ts +377 -0
  11. package/dist/aws/deploy-imap.d.ts +14 -0
  12. package/dist/aws/dynamodb.d.ts +176 -0
  13. package/dist/aws/ec2.d.ts +272 -0
  14. package/dist/aws/ecr.d.ts +149 -0
  15. package/dist/aws/ecs.d.ts +162 -0
  16. package/dist/aws/elasticache.d.ts +71 -0
  17. package/dist/aws/elbv2.d.ts +248 -0
  18. package/dist/aws/email.d.ts +175 -0
  19. package/dist/aws/eventbridge.d.ts +142 -0
  20. package/dist/aws/iam.d.ts +638 -0
  21. package/dist/aws/imap-server.d.ts +119 -0
  22. package/{src/aws/index.ts → dist/aws/index.d.ts} +62 -83
  23. package/{src/aws/kendra.ts → dist/aws/kendra.d.ts} +71 -386
  24. package/dist/aws/lambda.d.ts +232 -0
  25. package/dist/aws/opensearch.d.ts +87 -0
  26. package/dist/aws/personalize.d.ts +516 -0
  27. package/dist/aws/polly.d.ts +214 -0
  28. package/dist/aws/rds.d.ts +240 -0
  29. package/dist/aws/rekognition.d.ts +543 -0
  30. package/dist/aws/route53-domains.d.ts +113 -0
  31. package/dist/aws/route53.d.ts +215 -0
  32. package/dist/aws/s3.d.ts +212 -0
  33. package/dist/aws/scheduler.d.ts +140 -0
  34. package/dist/aws/secrets-manager.d.ts +170 -0
  35. package/dist/aws/ses.d.ts +288 -0
  36. package/dist/aws/setup-phone.d.ts +0 -0
  37. package/dist/aws/setup-sms.d.ts +115 -0
  38. package/dist/aws/sms.d.ts +304 -0
  39. package/dist/aws/smtp-server.d.ts +61 -0
  40. package/dist/aws/sns.d.ts +117 -0
  41. package/dist/aws/sqs.d.ts +65 -0
  42. package/dist/aws/ssm.d.ts +179 -0
  43. package/dist/aws/sts.d.ts +15 -0
  44. package/dist/aws/support.d.ts +104 -0
  45. package/dist/aws/test-imap.d.ts +0 -0
  46. package/dist/aws/textract.d.ts +403 -0
  47. package/dist/aws/transcribe.d.ts +60 -0
  48. package/dist/aws/translate.d.ts +358 -0
  49. package/dist/aws/voice.d.ts +219 -0
  50. package/dist/bin/cli.js +1724 -0
  51. package/dist/config.d.ts +7 -0
  52. package/dist/deploy/index.d.ts +2 -0
  53. package/dist/deploy/static-site-external-dns.d.ts +51 -0
  54. package/dist/deploy/static-site.d.ts +71 -0
  55. package/dist/dns/cloudflare.d.ts +52 -0
  56. package/dist/dns/godaddy.d.ts +38 -0
  57. package/dist/dns/index.d.ts +45 -0
  58. package/dist/dns/porkbun.d.ts +18 -0
  59. package/dist/dns/route53-adapter.d.ts +38 -0
  60. package/{src/dns/types.ts → dist/dns/types.d.ts} +26 -63
  61. package/dist/dns/validator.d.ts +78 -0
  62. package/dist/generators/index.d.ts +1 -0
  63. package/dist/generators/infrastructure.d.ts +30 -0
  64. package/{src/index.ts → dist/index.d.ts} +70 -93
  65. package/dist/index.js +7881 -0
  66. package/dist/push/apns.d.ts +60 -0
  67. package/dist/push/fcm.d.ts +117 -0
  68. package/dist/push/index.d.ts +14 -0
  69. package/dist/security/pre-deploy-scanner.d.ts +69 -0
  70. package/dist/ssl/acme-client.d.ts +67 -0
  71. package/dist/ssl/index.d.ts +2 -0
  72. package/dist/ssl/letsencrypt.d.ts +48 -0
  73. package/dist/types.d.ts +1 -0
  74. package/dist/utils/cli.d.ts +123 -0
  75. package/dist/validation/index.d.ts +1 -0
  76. package/dist/validation/template.d.ts +23 -0
  77. package/package.json +8 -8
  78. package/bin/cli.ts +0 -133
  79. package/bin/commands/analytics.ts +0 -328
  80. package/bin/commands/api.ts +0 -379
  81. package/bin/commands/assets.ts +0 -221
  82. package/bin/commands/audit.ts +0 -501
  83. package/bin/commands/backup.ts +0 -682
  84. package/bin/commands/cache.ts +0 -294
  85. package/bin/commands/cdn.ts +0 -281
  86. package/bin/commands/config.ts +0 -202
  87. package/bin/commands/container.ts +0 -105
  88. package/bin/commands/cost.ts +0 -208
  89. package/bin/commands/database.ts +0 -401
  90. package/bin/commands/deploy.ts +0 -674
  91. package/bin/commands/domain.ts +0 -397
  92. package/bin/commands/email.ts +0 -423
  93. package/bin/commands/environment.ts +0 -285
  94. package/bin/commands/events.ts +0 -424
  95. package/bin/commands/firewall.ts +0 -145
  96. package/bin/commands/function.ts +0 -116
  97. package/bin/commands/generate.ts +0 -280
  98. package/bin/commands/git.ts +0 -139
  99. package/bin/commands/iam.ts +0 -464
  100. package/bin/commands/index.ts +0 -48
  101. package/bin/commands/init.ts +0 -120
  102. package/bin/commands/logs.ts +0 -148
  103. package/bin/commands/network.ts +0 -579
  104. package/bin/commands/notify.ts +0 -489
  105. package/bin/commands/queue.ts +0 -407
  106. package/bin/commands/scheduler.ts +0 -370
  107. package/bin/commands/secrets.ts +0 -54
  108. package/bin/commands/server.ts +0 -629
  109. package/bin/commands/shared.ts +0 -97
  110. package/bin/commands/ssl.ts +0 -138
  111. package/bin/commands/stack.ts +0 -325
  112. package/bin/commands/status.ts +0 -385
  113. package/bin/commands/storage.ts +0 -450
  114. package/bin/commands/team.ts +0 -96
  115. package/bin/commands/tunnel.ts +0 -489
  116. package/bin/commands/utils.ts +0 -202
  117. package/build.ts +0 -15
  118. package/cloud +0 -2
  119. package/src/aws/acm.ts +0 -768
  120. package/src/aws/application-autoscaling.ts +0 -845
  121. package/src/aws/bedrock.ts +0 -4074
  122. package/src/aws/client.ts +0 -878
  123. package/src/aws/cloudformation.ts +0 -896
  124. package/src/aws/cloudfront.ts +0 -1531
  125. package/src/aws/cloudwatch-logs.ts +0 -154
  126. package/src/aws/comprehend.ts +0 -839
  127. package/src/aws/connect.ts +0 -1056
  128. package/src/aws/deploy-imap.ts +0 -384
  129. package/src/aws/dynamodb.ts +0 -340
  130. package/src/aws/ec2.ts +0 -1385
  131. package/src/aws/ecr.ts +0 -621
  132. package/src/aws/ecs.ts +0 -615
  133. package/src/aws/elasticache.ts +0 -301
  134. package/src/aws/elbv2.ts +0 -942
  135. package/src/aws/email.ts +0 -928
  136. package/src/aws/eventbridge.ts +0 -248
  137. package/src/aws/iam.ts +0 -1689
  138. package/src/aws/imap-server.ts +0 -2100
  139. package/src/aws/lambda.ts +0 -786
  140. package/src/aws/opensearch.ts +0 -158
  141. package/src/aws/personalize.ts +0 -977
  142. package/src/aws/polly.ts +0 -559
  143. package/src/aws/rds.ts +0 -888
  144. package/src/aws/rekognition.ts +0 -846
  145. package/src/aws/route53-domains.ts +0 -359
  146. package/src/aws/route53.ts +0 -1046
  147. package/src/aws/s3.ts +0 -2318
  148. package/src/aws/scheduler.ts +0 -571
  149. package/src/aws/secrets-manager.ts +0 -769
  150. package/src/aws/ses.ts +0 -1081
  151. package/src/aws/setup-phone.ts +0 -104
  152. package/src/aws/setup-sms.ts +0 -580
  153. package/src/aws/sms.ts +0 -1735
  154. package/src/aws/smtp-server.ts +0 -531
  155. package/src/aws/sns.ts +0 -758
  156. package/src/aws/sqs.ts +0 -382
  157. package/src/aws/ssm.ts +0 -807
  158. package/src/aws/sts.ts +0 -92
  159. package/src/aws/support.ts +0 -391
  160. package/src/aws/test-imap.ts +0 -86
  161. package/src/aws/textract.ts +0 -780
  162. package/src/aws/transcribe.ts +0 -108
  163. package/src/aws/translate.ts +0 -641
  164. package/src/aws/voice.ts +0 -1379
  165. package/src/config.ts +0 -35
  166. package/src/deploy/index.ts +0 -7
  167. package/src/deploy/static-site-external-dns.ts +0 -906
  168. package/src/deploy/static-site.ts +0 -1125
  169. package/src/dns/godaddy.ts +0 -412
  170. package/src/dns/index.ts +0 -183
  171. package/src/dns/porkbun.ts +0 -362
  172. package/src/dns/route53-adapter.ts +0 -414
  173. package/src/dns/validator.ts +0 -369
  174. package/src/generators/index.ts +0 -5
  175. package/src/generators/infrastructure.ts +0 -1660
  176. package/src/push/apns.ts +0 -452
  177. package/src/push/fcm.ts +0 -506
  178. package/src/push/index.ts +0 -58
  179. package/src/ssl/acme-client.ts +0 -478
  180. package/src/ssl/index.ts +0 -7
  181. package/src/ssl/letsencrypt.ts +0 -747
  182. package/src/types.ts +0 -2
  183. package/src/utils/cli.ts +0 -398
  184. package/src/validation/index.ts +0 -5
  185. package/src/validation/template.ts +0 -405
  186. package/test/index.test.ts +0 -128
  187. package/tsconfig.json +0 -18
@@ -0,0 +1,505 @@
1
+ import { AWSClient } from './client';
2
+ /**
3
+ * Quick sentiment analysis
4
+ */
5
+ export declare function analyzeSentiment(text: string, options?: { languageCode?: string; region?: string }): Promise<{ sentiment: string; confidence: number }>;
6
+ /**
7
+ * Quick entity extraction
8
+ */
9
+ export declare function extractEntities(text: string, options?: { languageCode?: string; region?: string }): Promise<Array<{ text: string; type: string }>>;
10
+ /**
11
+ * Quick language detection
12
+ */
13
+ export declare function detectLanguage(text: string, region?: string): Promise<string>;
14
+ /**
15
+ * Quick PII check
16
+ */
17
+ export declare function containsPii(text: string, options?: { languageCode?: string; region?: string }): Promise<boolean>;
18
+ // ============================================================================
19
+ // Types
20
+ // ============================================================================
21
+ export declare interface DetectSentimentCommandInput {
22
+ Text: string
23
+ LanguageCode: 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ar' | 'hi' | 'ja' | 'ko' | 'zh' | 'zh-TW'
24
+ }
25
+ export declare interface DetectSentimentCommandOutput {
26
+ Sentiment: 'POSITIVE' | 'NEGATIVE' | 'NEUTRAL' | 'MIXED'
27
+ SentimentScore: {
28
+ Positive: number
29
+ Negative: number
30
+ Neutral: number
31
+ Mixed: number
32
+ }
33
+ }
34
+ export declare interface DetectEntitiesCommandInput {
35
+ Text: string
36
+ LanguageCode: string
37
+ EndpointArn?: string
38
+ Bytes?: Uint8Array
39
+ DocumentReaderConfig?: {
40
+ DocumentReadAction: 'TEXTRACT_DETECT_DOCUMENT_TEXT' | 'TEXTRACT_ANALYZE_DOCUMENT'
41
+ DocumentReadMode?: 'SERVICE_DEFAULT' | 'FORCE_DOCUMENT_READ_ACTION'
42
+ FeatureTypes?: ('TABLES' | 'FORMS')[]
43
+ }
44
+ }
45
+ export declare interface Entity {
46
+ Score?: number
47
+ Type?: 'PERSON' | 'LOCATION' | 'ORGANIZATION' | 'COMMERCIAL_ITEM' | 'EVENT' | 'DATE' | 'QUANTITY' | 'TITLE' | 'OTHER'
48
+ Text?: string
49
+ BeginOffset?: number
50
+ EndOffset?: number
51
+ BlockReferences?: Array<{
52
+ BlockId?: string
53
+ BeginOffset?: number
54
+ EndOffset?: number
55
+ ChildBlocks?: Array<{
56
+ ChildBlockId?: string
57
+ BeginOffset?: number
58
+ EndOffset?: number
59
+ }>
60
+ }>
61
+ }
62
+ export declare interface DetectEntitiesCommandOutput {
63
+ Entities: Entity[]
64
+ DocumentMetadata?: {
65
+ Pages?: number
66
+ ExtractedCharacters?: Array<{
67
+ Page?: number
68
+ Count?: number
69
+ }>
70
+ }
71
+ DocumentType?: Array<{
72
+ Page?: number
73
+ Type?: 'NATIVE_PDF' | 'SCANNED_PDF' | 'MS_WORD' | 'IMAGE' | 'PLAIN_TEXT' | 'TEXTRACT_DETECT_DOCUMENT_TEXT_JSON' | 'TEXTRACT_ANALYZE_DOCUMENT_JSON'
74
+ }>
75
+ Blocks?: Array<{
76
+ Id?: string
77
+ BlockType?: 'LINE' | 'WORD'
78
+ Text?: string
79
+ Page?: number
80
+ Geometry?: {
81
+ BoundingBox?: {
82
+ Height?: number
83
+ Left?: number
84
+ Top?: number
85
+ Width?: number
86
+ }
87
+ Polygon?: Array<{
88
+ X?: number
89
+ Y?: number
90
+ }>
91
+ }
92
+ Relationships?: Array<{
93
+ Ids?: string[]
94
+ Type?: 'CHILD'
95
+ }>
96
+ }>
97
+ Errors?: Array<{
98
+ Page?: number
99
+ ErrorCode?: 'TEXTRACT_BAD_PAGE' | 'TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED' | 'PAGE_CHARACTERS_EXCEEDED' | 'PAGE_SIZE_EXCEEDED' | 'INTERNAL_SERVER_ERROR'
100
+ ErrorMessage?: string
101
+ }>
102
+ }
103
+ export declare interface DetectKeyPhrasesCommandInput {
104
+ Text: string
105
+ LanguageCode: string
106
+ }
107
+ export declare interface KeyPhrase {
108
+ Score?: number
109
+ Text?: string
110
+ BeginOffset?: number
111
+ EndOffset?: number
112
+ }
113
+ export declare interface DetectKeyPhrasesCommandOutput {
114
+ KeyPhrases: KeyPhrase[]
115
+ }
116
+ export declare interface DetectDominantLanguageCommandInput {
117
+ Text: string
118
+ }
119
+ export declare interface DominantLanguage {
120
+ LanguageCode?: string
121
+ Score?: number
122
+ }
123
+ export declare interface DetectDominantLanguageCommandOutput {
124
+ Languages: DominantLanguage[]
125
+ }
126
+ export declare interface DetectPiiEntitiesCommandInput {
127
+ Text: string
128
+ LanguageCode: string
129
+ }
130
+ export declare interface PiiEntity {
131
+ Score?: number
132
+ Type?: 'BANK_ACCOUNT_NUMBER' | 'BANK_ROUTING' | 'CREDIT_DEBIT_NUMBER' | 'CREDIT_DEBIT_CVV' | 'CREDIT_DEBIT_EXPIRY' | 'PIN' | 'EMAIL' | 'ADDRESS' | 'NAME' | 'PHONE' | 'SSN' | 'DATE_TIME' | 'PASSPORT_NUMBER' | 'DRIVER_ID' | 'URL' | 'AGE' | 'USERNAME' | 'PASSWORD' | 'AWS_ACCESS_KEY' | 'AWS_SECRET_KEY' | 'IP_ADDRESS' | 'MAC_ADDRESS' | 'LICENSE_PLATE' | 'VEHICLE_IDENTIFICATION_NUMBER' | 'UK_NATIONAL_INSURANCE_NUMBER' | 'CA_SOCIAL_INSURANCE_NUMBER' | 'US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER' | 'UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER' | 'IN_PERMANENT_ACCOUNT_NUMBER' | 'IN_NREGA' | 'INTERNATIONAL_BANK_ACCOUNT_NUMBER' | 'SWIFT_CODE' | 'UK_NATIONAL_HEALTH_SERVICE_NUMBER' | 'CA_HEALTH_NUMBER' | 'IN_AADHAAR' | 'IN_VOTER_NUMBER'
133
+ BeginOffset?: number
134
+ EndOffset?: number
135
+ }
136
+ export declare interface DetectPiiEntitiesCommandOutput {
137
+ Entities: PiiEntity[]
138
+ }
139
+ export declare interface ContainsPiiEntitiesCommandInput {
140
+ Text: string
141
+ LanguageCode: string
142
+ }
143
+ export declare interface ContainsPiiEntitiesCommandOutput {
144
+ Labels: Array<{
145
+ Name?: string
146
+ Score?: number
147
+ }>
148
+ }
149
+ export declare interface DetectSyntaxCommandInput {
150
+ Text: string
151
+ LanguageCode: 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt'
152
+ }
153
+ export declare interface SyntaxToken {
154
+ TokenId?: number
155
+ Text?: string
156
+ BeginOffset?: number
157
+ EndOffset?: number
158
+ PartOfSpeech?: {
159
+ Tag?: 'ADJ' | 'ADP' | 'ADV' | 'AUX' | 'CONJ' | 'CCONJ' | 'DET' | 'INTJ' | 'NOUN' | 'NUM' | 'O' | 'PART' | 'PRON' | 'PROPN' | 'PUNCT' | 'SCONJ' | 'SYM' | 'VERB'
160
+ Score?: number
161
+ }
162
+ }
163
+ export declare interface DetectSyntaxCommandOutput {
164
+ SyntaxTokens: SyntaxToken[]
165
+ }
166
+ export declare interface DetectTargetedSentimentCommandInput {
167
+ Text: string
168
+ LanguageCode: string
169
+ }
170
+ export declare interface TargetedSentimentEntity {
171
+ DescriptiveMentionIndex?: number[]
172
+ Mentions?: Array<{
173
+ Score?: number
174
+ GroupScore?: number
175
+ Text?: string
176
+ Type?: 'PERSON' | 'LOCATION' | 'ORGANIZATION' | 'FACILITY' | 'BRAND' | 'COMMERCIAL_ITEM' | 'MOVIE' | 'MUSIC' | 'BOOK' | 'SOFTWARE' | 'GAME' | 'PERSONAL_TITLE' | 'EVENT' | 'DATE' | 'QUANTITY' | 'ATTRIBUTE' | 'OTHER'
177
+ MentionSentiment?: {
178
+ Sentiment?: 'POSITIVE' | 'NEGATIVE' | 'NEUTRAL' | 'MIXED'
179
+ SentimentScore?: {
180
+ Positive?: number
181
+ Negative?: number
182
+ Neutral?: number
183
+ Mixed?: number
184
+ }
185
+ }
186
+ BeginOffset?: number
187
+ EndOffset?: number
188
+ }>
189
+ }
190
+ export declare interface DetectTargetedSentimentCommandOutput {
191
+ Entities: TargetedSentimentEntity[]
192
+ }
193
+ export declare interface ClassifyDocumentCommandInput {
194
+ Text?: string
195
+ EndpointArn: string
196
+ Bytes?: Uint8Array
197
+ DocumentReaderConfig?: {
198
+ DocumentReadAction: 'TEXTRACT_DETECT_DOCUMENT_TEXT' | 'TEXTRACT_ANALYZE_DOCUMENT'
199
+ DocumentReadMode?: 'SERVICE_DEFAULT' | 'FORCE_DOCUMENT_READ_ACTION'
200
+ FeatureTypes?: ('TABLES' | 'FORMS')[]
201
+ }
202
+ }
203
+ export declare interface ClassifyDocumentCommandOutput {
204
+ Classes?: Array<{
205
+ Name?: string
206
+ Score?: number
207
+ Page?: number
208
+ }>
209
+ Labels?: Array<{
210
+ Name?: string
211
+ Score?: number
212
+ Page?: number
213
+ }>
214
+ DocumentMetadata?: {
215
+ Pages?: number
216
+ ExtractedCharacters?: Array<{
217
+ Page?: number
218
+ Count?: number
219
+ }>
220
+ }
221
+ DocumentType?: Array<{
222
+ Page?: number
223
+ Type?: string
224
+ }>
225
+ Errors?: Array<{
226
+ Page?: number
227
+ ErrorCode?: string
228
+ ErrorMessage?: string
229
+ }>
230
+ Warnings?: Array<{
231
+ Page?: number
232
+ WarnCode?: string
233
+ WarnMessage?: string
234
+ }>
235
+ }
236
+ export declare interface BatchDetectSentimentCommandInput {
237
+ TextList: string[]
238
+ LanguageCode: string
239
+ }
240
+ export declare interface BatchDetectSentimentCommandOutput {
241
+ ResultList: Array<{
242
+ Index?: number
243
+ Sentiment?: 'POSITIVE' | 'NEGATIVE' | 'NEUTRAL' | 'MIXED'
244
+ SentimentScore?: {
245
+ Positive?: number
246
+ Negative?: number
247
+ Neutral?: number
248
+ Mixed?: number
249
+ }
250
+ }>
251
+ ErrorList: Array<{
252
+ Index?: number
253
+ ErrorCode?: string
254
+ ErrorMessage?: string
255
+ }>
256
+ }
257
+ export declare interface BatchDetectEntitiesCommandInput {
258
+ TextList: string[]
259
+ LanguageCode: string
260
+ }
261
+ export declare interface BatchDetectEntitiesCommandOutput {
262
+ ResultList: Array<{
263
+ Index?: number
264
+ Entities?: Entity[]
265
+ }>
266
+ ErrorList: Array<{
267
+ Index?: number
268
+ ErrorCode?: string
269
+ ErrorMessage?: string
270
+ }>
271
+ }
272
+ export declare interface BatchDetectKeyPhrasesCommandInput {
273
+ TextList: string[]
274
+ LanguageCode: string
275
+ }
276
+ export declare interface BatchDetectKeyPhrasesCommandOutput {
277
+ ResultList: Array<{
278
+ Index?: number
279
+ KeyPhrases?: KeyPhrase[]
280
+ }>
281
+ ErrorList: Array<{
282
+ Index?: number
283
+ ErrorCode?: string
284
+ ErrorMessage?: string
285
+ }>
286
+ }
287
+ export declare interface BatchDetectDominantLanguageCommandInput {
288
+ TextList: string[]
289
+ }
290
+ export declare interface BatchDetectDominantLanguageCommandOutput {
291
+ ResultList: Array<{
292
+ Index?: number
293
+ Languages?: DominantLanguage[]
294
+ }>
295
+ ErrorList: Array<{
296
+ Index?: number
297
+ ErrorCode?: string
298
+ ErrorMessage?: string
299
+ }>
300
+ }
301
+ export declare interface BatchDetectSyntaxCommandInput {
302
+ TextList: string[]
303
+ LanguageCode: string
304
+ }
305
+ export declare interface BatchDetectSyntaxCommandOutput {
306
+ ResultList: Array<{
307
+ Index?: number
308
+ SyntaxTokens?: SyntaxToken[]
309
+ }>
310
+ ErrorList: Array<{
311
+ Index?: number
312
+ ErrorCode?: string
313
+ ErrorMessage?: string
314
+ }>
315
+ }
316
+ export declare interface StartSentimentDetectionJobCommandInput {
317
+ InputDataConfig: {
318
+ S3Uri: string
319
+ InputFormat?: 'ONE_DOC_PER_FILE' | 'ONE_DOC_PER_LINE'
320
+ DocumentReaderConfig?: {
321
+ DocumentReadAction: 'TEXTRACT_DETECT_DOCUMENT_TEXT' | 'TEXTRACT_ANALYZE_DOCUMENT'
322
+ DocumentReadMode?: 'SERVICE_DEFAULT' | 'FORCE_DOCUMENT_READ_ACTION'
323
+ FeatureTypes?: ('TABLES' | 'FORMS')[]
324
+ }
325
+ }
326
+ OutputDataConfig: {
327
+ S3Uri: string
328
+ KmsKeyId?: string
329
+ }
330
+ DataAccessRoleArn: string
331
+ JobName?: string
332
+ LanguageCode: string
333
+ ClientRequestToken?: string
334
+ VolumeKmsKeyId?: string
335
+ VpcConfig?: {
336
+ SecurityGroupIds: string[]
337
+ Subnets: string[]
338
+ }
339
+ Tags?: Array<{ Key: string; Value: string }>
340
+ }
341
+ export declare interface StartSentimentDetectionJobCommandOutput {
342
+ JobId?: string
343
+ JobArn?: string
344
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED'
345
+ }
346
+ export declare interface StartEntitiesDetectionJobCommandInput {
347
+ InputDataConfig: {
348
+ S3Uri: string
349
+ InputFormat?: 'ONE_DOC_PER_FILE' | 'ONE_DOC_PER_LINE'
350
+ DocumentReaderConfig?: {
351
+ DocumentReadAction: 'TEXTRACT_DETECT_DOCUMENT_TEXT' | 'TEXTRACT_ANALYZE_DOCUMENT'
352
+ DocumentReadMode?: 'SERVICE_DEFAULT' | 'FORCE_DOCUMENT_READ_ACTION'
353
+ FeatureTypes?: ('TABLES' | 'FORMS')[]
354
+ }
355
+ }
356
+ OutputDataConfig: {
357
+ S3Uri: string
358
+ KmsKeyId?: string
359
+ }
360
+ DataAccessRoleArn: string
361
+ JobName?: string
362
+ EntityRecognizerArn?: string
363
+ LanguageCode: string
364
+ ClientRequestToken?: string
365
+ VolumeKmsKeyId?: string
366
+ VpcConfig?: {
367
+ SecurityGroupIds: string[]
368
+ Subnets: string[]
369
+ }
370
+ Tags?: Array<{ Key: string; Value: string }>
371
+ FlywheelArn?: string
372
+ }
373
+ export declare interface StartEntitiesDetectionJobCommandOutput {
374
+ JobId?: string
375
+ JobArn?: string
376
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED'
377
+ EntityRecognizerArn?: string
378
+ }
379
+ export declare interface StartKeyPhrasesDetectionJobCommandInput {
380
+ InputDataConfig: {
381
+ S3Uri: string
382
+ InputFormat?: 'ONE_DOC_PER_FILE' | 'ONE_DOC_PER_LINE'
383
+ }
384
+ OutputDataConfig: {
385
+ S3Uri: string
386
+ KmsKeyId?: string
387
+ }
388
+ DataAccessRoleArn: string
389
+ JobName?: string
390
+ LanguageCode: string
391
+ ClientRequestToken?: string
392
+ VolumeKmsKeyId?: string
393
+ VpcConfig?: {
394
+ SecurityGroupIds: string[]
395
+ Subnets: string[]
396
+ }
397
+ Tags?: Array<{ Key: string; Value: string }>
398
+ }
399
+ export declare interface StartKeyPhrasesDetectionJobCommandOutput {
400
+ JobId?: string
401
+ JobArn?: string
402
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED'
403
+ }
404
+ export declare interface StartPiiEntitiesDetectionJobCommandInput {
405
+ InputDataConfig: {
406
+ S3Uri: string
407
+ InputFormat?: 'ONE_DOC_PER_FILE' | 'ONE_DOC_PER_LINE'
408
+ }
409
+ OutputDataConfig: {
410
+ S3Uri: string
411
+ KmsKeyId?: string
412
+ }
413
+ Mode: 'ONLY_REDACTION' | 'ONLY_OFFSETS'
414
+ RedactionConfig?: {
415
+ PiiEntityTypes?: string[]
416
+ MaskMode?: 'MASK' | 'REPLACE_WITH_PII_ENTITY_TYPE'
417
+ MaskCharacter?: string
418
+ }
419
+ DataAccessRoleArn: string
420
+ JobName?: string
421
+ LanguageCode: string
422
+ ClientRequestToken?: string
423
+ Tags?: Array<{ Key: string; Value: string }>
424
+ }
425
+ export declare interface StartPiiEntitiesDetectionJobCommandOutput {
426
+ JobId?: string
427
+ JobArn?: string
428
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED'
429
+ }
430
+ export declare interface DescribeSentimentDetectionJobCommandInput {
431
+ JobId: string
432
+ }
433
+ export declare interface DescribeSentimentDetectionJobCommandOutput {
434
+ SentimentDetectionJobProperties?: {
435
+ JobId?: string
436
+ JobArn?: string
437
+ JobName?: string
438
+ JobStatus?: 'SUBMITTED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'STOP_REQUESTED' | 'STOPPED'
439
+ Message?: string
440
+ SubmitTime?: string
441
+ EndTime?: string
442
+ InputDataConfig?: {
443
+ S3Uri?: string
444
+ InputFormat?: string
445
+ }
446
+ OutputDataConfig?: {
447
+ S3Uri?: string
448
+ KmsKeyId?: string
449
+ }
450
+ LanguageCode?: string
451
+ DataAccessRoleArn?: string
452
+ VolumeKmsKeyId?: string
453
+ VpcConfig?: {
454
+ SecurityGroupIds?: string[]
455
+ Subnets?: string[]
456
+ }
457
+ }
458
+ }
459
+ // ============================================================================
460
+ // Comprehend Client
461
+ // ============================================================================
462
+ export declare class ComprehendClient {
463
+ private client: AWSClient;
464
+ private region: string;
465
+ constructor(region?: string);
466
+ private request<T>(action: string, params: Record<string, unknown>): Promise<T>;
467
+ detectSentiment(params: DetectSentimentCommandInput): Promise<DetectSentimentCommandOutput>;
468
+ detectEntities(params: DetectEntitiesCommandInput): Promise<DetectEntitiesCommandOutput>;
469
+ detectKeyPhrases(params: DetectKeyPhrasesCommandInput): Promise<DetectKeyPhrasesCommandOutput>;
470
+ detectDominantLanguage(params: DetectDominantLanguageCommandInput): Promise<DetectDominantLanguageCommandOutput>;
471
+ detectPiiEntities(params: DetectPiiEntitiesCommandInput): Promise<DetectPiiEntitiesCommandOutput>;
472
+ containsPiiEntities(params: ContainsPiiEntitiesCommandInput): Promise<ContainsPiiEntitiesCommandOutput>;
473
+ detectSyntax(params: DetectSyntaxCommandInput): Promise<DetectSyntaxCommandOutput>;
474
+ detectTargetedSentiment(params: DetectTargetedSentimentCommandInput): Promise<DetectTargetedSentimentCommandOutput>;
475
+ classifyDocument(params: ClassifyDocumentCommandInput): Promise<ClassifyDocumentCommandOutput>;
476
+ batchDetectSentiment(params: BatchDetectSentimentCommandInput): Promise<BatchDetectSentimentCommandOutput>;
477
+ batchDetectEntities(params: BatchDetectEntitiesCommandInput): Promise<BatchDetectEntitiesCommandOutput>;
478
+ batchDetectKeyPhrases(params: BatchDetectKeyPhrasesCommandInput): Promise<BatchDetectKeyPhrasesCommandOutput>;
479
+ batchDetectDominantLanguage(params: BatchDetectDominantLanguageCommandInput): Promise<BatchDetectDominantLanguageCommandOutput>;
480
+ batchDetectSyntax(params: BatchDetectSyntaxCommandInput): Promise<BatchDetectSyntaxCommandOutput>;
481
+ startSentimentDetectionJob(params: StartSentimentDetectionJobCommandInput): Promise<StartSentimentDetectionJobCommandOutput>;
482
+ startEntitiesDetectionJob(params: StartEntitiesDetectionJobCommandInput): Promise<StartEntitiesDetectionJobCommandOutput>;
483
+ startKeyPhrasesDetectionJob(params: StartKeyPhrasesDetectionJobCommandInput): Promise<StartKeyPhrasesDetectionJobCommandOutput>;
484
+ startPiiEntitiesDetectionJob(params: StartPiiEntitiesDetectionJobCommandInput): Promise<StartPiiEntitiesDetectionJobCommandOutput>;
485
+ describeSentimentDetectionJob(params: DescribeSentimentDetectionJobCommandInput): Promise<DescribeSentimentDetectionJobCommandOutput>;
486
+ analyzeSentiment(text: string, languageCode?: string): Promise<{
487
+ sentiment: 'POSITIVE' | 'NEGATIVE' | 'NEUTRAL' | 'MIXED'
488
+ scores: { positive: number; negative: number; neutral: number; mixed: number }
489
+ }>;
490
+ extractEntities(text: string, languageCode?: string): Promise<Array<{
491
+ text: string
492
+ type: string
493
+ score: number
494
+ }>>;
495
+ extractKeyPhrases(text: string, languageCode?: string): Promise<string[]>;
496
+ detectLanguage(text: string): Promise<{ languageCode: string; confidence: number }>;
497
+ findPii(text: string, languageCode?: string): Promise<Array<{
498
+ type: string
499
+ beginOffset: number
500
+ endOffset: number
501
+ score: number
502
+ }>>;
503
+ hasPii(text: string, languageCode?: string): Promise<boolean>;
504
+ redactPii(text: string, languageCode?: string): Promise<string>;
505
+ }