@effect-aws/client-textract 1.2.0 → 1.9.0

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 (68) hide show
  1. package/Errors/package.json +6 -0
  2. package/TextractClientInstance/package.json +6 -0
  3. package/TextractService/package.json +6 -0
  4. package/TextractServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +26 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/TextractClientInstance.d.ts +24 -0
  10. package/dist/cjs/TextractClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/TextractClientInstance.js +50 -0
  12. package/dist/cjs/TextractClientInstance.js.map +1 -0
  13. package/{lib → dist/cjs}/TextractService.d.ts +16 -38
  14. package/dist/cjs/TextractService.d.ts.map +1 -0
  15. package/dist/cjs/TextractService.js +81 -0
  16. package/dist/cjs/TextractService.js.map +1 -0
  17. package/dist/cjs/TextractServiceConfig.d.ts +25 -0
  18. package/dist/cjs/TextractServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/TextractServiceConfig.js +35 -0
  20. package/dist/cjs/TextractServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +25 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/TextractClientInstance.d.ts +24 -0
  28. package/dist/dts/TextractClientInstance.d.ts.map +1 -0
  29. package/dist/dts/TextractService.d.ts +168 -0
  30. package/dist/dts/TextractService.d.ts.map +1 -0
  31. package/dist/dts/TextractServiceConfig.d.ts +25 -0
  32. package/dist/dts/TextractServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +23 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/TextractClientInstance.js +23 -0
  38. package/dist/esm/TextractClientInstance.js.map +1 -0
  39. package/dist/esm/TextractService.js +54 -0
  40. package/dist/esm/TextractService.js.map +1 -0
  41. package/dist/esm/TextractServiceConfig.js +31 -0
  42. package/dist/esm/TextractServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +65 -0
  48. package/src/TextractClientInstance.ts +33 -0
  49. package/src/TextractService.ts +685 -0
  50. package/src/TextractServiceConfig.ts +52 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -19
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -26
  55. package/lib/TextractClientInstance.d.ts +0 -31
  56. package/lib/TextractClientInstance.js +0 -57
  57. package/lib/TextractClientInstanceConfig.d.ts +0 -23
  58. package/lib/TextractClientInstanceConfig.js +0 -44
  59. package/lib/TextractService.js +0 -113
  60. package/lib/esm/Errors.js +0 -23
  61. package/lib/esm/TextractClientInstance.js +0 -30
  62. package/lib/esm/TextractClientInstanceConfig.js +0 -40
  63. package/lib/esm/TextractService.js +0 -109
  64. package/lib/esm/index.js +0 -5
  65. package/lib/index.d.ts +0 -4
  66. package/lib/index.js +0 -21
  67. package/project.json +0 -77
  68. package/vitest.config.ts +0 -3
@@ -0,0 +1,685 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ AnalyzeDocumentCommand,
6
+ type AnalyzeDocumentCommandInput,
7
+ type AnalyzeDocumentCommandOutput,
8
+ AnalyzeExpenseCommand,
9
+ type AnalyzeExpenseCommandInput,
10
+ type AnalyzeExpenseCommandOutput,
11
+ AnalyzeIDCommand,
12
+ type AnalyzeIDCommandInput,
13
+ type AnalyzeIDCommandOutput,
14
+ CreateAdapterCommand,
15
+ type CreateAdapterCommandInput,
16
+ type CreateAdapterCommandOutput,
17
+ CreateAdapterVersionCommand,
18
+ type CreateAdapterVersionCommandInput,
19
+ type CreateAdapterVersionCommandOutput,
20
+ DeleteAdapterCommand,
21
+ type DeleteAdapterCommandInput,
22
+ type DeleteAdapterCommandOutput,
23
+ DeleteAdapterVersionCommand,
24
+ type DeleteAdapterVersionCommandInput,
25
+ type DeleteAdapterVersionCommandOutput,
26
+ DetectDocumentTextCommand,
27
+ type DetectDocumentTextCommandInput,
28
+ type DetectDocumentTextCommandOutput,
29
+ GetAdapterCommand,
30
+ type GetAdapterCommandInput,
31
+ type GetAdapterCommandOutput,
32
+ GetAdapterVersionCommand,
33
+ type GetAdapterVersionCommandInput,
34
+ type GetAdapterVersionCommandOutput,
35
+ GetDocumentAnalysisCommand,
36
+ type GetDocumentAnalysisCommandInput,
37
+ type GetDocumentAnalysisCommandOutput,
38
+ GetDocumentTextDetectionCommand,
39
+ type GetDocumentTextDetectionCommandInput,
40
+ type GetDocumentTextDetectionCommandOutput,
41
+ GetExpenseAnalysisCommand,
42
+ type GetExpenseAnalysisCommandInput,
43
+ type GetExpenseAnalysisCommandOutput,
44
+ GetLendingAnalysisCommand,
45
+ type GetLendingAnalysisCommandInput,
46
+ type GetLendingAnalysisCommandOutput,
47
+ GetLendingAnalysisSummaryCommand,
48
+ type GetLendingAnalysisSummaryCommandInput,
49
+ type GetLendingAnalysisSummaryCommandOutput,
50
+ ListAdaptersCommand,
51
+ type ListAdaptersCommandInput,
52
+ type ListAdaptersCommandOutput,
53
+ ListAdapterVersionsCommand,
54
+ type ListAdapterVersionsCommandInput,
55
+ type ListAdapterVersionsCommandOutput,
56
+ ListTagsForResourceCommand,
57
+ type ListTagsForResourceCommandInput,
58
+ type ListTagsForResourceCommandOutput,
59
+ StartDocumentAnalysisCommand,
60
+ type StartDocumentAnalysisCommandInput,
61
+ type StartDocumentAnalysisCommandOutput,
62
+ StartDocumentTextDetectionCommand,
63
+ type StartDocumentTextDetectionCommandInput,
64
+ type StartDocumentTextDetectionCommandOutput,
65
+ StartExpenseAnalysisCommand,
66
+ type StartExpenseAnalysisCommandInput,
67
+ type StartExpenseAnalysisCommandOutput,
68
+ StartLendingAnalysisCommand,
69
+ type StartLendingAnalysisCommandInput,
70
+ type StartLendingAnalysisCommandOutput,
71
+ TagResourceCommand,
72
+ type TagResourceCommandInput,
73
+ type TagResourceCommandOutput,
74
+ type TextractClient,
75
+ type TextractClientConfig,
76
+ UntagResourceCommand,
77
+ type UntagResourceCommandInput,
78
+ type UntagResourceCommandOutput,
79
+ UpdateAdapterCommand,
80
+ type UpdateAdapterCommandInput,
81
+ type UpdateAdapterCommandOutput,
82
+ } from "@aws-sdk/client-textract";
83
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
84
+ import { Service } from "@effect-aws/commons";
85
+ import { Effect, Layer } from "effect";
86
+ import type {
87
+ AccessDeniedError,
88
+ BadDocumentError,
89
+ ConflictError,
90
+ DocumentTooLargeError,
91
+ HumanLoopQuotaExceededError,
92
+ IdempotentParameterMismatchError,
93
+ InternalServerError,
94
+ InvalidJobIdError,
95
+ InvalidKMSKeyError,
96
+ InvalidParameterError,
97
+ InvalidS3ObjectError,
98
+ LimitExceededError,
99
+ ProvisionedThroughputExceededError,
100
+ ResourceNotFoundError,
101
+ ServiceQuotaExceededError,
102
+ ThrottlingError,
103
+ UnsupportedDocumentError,
104
+ ValidationError,
105
+ } from "./Errors.js";
106
+ import { AllServiceErrors } from "./Errors.js";
107
+ import * as Instance from "./TextractClientInstance.js";
108
+ import * as TextractServiceConfig from "./TextractServiceConfig.js";
109
+
110
+ const commands = {
111
+ AnalyzeDocumentCommand,
112
+ AnalyzeExpenseCommand,
113
+ AnalyzeIDCommand,
114
+ CreateAdapterCommand,
115
+ CreateAdapterVersionCommand,
116
+ DeleteAdapterCommand,
117
+ DeleteAdapterVersionCommand,
118
+ DetectDocumentTextCommand,
119
+ GetAdapterCommand,
120
+ GetAdapterVersionCommand,
121
+ GetDocumentAnalysisCommand,
122
+ GetDocumentTextDetectionCommand,
123
+ GetExpenseAnalysisCommand,
124
+ GetLendingAnalysisCommand,
125
+ GetLendingAnalysisSummaryCommand,
126
+ ListAdapterVersionsCommand,
127
+ ListAdaptersCommand,
128
+ ListTagsForResourceCommand,
129
+ StartDocumentAnalysisCommand,
130
+ StartDocumentTextDetectionCommand,
131
+ StartExpenseAnalysisCommand,
132
+ StartLendingAnalysisCommand,
133
+ TagResourceCommand,
134
+ UntagResourceCommand,
135
+ UpdateAdapterCommand,
136
+ };
137
+
138
+ interface TextractService$ {
139
+ readonly _: unique symbol;
140
+
141
+ /**
142
+ * @see {@link AnalyzeDocumentCommand}
143
+ */
144
+ analyzeDocument(
145
+ args: AnalyzeDocumentCommandInput,
146
+ options?: HttpHandlerOptions,
147
+ ): Effect.Effect<
148
+ AnalyzeDocumentCommandOutput,
149
+ | SdkError
150
+ | AccessDeniedError
151
+ | BadDocumentError
152
+ | DocumentTooLargeError
153
+ | HumanLoopQuotaExceededError
154
+ | InternalServerError
155
+ | InvalidParameterError
156
+ | InvalidS3ObjectError
157
+ | ProvisionedThroughputExceededError
158
+ | ThrottlingError
159
+ | UnsupportedDocumentError
160
+ >;
161
+
162
+ /**
163
+ * @see {@link AnalyzeExpenseCommand}
164
+ */
165
+ analyzeExpense(
166
+ args: AnalyzeExpenseCommandInput,
167
+ options?: HttpHandlerOptions,
168
+ ): Effect.Effect<
169
+ AnalyzeExpenseCommandOutput,
170
+ | SdkError
171
+ | AccessDeniedError
172
+ | BadDocumentError
173
+ | DocumentTooLargeError
174
+ | InternalServerError
175
+ | InvalidParameterError
176
+ | InvalidS3ObjectError
177
+ | ProvisionedThroughputExceededError
178
+ | ThrottlingError
179
+ | UnsupportedDocumentError
180
+ >;
181
+
182
+ /**
183
+ * @see {@link AnalyzeIDCommand}
184
+ */
185
+ analyzeID(
186
+ args: AnalyzeIDCommandInput,
187
+ options?: HttpHandlerOptions,
188
+ ): Effect.Effect<
189
+ AnalyzeIDCommandOutput,
190
+ | SdkError
191
+ | AccessDeniedError
192
+ | BadDocumentError
193
+ | DocumentTooLargeError
194
+ | InternalServerError
195
+ | InvalidParameterError
196
+ | InvalidS3ObjectError
197
+ | ProvisionedThroughputExceededError
198
+ | ThrottlingError
199
+ | UnsupportedDocumentError
200
+ >;
201
+
202
+ /**
203
+ * @see {@link CreateAdapterCommand}
204
+ */
205
+ createAdapter(
206
+ args: CreateAdapterCommandInput,
207
+ options?: HttpHandlerOptions,
208
+ ): Effect.Effect<
209
+ CreateAdapterCommandOutput,
210
+ | SdkError
211
+ | AccessDeniedError
212
+ | ConflictError
213
+ | IdempotentParameterMismatchError
214
+ | InternalServerError
215
+ | InvalidParameterError
216
+ | LimitExceededError
217
+ | ProvisionedThroughputExceededError
218
+ | ServiceQuotaExceededError
219
+ | ThrottlingError
220
+ | ValidationError
221
+ >;
222
+
223
+ /**
224
+ * @see {@link CreateAdapterVersionCommand}
225
+ */
226
+ createAdapterVersion(
227
+ args: CreateAdapterVersionCommandInput,
228
+ options?: HttpHandlerOptions,
229
+ ): Effect.Effect<
230
+ CreateAdapterVersionCommandOutput,
231
+ | SdkError
232
+ | AccessDeniedError
233
+ | ConflictError
234
+ | IdempotentParameterMismatchError
235
+ | InternalServerError
236
+ | InvalidKMSKeyError
237
+ | InvalidParameterError
238
+ | InvalidS3ObjectError
239
+ | LimitExceededError
240
+ | ProvisionedThroughputExceededError
241
+ | ResourceNotFoundError
242
+ | ServiceQuotaExceededError
243
+ | ThrottlingError
244
+ | ValidationError
245
+ >;
246
+
247
+ /**
248
+ * @see {@link DeleteAdapterCommand}
249
+ */
250
+ deleteAdapter(
251
+ args: DeleteAdapterCommandInput,
252
+ options?: HttpHandlerOptions,
253
+ ): Effect.Effect<
254
+ DeleteAdapterCommandOutput,
255
+ | SdkError
256
+ | AccessDeniedError
257
+ | ConflictError
258
+ | InternalServerError
259
+ | InvalidParameterError
260
+ | ProvisionedThroughputExceededError
261
+ | ResourceNotFoundError
262
+ | ThrottlingError
263
+ | ValidationError
264
+ >;
265
+
266
+ /**
267
+ * @see {@link DeleteAdapterVersionCommand}
268
+ */
269
+ deleteAdapterVersion(
270
+ args: DeleteAdapterVersionCommandInput,
271
+ options?: HttpHandlerOptions,
272
+ ): Effect.Effect<
273
+ DeleteAdapterVersionCommandOutput,
274
+ | SdkError
275
+ | AccessDeniedError
276
+ | ConflictError
277
+ | InternalServerError
278
+ | InvalidParameterError
279
+ | ProvisionedThroughputExceededError
280
+ | ResourceNotFoundError
281
+ | ThrottlingError
282
+ | ValidationError
283
+ >;
284
+
285
+ /**
286
+ * @see {@link DetectDocumentTextCommand}
287
+ */
288
+ detectDocumentText(
289
+ args: DetectDocumentTextCommandInput,
290
+ options?: HttpHandlerOptions,
291
+ ): Effect.Effect<
292
+ DetectDocumentTextCommandOutput,
293
+ | SdkError
294
+ | AccessDeniedError
295
+ | BadDocumentError
296
+ | DocumentTooLargeError
297
+ | InternalServerError
298
+ | InvalidParameterError
299
+ | InvalidS3ObjectError
300
+ | ProvisionedThroughputExceededError
301
+ | ThrottlingError
302
+ | UnsupportedDocumentError
303
+ >;
304
+
305
+ /**
306
+ * @see {@link GetAdapterCommand}
307
+ */
308
+ getAdapter(
309
+ args: GetAdapterCommandInput,
310
+ options?: HttpHandlerOptions,
311
+ ): Effect.Effect<
312
+ GetAdapterCommandOutput,
313
+ | SdkError
314
+ | AccessDeniedError
315
+ | InternalServerError
316
+ | InvalidParameterError
317
+ | ProvisionedThroughputExceededError
318
+ | ResourceNotFoundError
319
+ | ThrottlingError
320
+ | ValidationError
321
+ >;
322
+
323
+ /**
324
+ * @see {@link GetAdapterVersionCommand}
325
+ */
326
+ getAdapterVersion(
327
+ args: GetAdapterVersionCommandInput,
328
+ options?: HttpHandlerOptions,
329
+ ): Effect.Effect<
330
+ GetAdapterVersionCommandOutput,
331
+ | SdkError
332
+ | AccessDeniedError
333
+ | InternalServerError
334
+ | InvalidParameterError
335
+ | ProvisionedThroughputExceededError
336
+ | ResourceNotFoundError
337
+ | ThrottlingError
338
+ | ValidationError
339
+ >;
340
+
341
+ /**
342
+ * @see {@link GetDocumentAnalysisCommand}
343
+ */
344
+ getDocumentAnalysis(
345
+ args: GetDocumentAnalysisCommandInput,
346
+ options?: HttpHandlerOptions,
347
+ ): Effect.Effect<
348
+ GetDocumentAnalysisCommandOutput,
349
+ | SdkError
350
+ | AccessDeniedError
351
+ | InternalServerError
352
+ | InvalidJobIdError
353
+ | InvalidKMSKeyError
354
+ | InvalidParameterError
355
+ | InvalidS3ObjectError
356
+ | ProvisionedThroughputExceededError
357
+ | ThrottlingError
358
+ >;
359
+
360
+ /**
361
+ * @see {@link GetDocumentTextDetectionCommand}
362
+ */
363
+ getDocumentTextDetection(
364
+ args: GetDocumentTextDetectionCommandInput,
365
+ options?: HttpHandlerOptions,
366
+ ): Effect.Effect<
367
+ GetDocumentTextDetectionCommandOutput,
368
+ | SdkError
369
+ | AccessDeniedError
370
+ | InternalServerError
371
+ | InvalidJobIdError
372
+ | InvalidKMSKeyError
373
+ | InvalidParameterError
374
+ | InvalidS3ObjectError
375
+ | ProvisionedThroughputExceededError
376
+ | ThrottlingError
377
+ >;
378
+
379
+ /**
380
+ * @see {@link GetExpenseAnalysisCommand}
381
+ */
382
+ getExpenseAnalysis(
383
+ args: GetExpenseAnalysisCommandInput,
384
+ options?: HttpHandlerOptions,
385
+ ): Effect.Effect<
386
+ GetExpenseAnalysisCommandOutput,
387
+ | SdkError
388
+ | AccessDeniedError
389
+ | InternalServerError
390
+ | InvalidJobIdError
391
+ | InvalidKMSKeyError
392
+ | InvalidParameterError
393
+ | InvalidS3ObjectError
394
+ | ProvisionedThroughputExceededError
395
+ | ThrottlingError
396
+ >;
397
+
398
+ /**
399
+ * @see {@link GetLendingAnalysisCommand}
400
+ */
401
+ getLendingAnalysis(
402
+ args: GetLendingAnalysisCommandInput,
403
+ options?: HttpHandlerOptions,
404
+ ): Effect.Effect<
405
+ GetLendingAnalysisCommandOutput,
406
+ | SdkError
407
+ | AccessDeniedError
408
+ | InternalServerError
409
+ | InvalidJobIdError
410
+ | InvalidKMSKeyError
411
+ | InvalidParameterError
412
+ | InvalidS3ObjectError
413
+ | ProvisionedThroughputExceededError
414
+ | ThrottlingError
415
+ >;
416
+
417
+ /**
418
+ * @see {@link GetLendingAnalysisSummaryCommand}
419
+ */
420
+ getLendingAnalysisSummary(
421
+ args: GetLendingAnalysisSummaryCommandInput,
422
+ options?: HttpHandlerOptions,
423
+ ): Effect.Effect<
424
+ GetLendingAnalysisSummaryCommandOutput,
425
+ | SdkError
426
+ | AccessDeniedError
427
+ | InternalServerError
428
+ | InvalidJobIdError
429
+ | InvalidKMSKeyError
430
+ | InvalidParameterError
431
+ | InvalidS3ObjectError
432
+ | ProvisionedThroughputExceededError
433
+ | ThrottlingError
434
+ >;
435
+
436
+ /**
437
+ * @see {@link ListAdapterVersionsCommand}
438
+ */
439
+ listAdapterVersions(
440
+ args: ListAdapterVersionsCommandInput,
441
+ options?: HttpHandlerOptions,
442
+ ): Effect.Effect<
443
+ ListAdapterVersionsCommandOutput,
444
+ | SdkError
445
+ | AccessDeniedError
446
+ | InternalServerError
447
+ | InvalidParameterError
448
+ | ProvisionedThroughputExceededError
449
+ | ResourceNotFoundError
450
+ | ThrottlingError
451
+ | ValidationError
452
+ >;
453
+
454
+ /**
455
+ * @see {@link ListAdaptersCommand}
456
+ */
457
+ listAdapters(
458
+ args: ListAdaptersCommandInput,
459
+ options?: HttpHandlerOptions,
460
+ ): Effect.Effect<
461
+ ListAdaptersCommandOutput,
462
+ | SdkError
463
+ | AccessDeniedError
464
+ | InternalServerError
465
+ | InvalidParameterError
466
+ | ProvisionedThroughputExceededError
467
+ | ThrottlingError
468
+ | ValidationError
469
+ >;
470
+
471
+ /**
472
+ * @see {@link ListTagsForResourceCommand}
473
+ */
474
+ listTagsForResource(
475
+ args: ListTagsForResourceCommandInput,
476
+ options?: HttpHandlerOptions,
477
+ ): Effect.Effect<
478
+ ListTagsForResourceCommandOutput,
479
+ | SdkError
480
+ | AccessDeniedError
481
+ | InternalServerError
482
+ | InvalidParameterError
483
+ | ProvisionedThroughputExceededError
484
+ | ResourceNotFoundError
485
+ | ThrottlingError
486
+ | ValidationError
487
+ >;
488
+
489
+ /**
490
+ * @see {@link StartDocumentAnalysisCommand}
491
+ */
492
+ startDocumentAnalysis(
493
+ args: StartDocumentAnalysisCommandInput,
494
+ options?: HttpHandlerOptions,
495
+ ): Effect.Effect<
496
+ StartDocumentAnalysisCommandOutput,
497
+ | SdkError
498
+ | AccessDeniedError
499
+ | BadDocumentError
500
+ | DocumentTooLargeError
501
+ | IdempotentParameterMismatchError
502
+ | InternalServerError
503
+ | InvalidKMSKeyError
504
+ | InvalidParameterError
505
+ | InvalidS3ObjectError
506
+ | LimitExceededError
507
+ | ProvisionedThroughputExceededError
508
+ | ThrottlingError
509
+ | UnsupportedDocumentError
510
+ >;
511
+
512
+ /**
513
+ * @see {@link StartDocumentTextDetectionCommand}
514
+ */
515
+ startDocumentTextDetection(
516
+ args: StartDocumentTextDetectionCommandInput,
517
+ options?: HttpHandlerOptions,
518
+ ): Effect.Effect<
519
+ StartDocumentTextDetectionCommandOutput,
520
+ | SdkError
521
+ | AccessDeniedError
522
+ | BadDocumentError
523
+ | DocumentTooLargeError
524
+ | IdempotentParameterMismatchError
525
+ | InternalServerError
526
+ | InvalidKMSKeyError
527
+ | InvalidParameterError
528
+ | InvalidS3ObjectError
529
+ | LimitExceededError
530
+ | ProvisionedThroughputExceededError
531
+ | ThrottlingError
532
+ | UnsupportedDocumentError
533
+ >;
534
+
535
+ /**
536
+ * @see {@link StartExpenseAnalysisCommand}
537
+ */
538
+ startExpenseAnalysis(
539
+ args: StartExpenseAnalysisCommandInput,
540
+ options?: HttpHandlerOptions,
541
+ ): Effect.Effect<
542
+ StartExpenseAnalysisCommandOutput,
543
+ | SdkError
544
+ | AccessDeniedError
545
+ | BadDocumentError
546
+ | DocumentTooLargeError
547
+ | IdempotentParameterMismatchError
548
+ | InternalServerError
549
+ | InvalidKMSKeyError
550
+ | InvalidParameterError
551
+ | InvalidS3ObjectError
552
+ | LimitExceededError
553
+ | ProvisionedThroughputExceededError
554
+ | ThrottlingError
555
+ | UnsupportedDocumentError
556
+ >;
557
+
558
+ /**
559
+ * @see {@link StartLendingAnalysisCommand}
560
+ */
561
+ startLendingAnalysis(
562
+ args: StartLendingAnalysisCommandInput,
563
+ options?: HttpHandlerOptions,
564
+ ): Effect.Effect<
565
+ StartLendingAnalysisCommandOutput,
566
+ | SdkError
567
+ | AccessDeniedError
568
+ | BadDocumentError
569
+ | DocumentTooLargeError
570
+ | IdempotentParameterMismatchError
571
+ | InternalServerError
572
+ | InvalidKMSKeyError
573
+ | InvalidParameterError
574
+ | InvalidS3ObjectError
575
+ | LimitExceededError
576
+ | ProvisionedThroughputExceededError
577
+ | ThrottlingError
578
+ | UnsupportedDocumentError
579
+ >;
580
+
581
+ /**
582
+ * @see {@link TagResourceCommand}
583
+ */
584
+ tagResource(
585
+ args: TagResourceCommandInput,
586
+ options?: HttpHandlerOptions,
587
+ ): Effect.Effect<
588
+ TagResourceCommandOutput,
589
+ | SdkError
590
+ | AccessDeniedError
591
+ | InternalServerError
592
+ | InvalidParameterError
593
+ | ProvisionedThroughputExceededError
594
+ | ResourceNotFoundError
595
+ | ServiceQuotaExceededError
596
+ | ThrottlingError
597
+ | ValidationError
598
+ >;
599
+
600
+ /**
601
+ * @see {@link UntagResourceCommand}
602
+ */
603
+ untagResource(
604
+ args: UntagResourceCommandInput,
605
+ options?: HttpHandlerOptions,
606
+ ): Effect.Effect<
607
+ UntagResourceCommandOutput,
608
+ | SdkError
609
+ | AccessDeniedError
610
+ | InternalServerError
611
+ | InvalidParameterError
612
+ | ProvisionedThroughputExceededError
613
+ | ResourceNotFoundError
614
+ | ThrottlingError
615
+ | ValidationError
616
+ >;
617
+
618
+ /**
619
+ * @see {@link UpdateAdapterCommand}
620
+ */
621
+ updateAdapter(
622
+ args: UpdateAdapterCommandInput,
623
+ options?: HttpHandlerOptions,
624
+ ): Effect.Effect<
625
+ UpdateAdapterCommandOutput,
626
+ | SdkError
627
+ | AccessDeniedError
628
+ | ConflictError
629
+ | InternalServerError
630
+ | InvalidParameterError
631
+ | ProvisionedThroughputExceededError
632
+ | ResourceNotFoundError
633
+ | ThrottlingError
634
+ | ValidationError
635
+ >;
636
+ }
637
+
638
+ /**
639
+ * @since 1.0.0
640
+ * @category constructors
641
+ */
642
+ export const makeTextractService = Effect.gen(function*() {
643
+ const client = yield* Instance.TextractClientInstance;
644
+
645
+ return Service.fromClientAndCommands<TextractService$>(client, commands, AllServiceErrors);
646
+ });
647
+
648
+ /**
649
+ * @since 1.0.0
650
+ * @category models
651
+ */
652
+ export class TextractService extends Effect.Tag("@effect-aws/client-textract/TextractService")<
653
+ TextractService,
654
+ TextractService$
655
+ >() {
656
+ static readonly defaultLayer = Layer.effect(this, makeTextractService).pipe(Layer.provide(Instance.layer));
657
+ static readonly layer = (config: TextractService.Config) =>
658
+ Layer.effect(this, makeTextractService).pipe(
659
+ Layer.provide(Instance.layer),
660
+ Layer.provide(TextractServiceConfig.setTextractServiceConfig(config)),
661
+ );
662
+ static readonly baseLayer = (
663
+ evaluate: (defaultConfig: TextractClientConfig) => TextractClient,
664
+ ) =>
665
+ Layer.effect(this, makeTextractService).pipe(
666
+ Layer.provide(
667
+ Layer.effect(
668
+ Instance.TextractClientInstance,
669
+ Effect.map(TextractServiceConfig.toTextractClientConfig, evaluate),
670
+ ),
671
+ ),
672
+ );
673
+ }
674
+
675
+ /**
676
+ * @since 1.0.0
677
+ */
678
+ export declare namespace TextractService {
679
+ /**
680
+ * @since 1.0.0
681
+ */
682
+ export interface Config extends Omit<TextractClientConfig, "logger"> {
683
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
684
+ }
685
+ }