@aws-sdk/client-textract 3.1173.0 → 3.1174.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 (67) hide show
  1. package/README.md +91 -0
  2. package/dist-cjs/index.js +611 -10
  3. package/dist-es/Textract.js +30 -0
  4. package/dist-es/commands/CreateBlueprintCommand.js +4 -0
  5. package/dist-es/commands/CreateBlueprintVersionCommand.js +4 -0
  6. package/dist-es/commands/CreateProjectCommand.js +4 -0
  7. package/dist-es/commands/DeleteBlueprintCommand.js +4 -0
  8. package/dist-es/commands/DeleteProjectCommand.js +4 -0
  9. package/dist-es/commands/GetBlueprintCommand.js +4 -0
  10. package/dist-es/commands/GetDocumentInsightsCommand.js +4 -0
  11. package/dist-es/commands/GetProjectCommand.js +4 -0
  12. package/dist-es/commands/ListBlueprintsCommand.js +4 -0
  13. package/dist-es/commands/ListProjectsCommand.js +4 -0
  14. package/dist-es/commands/StartDocumentInsightsCommand.js +4 -0
  15. package/dist-es/commands/UpdateBlueprintCommand.js +4 -0
  16. package/dist-es/commands/UpdateProjectCommand.js +4 -0
  17. package/dist-es/commands/index.js +13 -0
  18. package/dist-es/models/enums.js +68 -0
  19. package/dist-es/pagination/ListBlueprintsPaginator.js +4 -0
  20. package/dist-es/pagination/ListProjectsPaginator.js +4 -0
  21. package/dist-es/pagination/index.js +2 -0
  22. package/dist-es/schemas/schemas_0.js +403 -9
  23. package/dist-types/Textract.d.ts +107 -0
  24. package/dist-types/TextractClient.d.ts +15 -2
  25. package/dist-types/commands/CreateBlueprintCommand.d.ts +115 -0
  26. package/dist-types/commands/CreateBlueprintVersionCommand.d.ts +108 -0
  27. package/dist-types/commands/CreateProjectCommand.d.ts +171 -0
  28. package/dist-types/commands/DeleteBlueprintCommand.d.ts +97 -0
  29. package/dist-types/commands/DeleteProjectCommand.d.ts +93 -0
  30. package/dist-types/commands/GetBlueprintCommand.d.ts +106 -0
  31. package/dist-types/commands/GetDocumentInsightsCommand.d.ts +101 -0
  32. package/dist-types/commands/GetProjectCommand.d.ts +160 -0
  33. package/dist-types/commands/ListBlueprintsCommand.d.ts +114 -0
  34. package/dist-types/commands/ListProjectsCommand.d.ts +110 -0
  35. package/dist-types/commands/StartDocumentInsightsCommand.d.ts +130 -0
  36. package/dist-types/commands/UpdateBlueprintCommand.d.ts +106 -0
  37. package/dist-types/commands/UpdateProjectCommand.d.ts +168 -0
  38. package/dist-types/commands/index.d.ts +13 -0
  39. package/dist-types/models/enums.d.ts +132 -0
  40. package/dist-types/models/models_0.d.ts +1025 -14
  41. package/dist-types/pagination/ListBlueprintsPaginator.d.ts +7 -0
  42. package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/index.d.ts +2 -0
  44. package/dist-types/schemas/schemas_0.d.ts +62 -0
  45. package/dist-types/ts3.4/Textract.d.ts +234 -0
  46. package/dist-types/ts3.4/TextractClient.d.ts +77 -2
  47. package/dist-types/ts3.4/commands/CreateBlueprintCommand.d.ts +38 -0
  48. package/dist-types/ts3.4/commands/CreateBlueprintVersionCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
  50. package/dist-types/ts3.4/commands/DeleteBlueprintCommand.d.ts +38 -0
  51. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
  52. package/dist-types/ts3.4/commands/GetBlueprintCommand.d.ts +38 -0
  53. package/dist-types/ts3.4/commands/GetDocumentInsightsCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
  55. package/dist-types/ts3.4/commands/ListBlueprintsCommand.d.ts +38 -0
  56. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
  57. package/dist-types/ts3.4/commands/StartDocumentInsightsCommand.d.ts +39 -0
  58. package/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +38 -0
  59. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  61. package/dist-types/ts3.4/models/enums.d.ts +78 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +232 -0
  63. package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  66. package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
  67. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/core/serde";
2
- import type { AdapterVersionStatus, AutoUpdate, BlockType, ContentClassifier, EntityType, FeatureType, JobStatus, RelationshipType, SelectionStatus, TextType, ValueType } from "./enums";
2
+ import type { AdapterVersionStatus, AutoUpdate, BlockType, ContentClassifier, EntityType, ExtractionGranularityType, FeatureType, JobStatus, OutputTextFormatType, PIIEntityType, PIIRedactionMaskMode, ProjectStatus, RelationshipType, ResourceOwner, SelectionStatus, SensitiveDataDetectionMode, State, TextType, ValueType } from "./enums";
3
3
  /**
4
4
  * <p>An adapter selected for use when analyzing documents. Contains an adapter ID and a version number.
5
5
  * Contains information on pages selected for analysis when analyzing documents asychronously.</p>
@@ -1247,6 +1247,88 @@ export interface AnalyzeIDResponse {
1247
1247
  */
1248
1248
  AnalyzeIDModelVersion?: string | undefined;
1249
1249
  }
1250
+ /**
1251
+ * <p>A filter used to limit results to a specific blueprint, and optionally a specific
1252
+ * version.</p>
1253
+ * @public
1254
+ */
1255
+ export interface BlueprintFilter {
1256
+ /**
1257
+ * <p>The Amazon Resource Name (ARN) of the blueprint to filter by.</p>
1258
+ * @public
1259
+ */
1260
+ BlueprintArn: string | undefined;
1261
+ /**
1262
+ * <p>The version of the blueprint to filter by.</p>
1263
+ * @public
1264
+ */
1265
+ BlueprintVersion?: string | undefined;
1266
+ }
1267
+ /**
1268
+ * <p>Associates a blueprint, and optionally a specific blueprint version, with a project for
1269
+ * custom output extraction.</p>
1270
+ * @public
1271
+ */
1272
+ export interface BlueprintItem {
1273
+ /**
1274
+ * <p>The Amazon Resource Name (ARN) of the blueprint.</p>
1275
+ * @public
1276
+ */
1277
+ BlueprintArn: string | undefined;
1278
+ /**
1279
+ * <p>The version of the blueprint. If omitted, the latest version is used.</p>
1280
+ * @public
1281
+ */
1282
+ BlueprintVersion?: string | undefined;
1283
+ }
1284
+ /**
1285
+ * <p>A summary of a blueprint, returned in the results of <code>ListBlueprints</code>.</p>
1286
+ * @public
1287
+ */
1288
+ export interface BlueprintSummary {
1289
+ /**
1290
+ * <p>The Amazon Resource Name (ARN) of the blueprint.</p>
1291
+ * @public
1292
+ */
1293
+ BlueprintArn: string | undefined;
1294
+ /**
1295
+ * <p>The name of the blueprint.</p>
1296
+ * @public
1297
+ */
1298
+ BlueprintName?: string | undefined;
1299
+ /**
1300
+ * <p>The version of the blueprint.</p>
1301
+ * @public
1302
+ */
1303
+ BlueprintVersion?: string | undefined;
1304
+ /**
1305
+ * <p>Whether the blueprint is owned by your account or provided by Amazon Textract.</p>
1306
+ * @public
1307
+ */
1308
+ ResourceOwner?: ResourceOwner | undefined;
1309
+ /**
1310
+ * <p>The date and time that the blueprint was created.</p>
1311
+ * @public
1312
+ */
1313
+ CreationTime: Date | undefined;
1314
+ /**
1315
+ * <p>The date and time that the blueprint was last modified.</p>
1316
+ * @public
1317
+ */
1318
+ LastModifiedTime?: Date | undefined;
1319
+ }
1320
+ /**
1321
+ * <p>Controls whether bounding box geometry is returned in the extraction output.</p>
1322
+ * @public
1323
+ */
1324
+ export interface BoundingBoxConfiguration {
1325
+ /**
1326
+ * <p>Set to <code>ENABLED</code> to return bounding box geometry, or <code>DISABLED</code> to
1327
+ * omit it.</p>
1328
+ * @public
1329
+ */
1330
+ State: State | undefined;
1331
+ }
1250
1332
  /**
1251
1333
  * @public
1252
1334
  */
@@ -1398,6 +1480,387 @@ export interface CreateAdapterVersionResponse {
1398
1480
  */
1399
1481
  AdapterVersion?: string | undefined;
1400
1482
  }
1483
+ /**
1484
+ * <p>Specifies the AWS Key Management Service (AWS KMS) key and encryption context used to encrypt a resource at
1485
+ * rest. When omitted, Amazon Textract encrypts the resource using an AWS owned key.</p>
1486
+ * @public
1487
+ */
1488
+ export interface EncryptionConfiguration {
1489
+ /**
1490
+ * <p>The identifier of the AWS KMS key to use for encryption. This can be a key ID, key ARN,
1491
+ * alias name, or alias ARN.</p>
1492
+ * @public
1493
+ */
1494
+ KmsKeyId: string | undefined;
1495
+ /**
1496
+ * <p>A set of key-value pairs that Amazon Textract includes as the AWS KMS encryption context
1497
+ * when encrypting and decrypting the resource.</p>
1498
+ * <p>On <code>UpdateProject</code> and <code>UpdateBlueprint</code>, this member is the one
1499
+ * exception to replacing a supplied configuration whole. If you omit it, the stored encryption
1500
+ * context is kept. To clear a custom encryption context, specify an empty map
1501
+ * (<code>\{\}</code>).</p>
1502
+ * @public
1503
+ */
1504
+ KmsEncryptionContext?: Record<string, string> | undefined;
1505
+ }
1506
+ /**
1507
+ * @public
1508
+ */
1509
+ export interface CreateBlueprintRequest {
1510
+ /**
1511
+ * <p>A unique, case-sensitive identifier that you provide to ensure that the operation
1512
+ * completes no more than one time. If you use the same token for a request that matches a
1513
+ * previous request, the service ignores the request, but does not return an error.</p>
1514
+ * @public
1515
+ */
1516
+ ClientRequestToken?: string | undefined;
1517
+ /**
1518
+ * <p>A unique name for the blueprint.</p>
1519
+ * @public
1520
+ */
1521
+ BlueprintName: string | undefined;
1522
+ /**
1523
+ * <p>The schema of the blueprint, which defines the fields to extract and their expected
1524
+ * structure.</p>
1525
+ * @public
1526
+ */
1527
+ Schema: string | undefined;
1528
+ /**
1529
+ * <p>The AWS KMS encryption configuration used to encrypt the blueprint at rest.</p>
1530
+ * @public
1531
+ */
1532
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
1533
+ /**
1534
+ * <p>A set of tags (key-value pairs) to assign to the blueprint.</p>
1535
+ * @public
1536
+ */
1537
+ Tags?: Record<string, string> | undefined;
1538
+ }
1539
+ /**
1540
+ * @public
1541
+ */
1542
+ export interface CreateBlueprintResponse {
1543
+ /**
1544
+ * <p>The Amazon Resource Name (ARN) of the blueprint that was created.</p>
1545
+ * @public
1546
+ */
1547
+ BlueprintArn: string | undefined;
1548
+ }
1549
+ /**
1550
+ * @public
1551
+ */
1552
+ export interface CreateBlueprintVersionRequest {
1553
+ /**
1554
+ * <p>The Amazon Resource Name (ARN) of the blueprint to create a new version of.</p>
1555
+ * @public
1556
+ */
1557
+ BlueprintArn: string | undefined;
1558
+ /**
1559
+ * <p>A unique, case-sensitive identifier that you provide to ensure that the operation
1560
+ * completes no more than one time. If you use the same token for a request that matches a
1561
+ * previous request, the service ignores the request, but does not return an error.</p>
1562
+ * @public
1563
+ */
1564
+ ClientRequestToken?: string | undefined;
1565
+ }
1566
+ /**
1567
+ * @public
1568
+ */
1569
+ export interface CreateBlueprintVersionResponse {
1570
+ /**
1571
+ * <p>The Amazon Resource Name (ARN) of the blueprint.</p>
1572
+ * @public
1573
+ */
1574
+ BlueprintArn: string | undefined;
1575
+ /**
1576
+ * <p>The version of the blueprint that was created.</p>
1577
+ * @public
1578
+ */
1579
+ BlueprintVersion: string | undefined;
1580
+ }
1581
+ /**
1582
+ * <p>Associates blueprints with a project to produce custom structured output. A fallback
1583
+ * blueprint can be supplied for documents that do not match a primary blueprint.</p>
1584
+ * @public
1585
+ */
1586
+ export interface CustomConfiguration {
1587
+ /**
1588
+ * <p>The blueprints used to extract custom structured output.</p>
1589
+ * @public
1590
+ */
1591
+ Blueprints: BlueprintItem[] | undefined;
1592
+ /**
1593
+ * <p>The blueprint used when a document does not match any of the primary blueprints. Requires
1594
+ * at least one blueprint in <code>Blueprints</code>.</p>
1595
+ * @public
1596
+ */
1597
+ FallbackBlueprints?: BlueprintItem[] | undefined;
1598
+ }
1599
+ /**
1600
+ * <p>Specifies the granularity levels at which Amazon Textract extracts content from a
1601
+ * document.</p>
1602
+ * @public
1603
+ */
1604
+ export interface ExtractionGranularity {
1605
+ /**
1606
+ * <p>The granularity levels at which Amazon Textract extracts content, from the whole document
1607
+ * down to individual lines of text. Each type can appear only once.</p>
1608
+ * @public
1609
+ */
1610
+ Types?: ExtractionGranularityType[] | undefined;
1611
+ }
1612
+ /**
1613
+ * <p>Controls whether an additional file format is produced alongside the primary extraction
1614
+ * output.</p>
1615
+ * @public
1616
+ */
1617
+ export interface OutputAdditionalFileFormat {
1618
+ /**
1619
+ * <p>Set to <code>ENABLED</code> to produce an additional file format, or
1620
+ * <code>DISABLED</code> to omit it.</p>
1621
+ * @public
1622
+ */
1623
+ State: State | undefined;
1624
+ }
1625
+ /**
1626
+ * <p>Specifies the text formats produced in the extraction output.</p>
1627
+ * @public
1628
+ */
1629
+ export interface OutputTextFormat {
1630
+ /**
1631
+ * <p>The text formats produced in the extraction output. Each type can appear only once, and
1632
+ * <code>CSV</code> can't be the only type.</p>
1633
+ * @public
1634
+ */
1635
+ Types?: OutputTextFormatType[] | undefined;
1636
+ }
1637
+ /**
1638
+ * <p>Controls the format of the extraction output, including the text format and any
1639
+ * additional file formats.</p>
1640
+ * @public
1641
+ */
1642
+ export interface OutputFormat {
1643
+ /**
1644
+ * <p>Controls whether an additional file format is produced alongside the primary
1645
+ * output.</p>
1646
+ * @public
1647
+ */
1648
+ AdditionalFileFormat: OutputAdditionalFileFormat | undefined;
1649
+ /**
1650
+ * <p>Controls the text formats produced in the extraction output.</p>
1651
+ * @public
1652
+ */
1653
+ TextFormat: OutputTextFormat | undefined;
1654
+ }
1655
+ /**
1656
+ * <p>Controls how Amazon Textract extracts content from a document, including whether bounding
1657
+ * boxes are returned, the granularity of extraction, and the output format.</p>
1658
+ * @public
1659
+ */
1660
+ export interface ExtractionConfiguration {
1661
+ /**
1662
+ * <p>Controls whether bounding box geometry is included in the extraction output.</p>
1663
+ * @public
1664
+ */
1665
+ BoundingBox: BoundingBoxConfiguration | undefined;
1666
+ /**
1667
+ * <p>Controls the granularity levels at which content is extracted.</p>
1668
+ * @public
1669
+ */
1670
+ Granularity: ExtractionGranularity | undefined;
1671
+ /**
1672
+ * <p>Controls the format of the extraction output.</p>
1673
+ * @public
1674
+ */
1675
+ OutputFormat: OutputFormat | undefined;
1676
+ }
1677
+ /**
1678
+ * <p>Controls whether generative captions are produced for figures detected in the
1679
+ * document.</p>
1680
+ * @public
1681
+ */
1682
+ export interface FigureCaptionConfiguration {
1683
+ /**
1684
+ * <p>Set to <code>ENABLED</code> to produce figure captions, or <code>DISABLED</code> to omit
1685
+ * them.</p>
1686
+ * @public
1687
+ */
1688
+ State: State | undefined;
1689
+ }
1690
+ /**
1691
+ * <p>Controls whether a generative summary of the document is produced.</p>
1692
+ * @public
1693
+ */
1694
+ export interface SummarizationConfiguration {
1695
+ /**
1696
+ * <p>Set to <code>ENABLED</code> to produce a summary, or <code>DISABLED</code> to omit
1697
+ * it.</p>
1698
+ * @public
1699
+ */
1700
+ State: State | undefined;
1701
+ }
1702
+ /**
1703
+ * <p>Controls the generative capabilities applied during a document insights job, such
1704
+ * as summarization and figure captioning.</p>
1705
+ * @public
1706
+ */
1707
+ export interface GenerativeConfiguration {
1708
+ /**
1709
+ * <p>Controls whether a generative summary of the document is produced. If you omit it, no
1710
+ * summary is produced.</p>
1711
+ * @public
1712
+ */
1713
+ Summarization?: SummarizationConfiguration | undefined;
1714
+ /**
1715
+ * <p>Controls whether generative captions are produced for figures detected in the
1716
+ * document. If you omit it, no figure captions are produced.</p>
1717
+ * @public
1718
+ */
1719
+ FigureCaption?: FigureCaptionConfiguration | undefined;
1720
+ }
1721
+ /**
1722
+ * <p>Specifies which personally identifiable information (PII) entity types to detect and how
1723
+ * to mask them.</p>
1724
+ * @public
1725
+ */
1726
+ export interface PIIEntitiesConfiguration {
1727
+ /**
1728
+ * <p>The list of PII entity types to detect. Each type can appear only once.</p>
1729
+ * @public
1730
+ */
1731
+ PiiEntityTypes: PIIEntityType[] | undefined;
1732
+ /**
1733
+ * <p>How detected PII is masked in the redacted output.</p>
1734
+ * @public
1735
+ */
1736
+ RedactionMaskMode: PIIRedactionMaskMode | undefined;
1737
+ }
1738
+ /**
1739
+ * <p>Controls detection and redaction of sensitive data, such as personally identifiable
1740
+ * information (PII), in the output.</p>
1741
+ * @public
1742
+ */
1743
+ export interface SensitiveDataConfiguration {
1744
+ /**
1745
+ * <p>The detection mode. Valid values:</p>
1746
+ * <ul>
1747
+ * <li>
1748
+ * <p>
1749
+ * <code>DETECTION</code> - Only detects sensitive data.</p>
1750
+ * </li>
1751
+ * <li>
1752
+ * <p>
1753
+ * <code>DETECTION_AND_REDACTION</code> - Detects and redacts sensitive data in the
1754
+ * output.</p>
1755
+ * </li>
1756
+ * <li>
1757
+ * <p>
1758
+ * <code>DISABLED</code> - Does not detect sensitive data.</p>
1759
+ * </li>
1760
+ * </ul>
1761
+ * @public
1762
+ */
1763
+ DetectionMode: SensitiveDataDetectionMode | undefined;
1764
+ /**
1765
+ * <p>The configuration that specifies which PII entity types to detect and how to mask
1766
+ * them. If you omit it, Amazon Textract detects all PII entity types (<code>ALL</code>) and
1767
+ * masks them with <code>ENTITY_TYPE</code>.</p>
1768
+ * @public
1769
+ */
1770
+ PiiEntitiesConfiguration?: PIIEntitiesConfiguration | undefined;
1771
+ }
1772
+ /**
1773
+ * <p>Controls whether a multi-document packet is split into individual documents before
1774
+ * analysis.</p>
1775
+ * @public
1776
+ */
1777
+ export interface SplitterConfiguration {
1778
+ /**
1779
+ * <p>Set to <code>ENABLED</code> to split multi-document packets, or <code>DISABLED</code> to
1780
+ * treat the input as a single document.</p>
1781
+ * @public
1782
+ */
1783
+ State: State | undefined;
1784
+ }
1785
+ /**
1786
+ * @public
1787
+ */
1788
+ export interface CreateProjectRequest {
1789
+ /**
1790
+ * <p>A unique, case-sensitive identifier that you provide to ensure that the operation
1791
+ * completes no more than one time. If you use the same token for a request that matches a
1792
+ * previous request, the service ignores the request, but does not return an error.</p>
1793
+ * @public
1794
+ */
1795
+ ClientRequestToken?: string | undefined;
1796
+ /**
1797
+ * <p>A unique name for the project.</p>
1798
+ * @public
1799
+ */
1800
+ ProjectName: string | undefined;
1801
+ /**
1802
+ * <p>A description of the project.</p>
1803
+ * @public
1804
+ */
1805
+ ProjectDescription?: string | undefined;
1806
+ /**
1807
+ * <p>The configuration that controls how Amazon Textract extracts content from the document,
1808
+ * including bounding boxes, granularity, and output format.</p>
1809
+ * @public
1810
+ */
1811
+ ExtractionConfiguration: ExtractionConfiguration | undefined;
1812
+ /**
1813
+ * <p>The configuration that controls generative capabilities such as summarization and figure
1814
+ * captioning.</p>
1815
+ * @public
1816
+ */
1817
+ GenerativeConfiguration?: GenerativeConfiguration | undefined;
1818
+ /**
1819
+ * <p>The configuration that associates blueprints with the project for custom output
1820
+ * extraction.</p>
1821
+ * @public
1822
+ */
1823
+ CustomConfiguration?: CustomConfiguration | undefined;
1824
+ /**
1825
+ * <p>The configuration that controls whether multi-document packets are split into individual
1826
+ * documents.</p>
1827
+ * @public
1828
+ */
1829
+ SplitterConfiguration?: SplitterConfiguration | undefined;
1830
+ /**
1831
+ * <p>The configuration that controls detection and redaction of sensitive data, such as
1832
+ * personally identifiable information (PII).</p>
1833
+ * @public
1834
+ */
1835
+ SensitiveDataConfiguration?: SensitiveDataConfiguration | undefined;
1836
+ /**
1837
+ * <p>The AWS KMS encryption configuration used to encrypt the project at rest. If you don't
1838
+ * specify a value, Amazon Textract encrypts the project using an AWS owned key.</p>
1839
+ * @public
1840
+ */
1841
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
1842
+ /**
1843
+ * <p>A set of tags (key-value pairs) to assign to the project.</p>
1844
+ * @public
1845
+ */
1846
+ Tags?: Record<string, string> | undefined;
1847
+ }
1848
+ /**
1849
+ * @public
1850
+ */
1851
+ export interface CreateProjectResponse {
1852
+ /**
1853
+ * <p>The Amazon Resource Name (ARN) of the project that was created.</p>
1854
+ * @public
1855
+ */
1856
+ ProjectArn: string | undefined;
1857
+ /**
1858
+ * <p>The status of the project, indicating whether creation completed successfully or
1859
+ * failed.</p>
1860
+ * @public
1861
+ */
1862
+ Status?: ProjectStatus | undefined;
1863
+ }
1401
1864
  /**
1402
1865
  * @public
1403
1866
  */
@@ -1433,6 +1896,42 @@ export interface DeleteAdapterVersionRequest {
1433
1896
  */
1434
1897
  export interface DeleteAdapterVersionResponse {
1435
1898
  }
1899
+ /**
1900
+ * @public
1901
+ */
1902
+ export interface DeleteBlueprintRequest {
1903
+ /**
1904
+ * <p>The Amazon Resource Name (ARN) of the blueprint to delete.</p>
1905
+ * @public
1906
+ */
1907
+ BlueprintArn: string | undefined;
1908
+ /**
1909
+ * <p>The version of the blueprint to delete. If omitted, the entire blueprint and all of its
1910
+ * versions are deleted.</p>
1911
+ * @public
1912
+ */
1913
+ BlueprintVersion?: string | undefined;
1914
+ }
1915
+ /**
1916
+ * @public
1917
+ */
1918
+ export interface DeleteBlueprintResponse {
1919
+ }
1920
+ /**
1921
+ * @public
1922
+ */
1923
+ export interface DeleteProjectRequest {
1924
+ /**
1925
+ * <p>The Amazon Resource Name (ARN) of the project to delete.</p>
1926
+ * @public
1927
+ */
1928
+ ProjectArn: string | undefined;
1929
+ }
1930
+ /**
1931
+ * @public
1932
+ */
1933
+ export interface DeleteProjectResponse {
1934
+ }
1436
1935
  /**
1437
1936
  * @public
1438
1937
  */
@@ -1547,6 +2046,18 @@ export interface DocumentLocation {
1547
2046
  */
1548
2047
  S3Object?: S3Object | undefined;
1549
2048
  }
2049
+ /**
2050
+ * <p>Event bus settings for a job.</p>
2051
+ * @public
2052
+ */
2053
+ export interface EventBridgeConfiguration {
2054
+ /**
2055
+ * <p>Set to <code>ENABLED</code> to send events to an event bus, or <code>DISABLED</code> to
2056
+ * not send them.</p>
2057
+ * @public
2058
+ */
2059
+ State: State | undefined;
2060
+ }
1550
2061
  /**
1551
2062
  * <p>The results extracted for a lending document.</p>
1552
2063
  * @public
@@ -1792,6 +2303,68 @@ export interface GetAdapterVersionResponse {
1792
2303
  */
1793
2304
  Tags?: Record<string, string> | undefined;
1794
2305
  }
2306
+ /**
2307
+ * @public
2308
+ */
2309
+ export interface GetBlueprintRequest {
2310
+ /**
2311
+ * <p>The Amazon Resource Name (ARN) of the blueprint to retrieve.</p>
2312
+ * @public
2313
+ */
2314
+ BlueprintArn: string | undefined;
2315
+ /**
2316
+ * <p>The version of the blueprint to retrieve. If omitted, the latest version is
2317
+ * returned.</p>
2318
+ * @public
2319
+ */
2320
+ BlueprintVersion?: string | undefined;
2321
+ }
2322
+ /**
2323
+ * @public
2324
+ */
2325
+ export interface GetBlueprintResponse {
2326
+ /**
2327
+ * <p>The Amazon Resource Name (ARN) of the blueprint.</p>
2328
+ * @public
2329
+ */
2330
+ BlueprintArn: string | undefined;
2331
+ /**
2332
+ * <p>The name of the blueprint.</p>
2333
+ * @public
2334
+ */
2335
+ BlueprintName: string | undefined;
2336
+ /**
2337
+ * <p>The version of the blueprint.</p>
2338
+ * @public
2339
+ */
2340
+ BlueprintVersion?: string | undefined;
2341
+ /**
2342
+ * <p>The schema of the blueprint, which defines the fields to extract and their expected
2343
+ * structure.</p>
2344
+ * @public
2345
+ */
2346
+ Schema: string | undefined;
2347
+ /**
2348
+ * <p>The identifier of the AWS KMS key used to encrypt the blueprint.</p>
2349
+ * @public
2350
+ */
2351
+ KmsKeyId?: string | undefined;
2352
+ /**
2353
+ * <p>The AWS KMS encryption context used when encrypting the blueprint.</p>
2354
+ * @public
2355
+ */
2356
+ KmsEncryptionContext?: Record<string, string> | undefined;
2357
+ /**
2358
+ * <p>The date and time that the blueprint was created.</p>
2359
+ * @public
2360
+ */
2361
+ CreationTime: Date | undefined;
2362
+ /**
2363
+ * <p>The date and time that the blueprint was last modified.</p>
2364
+ * @public
2365
+ */
2366
+ LastModifiedTime: Date | undefined;
2367
+ }
1795
2368
  /**
1796
2369
  * @public
1797
2370
  */
@@ -1849,34 +2422,85 @@ export interface GetDocumentAnalysisResponse {
1849
2422
  * <p>The current status of the text detection job.</p>
1850
2423
  * @public
1851
2424
  */
1852
- JobStatus?: JobStatus | undefined;
2425
+ JobStatus?: JobStatus | undefined;
2426
+ /**
2427
+ * <p>If the response is truncated, Amazon Textract returns this token. You can use this token
2428
+ * in the subsequent request to retrieve the next set of text detection results.</p>
2429
+ * @public
2430
+ */
2431
+ NextToken?: string | undefined;
2432
+ /**
2433
+ * <p>The results of the text-analysis operation.</p>
2434
+ * @public
2435
+ */
2436
+ Blocks?: Block[] | undefined;
2437
+ /**
2438
+ * <p>A list of warnings that occurred during the document-analysis operation.</p>
2439
+ * @public
2440
+ */
2441
+ Warnings?: Warning[] | undefined;
2442
+ /**
2443
+ * <p>Returns if the detection job could not be completed. Contains explanation for what error
2444
+ * occured.</p>
2445
+ * @public
2446
+ */
2447
+ StatusMessage?: string | undefined;
2448
+ /**
2449
+ * <p></p>
2450
+ * @public
2451
+ */
2452
+ AnalyzeDocumentModelVersion?: string | undefined;
2453
+ }
2454
+ /**
2455
+ * @public
2456
+ */
2457
+ export interface GetDocumentInsightsRequest {
2458
+ /**
2459
+ * <p>The Amazon Resource Name (ARN) of the document insights job to retrieve.</p>
2460
+ * @public
2461
+ */
2462
+ JobArn: string | undefined;
2463
+ }
2464
+ /**
2465
+ * <p>The Amazon S3 location where the results of a document insights job are
2466
+ * written.</p>
2467
+ * @public
2468
+ */
2469
+ export interface OutputConfiguration {
1853
2470
  /**
1854
- * <p>If the response is truncated, Amazon Textract returns this token. You can use this token
1855
- * in the subsequent request to retrieve the next set of text detection results.</p>
2471
+ * <p>The Amazon S3 URI where the analysis results are written.</p>
1856
2472
  * @public
1857
2473
  */
1858
- NextToken?: string | undefined;
2474
+ S3Uri: string | undefined;
2475
+ }
2476
+ /**
2477
+ * @public
2478
+ */
2479
+ export interface GetDocumentInsightsResponse {
1859
2480
  /**
1860
- * <p>The results of the text-analysis operation.</p>
2481
+ * <p>The current status of the document insights job, indicating whether it is
2482
+ * still running, has completed, or has failed. When the job has failed, inspect
2483
+ * <code>ErrorType</code> and <code>ErrorMessage</code> for details.</p>
1861
2484
  * @public
1862
2485
  */
1863
- Blocks?: Block[] | undefined;
2486
+ Status: JobStatus | undefined;
1864
2487
  /**
1865
- * <p>A list of warnings that occurred during the document-analysis operation.</p>
2488
+ * <p>The Amazon S3 location where the analysis results are written.</p>
1866
2489
  * @public
1867
2490
  */
1868
- Warnings?: Warning[] | undefined;
2491
+ OutputConfiguration?: OutputConfiguration | undefined;
1869
2492
  /**
1870
- * <p>Returns if the detection job could not be completed. Contains explanation for what error
1871
- * occured.</p>
2493
+ * <p>The type of error that caused the job to fail. Present only when the job status is a
2494
+ * failure state.</p>
1872
2495
  * @public
1873
2496
  */
1874
- StatusMessage?: string | undefined;
2497
+ ErrorType?: string | undefined;
1875
2498
  /**
1876
- * <p></p>
2499
+ * <p>A human-readable description of the error that caused the job to fail. Present only when
2500
+ * the job status is a failure state.</p>
1877
2501
  * @public
1878
2502
  */
1879
- AnalyzeDocumentModelVersion?: string | undefined;
2503
+ ErrorMessage?: string | undefined;
1880
2504
  }
1881
2505
  /**
1882
2506
  * @public
@@ -2201,6 +2825,98 @@ export interface GetLendingAnalysisSummaryResponse {
2201
2825
  */
2202
2826
  AnalyzeLendingModelVersion?: string | undefined;
2203
2827
  }
2828
+ /**
2829
+ * @public
2830
+ */
2831
+ export interface GetProjectRequest {
2832
+ /**
2833
+ * <p>The Amazon Resource Name (ARN) of the project to retrieve.</p>
2834
+ * @public
2835
+ */
2836
+ ProjectArn: string | undefined;
2837
+ }
2838
+ /**
2839
+ * @public
2840
+ */
2841
+ export interface GetProjectResponse {
2842
+ /**
2843
+ * <p>The Amazon Resource Name (ARN) of the project.</p>
2844
+ * @public
2845
+ */
2846
+ ProjectArn: string | undefined;
2847
+ /**
2848
+ * <p>The name of the project.</p>
2849
+ * @public
2850
+ */
2851
+ ProjectName: string | undefined;
2852
+ /**
2853
+ * <p>The description of the project.</p>
2854
+ * @public
2855
+ */
2856
+ ProjectDescription?: string | undefined;
2857
+ /**
2858
+ * <p>The status of the project, indicating whether it was created successfully or
2859
+ * failed.</p>
2860
+ * @public
2861
+ */
2862
+ Status: ProjectStatus | undefined;
2863
+ /**
2864
+ * <p>The configuration that controls how Amazon Textract extracts content from the document,
2865
+ * including bounding boxes, granularity, and output format.</p>
2866
+ * @public
2867
+ */
2868
+ ExtractionConfiguration?: ExtractionConfiguration | undefined;
2869
+ /**
2870
+ * <p>The configuration that controls generative capabilities such as summarization and figure
2871
+ * captioning.</p>
2872
+ * @public
2873
+ */
2874
+ GenerativeConfiguration?: GenerativeConfiguration | undefined;
2875
+ /**
2876
+ * <p>The configuration that associates blueprints with the project for custom output
2877
+ * extraction.</p>
2878
+ * @public
2879
+ */
2880
+ CustomConfiguration?: CustomConfiguration | undefined;
2881
+ /**
2882
+ * <p>The configuration that controls whether multi-document packets are split into individual
2883
+ * documents.</p>
2884
+ * @public
2885
+ */
2886
+ SplitterConfiguration?: SplitterConfiguration | undefined;
2887
+ /**
2888
+ * <p>The configuration that controls detection and redaction of sensitive data, such as
2889
+ * personally identifiable information (PII).</p>
2890
+ * @public
2891
+ */
2892
+ SensitiveDataConfiguration?: SensitiveDataConfiguration | undefined;
2893
+ /**
2894
+ * <p>The AWS KMS encryption configuration used to encrypt the project at rest.</p>
2895
+ * @public
2896
+ */
2897
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
2898
+ /**
2899
+ * <p>The date and time that the project was created.</p>
2900
+ * @public
2901
+ */
2902
+ CreationTime: Date | undefined;
2903
+ /**
2904
+ * <p>The date and time that the project was last modified.</p>
2905
+ * @public
2906
+ */
2907
+ LastModifiedTime: Date | undefined;
2908
+ }
2909
+ /**
2910
+ * <p>The Amazon S3 location of the input document for a document insights job.</p>
2911
+ * @public
2912
+ */
2913
+ export interface InputConfiguration {
2914
+ /**
2915
+ * <p>The Amazon S3 URI of the input document.</p>
2916
+ * @public
2917
+ */
2918
+ S3Uri: string | undefined;
2919
+ }
2204
2920
  /**
2205
2921
  * @public
2206
2922
  */
@@ -2290,6 +3006,136 @@ export interface ListAdapterVersionsResponse {
2290
3006
  */
2291
3007
  NextToken?: string | undefined;
2292
3008
  }
3009
+ /**
3010
+ * <p>A filter used to limit results to a specific project.</p>
3011
+ * @public
3012
+ */
3013
+ export interface ProjectFilter {
3014
+ /**
3015
+ * <p>The Amazon Resource Name (ARN) of the project to filter by.</p>
3016
+ * @public
3017
+ */
3018
+ ProjectArn: string | undefined;
3019
+ }
3020
+ /**
3021
+ * @public
3022
+ */
3023
+ export interface ListBlueprintsRequest {
3024
+ /**
3025
+ * <p>The maximum number of blueprints to return in each page of results. If you don't specify
3026
+ * a value, the service selects a default page size. Use the <code>NextToken</code> value in
3027
+ * the response to retrieve any remaining results.</p>
3028
+ * @public
3029
+ */
3030
+ MaxResults?: number | undefined;
3031
+ /**
3032
+ * <p>A pagination token returned from a previous call to <code>ListBlueprints</code>. Use it
3033
+ * to retrieve the next page of results.</p>
3034
+ * @public
3035
+ */
3036
+ NextToken?: string | undefined;
3037
+ /**
3038
+ * <p>The Amazon Resource Name (ARN) of a blueprint to filter the results by.</p>
3039
+ * @public
3040
+ */
3041
+ BlueprintArn?: string | undefined;
3042
+ /**
3043
+ * <p>A filter that limits the results to blueprints associated with the specified
3044
+ * project.</p>
3045
+ * @public
3046
+ */
3047
+ ProjectFilter?: ProjectFilter | undefined;
3048
+ /**
3049
+ * <p>A filter that limits the results to blueprints owned by your account or to blueprints
3050
+ * provided by Amazon Textract.</p>
3051
+ * @public
3052
+ */
3053
+ ResourceOwner?: ResourceOwner | undefined;
3054
+ }
3055
+ /**
3056
+ * @public
3057
+ */
3058
+ export interface ListBlueprintsResponse {
3059
+ /**
3060
+ * <p>A list of blueprint summaries that match the request.</p>
3061
+ * @public
3062
+ */
3063
+ Blueprints: BlueprintSummary[] | undefined;
3064
+ /**
3065
+ * <p>A pagination token to use in a subsequent call to <code>ListBlueprints</code> to
3066
+ * retrieve the next page of results. This value is <code>null</code> when there are no more
3067
+ * results to return.</p>
3068
+ * @public
3069
+ */
3070
+ NextToken?: string | undefined;
3071
+ }
3072
+ /**
3073
+ * @public
3074
+ */
3075
+ export interface ListProjectsRequest {
3076
+ /**
3077
+ * <p>The maximum number of projects to return in each page of results. If you don't specify a
3078
+ * value, the service selects a default page size. Use the <code>NextToken</code> value in the
3079
+ * response to retrieve any remaining results.</p>
3080
+ * @public
3081
+ */
3082
+ MaxResults?: number | undefined;
3083
+ /**
3084
+ * <p>A pagination token returned from a previous call to <code>ListProjects</code>. Use it to
3085
+ * retrieve the next page of results.</p>
3086
+ * @public
3087
+ */
3088
+ NextToken?: string | undefined;
3089
+ /**
3090
+ * <p>A filter that limits the results to projects associated with the specified
3091
+ * blueprint.</p>
3092
+ * @public
3093
+ */
3094
+ BlueprintFilter?: BlueprintFilter | undefined;
3095
+ }
3096
+ /**
3097
+ * <p>A summary of a project, returned in the results of <code>ListProjects</code>.</p>
3098
+ * @public
3099
+ */
3100
+ export interface ProjectSummary {
3101
+ /**
3102
+ * <p>The Amazon Resource Name (ARN) of the project.</p>
3103
+ * @public
3104
+ */
3105
+ ProjectArn: string | undefined;
3106
+ /**
3107
+ * <p>The name of the project.</p>
3108
+ * @public
3109
+ */
3110
+ ProjectName?: string | undefined;
3111
+ /**
3112
+ * <p>The date and time that the project was created.</p>
3113
+ * @public
3114
+ */
3115
+ CreationTime: Date | undefined;
3116
+ /**
3117
+ * <p>The date and time that the project was last modified.</p>
3118
+ * @public
3119
+ */
3120
+ LastModifiedTime?: Date | undefined;
3121
+ }
3122
+ /**
3123
+ * @public
3124
+ */
3125
+ export interface ListProjectsResponse {
3126
+ /**
3127
+ * <p>A list of project summaries that match the request.</p>
3128
+ * @public
3129
+ */
3130
+ Projects: ProjectSummary[] | undefined;
3131
+ /**
3132
+ * <p>A pagination token to use in a subsequent call to <code>ListProjects</code> to retrieve
3133
+ * the next page of results. This value is <code>null</code> when there are no more results to
3134
+ * return.</p>
3135
+ * @public
3136
+ */
3137
+ NextToken?: string | undefined;
3138
+ }
2293
3139
  /**
2294
3140
  * @public
2295
3141
  */
@@ -2327,6 +3173,17 @@ export interface NotificationChannel {
2327
3173
  */
2328
3174
  RoleArn: string | undefined;
2329
3175
  }
3176
+ /**
3177
+ * <p>Notification settings for a job.</p>
3178
+ * @public
3179
+ */
3180
+ export interface NotificationConfiguration {
3181
+ /**
3182
+ * <p>Event bus settings.</p>
3183
+ * @public
3184
+ */
3185
+ EventBridgeConfiguration: EventBridgeConfiguration | undefined;
3186
+ }
2330
3187
  /**
2331
3188
  * @public
2332
3189
  */
@@ -2407,6 +3264,60 @@ export interface StartDocumentAnalysisResponse {
2407
3264
  */
2408
3265
  JobId?: string | undefined;
2409
3266
  }
3267
+ /**
3268
+ * @public
3269
+ */
3270
+ export interface StartDocumentInsightsRequest {
3271
+ /**
3272
+ * <p>The Amazon S3 location of the input document to analyze.</p>
3273
+ * @public
3274
+ */
3275
+ InputConfiguration: InputConfiguration | undefined;
3276
+ /**
3277
+ * <p>The Amazon S3 location where the analysis results are written.</p>
3278
+ * @public
3279
+ */
3280
+ OutputConfiguration: OutputConfiguration | undefined;
3281
+ /**
3282
+ * <p>The Amazon Resource Name (ARN) of the project whose configuration is used to analyze the
3283
+ * document.</p>
3284
+ * @public
3285
+ */
3286
+ ProjectArn?: string | undefined;
3287
+ /**
3288
+ * <p>The blueprints used to extract custom structured output from the document.</p>
3289
+ * @public
3290
+ */
3291
+ Blueprints?: BlueprintItem[] | undefined;
3292
+ /**
3293
+ * <p>The AWS KMS encryption configuration used to encrypt the analysis output. If you don't
3294
+ * specify a value, Amazon Textract encrypts the output using an AWS owned key.</p>
3295
+ * @public
3296
+ */
3297
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
3298
+ /**
3299
+ * <p>Notification settings for the job.</p>
3300
+ * @public
3301
+ */
3302
+ NotificationConfiguration?: NotificationConfiguration | undefined;
3303
+ /**
3304
+ * <p>A set of tags (key-value pairs) to assign to the document insights job.</p>
3305
+ * @public
3306
+ */
3307
+ Tags?: Record<string, string> | undefined;
3308
+ }
3309
+ /**
3310
+ * @public
3311
+ */
3312
+ export interface StartDocumentInsightsResponse {
3313
+ /**
3314
+ * <p>The Amazon Resource Name (ARN) of the document insights job that was
3315
+ * started. Use it with <a>GetDocumentInsights</a> to retrieve the
3316
+ * results.</p>
3317
+ * @public
3318
+ */
3319
+ JobArn: string | undefined;
3320
+ }
2410
3321
  /**
2411
3322
  * @public
2412
3323
  */
@@ -2702,3 +3613,103 @@ export interface UpdateAdapterResponse {
2702
3613
  */
2703
3614
  AutoUpdate?: AutoUpdate | undefined;
2704
3615
  }
3616
+ /**
3617
+ * @public
3618
+ */
3619
+ export interface UpdateBlueprintRequest {
3620
+ /**
3621
+ * <p>The Amazon Resource Name (ARN) of the blueprint to update.</p>
3622
+ * @public
3623
+ */
3624
+ BlueprintArn: string | undefined;
3625
+ /**
3626
+ * <p>The updated schema of the blueprint, which defines the fields to extract and their
3627
+ * expected structure.</p>
3628
+ * @public
3629
+ */
3630
+ Schema?: string | undefined;
3631
+ /**
3632
+ * <p>The AWS KMS encryption configuration used to encrypt the blueprint at rest.</p>
3633
+ * @public
3634
+ */
3635
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
3636
+ }
3637
+ /**
3638
+ * @public
3639
+ */
3640
+ export interface UpdateBlueprintResponse {
3641
+ /**
3642
+ * <p>The Amazon Resource Name (ARN) of the blueprint that was updated.</p>
3643
+ * @public
3644
+ */
3645
+ BlueprintArn: string | undefined;
3646
+ }
3647
+ /**
3648
+ * @public
3649
+ */
3650
+ export interface UpdateProjectRequest {
3651
+ /**
3652
+ * <p>The Amazon Resource Name (ARN) of the project to update.</p>
3653
+ * @public
3654
+ */
3655
+ ProjectArn: string | undefined;
3656
+ /**
3657
+ * <p>The updated description of the project.</p>
3658
+ * @public
3659
+ */
3660
+ ProjectDescription?: string | undefined;
3661
+ /**
3662
+ * <p>The configuration that controls how Amazon Textract extracts content from the document,
3663
+ * including bounding boxes, granularity, and output format. Replaces the stored extraction
3664
+ * configuration.</p>
3665
+ * @public
3666
+ */
3667
+ ExtractionConfiguration?: ExtractionConfiguration | undefined;
3668
+ /**
3669
+ * <p>The configuration that controls generative capabilities such as summarization and figure
3670
+ * captioning. Replaces the stored generative configuration, so a capability that you omit is
3671
+ * turned off.</p>
3672
+ * @public
3673
+ */
3674
+ GenerativeConfiguration?: GenerativeConfiguration | undefined;
3675
+ /**
3676
+ * <p>The configuration that associates blueprints with the project for custom output
3677
+ * extraction. Replaces the stored custom configuration. To disable custom
3678
+ * configuration, specify an empty <code>Blueprints</code> list.</p>
3679
+ * @public
3680
+ */
3681
+ CustomConfiguration?: CustomConfiguration | undefined;
3682
+ /**
3683
+ * <p>The configuration that controls whether multi-document packets are split into individual
3684
+ * documents. Replaces the stored splitter configuration.</p>
3685
+ * @public
3686
+ */
3687
+ SplitterConfiguration?: SplitterConfiguration | undefined;
3688
+ /**
3689
+ * <p>The configuration that controls detection and redaction of sensitive data, such as
3690
+ * personally identifiable information (PII). Replaces the stored sensitive data configuration.
3691
+ * To turn off detection, set <code>DetectionMode</code> to <code>DISABLED</code>.</p>
3692
+ * @public
3693
+ */
3694
+ SensitiveDataConfiguration?: SensitiveDataConfiguration | undefined;
3695
+ /**
3696
+ * <p>The AWS KMS encryption configuration used to encrypt the project at rest.</p>
3697
+ * @public
3698
+ */
3699
+ EncryptionConfiguration?: EncryptionConfiguration | undefined;
3700
+ }
3701
+ /**
3702
+ * @public
3703
+ */
3704
+ export interface UpdateProjectResponse {
3705
+ /**
3706
+ * <p>The Amazon Resource Name (ARN) of the project that was updated.</p>
3707
+ * @public
3708
+ */
3709
+ ProjectArn: string | undefined;
3710
+ /**
3711
+ * <p>The status of the project after the update.</p>
3712
+ * @public
3713
+ */
3714
+ Status?: ProjectStatus | undefined;
3715
+ }