@azure/ai-language-text 1.0.1-alpha.20221014.1 → 1.1.0-alpha.20221102.2

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.
package/dist/index.js CHANGED
@@ -30,7 +30,6 @@ function _interopNamespace(e) {
30
30
  }
31
31
 
32
32
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
33
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
34
33
 
35
34
  // Copyright (c) Microsoft Corporation.
36
35
  // Licensed under the MIT license.
@@ -42,7 +41,7 @@ const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default";
42
41
  /**
43
42
  * @internal
44
43
  */
45
- const SDK_VERSION = "1.0.1";
44
+ const SDK_VERSION = "1.1.0-beta.1";
46
45
  /**
47
46
  * @internal
48
47
  */
@@ -331,6 +330,12 @@ const AnalyzeTextJobsInput = {
331
330
  name: "String"
332
331
  }
333
332
  },
333
+ defaultLanguage: {
334
+ serializedName: "defaultLanguage",
335
+ type: {
336
+ name: "String"
337
+ }
338
+ },
334
339
  analysisInput: {
335
340
  serializedName: "analysisInput",
336
341
  type: {
@@ -586,6 +591,7 @@ const TextDocumentBatchStatistics = {
586
591
  type: {
587
592
  name: "Composite",
588
593
  className: "TextDocumentBatchStatistics",
594
+ additionalProperties: { type: { name: "Object" } },
589
595
  modelProperties: {
590
596
  documentCount: {
591
597
  serializedName: "documentsCount",
@@ -681,10 +687,10 @@ const ActionCommon = {
681
687
  }
682
688
  }
683
689
  };
684
- const PreBuiltResult = {
690
+ const CustomResult = {
685
691
  type: {
686
692
  name: "Composite",
687
- className: "PreBuiltResult",
693
+ className: "CustomResult",
688
694
  modelProperties: {
689
695
  errors: {
690
696
  serializedName: "errors",
@@ -706,8 +712,15 @@ const PreBuiltResult = {
706
712
  className: "TextDocumentBatchStatistics"
707
713
  }
708
714
  },
709
- modelVersion: {
710
- serializedName: "modelVersion",
715
+ projectName: {
716
+ serializedName: "projectName",
717
+ required: true,
718
+ type: {
719
+ name: "String"
720
+ }
721
+ },
722
+ deploymentName: {
723
+ serializedName: "deploymentName",
711
724
  required: true,
712
725
  type: {
713
726
  name: "String"
@@ -738,40 +751,18 @@ const DocumentError = {
738
751
  }
739
752
  }
740
753
  };
741
- const CustomResult = {
754
+ const BaseResolution = {
742
755
  type: {
743
756
  name: "Composite",
744
- className: "CustomResult",
757
+ className: "BaseResolution",
758
+ uberParent: "BaseResolution",
759
+ polymorphicDiscriminator: {
760
+ serializedName: "resolutionKind",
761
+ clientName: "resolutionKind"
762
+ },
745
763
  modelProperties: {
746
- errors: {
747
- serializedName: "errors",
748
- required: true,
749
- type: {
750
- name: "Sequence",
751
- element: {
752
- type: {
753
- name: "Composite",
754
- className: "DocumentError"
755
- }
756
- }
757
- }
758
- },
759
- statistics: {
760
- serializedName: "statistics",
761
- type: {
762
- name: "Composite",
763
- className: "TextDocumentBatchStatistics"
764
- }
765
- },
766
- projectName: {
767
- serializedName: "projectName",
768
- required: true,
769
- type: {
770
- name: "String"
771
- }
772
- },
773
- deploymentName: {
774
- serializedName: "deploymentName",
764
+ resolutionKind: {
765
+ serializedName: "resolutionKind",
775
766
  required: true,
776
767
  type: {
777
768
  name: "String"
@@ -908,6 +899,56 @@ const TextDocumentStatistics = {
908
899
  }
909
900
  }
910
901
  };
902
+ const DocumentDetectedLanguage = {
903
+ type: {
904
+ name: "Composite",
905
+ className: "DocumentDetectedLanguage",
906
+ modelProperties: {
907
+ detectedLanguage: {
908
+ serializedName: "detectedLanguage",
909
+ type: {
910
+ name: "Composite",
911
+ className: "DetectedLanguage"
912
+ }
913
+ }
914
+ }
915
+ }
916
+ };
917
+ const DetectedLanguage = {
918
+ type: {
919
+ name: "Composite",
920
+ className: "DetectedLanguage",
921
+ modelProperties: {
922
+ name: {
923
+ serializedName: "name",
924
+ required: true,
925
+ type: {
926
+ name: "String"
927
+ }
928
+ },
929
+ iso6391Name: {
930
+ serializedName: "iso6391Name",
931
+ required: true,
932
+ type: {
933
+ name: "String"
934
+ }
935
+ },
936
+ confidenceScore: {
937
+ serializedName: "confidenceScore",
938
+ required: true,
939
+ type: {
940
+ name: "Number"
941
+ }
942
+ },
943
+ script: {
944
+ serializedName: "script",
945
+ type: {
946
+ name: "String"
947
+ }
948
+ }
949
+ }
950
+ }
951
+ };
911
952
  const ClassificationCategory = {
912
953
  type: {
913
954
  name: "Composite",
@@ -1073,6 +1114,12 @@ const HealthcareRelation = {
1073
1114
  name: "String"
1074
1115
  }
1075
1116
  },
1117
+ confidenceScore: {
1118
+ serializedName: "confidenceScore",
1119
+ type: {
1120
+ name: "Number"
1121
+ }
1122
+ },
1076
1123
  entities: {
1077
1124
  serializedName: "entities",
1078
1125
  required: true,
@@ -1111,6 +1158,63 @@ const HealthcareRelationEntity = {
1111
1158
  }
1112
1159
  }
1113
1160
  };
1161
+ const PreBuiltResult = {
1162
+ type: {
1163
+ name: "Composite",
1164
+ className: "PreBuiltResult",
1165
+ modelProperties: {
1166
+ errors: {
1167
+ serializedName: "errors",
1168
+ required: true,
1169
+ type: {
1170
+ name: "Sequence",
1171
+ element: {
1172
+ type: {
1173
+ name: "Composite",
1174
+ className: "InputError"
1175
+ }
1176
+ }
1177
+ }
1178
+ },
1179
+ statistics: {
1180
+ serializedName: "statistics",
1181
+ type: {
1182
+ name: "Composite",
1183
+ className: "TextDocumentBatchStatistics"
1184
+ }
1185
+ },
1186
+ modelVersion: {
1187
+ serializedName: "modelVersion",
1188
+ required: true,
1189
+ type: {
1190
+ name: "String"
1191
+ }
1192
+ }
1193
+ }
1194
+ }
1195
+ };
1196
+ const InputError = {
1197
+ type: {
1198
+ name: "Composite",
1199
+ className: "InputError",
1200
+ modelProperties: {
1201
+ id: {
1202
+ serializedName: "id",
1203
+ required: true,
1204
+ type: {
1205
+ name: "String"
1206
+ }
1207
+ },
1208
+ error: {
1209
+ serializedName: "error",
1210
+ type: {
1211
+ name: "Composite",
1212
+ className: "ErrorModel"
1213
+ }
1214
+ }
1215
+ }
1216
+ }
1217
+ };
1114
1218
  const SentimentConfidenceScores = {
1115
1219
  type: {
1116
1220
  name: "Composite",
@@ -1458,27 +1562,34 @@ const Match = {
1458
1562
  }
1459
1563
  }
1460
1564
  };
1461
- const DetectedLanguage = {
1565
+ const SummarySentence = {
1462
1566
  type: {
1463
1567
  name: "Composite",
1464
- className: "DetectedLanguage",
1568
+ className: "SummarySentence",
1465
1569
  modelProperties: {
1466
- name: {
1467
- serializedName: "name",
1570
+ text: {
1571
+ serializedName: "text",
1468
1572
  required: true,
1469
1573
  type: {
1470
1574
  name: "String"
1471
1575
  }
1472
1576
  },
1473
- iso6391Name: {
1474
- serializedName: "iso6391Name",
1577
+ rankScore: {
1578
+ serializedName: "rankScore",
1475
1579
  required: true,
1476
1580
  type: {
1477
- name: "String"
1581
+ name: "Number"
1478
1582
  }
1479
1583
  },
1480
- confidenceScore: {
1481
- serializedName: "confidenceScore",
1584
+ offset: {
1585
+ serializedName: "offset",
1586
+ required: true,
1587
+ type: {
1588
+ name: "Number"
1589
+ }
1590
+ },
1591
+ length: {
1592
+ serializedName: "length",
1482
1593
  required: true,
1483
1594
  type: {
1484
1595
  name: "Number"
@@ -1501,19 +1612,68 @@ const Pagination = {
1501
1612
  }
1502
1613
  }
1503
1614
  };
1504
- const JobErrors = {
1615
+ const AbstractiveSummarizationTaskParametersBase = {
1505
1616
  type: {
1506
1617
  name: "Composite",
1507
- className: "JobErrors",
1618
+ className: "AbstractiveSummarizationTaskParametersBase",
1508
1619
  modelProperties: {
1509
- errors: {
1510
- serializedName: "errors",
1620
+ maxSentenceCount: {
1621
+ serializedName: "sentenceCount",
1622
+ type: {
1623
+ name: "Number"
1624
+ }
1625
+ },
1626
+ stringIndexType: {
1627
+ defaultValue: "Utf16CodeUnit",
1628
+ serializedName: "stringIndexType",
1629
+ type: {
1630
+ name: "String"
1631
+ }
1632
+ }
1633
+ }
1634
+ }
1635
+ };
1636
+ const AbstractiveSummarizationResultBase = {
1637
+ type: {
1638
+ name: "Composite",
1639
+ className: "AbstractiveSummarizationResultBase",
1640
+ modelProperties: {
1641
+ documents: {
1642
+ serializedName: "documents",
1643
+ required: true,
1511
1644
  type: {
1512
1645
  name: "Sequence",
1513
1646
  element: {
1514
1647
  type: {
1515
1648
  name: "Composite",
1516
- className: "ErrorModel"
1649
+ className: "AbstractiveSummaryDocumentResultWithDetectedLanguage"
1650
+ }
1651
+ }
1652
+ }
1653
+ }
1654
+ }
1655
+ }
1656
+ };
1657
+ const AbstractiveSummary = {
1658
+ type: {
1659
+ name: "Composite",
1660
+ className: "AbstractiveSummary",
1661
+ modelProperties: {
1662
+ text: {
1663
+ serializedName: "text",
1664
+ required: true,
1665
+ type: {
1666
+ name: "String"
1667
+ }
1668
+ },
1669
+ contexts: {
1670
+ serializedName: "contexts",
1671
+ type: {
1672
+ name: "Sequence",
1673
+ element: {
1674
+ type: {
1675
+ name: "Composite",
1676
+ className: "SummaryContext"
1517
1677
  }
1518
1678
  }
1519
1679
  }
@@ -1521,6 +1681,43 @@ const JobErrors = {
1521
1681
  }
1522
1682
  }
1523
1683
  };
1684
+ const SummaryContext = {
1685
+ type: {
1686
+ name: "Composite",
1687
+ className: "SummaryContext",
1688
+ modelProperties: {
1689
+ offset: {
1690
+ serializedName: "offset",
1691
+ required: true,
1692
+ type: {
1693
+ name: "Number"
1694
+ }
1695
+ },
1696
+ length: {
1697
+ serializedName: "length",
1698
+ required: true,
1699
+ type: {
1700
+ name: "Number"
1701
+ }
1702
+ }
1703
+ }
1704
+ }
1705
+ };
1706
+ const QuantityResolution = {
1707
+ type: {
1708
+ name: "Composite",
1709
+ className: "QuantityResolution",
1710
+ modelProperties: {
1711
+ value: {
1712
+ serializedName: "value",
1713
+ required: true,
1714
+ type: {
1715
+ name: "Number"
1716
+ }
1717
+ }
1718
+ }
1719
+ }
1720
+ };
1524
1721
  const AnalyzeTextEntityLinkingInput = {
1525
1722
  serializedName: "EntityLinking",
1526
1723
  type: {
@@ -1653,8 +1850,30 @@ const AnalyzeTextSentimentAnalysisInput = {
1653
1850
  } })
1654
1851
  }
1655
1852
  };
1656
- const SentimentTaskResult = {
1657
- serializedName: "SentimentAnalysisResults",
1853
+ const AnalyzeTextDynamicClassificationInput = {
1854
+ serializedName: "DynamicClassification",
1855
+ type: {
1856
+ name: "Composite",
1857
+ className: "AnalyzeTextDynamicClassificationInput",
1858
+ uberParent: "AnalyzeAction",
1859
+ polymorphicDiscriminator: AnalyzeAction.type.polymorphicDiscriminator,
1860
+ modelProperties: Object.assign(Object.assign({}, AnalyzeAction.type.modelProperties), { analysisInput: {
1861
+ serializedName: "analysisInput",
1862
+ type: {
1863
+ name: "Composite",
1864
+ className: "MultiLanguageAnalysisInput"
1865
+ }
1866
+ }, parameters: {
1867
+ serializedName: "parameters",
1868
+ type: {
1869
+ name: "Composite",
1870
+ className: "DynamicClassificationAction"
1871
+ }
1872
+ } })
1873
+ }
1874
+ };
1875
+ const SentimentTaskResult = {
1876
+ serializedName: "SentimentAnalysisResults",
1658
1877
  type: {
1659
1878
  name: "Composite",
1660
1879
  className: "SentimentTaskResult",
@@ -1749,6 +1968,22 @@ const LanguageDetectionTaskResult = {
1749
1968
  } })
1750
1969
  }
1751
1970
  };
1971
+ const DynamicClassificationTaskResult = {
1972
+ serializedName: "DynamicClassificationResults",
1973
+ type: {
1974
+ name: "Composite",
1975
+ className: "DynamicClassificationTaskResult",
1976
+ uberParent: "AnalyzeTextTaskResult",
1977
+ polymorphicDiscriminator: AnalyzeTextTaskResult.type.polymorphicDiscriminator,
1978
+ modelProperties: Object.assign(Object.assign({}, AnalyzeTextTaskResult.type.modelProperties), { results: {
1979
+ serializedName: "results",
1980
+ type: {
1981
+ name: "Composite",
1982
+ className: "DynamicClassificationResult"
1983
+ }
1984
+ } })
1985
+ }
1986
+ };
1752
1987
  const AnalyzeBatchAction = {
1753
1988
  serializedName: "AnalyzeBatchAction",
1754
1989
  type: {
@@ -1794,6 +2029,32 @@ const AnalyzeTextJobState = {
1794
2029
  modelProperties: Object.assign(Object.assign(Object.assign({}, JobState.type.modelProperties), TasksState.type.modelProperties), AnalyzeTextJobStatistics.type.modelProperties)
1795
2030
  }
1796
2031
  };
2032
+ const DocumentRequestStatistics = {
2033
+ type: {
2034
+ name: "Composite",
2035
+ className: "DocumentRequestStatistics",
2036
+ additionalProperties: { type: { name: "Object" } },
2037
+ modelProperties: Object.assign(Object.assign({}, TextDocumentBatchStatistics.type.modelProperties), { documentsCount: {
2038
+ serializedName: "documentsCount",
2039
+ required: true,
2040
+ type: {
2041
+ name: "Number"
2042
+ }
2043
+ }, validDocumentsCount: {
2044
+ serializedName: "validDocumentsCount",
2045
+ required: true,
2046
+ type: {
2047
+ name: "Number"
2048
+ }
2049
+ }, erroneousDocumentsCount: {
2050
+ serializedName: "erroneousDocumentsCount",
2051
+ required: true,
2052
+ type: {
2053
+ name: "Number"
2054
+ }
2055
+ } })
2056
+ }
2057
+ };
1797
2058
  const ActionPrebuilt = {
1798
2059
  type: {
1799
2060
  name: "Composite",
@@ -1826,11 +2087,11 @@ const ActionCustom = {
1826
2087
  } })
1827
2088
  }
1828
2089
  };
1829
- const HealthcareResult = {
2090
+ const CustomEntitiesResult = {
1830
2091
  type: {
1831
2092
  name: "Composite",
1832
- className: "HealthcareResult",
1833
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2093
+ className: "CustomEntitiesResult",
2094
+ modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1834
2095
  serializedName: "documents",
1835
2096
  required: true,
1836
2097
  type: {
@@ -1838,18 +2099,18 @@ const HealthcareResult = {
1838
2099
  element: {
1839
2100
  type: {
1840
2101
  name: "Composite",
1841
- className: "HealthcareResultDocumentsItem"
2102
+ className: "CustomEntitiesResultDocumentsItem"
1842
2103
  }
1843
2104
  }
1844
2105
  }
1845
2106
  } })
1846
2107
  }
1847
2108
  };
1848
- const SentimentResponse = {
2109
+ const CustomLabelClassificationResult = {
1849
2110
  type: {
1850
2111
  name: "Composite",
1851
- className: "SentimentResponse",
1852
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2112
+ className: "CustomLabelClassificationResult",
2113
+ modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1853
2114
  serializedName: "documents",
1854
2115
  required: true,
1855
2116
  type: {
@@ -1857,320 +2118,815 @@ const SentimentResponse = {
1857
2118
  element: {
1858
2119
  type: {
1859
2120
  name: "Composite",
1860
- className: "SentimentResponseDocumentsItem"
2121
+ className: "CustomLabelClassificationResultDocumentsItem"
1861
2122
  }
1862
2123
  }
1863
2124
  }
1864
2125
  } })
1865
2126
  }
1866
2127
  };
1867
- const EntitiesResult = {
2128
+ const AgeResolution = {
2129
+ serializedName: "AgeResolution",
1868
2130
  type: {
1869
2131
  name: "Composite",
1870
- className: "EntitiesResult",
1871
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1872
- serializedName: "documents",
2132
+ className: "AgeResolution",
2133
+ uberParent: "BaseResolution",
2134
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2135
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2136
+ serializedName: "unit",
1873
2137
  required: true,
1874
2138
  type: {
1875
- name: "Sequence",
1876
- element: {
1877
- type: {
1878
- name: "Composite",
1879
- className: "EntitiesResultDocumentsItem"
1880
- }
1881
- }
2139
+ name: "String"
1882
2140
  }
1883
2141
  } })
1884
2142
  }
1885
2143
  };
1886
- const EntityLinkingResult = {
2144
+ const VolumeResolution = {
2145
+ serializedName: "VolumeResolution",
1887
2146
  type: {
1888
2147
  name: "Composite",
1889
- className: "EntityLinkingResult",
1890
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1891
- serializedName: "documents",
2148
+ className: "VolumeResolution",
2149
+ uberParent: "BaseResolution",
2150
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2151
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2152
+ serializedName: "unit",
1892
2153
  required: true,
1893
2154
  type: {
1894
- name: "Sequence",
1895
- element: {
1896
- type: {
1897
- name: "Composite",
1898
- className: "EntityLinkingResultDocumentsItem"
1899
- }
1900
- }
2155
+ name: "String"
1901
2156
  }
1902
2157
  } })
1903
2158
  }
1904
2159
  };
1905
- const PiiResult = {
2160
+ const SpeedResolution = {
2161
+ serializedName: "SpeedResolution",
1906
2162
  type: {
1907
2163
  name: "Composite",
1908
- className: "PiiResult",
1909
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1910
- serializedName: "documents",
2164
+ className: "SpeedResolution",
2165
+ uberParent: "BaseResolution",
2166
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2167
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2168
+ serializedName: "unit",
1911
2169
  required: true,
1912
2170
  type: {
1913
- name: "Sequence",
1914
- element: {
1915
- type: {
1916
- name: "Composite",
1917
- className: "PiiResultDocumentsItem"
1918
- }
1919
- }
2171
+ name: "String"
1920
2172
  }
1921
2173
  } })
1922
2174
  }
1923
2175
  };
1924
- const KeyPhraseResult = {
2176
+ const AreaResolution = {
2177
+ serializedName: "AreaResolution",
1925
2178
  type: {
1926
2179
  name: "Composite",
1927
- className: "KeyPhraseResult",
1928
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1929
- serializedName: "documents",
2180
+ className: "AreaResolution",
2181
+ uberParent: "BaseResolution",
2182
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2183
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2184
+ serializedName: "unit",
1930
2185
  required: true,
1931
2186
  type: {
1932
- name: "Sequence",
1933
- element: {
1934
- type: {
1935
- name: "Composite",
1936
- className: "KeyPhraseResultDocumentsItem"
1937
- }
1938
- }
2187
+ name: "String"
1939
2188
  }
1940
2189
  } })
1941
2190
  }
1942
2191
  };
1943
- const LanguageDetectionResult = {
2192
+ const LengthResolution = {
2193
+ serializedName: "LengthResolution",
1944
2194
  type: {
1945
2195
  name: "Composite",
1946
- className: "LanguageDetectionResult",
1947
- modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
1948
- serializedName: "documents",
2196
+ className: "LengthResolution",
2197
+ uberParent: "BaseResolution",
2198
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2199
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2200
+ serializedName: "unit",
1949
2201
  required: true,
1950
2202
  type: {
1951
- name: "Sequence",
1952
- element: {
1953
- type: {
1954
- name: "Composite",
1955
- className: "LanguageDetectionDocumentResult"
1956
- }
1957
- }
2203
+ name: "String"
1958
2204
  }
1959
2205
  } })
1960
2206
  }
1961
2207
  };
1962
- const CustomEntitiesResult = {
2208
+ const InformationResolution = {
2209
+ serializedName: "InformationResolution",
1963
2210
  type: {
1964
2211
  name: "Composite",
1965
- className: "CustomEntitiesResult",
1966
- modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1967
- serializedName: "documents",
2212
+ className: "InformationResolution",
2213
+ uberParent: "BaseResolution",
2214
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2215
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2216
+ serializedName: "unit",
1968
2217
  required: true,
1969
2218
  type: {
1970
- name: "Sequence",
1971
- element: {
1972
- type: {
1973
- name: "Composite",
1974
- className: "CustomEntitiesResultDocumentsItem"
1975
- }
1976
- }
2219
+ name: "String"
1977
2220
  }
1978
2221
  } })
1979
2222
  }
1980
2223
  };
1981
- const CustomLabelClassificationResult = {
2224
+ const TemperatureResolution = {
2225
+ serializedName: "TemperatureResolution",
1982
2226
  type: {
1983
2227
  name: "Composite",
1984
- className: "CustomLabelClassificationResult",
1985
- modelProperties: Object.assign(Object.assign({}, CustomResult.type.modelProperties), { documents: {
1986
- serializedName: "documents",
2228
+ className: "TemperatureResolution",
2229
+ uberParent: "BaseResolution",
2230
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2231
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2232
+ serializedName: "unit",
1987
2233
  required: true,
1988
2234
  type: {
1989
- name: "Sequence",
1990
- element: {
1991
- type: {
1992
- name: "Composite",
1993
- className: "CustomLabelClassificationResultDocumentsItem"
1994
- }
1995
- }
2235
+ name: "String"
1996
2236
  }
1997
2237
  } })
1998
2238
  }
1999
2239
  };
2000
- const EntitiesDocumentResult = {
2240
+ const WeightResolution = {
2241
+ serializedName: "WeightResolution",
2001
2242
  type: {
2002
2243
  name: "Composite",
2003
- className: "EntitiesDocumentResult",
2004
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2005
- serializedName: "entities",
2244
+ className: "WeightResolution",
2245
+ uberParent: "BaseResolution",
2246
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2247
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { unit: {
2248
+ serializedName: "unit",
2006
2249
  required: true,
2007
2250
  type: {
2008
- name: "Sequence",
2009
- element: {
2010
- type: {
2011
- name: "Composite",
2012
- className: "Entity"
2013
- }
2014
- }
2251
+ name: "String"
2015
2252
  }
2016
2253
  } })
2017
2254
  }
2018
2255
  };
2019
- const ClassificationDocumentResult = {
2256
+ const CurrencyResolution = {
2257
+ serializedName: "CurrencyResolution",
2020
2258
  type: {
2021
2259
  name: "Composite",
2022
- className: "ClassificationDocumentResult",
2023
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { class: {
2024
- serializedName: "class",
2260
+ className: "CurrencyResolution",
2261
+ uberParent: "BaseResolution",
2262
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2263
+ modelProperties: Object.assign(Object.assign(Object.assign({}, BaseResolution.type.modelProperties), QuantityResolution.type.modelProperties), { iso4217: {
2264
+ serializedName: "ISO4217",
2265
+ type: {
2266
+ name: "String"
2267
+ }
2268
+ }, unit: {
2269
+ serializedName: "unit",
2025
2270
  required: true,
2026
2271
  type: {
2027
- name: "Sequence",
2028
- element: {
2029
- type: {
2030
- name: "Composite",
2031
- className: "ClassificationCategory"
2032
- }
2033
- }
2272
+ name: "String"
2034
2273
  }
2035
2274
  } })
2036
2275
  }
2037
2276
  };
2038
- const HealthcareEntitiesDocumentResult = {
2277
+ const BooleanResolution = {
2278
+ serializedName: "BooleanResolution",
2039
2279
  type: {
2040
2280
  name: "Composite",
2041
- className: "HealthcareEntitiesDocumentResult",
2042
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2043
- serializedName: "entities",
2281
+ className: "BooleanResolution",
2282
+ uberParent: "BaseResolution",
2283
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2284
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { value: {
2285
+ serializedName: "value",
2044
2286
  required: true,
2045
2287
  type: {
2046
- name: "Sequence",
2047
- element: {
2048
- type: {
2049
- name: "Composite",
2050
- className: "HealthcareEntity"
2051
- }
2052
- }
2288
+ name: "Boolean"
2053
2289
  }
2054
- }, relations: {
2055
- serializedName: "relations",
2290
+ } })
2291
+ }
2292
+ };
2293
+ const DateTimeResolution = {
2294
+ serializedName: "DateTimeResolution",
2295
+ type: {
2296
+ name: "Composite",
2297
+ className: "DateTimeResolution",
2298
+ uberParent: "BaseResolution",
2299
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2300
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { timex: {
2301
+ serializedName: "timex",
2056
2302
  required: true,
2057
2303
  type: {
2058
- name: "Sequence",
2059
- element: {
2060
- type: {
2061
- name: "Composite",
2062
- className: "HealthcareRelation"
2063
- }
2064
- }
2304
+ name: "String"
2305
+ }
2306
+ }, dateTimeSubKind: {
2307
+ serializedName: "dateTimeSubKind",
2308
+ required: true,
2309
+ type: {
2310
+ name: "String"
2311
+ }
2312
+ }, value: {
2313
+ serializedName: "value",
2314
+ required: true,
2315
+ type: {
2316
+ name: "String"
2317
+ }
2318
+ }, modifier: {
2319
+ serializedName: "modifier",
2320
+ type: {
2321
+ name: "String"
2065
2322
  }
2066
2323
  } })
2067
2324
  }
2068
2325
  };
2069
- const SentimentDocumentResult = {
2326
+ const NumberResolution = {
2327
+ serializedName: "NumberResolution",
2070
2328
  type: {
2071
2329
  name: "Composite",
2072
- className: "SentimentDocumentResult",
2073
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { sentiment: {
2074
- serializedName: "sentiment",
2330
+ className: "NumberResolution",
2331
+ uberParent: "BaseResolution",
2332
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2333
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { numberKind: {
2334
+ serializedName: "numberKind",
2075
2335
  required: true,
2076
2336
  type: {
2077
- name: "Enum",
2078
- allowedValues: ["positive", "neutral", "negative", "mixed"]
2337
+ name: "String"
2079
2338
  }
2080
- }, confidenceScores: {
2081
- serializedName: "confidenceScores",
2339
+ }, value: {
2340
+ serializedName: "value",
2341
+ required: true,
2082
2342
  type: {
2083
- name: "Composite",
2084
- className: "SentimentConfidenceScores"
2343
+ name: "String"
2344
+ }
2345
+ } })
2346
+ }
2347
+ };
2348
+ const OrdinalResolution = {
2349
+ serializedName: "OrdinalResolution",
2350
+ type: {
2351
+ name: "Composite",
2352
+ className: "OrdinalResolution",
2353
+ uberParent: "BaseResolution",
2354
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2355
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { offset: {
2356
+ serializedName: "offset",
2357
+ required: true,
2358
+ type: {
2359
+ name: "String"
2360
+ }
2361
+ }, relativeTo: {
2362
+ serializedName: "relativeTo",
2363
+ required: true,
2364
+ type: {
2365
+ name: "String"
2366
+ }
2367
+ }, value: {
2368
+ serializedName: "value",
2369
+ required: true,
2370
+ type: {
2371
+ name: "String"
2372
+ }
2373
+ } })
2374
+ }
2375
+ };
2376
+ const TemporalSpanResolution = {
2377
+ serializedName: "TemporalSpanResolution",
2378
+ type: {
2379
+ name: "Composite",
2380
+ className: "TemporalSpanResolution",
2381
+ uberParent: "BaseResolution",
2382
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2383
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { begin: {
2384
+ serializedName: "begin",
2385
+ type: {
2386
+ name: "String"
2387
+ }
2388
+ }, end: {
2389
+ serializedName: "end",
2390
+ type: {
2391
+ name: "String"
2392
+ }
2393
+ }, duration: {
2394
+ serializedName: "duration",
2395
+ type: {
2396
+ name: "String"
2397
+ }
2398
+ }, modifier: {
2399
+ serializedName: "modifier",
2400
+ type: {
2401
+ name: "String"
2402
+ }
2403
+ }, timex: {
2404
+ serializedName: "timex",
2405
+ type: {
2406
+ name: "String"
2407
+ }
2408
+ } })
2409
+ }
2410
+ };
2411
+ const NumericRangeResolution = {
2412
+ serializedName: "NumericRangeResolution",
2413
+ type: {
2414
+ name: "Composite",
2415
+ className: "NumericRangeResolution",
2416
+ uberParent: "BaseResolution",
2417
+ polymorphicDiscriminator: BaseResolution.type.polymorphicDiscriminator,
2418
+ modelProperties: Object.assign(Object.assign({}, BaseResolution.type.modelProperties), { rangeKind: {
2419
+ serializedName: "rangeKind",
2420
+ required: true,
2421
+ type: {
2422
+ name: "String"
2423
+ }
2424
+ }, minimum: {
2425
+ serializedName: "minimum",
2426
+ required: true,
2427
+ type: {
2428
+ name: "Number"
2429
+ }
2430
+ }, maximum: {
2431
+ serializedName: "maximum",
2432
+ required: true,
2433
+ type: {
2434
+ name: "Number"
2435
+ }
2436
+ } })
2437
+ }
2438
+ };
2439
+ const EntityWithResolution = {
2440
+ type: {
2441
+ name: "Composite",
2442
+ className: "EntityWithResolution",
2443
+ modelProperties: Object.assign(Object.assign({}, Entity.type.modelProperties), { resolutions: {
2444
+ serializedName: "resolutions",
2445
+ type: {
2446
+ name: "Sequence",
2447
+ element: {
2448
+ type: {
2449
+ name: "Composite",
2450
+ className: "BaseResolution"
2451
+ }
2452
+ }
2453
+ }
2454
+ } })
2455
+ }
2456
+ };
2457
+ const EntitiesDocumentResult = {
2458
+ type: {
2459
+ name: "Composite",
2460
+ className: "EntitiesDocumentResult",
2461
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2462
+ serializedName: "entities",
2463
+ required: true,
2464
+ type: {
2465
+ name: "Sequence",
2466
+ element: {
2467
+ type: {
2468
+ name: "Composite",
2469
+ className: "EntityWithResolution"
2470
+ }
2471
+ }
2472
+ }
2473
+ } })
2474
+ }
2475
+ };
2476
+ const ClassificationDocumentResult = {
2477
+ type: {
2478
+ name: "Composite",
2479
+ className: "ClassificationDocumentResult",
2480
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { class: {
2481
+ serializedName: "class",
2482
+ required: true,
2483
+ type: {
2484
+ name: "Sequence",
2485
+ element: {
2486
+ type: {
2487
+ name: "Composite",
2488
+ className: "ClassificationCategory"
2489
+ }
2490
+ }
2491
+ }
2492
+ } })
2493
+ }
2494
+ };
2495
+ const HealthcareEntitiesDocumentResult = {
2496
+ type: {
2497
+ name: "Composite",
2498
+ className: "HealthcareEntitiesDocumentResult",
2499
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2500
+ serializedName: "entities",
2501
+ required: true,
2502
+ type: {
2503
+ name: "Sequence",
2504
+ element: {
2505
+ type: {
2506
+ name: "Composite",
2507
+ className: "HealthcareEntity"
2508
+ }
2509
+ }
2510
+ }
2511
+ }, relations: {
2512
+ serializedName: "relations",
2513
+ required: true,
2514
+ type: {
2515
+ name: "Sequence",
2516
+ element: {
2517
+ type: {
2518
+ name: "Composite",
2519
+ className: "HealthcareRelation"
2520
+ }
2521
+ }
2522
+ }
2523
+ }, fhirBundle: {
2524
+ serializedName: "fhirBundle",
2525
+ type: {
2526
+ name: "Dictionary",
2527
+ value: { type: { name: "any" } }
2528
+ }
2529
+ } })
2530
+ }
2531
+ };
2532
+ const SentimentDocumentResult = {
2533
+ type: {
2534
+ name: "Composite",
2535
+ className: "SentimentDocumentResult",
2536
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { sentiment: {
2537
+ serializedName: "sentiment",
2538
+ required: true,
2539
+ type: {
2540
+ name: "Enum",
2541
+ allowedValues: ["positive", "neutral", "negative", "mixed"]
2542
+ }
2543
+ }, confidenceScores: {
2544
+ serializedName: "confidenceScores",
2545
+ type: {
2546
+ name: "Composite",
2547
+ className: "SentimentConfidenceScores"
2548
+ }
2549
+ }, sentences: {
2550
+ serializedName: "sentences",
2551
+ required: true,
2552
+ type: {
2553
+ name: "Sequence",
2554
+ element: {
2555
+ type: {
2556
+ name: "Composite",
2557
+ className: "SentenceSentiment"
2558
+ }
2559
+ }
2560
+ }
2561
+ } })
2562
+ }
2563
+ };
2564
+ const LinkedEntitiesDocumentResult = {
2565
+ type: {
2566
+ name: "Composite",
2567
+ className: "LinkedEntitiesDocumentResult",
2568
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2569
+ serializedName: "entities",
2570
+ required: true,
2571
+ type: {
2572
+ name: "Sequence",
2573
+ element: {
2574
+ type: {
2575
+ name: "Composite",
2576
+ className: "LinkedEntity"
2577
+ }
2578
+ }
2579
+ }
2580
+ } })
2581
+ }
2582
+ };
2583
+ const PiiEntitiesDocumentResult = {
2584
+ type: {
2585
+ name: "Composite",
2586
+ className: "PiiEntitiesDocumentResult",
2587
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { redactedText: {
2588
+ serializedName: "redactedText",
2589
+ required: true,
2590
+ type: {
2591
+ name: "String"
2592
+ }
2593
+ }, entities: {
2594
+ serializedName: "entities",
2595
+ required: true,
2596
+ type: {
2597
+ name: "Sequence",
2598
+ element: {
2599
+ type: {
2600
+ name: "Composite",
2601
+ className: "Entity"
2602
+ }
2603
+ }
2604
+ }
2605
+ } })
2606
+ }
2607
+ };
2608
+ const ExtractedSummaryDocumentResult = {
2609
+ type: {
2610
+ name: "Composite",
2611
+ className: "ExtractedSummaryDocumentResult",
2612
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { sentences: {
2613
+ serializedName: "sentences",
2614
+ required: true,
2615
+ type: {
2616
+ name: "Sequence",
2617
+ element: {
2618
+ type: {
2619
+ name: "Composite",
2620
+ className: "SummarySentence"
2621
+ }
2622
+ }
2623
+ }
2624
+ } })
2625
+ }
2626
+ };
2627
+ const KeyPhrasesDocumentResult = {
2628
+ type: {
2629
+ name: "Composite",
2630
+ className: "KeyPhrasesDocumentResult",
2631
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { keyPhrases: {
2632
+ serializedName: "keyPhrases",
2633
+ required: true,
2634
+ type: {
2635
+ name: "Sequence",
2636
+ element: {
2637
+ type: {
2638
+ name: "String"
2639
+ }
2640
+ }
2641
+ }
2642
+ } })
2643
+ }
2644
+ };
2645
+ const LanguageDetectionDocumentResult = {
2646
+ type: {
2647
+ name: "Composite",
2648
+ className: "LanguageDetectionDocumentResult",
2649
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { detectedLanguage: {
2650
+ serializedName: "detectedLanguage",
2651
+ type: {
2652
+ name: "Composite",
2653
+ className: "DetectedLanguage"
2654
+ }
2655
+ } })
2656
+ }
2657
+ };
2658
+ const AbstractiveSummaryDocumentResult = {
2659
+ type: {
2660
+ name: "Composite",
2661
+ className: "AbstractiveSummaryDocumentResult",
2662
+ modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { summaries: {
2663
+ serializedName: "summaries",
2664
+ required: true,
2665
+ type: {
2666
+ name: "Sequence",
2667
+ element: {
2668
+ type: {
2669
+ name: "Composite",
2670
+ className: "AbstractiveSummary"
2671
+ }
2672
+ }
2673
+ }
2674
+ } })
2675
+ }
2676
+ };
2677
+ const CustomEntitiesResultDocumentsItem = {
2678
+ type: {
2679
+ name: "Composite",
2680
+ className: "CustomEntitiesResultDocumentsItem",
2681
+ modelProperties: Object.assign(Object.assign({}, EntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2682
+ }
2683
+ };
2684
+ const CustomLabelClassificationResultDocumentsItem = {
2685
+ type: {
2686
+ name: "Composite",
2687
+ className: "CustomLabelClassificationResultDocumentsItem",
2688
+ modelProperties: Object.assign(Object.assign({}, ClassificationDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2689
+ }
2690
+ };
2691
+ const HealthcareResultDocumentsItem = {
2692
+ type: {
2693
+ name: "Composite",
2694
+ className: "HealthcareResultDocumentsItem",
2695
+ modelProperties: Object.assign(Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2696
+ }
2697
+ };
2698
+ const SentimentResponseDocumentsItem = {
2699
+ type: {
2700
+ name: "Composite",
2701
+ className: "SentimentResponseDocumentsItem",
2702
+ modelProperties: Object.assign(Object.assign({}, SentimentDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2703
+ }
2704
+ };
2705
+ const EntitiesResultDocumentsItem = {
2706
+ type: {
2707
+ name: "Composite",
2708
+ className: "EntitiesResultDocumentsItem",
2709
+ modelProperties: Object.assign(Object.assign({}, EntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2710
+ }
2711
+ };
2712
+ const EntityLinkingResultDocumentsItem = {
2713
+ type: {
2714
+ name: "Composite",
2715
+ className: "EntityLinkingResultDocumentsItem",
2716
+ modelProperties: Object.assign(Object.assign({}, LinkedEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2717
+ }
2718
+ };
2719
+ const PiiResultDocumentsItem = {
2720
+ type: {
2721
+ name: "Composite",
2722
+ className: "PiiResultDocumentsItem",
2723
+ modelProperties: Object.assign(Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2724
+ }
2725
+ };
2726
+ const ExtractedSummaryDocumentResultWithDetectedLanguage = {
2727
+ type: {
2728
+ name: "Composite",
2729
+ className: "ExtractedSummaryDocumentResultWithDetectedLanguage",
2730
+ modelProperties: Object.assign(Object.assign({}, ExtractedSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2731
+ }
2732
+ };
2733
+ const KeyPhraseResultDocumentsItem = {
2734
+ type: {
2735
+ name: "Composite",
2736
+ className: "KeyPhraseResultDocumentsItem",
2737
+ modelProperties: Object.assign(Object.assign({}, KeyPhrasesDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2738
+ }
2739
+ };
2740
+ const AbstractiveSummaryDocumentResultWithDetectedLanguage = {
2741
+ type: {
2742
+ name: "Composite",
2743
+ className: "AbstractiveSummaryDocumentResultWithDetectedLanguage",
2744
+ modelProperties: Object.assign(Object.assign({}, AbstractiveSummaryDocumentResult.type.modelProperties), DocumentDetectedLanguage.type.modelProperties)
2745
+ }
2746
+ };
2747
+ const HealthcareResult = {
2748
+ type: {
2749
+ name: "Composite",
2750
+ className: "HealthcareResult",
2751
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2752
+ serializedName: "documents",
2753
+ required: true,
2754
+ type: {
2755
+ name: "Sequence",
2756
+ element: {
2757
+ type: {
2758
+ name: "Composite",
2759
+ className: "HealthcareResultDocumentsItem"
2760
+ }
2761
+ }
2762
+ }
2763
+ } })
2764
+ }
2765
+ };
2766
+ const SentimentResponse = {
2767
+ type: {
2768
+ name: "Composite",
2769
+ className: "SentimentResponse",
2770
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2771
+ serializedName: "documents",
2772
+ required: true,
2773
+ type: {
2774
+ name: "Sequence",
2775
+ element: {
2776
+ type: {
2777
+ name: "Composite",
2778
+ className: "SentimentResponseDocumentsItem"
2779
+ }
2780
+ }
2781
+ }
2782
+ } })
2783
+ }
2784
+ };
2785
+ const EntitiesResult = {
2786
+ type: {
2787
+ name: "Composite",
2788
+ className: "EntitiesResult",
2789
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2790
+ serializedName: "documents",
2791
+ required: true,
2792
+ type: {
2793
+ name: "Sequence",
2794
+ element: {
2795
+ type: {
2796
+ name: "Composite",
2797
+ className: "EntitiesResultDocumentsItem"
2798
+ }
2799
+ }
2800
+ }
2801
+ } })
2802
+ }
2803
+ };
2804
+ const EntityLinkingResult = {
2805
+ type: {
2806
+ name: "Composite",
2807
+ className: "EntityLinkingResult",
2808
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2809
+ serializedName: "documents",
2810
+ required: true,
2811
+ type: {
2812
+ name: "Sequence",
2813
+ element: {
2814
+ type: {
2815
+ name: "Composite",
2816
+ className: "EntityLinkingResultDocumentsItem"
2817
+ }
2818
+ }
2819
+ }
2820
+ } })
2821
+ }
2822
+ };
2823
+ const PiiResult = {
2824
+ type: {
2825
+ name: "Composite",
2826
+ className: "PiiResult",
2827
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2828
+ serializedName: "documents",
2829
+ required: true,
2830
+ type: {
2831
+ name: "Sequence",
2832
+ element: {
2833
+ type: {
2834
+ name: "Composite",
2835
+ className: "PiiResultDocumentsItem"
2836
+ }
2837
+ }
2085
2838
  }
2086
- }, sentences: {
2087
- serializedName: "sentences",
2839
+ } })
2840
+ }
2841
+ };
2842
+ const ExtractiveSummarizationResult = {
2843
+ type: {
2844
+ name: "Composite",
2845
+ className: "ExtractiveSummarizationResult",
2846
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2847
+ serializedName: "documents",
2088
2848
  required: true,
2089
2849
  type: {
2090
2850
  name: "Sequence",
2091
2851
  element: {
2092
2852
  type: {
2093
2853
  name: "Composite",
2094
- className: "SentenceSentiment"
2854
+ className: "ExtractedSummaryDocumentResultWithDetectedLanguage"
2095
2855
  }
2096
2856
  }
2097
2857
  }
2098
2858
  } })
2099
2859
  }
2100
2860
  };
2101
- const LinkedEntitiesDocumentResult = {
2861
+ const KeyPhraseResult = {
2102
2862
  type: {
2103
2863
  name: "Composite",
2104
- className: "LinkedEntitiesDocumentResult",
2105
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { entities: {
2106
- serializedName: "entities",
2864
+ className: "KeyPhraseResult",
2865
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2866
+ serializedName: "documents",
2107
2867
  required: true,
2108
2868
  type: {
2109
2869
  name: "Sequence",
2110
2870
  element: {
2111
2871
  type: {
2112
2872
  name: "Composite",
2113
- className: "LinkedEntity"
2873
+ className: "KeyPhraseResultDocumentsItem"
2114
2874
  }
2115
2875
  }
2116
2876
  }
2117
2877
  } })
2118
2878
  }
2119
2879
  };
2120
- const PiiEntitiesDocumentResult = {
2880
+ const LanguageDetectionResult = {
2121
2881
  type: {
2122
2882
  name: "Composite",
2123
- className: "PiiEntitiesDocumentResult",
2124
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { redactedText: {
2125
- serializedName: "redactedText",
2126
- required: true,
2127
- type: {
2128
- name: "String"
2129
- }
2130
- }, entities: {
2131
- serializedName: "entities",
2883
+ className: "LanguageDetectionResult",
2884
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2885
+ serializedName: "documents",
2132
2886
  required: true,
2133
2887
  type: {
2134
2888
  name: "Sequence",
2135
2889
  element: {
2136
2890
  type: {
2137
2891
  name: "Composite",
2138
- className: "Entity"
2892
+ className: "LanguageDetectionDocumentResult"
2139
2893
  }
2140
2894
  }
2141
2895
  }
2142
2896
  } })
2143
2897
  }
2144
2898
  };
2145
- const KeyPhrasesDocumentResult = {
2899
+ const DynamicClassificationResult = {
2146
2900
  type: {
2147
2901
  name: "Composite",
2148
- className: "KeyPhrasesDocumentResult",
2149
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { keyPhrases: {
2150
- serializedName: "keyPhrases",
2902
+ className: "DynamicClassificationResult",
2903
+ modelProperties: Object.assign(Object.assign({}, PreBuiltResult.type.modelProperties), { documents: {
2904
+ serializedName: "documents",
2151
2905
  required: true,
2152
2906
  type: {
2153
2907
  name: "Sequence",
2154
2908
  element: {
2155
2909
  type: {
2156
- name: "String"
2910
+ name: "Composite",
2911
+ className: "DynamicClassificationResultDocumentsItem"
2157
2912
  }
2158
2913
  }
2159
2914
  }
2160
2915
  } })
2161
2916
  }
2162
2917
  };
2163
- const LanguageDetectionDocumentResult = {
2918
+ const AbstractiveSummarizationResult = {
2164
2919
  type: {
2165
2920
  name: "Composite",
2166
- className: "LanguageDetectionDocumentResult",
2167
- modelProperties: Object.assign(Object.assign({}, DocumentResult.type.modelProperties), { detectedLanguage: {
2168
- serializedName: "detectedLanguage",
2169
- type: {
2170
- name: "Composite",
2171
- className: "DetectedLanguage"
2172
- }
2173
- } })
2921
+ className: "AbstractiveSummarizationResult",
2922
+ modelProperties: Object.assign(Object.assign({}, AbstractiveSummarizationResultBase.type.modelProperties), PreBuiltResult.type.modelProperties)
2923
+ }
2924
+ };
2925
+ const AbstractiveSummarizationAction = {
2926
+ type: {
2927
+ name: "Composite",
2928
+ className: "AbstractiveSummarizationAction",
2929
+ modelProperties: Object.assign(Object.assign({}, AbstractiveSummarizationTaskParametersBase.type.modelProperties), ActionPrebuilt.type.modelProperties)
2174
2930
  }
2175
2931
  };
2176
2932
  const CustomEntitiesLROTask = {
@@ -2178,8 +2934,8 @@ const CustomEntitiesLROTask = {
2178
2934
  type: {
2179
2935
  name: "Composite",
2180
2936
  className: "CustomEntitiesLROTask",
2181
- uberParent: "BatchActionState",
2182
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
2937
+ uberParent: "AnalyzeBatchAction",
2938
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2183
2939
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2184
2940
  serializedName: "parameters",
2185
2941
  type: {
@@ -2194,8 +2950,8 @@ const CustomSingleLabelClassificationLROTask = {
2194
2950
  type: {
2195
2951
  name: "Composite",
2196
2952
  className: "CustomSingleLabelClassificationLROTask",
2197
- uberParent: "BatchActionState",
2198
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
2953
+ uberParent: "AnalyzeBatchAction",
2954
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2199
2955
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2200
2956
  serializedName: "parameters",
2201
2957
  type: {
@@ -2210,8 +2966,8 @@ const CustomMultiLabelClassificationLROTask = {
2210
2966
  type: {
2211
2967
  name: "Composite",
2212
2968
  className: "CustomMultiLabelClassificationLROTask",
2213
- uberParent: "BatchActionState",
2214
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
2969
+ uberParent: "AnalyzeBatchAction",
2970
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2215
2971
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2216
2972
  serializedName: "parameters",
2217
2973
  type: {
@@ -2226,8 +2982,8 @@ const HealthcareLROTask = {
2226
2982
  type: {
2227
2983
  name: "Composite",
2228
2984
  className: "HealthcareLROTask",
2229
- uberParent: "BatchActionState",
2230
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
2985
+ uberParent: "AnalyzeBatchAction",
2986
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2231
2987
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2232
2988
  serializedName: "parameters",
2233
2989
  type: {
@@ -2242,8 +2998,8 @@ const SentimentAnalysisLROTask = {
2242
2998
  type: {
2243
2999
  name: "Composite",
2244
3000
  className: "SentimentAnalysisLROTask",
2245
- uberParent: "BatchActionState",
2246
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
3001
+ uberParent: "AnalyzeBatchAction",
3002
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2247
3003
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2248
3004
  serializedName: "parameters",
2249
3005
  type: {
@@ -2258,8 +3014,8 @@ const EntitiesLROTask = {
2258
3014
  type: {
2259
3015
  name: "Composite",
2260
3016
  className: "EntitiesLROTask",
2261
- uberParent: "BatchActionState",
2262
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
3017
+ uberParent: "AnalyzeBatchAction",
3018
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2263
3019
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2264
3020
  serializedName: "parameters",
2265
3021
  type: {
@@ -2274,8 +3030,8 @@ const EntityLinkingLROTask = {
2274
3030
  type: {
2275
3031
  name: "Composite",
2276
3032
  className: "EntityLinkingLROTask",
2277
- uberParent: "BatchActionState",
2278
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
3033
+ uberParent: "AnalyzeBatchAction",
3034
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2279
3035
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2280
3036
  serializedName: "parameters",
2281
3037
  type: {
@@ -2290,8 +3046,8 @@ const PiiLROTask = {
2290
3046
  type: {
2291
3047
  name: "Composite",
2292
3048
  className: "PiiLROTask",
2293
- uberParent: "BatchActionState",
2294
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
3049
+ uberParent: "AnalyzeBatchAction",
3050
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2295
3051
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2296
3052
  serializedName: "parameters",
2297
3053
  type: {
@@ -2301,13 +3057,29 @@ const PiiLROTask = {
2301
3057
  } })
2302
3058
  }
2303
3059
  };
3060
+ const ExtractiveSummarizationLROTask = {
3061
+ serializedName: "ExtractiveSummarization",
3062
+ type: {
3063
+ name: "Composite",
3064
+ className: "ExtractiveSummarizationLROTask",
3065
+ uberParent: "AnalyzeBatchAction",
3066
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
3067
+ modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
3068
+ serializedName: "parameters",
3069
+ type: {
3070
+ name: "Composite",
3071
+ className: "ExtractiveSummarizationAction"
3072
+ }
3073
+ } })
3074
+ }
3075
+ };
2304
3076
  const KeyPhraseLROTask = {
2305
3077
  serializedName: "KeyPhraseExtraction",
2306
3078
  type: {
2307
3079
  name: "Composite",
2308
3080
  className: "KeyPhraseLROTask",
2309
- uberParent: "BatchActionState",
2310
- polymorphicDiscriminator: BatchActionState.type.polymorphicDiscriminator,
3081
+ uberParent: "AnalyzeBatchAction",
3082
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
2311
3083
  modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
2312
3084
  serializedName: "parameters",
2313
3085
  type: {
@@ -2317,13 +3089,29 @@ const KeyPhraseLROTask = {
2317
3089
  } })
2318
3090
  }
2319
3091
  };
3092
+ const AbstractiveSummarizationLROTask = {
3093
+ serializedName: "AbstractiveSummarization",
3094
+ type: {
3095
+ name: "Composite",
3096
+ className: "AbstractiveSummarizationLROTask",
3097
+ uberParent: "AnalyzeBatchAction",
3098
+ polymorphicDiscriminator: AnalyzeBatchAction.type.polymorphicDiscriminator,
3099
+ modelProperties: Object.assign(Object.assign({}, AnalyzeBatchAction.type.modelProperties), { parameters: {
3100
+ serializedName: "parameters",
3101
+ type: {
3102
+ name: "Composite",
3103
+ className: "AbstractiveSummarizationAction"
3104
+ }
3105
+ } })
3106
+ }
3107
+ };
2320
3108
  const EntityRecognitionLROResult = {
2321
3109
  serializedName: "EntityRecognitionLROResults",
2322
3110
  type: {
2323
3111
  name: "Composite",
2324
3112
  className: "EntityRecognitionLROResult",
2325
- uberParent: "TaskState",
2326
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3113
+ uberParent: "AnalyzeTextLROResult",
3114
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2327
3115
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2328
3116
  serializedName: "results",
2329
3117
  type: {
@@ -2338,8 +3126,8 @@ const CustomEntityRecognitionLROResult = {
2338
3126
  type: {
2339
3127
  name: "Composite",
2340
3128
  className: "CustomEntityRecognitionLROResult",
2341
- uberParent: "TaskState",
2342
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3129
+ uberParent: "AnalyzeTextLROResult",
3130
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2343
3131
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2344
3132
  serializedName: "results",
2345
3133
  type: {
@@ -2354,8 +3142,8 @@ const CustomSingleLabelClassificationLROResult = {
2354
3142
  type: {
2355
3143
  name: "Composite",
2356
3144
  className: "CustomSingleLabelClassificationLROResult",
2357
- uberParent: "TaskState",
2358
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3145
+ uberParent: "AnalyzeTextLROResult",
3146
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2359
3147
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2360
3148
  serializedName: "results",
2361
3149
  type: {
@@ -2370,8 +3158,8 @@ const CustomMultiLabelClassificationLROResult = {
2370
3158
  type: {
2371
3159
  name: "Composite",
2372
3160
  className: "CustomMultiLabelClassificationLROResult",
2373
- uberParent: "TaskState",
2374
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3161
+ uberParent: "AnalyzeTextLROResult",
3162
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2375
3163
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2376
3164
  serializedName: "results",
2377
3165
  type: {
@@ -2386,8 +3174,8 @@ const EntityLinkingLROResult = {
2386
3174
  type: {
2387
3175
  name: "Composite",
2388
3176
  className: "EntityLinkingLROResult",
2389
- uberParent: "TaskState",
2390
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3177
+ uberParent: "AnalyzeTextLROResult",
3178
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2391
3179
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2392
3180
  serializedName: "results",
2393
3181
  type: {
@@ -2402,8 +3190,8 @@ const PiiEntityRecognitionLROResult = {
2402
3190
  type: {
2403
3191
  name: "Composite",
2404
3192
  className: "PiiEntityRecognitionLROResult",
2405
- uberParent: "TaskState",
2406
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3193
+ uberParent: "AnalyzeTextLROResult",
3194
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2407
3195
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2408
3196
  serializedName: "results",
2409
3197
  type: {
@@ -2413,13 +3201,29 @@ const PiiEntityRecognitionLROResult = {
2413
3201
  } })
2414
3202
  }
2415
3203
  };
3204
+ const ExtractiveSummarizationLROResult = {
3205
+ serializedName: "ExtractiveSummarizationLROResults",
3206
+ type: {
3207
+ name: "Composite",
3208
+ className: "ExtractiveSummarizationLROResult",
3209
+ uberParent: "AnalyzeTextLROResult",
3210
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
3211
+ modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
3212
+ serializedName: "results",
3213
+ type: {
3214
+ name: "Composite",
3215
+ className: "ExtractiveSummarizationResult"
3216
+ }
3217
+ } })
3218
+ }
3219
+ };
2416
3220
  const HealthcareLROResult = {
2417
3221
  serializedName: "HealthcareLROResults",
2418
3222
  type: {
2419
3223
  name: "Composite",
2420
3224
  className: "HealthcareLROResult",
2421
- uberParent: "TaskState",
2422
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3225
+ uberParent: "AnalyzeTextLROResult",
3226
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2423
3227
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2424
3228
  serializedName: "results",
2425
3229
  type: {
@@ -2434,8 +3238,8 @@ const SentimentLROResult = {
2434
3238
  type: {
2435
3239
  name: "Composite",
2436
3240
  className: "SentimentLROResult",
2437
- uberParent: "TaskState",
2438
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3241
+ uberParent: "AnalyzeTextLROResult",
3242
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2439
3243
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2440
3244
  serializedName: "results",
2441
3245
  type: {
@@ -2450,8 +3254,8 @@ const KeyPhraseExtractionLROResult = {
2450
3254
  type: {
2451
3255
  name: "Composite",
2452
3256
  className: "KeyPhraseExtractionLROResult",
2453
- uberParent: "TaskState",
2454
- polymorphicDiscriminator: TaskState.type.polymorphicDiscriminator,
3257
+ uberParent: "AnalyzeTextLROResult",
3258
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
2455
3259
  modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
2456
3260
  serializedName: "results",
2457
3261
  type: {
@@ -2461,6 +3265,22 @@ const KeyPhraseExtractionLROResult = {
2461
3265
  } })
2462
3266
  }
2463
3267
  };
3268
+ const AbstractiveSummarizationLROResult = {
3269
+ serializedName: "AbstractiveSummarizationLROResults",
3270
+ type: {
3271
+ name: "Composite",
3272
+ className: "AbstractiveSummarizationLROResult",
3273
+ uberParent: "AnalyzeTextLROResult",
3274
+ polymorphicDiscriminator: AnalyzeTextLROResult.type.polymorphicDiscriminator,
3275
+ modelProperties: Object.assign(Object.assign({}, AnalyzeTextLROResult.type.modelProperties), { results: {
3276
+ serializedName: "results",
3277
+ type: {
3278
+ name: "Composite",
3279
+ className: "AbstractiveSummarizationResult"
3280
+ }
3281
+ } })
3282
+ }
3283
+ };
2464
3284
  const EntityLinkingAction = {
2465
3285
  type: {
2466
3286
  name: "Composite",
@@ -2552,11 +3372,70 @@ const SentimentAnalysisAction = {
2552
3372
  } })
2553
3373
  }
2554
3374
  };
3375
+ const DynamicClassificationAction = {
3376
+ type: {
3377
+ name: "Composite",
3378
+ className: "DynamicClassificationAction",
3379
+ modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { classificationType: {
3380
+ defaultValue: "Multi",
3381
+ serializedName: "classificationType",
3382
+ type: {
3383
+ name: "String"
3384
+ }
3385
+ }, categories: {
3386
+ serializedName: "categories",
3387
+ required: true,
3388
+ type: {
3389
+ name: "Sequence",
3390
+ element: {
3391
+ type: {
3392
+ name: "String"
3393
+ }
3394
+ }
3395
+ }
3396
+ } })
3397
+ }
3398
+ };
2555
3399
  const HealthcareAction = {
2556
3400
  type: {
2557
3401
  name: "Composite",
2558
3402
  className: "HealthcareAction",
2559
- modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { stringIndexType: {
3403
+ modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { fhirVersion: {
3404
+ serializedName: "fhirVersion",
3405
+ type: {
3406
+ name: "String"
3407
+ }
3408
+ }, documentType: {
3409
+ serializedName: "documentType",
3410
+ type: {
3411
+ name: "String"
3412
+ }
3413
+ }, stringIndexType: {
3414
+ defaultValue: "Utf16CodeUnit",
3415
+ serializedName: "stringIndexType",
3416
+ type: {
3417
+ name: "String"
3418
+ }
3419
+ } })
3420
+ }
3421
+ };
3422
+ const ExtractiveSummarizationAction = {
3423
+ type: {
3424
+ name: "Composite",
3425
+ className: "ExtractiveSummarizationAction",
3426
+ modelProperties: Object.assign(Object.assign({}, ActionPrebuilt.type.modelProperties), { maxSentenceCount: {
3427
+ defaultValue: 3,
3428
+ serializedName: "sentenceCount",
3429
+ type: {
3430
+ name: "Number"
3431
+ }
3432
+ }, orderBy: {
3433
+ defaultValue: "Offset",
3434
+ serializedName: "sortBy",
3435
+ type: {
3436
+ name: "String"
3437
+ }
3438
+ }, stringIndexType: {
2560
3439
  defaultValue: "Utf16CodeUnit",
2561
3440
  serializedName: "stringIndexType",
2562
3441
  type: {
@@ -2592,62 +3471,13 @@ const CustomMultiLabelClassificationAction = {
2592
3471
  modelProperties: Object.assign({}, ActionCustom.type.modelProperties)
2593
3472
  }
2594
3473
  };
2595
- const CustomEntitiesResultDocumentsItem = {
2596
- type: {
2597
- name: "Composite",
2598
- className: "CustomEntitiesResultDocumentsItem",
2599
- modelProperties: Object.assign({}, EntitiesDocumentResult.type.modelProperties)
2600
- }
2601
- };
2602
- const EntitiesResultDocumentsItem = {
2603
- type: {
2604
- name: "Composite",
2605
- className: "EntitiesResultDocumentsItem",
2606
- modelProperties: Object.assign({}, EntitiesDocumentResult.type.modelProperties)
2607
- }
2608
- };
2609
- const CustomLabelClassificationResultDocumentsItem = {
3474
+ const DynamicClassificationResultDocumentsItem = {
2610
3475
  type: {
2611
3476
  name: "Composite",
2612
- className: "CustomLabelClassificationResultDocumentsItem",
3477
+ className: "DynamicClassificationResultDocumentsItem",
2613
3478
  modelProperties: Object.assign({}, ClassificationDocumentResult.type.modelProperties)
2614
3479
  }
2615
3480
  };
2616
- const HealthcareResultDocumentsItem = {
2617
- type: {
2618
- name: "Composite",
2619
- className: "HealthcareResultDocumentsItem",
2620
- modelProperties: Object.assign({}, HealthcareEntitiesDocumentResult.type.modelProperties)
2621
- }
2622
- };
2623
- const SentimentResponseDocumentsItem = {
2624
- type: {
2625
- name: "Composite",
2626
- className: "SentimentResponseDocumentsItem",
2627
- modelProperties: Object.assign({}, SentimentDocumentResult.type.modelProperties)
2628
- }
2629
- };
2630
- const EntityLinkingResultDocumentsItem = {
2631
- type: {
2632
- name: "Composite",
2633
- className: "EntityLinkingResultDocumentsItem",
2634
- modelProperties: Object.assign({}, LinkedEntitiesDocumentResult.type.modelProperties)
2635
- }
2636
- };
2637
- const PiiResultDocumentsItem = {
2638
- type: {
2639
- name: "Composite",
2640
- className: "PiiResultDocumentsItem",
2641
- modelProperties: Object.assign({}, PiiEntitiesDocumentResult.type.modelProperties)
2642
- }
2643
- };
2644
- const KeyPhraseResultDocumentsItem = {
2645
- type: {
2646
- name: "Composite",
2647
- className: "KeyPhraseResultDocumentsItem",
2648
- modelProperties: Object.assign({}, KeyPhrasesDocumentResult.type.modelProperties)
2649
- }
2650
- };
2651
3481
  const GeneratedClientAnalyzeBatchHeaders = {
2652
3482
  type: {
2653
3483
  name: "Composite",
@@ -2679,38 +3509,60 @@ const AnalyzeTextCancelJobHeaders = {
2679
3509
  let discriminators = {
2680
3510
  AnalyzeAction: AnalyzeAction,
2681
3511
  AnalyzeTextTaskResult: AnalyzeTextTaskResult,
3512
+ BaseResolution: BaseResolution,
2682
3513
  "AnalyzeAction.EntityLinking": AnalyzeTextEntityLinkingInput,
2683
3514
  "AnalyzeAction.EntityRecognition": AnalyzeTextEntityRecognitionInput,
2684
3515
  "AnalyzeAction.KeyPhraseExtraction": AnalyzeTextKeyPhraseExtractionInput,
2685
3516
  "AnalyzeAction.PiiEntityRecognition": AnalyzeTextPiiEntitiesRecognitionInput,
2686
3517
  "AnalyzeAction.LanguageDetection": AnalyzeTextLanguageDetectionInput,
2687
3518
  "AnalyzeAction.SentimentAnalysis": AnalyzeTextSentimentAnalysisInput,
3519
+ "AnalyzeAction.DynamicClassification": AnalyzeTextDynamicClassificationInput,
2688
3520
  "AnalyzeTextTaskResult.SentimentAnalysisResults": SentimentTaskResult,
2689
3521
  "AnalyzeTextTaskResult.EntityRecognitionResults": EntitiesTaskResult,
2690
3522
  "AnalyzeTextTaskResult.EntityLinkingResults": EntityLinkingTaskResult,
2691
3523
  "AnalyzeTextTaskResult.PiiEntityRecognitionResults": PiiTaskResult,
2692
3524
  "AnalyzeTextTaskResult.KeyPhraseExtractionResults": KeyPhraseTaskResult,
2693
3525
  "AnalyzeTextTaskResult.LanguageDetectionResults": LanguageDetectionTaskResult,
3526
+ "AnalyzeTextTaskResult.DynamicClassificationResults": DynamicClassificationTaskResult,
2694
3527
  "BatchActionState.AnalyzeBatchAction": AnalyzeBatchAction,
2695
3528
  "TaskState.AnalyzeTextLROResult": AnalyzeTextLROResult,
2696
- "BatchActionState.CustomEntityRecognition": CustomEntitiesLROTask,
2697
- "BatchActionState.CustomSingleLabelClassification": CustomSingleLabelClassificationLROTask,
2698
- "BatchActionState.CustomMultiLabelClassification": CustomMultiLabelClassificationLROTask,
2699
- "BatchActionState.Healthcare": HealthcareLROTask,
2700
- "BatchActionState.SentimentAnalysis": SentimentAnalysisLROTask,
2701
- "BatchActionState.EntityRecognition": EntitiesLROTask,
2702
- "BatchActionState.EntityLinking": EntityLinkingLROTask,
2703
- "BatchActionState.PiiEntityRecognition": PiiLROTask,
2704
- "BatchActionState.KeyPhraseExtraction": KeyPhraseLROTask,
2705
- "TaskState.EntityRecognitionLROResults": EntityRecognitionLROResult,
2706
- "TaskState.CustomEntityRecognitionLROResults": CustomEntityRecognitionLROResult,
2707
- "TaskState.CustomSingleLabelClassificationLROResults": CustomSingleLabelClassificationLROResult,
2708
- "TaskState.CustomMultiLabelClassificationLROResults": CustomMultiLabelClassificationLROResult,
2709
- "TaskState.EntityLinkingLROResults": EntityLinkingLROResult,
2710
- "TaskState.PiiEntityRecognitionLROResults": PiiEntityRecognitionLROResult,
2711
- "TaskState.HealthcareLROResults": HealthcareLROResult,
2712
- "TaskState.SentimentAnalysisLROResults": SentimentLROResult,
2713
- "TaskState.KeyPhraseExtractionLROResults": KeyPhraseExtractionLROResult
3529
+ "BaseResolution.AgeResolution": AgeResolution,
3530
+ "BaseResolution.VolumeResolution": VolumeResolution,
3531
+ "BaseResolution.SpeedResolution": SpeedResolution,
3532
+ "BaseResolution.AreaResolution": AreaResolution,
3533
+ "BaseResolution.LengthResolution": LengthResolution,
3534
+ "BaseResolution.InformationResolution": InformationResolution,
3535
+ "BaseResolution.TemperatureResolution": TemperatureResolution,
3536
+ "BaseResolution.WeightResolution": WeightResolution,
3537
+ "BaseResolution.CurrencyResolution": CurrencyResolution,
3538
+ "BaseResolution.BooleanResolution": BooleanResolution,
3539
+ "BaseResolution.DateTimeResolution": DateTimeResolution,
3540
+ "BaseResolution.NumberResolution": NumberResolution,
3541
+ "BaseResolution.OrdinalResolution": OrdinalResolution,
3542
+ "BaseResolution.TemporalSpanResolution": TemporalSpanResolution,
3543
+ "BaseResolution.NumericRangeResolution": NumericRangeResolution,
3544
+ "AnalyzeBatchAction.CustomEntityRecognition": CustomEntitiesLROTask,
3545
+ "AnalyzeBatchAction.CustomSingleLabelClassification": CustomSingleLabelClassificationLROTask,
3546
+ "AnalyzeBatchAction.CustomMultiLabelClassification": CustomMultiLabelClassificationLROTask,
3547
+ "AnalyzeBatchAction.Healthcare": HealthcareLROTask,
3548
+ "AnalyzeBatchAction.SentimentAnalysis": SentimentAnalysisLROTask,
3549
+ "AnalyzeBatchAction.EntityRecognition": EntitiesLROTask,
3550
+ "AnalyzeBatchAction.EntityLinking": EntityLinkingLROTask,
3551
+ "AnalyzeBatchAction.PiiEntityRecognition": PiiLROTask,
3552
+ "AnalyzeBatchAction.ExtractiveSummarization": ExtractiveSummarizationLROTask,
3553
+ "AnalyzeBatchAction.KeyPhraseExtraction": KeyPhraseLROTask,
3554
+ "AnalyzeBatchAction.AbstractiveSummarization": AbstractiveSummarizationLROTask,
3555
+ "AnalyzeTextLROResult.EntityRecognitionLROResults": EntityRecognitionLROResult,
3556
+ "AnalyzeTextLROResult.CustomEntityRecognitionLROResults": CustomEntityRecognitionLROResult,
3557
+ "AnalyzeTextLROResult.CustomSingleLabelClassificationLROResults": CustomSingleLabelClassificationLROResult,
3558
+ "AnalyzeTextLROResult.CustomMultiLabelClassificationLROResults": CustomMultiLabelClassificationLROResult,
3559
+ "AnalyzeTextLROResult.EntityLinkingLROResults": EntityLinkingLROResult,
3560
+ "AnalyzeTextLROResult.PiiEntityRecognitionLROResults": PiiEntityRecognitionLROResult,
3561
+ "AnalyzeTextLROResult.ExtractiveSummarizationLROResults": ExtractiveSummarizationLROResult,
3562
+ "AnalyzeTextLROResult.HealthcareLROResults": HealthcareLROResult,
3563
+ "AnalyzeTextLROResult.SentimentAnalysisLROResults": SentimentLROResult,
3564
+ "AnalyzeTextLROResult.KeyPhraseExtractionLROResults": KeyPhraseExtractionLROResult,
3565
+ "AnalyzeTextLROResult.AbstractiveSummarizationLROResults": AbstractiveSummarizationLROResult
2714
3566
  };
2715
3567
 
2716
3568
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -2733,19 +3585,23 @@ var Mappers = /*#__PURE__*/Object.freeze({
2733
3585
  LanguageDetectionAnalysisInput: LanguageDetectionAnalysisInput,
2734
3586
  LanguageDetectionInput: LanguageDetectionInput,
2735
3587
  ActionCommon: ActionCommon,
2736
- PreBuiltResult: PreBuiltResult,
2737
- DocumentError: DocumentError,
2738
3588
  CustomResult: CustomResult,
3589
+ DocumentError: DocumentError,
3590
+ BaseResolution: BaseResolution,
2739
3591
  Entity: Entity,
2740
3592
  DocumentResult: DocumentResult,
2741
3593
  DocumentWarning: DocumentWarning,
2742
3594
  TextDocumentStatistics: TextDocumentStatistics,
3595
+ DocumentDetectedLanguage: DocumentDetectedLanguage,
3596
+ DetectedLanguage: DetectedLanguage,
2743
3597
  ClassificationCategory: ClassificationCategory,
2744
3598
  HealthcareEntity: HealthcareEntity,
2745
3599
  HealthcareAssertion: HealthcareAssertion,
2746
3600
  EntityDataSource: EntityDataSource,
2747
3601
  HealthcareRelation: HealthcareRelation,
2748
3602
  HealthcareRelationEntity: HealthcareRelationEntity,
3603
+ PreBuiltResult: PreBuiltResult,
3604
+ InputError: InputError,
2749
3605
  SentimentConfidenceScores: SentimentConfidenceScores,
2750
3606
  SentenceSentiment: SentenceSentiment,
2751
3607
  SentenceTarget: SentenceTarget,
@@ -2754,43 +3610,82 @@ var Mappers = /*#__PURE__*/Object.freeze({
2754
3610
  AssessmentSentiment: AssessmentSentiment,
2755
3611
  LinkedEntity: LinkedEntity,
2756
3612
  Match: Match,
2757
- DetectedLanguage: DetectedLanguage,
3613
+ SummarySentence: SummarySentence,
2758
3614
  Pagination: Pagination,
2759
- JobErrors: JobErrors,
3615
+ AbstractiveSummarizationTaskParametersBase: AbstractiveSummarizationTaskParametersBase,
3616
+ AbstractiveSummarizationResultBase: AbstractiveSummarizationResultBase,
3617
+ AbstractiveSummary: AbstractiveSummary,
3618
+ SummaryContext: SummaryContext,
3619
+ QuantityResolution: QuantityResolution,
2760
3620
  AnalyzeTextEntityLinkingInput: AnalyzeTextEntityLinkingInput,
2761
3621
  AnalyzeTextEntityRecognitionInput: AnalyzeTextEntityRecognitionInput,
2762
3622
  AnalyzeTextKeyPhraseExtractionInput: AnalyzeTextKeyPhraseExtractionInput,
2763
3623
  AnalyzeTextPiiEntitiesRecognitionInput: AnalyzeTextPiiEntitiesRecognitionInput,
2764
3624
  AnalyzeTextLanguageDetectionInput: AnalyzeTextLanguageDetectionInput,
2765
3625
  AnalyzeTextSentimentAnalysisInput: AnalyzeTextSentimentAnalysisInput,
3626
+ AnalyzeTextDynamicClassificationInput: AnalyzeTextDynamicClassificationInput,
2766
3627
  SentimentTaskResult: SentimentTaskResult,
2767
3628
  EntitiesTaskResult: EntitiesTaskResult,
2768
3629
  EntityLinkingTaskResult: EntityLinkingTaskResult,
2769
3630
  PiiTaskResult: PiiTaskResult,
2770
3631
  KeyPhraseTaskResult: KeyPhraseTaskResult,
2771
3632
  LanguageDetectionTaskResult: LanguageDetectionTaskResult,
3633
+ DynamicClassificationTaskResult: DynamicClassificationTaskResult,
2772
3634
  AnalyzeBatchAction: AnalyzeBatchAction,
2773
3635
  AnalyzeTextLROResult: AnalyzeTextLROResult,
2774
3636
  AnalyzeTextJobState: AnalyzeTextJobState,
3637
+ DocumentRequestStatistics: DocumentRequestStatistics,
2775
3638
  ActionPrebuilt: ActionPrebuilt,
2776
3639
  ActionCustom: ActionCustom,
2777
- HealthcareResult: HealthcareResult,
2778
- SentimentResponse: SentimentResponse,
2779
- EntitiesResult: EntitiesResult,
2780
- EntityLinkingResult: EntityLinkingResult,
2781
- PiiResult: PiiResult,
2782
- KeyPhraseResult: KeyPhraseResult,
2783
- LanguageDetectionResult: LanguageDetectionResult,
2784
3640
  CustomEntitiesResult: CustomEntitiesResult,
2785
3641
  CustomLabelClassificationResult: CustomLabelClassificationResult,
3642
+ AgeResolution: AgeResolution,
3643
+ VolumeResolution: VolumeResolution,
3644
+ SpeedResolution: SpeedResolution,
3645
+ AreaResolution: AreaResolution,
3646
+ LengthResolution: LengthResolution,
3647
+ InformationResolution: InformationResolution,
3648
+ TemperatureResolution: TemperatureResolution,
3649
+ WeightResolution: WeightResolution,
3650
+ CurrencyResolution: CurrencyResolution,
3651
+ BooleanResolution: BooleanResolution,
3652
+ DateTimeResolution: DateTimeResolution,
3653
+ NumberResolution: NumberResolution,
3654
+ OrdinalResolution: OrdinalResolution,
3655
+ TemporalSpanResolution: TemporalSpanResolution,
3656
+ NumericRangeResolution: NumericRangeResolution,
3657
+ EntityWithResolution: EntityWithResolution,
2786
3658
  EntitiesDocumentResult: EntitiesDocumentResult,
2787
3659
  ClassificationDocumentResult: ClassificationDocumentResult,
2788
3660
  HealthcareEntitiesDocumentResult: HealthcareEntitiesDocumentResult,
2789
3661
  SentimentDocumentResult: SentimentDocumentResult,
2790
3662
  LinkedEntitiesDocumentResult: LinkedEntitiesDocumentResult,
2791
3663
  PiiEntitiesDocumentResult: PiiEntitiesDocumentResult,
3664
+ ExtractedSummaryDocumentResult: ExtractedSummaryDocumentResult,
2792
3665
  KeyPhrasesDocumentResult: KeyPhrasesDocumentResult,
2793
3666
  LanguageDetectionDocumentResult: LanguageDetectionDocumentResult,
3667
+ AbstractiveSummaryDocumentResult: AbstractiveSummaryDocumentResult,
3668
+ CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
3669
+ CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
3670
+ HealthcareResultDocumentsItem: HealthcareResultDocumentsItem,
3671
+ SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
3672
+ EntitiesResultDocumentsItem: EntitiesResultDocumentsItem,
3673
+ EntityLinkingResultDocumentsItem: EntityLinkingResultDocumentsItem,
3674
+ PiiResultDocumentsItem: PiiResultDocumentsItem,
3675
+ ExtractedSummaryDocumentResultWithDetectedLanguage: ExtractedSummaryDocumentResultWithDetectedLanguage,
3676
+ KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
3677
+ AbstractiveSummaryDocumentResultWithDetectedLanguage: AbstractiveSummaryDocumentResultWithDetectedLanguage,
3678
+ HealthcareResult: HealthcareResult,
3679
+ SentimentResponse: SentimentResponse,
3680
+ EntitiesResult: EntitiesResult,
3681
+ EntityLinkingResult: EntityLinkingResult,
3682
+ PiiResult: PiiResult,
3683
+ ExtractiveSummarizationResult: ExtractiveSummarizationResult,
3684
+ KeyPhraseResult: KeyPhraseResult,
3685
+ LanguageDetectionResult: LanguageDetectionResult,
3686
+ DynamicClassificationResult: DynamicClassificationResult,
3687
+ AbstractiveSummarizationResult: AbstractiveSummarizationResult,
3688
+ AbstractiveSummarizationAction: AbstractiveSummarizationAction,
2794
3689
  CustomEntitiesLROTask: CustomEntitiesLROTask,
2795
3690
  CustomSingleLabelClassificationLROTask: CustomSingleLabelClassificationLROTask,
2796
3691
  CustomMultiLabelClassificationLROTask: CustomMultiLabelClassificationLROTask,
@@ -2799,34 +3694,33 @@ var Mappers = /*#__PURE__*/Object.freeze({
2799
3694
  EntitiesLROTask: EntitiesLROTask,
2800
3695
  EntityLinkingLROTask: EntityLinkingLROTask,
2801
3696
  PiiLROTask: PiiLROTask,
3697
+ ExtractiveSummarizationLROTask: ExtractiveSummarizationLROTask,
2802
3698
  KeyPhraseLROTask: KeyPhraseLROTask,
3699
+ AbstractiveSummarizationLROTask: AbstractiveSummarizationLROTask,
2803
3700
  EntityRecognitionLROResult: EntityRecognitionLROResult,
2804
3701
  CustomEntityRecognitionLROResult: CustomEntityRecognitionLROResult,
2805
3702
  CustomSingleLabelClassificationLROResult: CustomSingleLabelClassificationLROResult,
2806
3703
  CustomMultiLabelClassificationLROResult: CustomMultiLabelClassificationLROResult,
2807
3704
  EntityLinkingLROResult: EntityLinkingLROResult,
2808
3705
  PiiEntityRecognitionLROResult: PiiEntityRecognitionLROResult,
3706
+ ExtractiveSummarizationLROResult: ExtractiveSummarizationLROResult,
2809
3707
  HealthcareLROResult: HealthcareLROResult,
2810
3708
  SentimentLROResult: SentimentLROResult,
2811
3709
  KeyPhraseExtractionLROResult: KeyPhraseExtractionLROResult,
3710
+ AbstractiveSummarizationLROResult: AbstractiveSummarizationLROResult,
2812
3711
  EntityLinkingAction: EntityLinkingAction,
2813
3712
  EntityRecognitionAction: EntityRecognitionAction,
2814
3713
  KeyPhraseExtractionAction: KeyPhraseExtractionAction,
2815
3714
  PiiEntityRecognitionAction: PiiEntityRecognitionAction,
2816
3715
  LanguageDetectionAction: LanguageDetectionAction,
2817
3716
  SentimentAnalysisAction: SentimentAnalysisAction,
3717
+ DynamicClassificationAction: DynamicClassificationAction,
2818
3718
  HealthcareAction: HealthcareAction,
3719
+ ExtractiveSummarizationAction: ExtractiveSummarizationAction,
2819
3720
  CustomEntityRecognitionAction: CustomEntityRecognitionAction,
2820
3721
  CustomSingleLabelClassificationAction: CustomSingleLabelClassificationAction,
2821
3722
  CustomMultiLabelClassificationAction: CustomMultiLabelClassificationAction,
2822
- CustomEntitiesResultDocumentsItem: CustomEntitiesResultDocumentsItem,
2823
- EntitiesResultDocumentsItem: EntitiesResultDocumentsItem,
2824
- CustomLabelClassificationResultDocumentsItem: CustomLabelClassificationResultDocumentsItem,
2825
- HealthcareResultDocumentsItem: HealthcareResultDocumentsItem,
2826
- SentimentResponseDocumentsItem: SentimentResponseDocumentsItem,
2827
- EntityLinkingResultDocumentsItem: EntityLinkingResultDocumentsItem,
2828
- PiiResultDocumentsItem: PiiResultDocumentsItem,
2829
- KeyPhraseResultDocumentsItem: KeyPhraseResultDocumentsItem,
3723
+ DynamicClassificationResultDocumentsItem: DynamicClassificationResultDocumentsItem,
2830
3724
  GeneratedClientAnalyzeBatchHeaders: GeneratedClientAnalyzeBatchHeaders,
2831
3725
  AnalyzeTextCancelJobHeaders: AnalyzeTextCancelJobHeaders,
2832
3726
  discriminators: discriminators
@@ -2879,7 +3773,7 @@ const endpoint = {
2879
3773
  const apiVersion = {
2880
3774
  parameterPath: "apiVersion",
2881
3775
  mapper: {
2882
- defaultValue: "2022-05-01",
3776
+ defaultValue: "2022-10-01-preview",
2883
3777
  isConstant: true,
2884
3778
  serializedName: "api-version",
2885
3779
  type: {
@@ -2981,6 +3875,13 @@ function toSentimentAnalysisResult(docIds, results) {
2981
3875
  },
2982
3876
  });
2983
3877
  }
3878
+ function toDynamicClassificationResult(docIds, results) {
3879
+ return transformDocumentResults(docIds, results, {
3880
+ // FIXME: Fixing a service bug, see https://github.com/Azure/azure-sdk-for-js/issues/23617
3881
+ processSuccess: ({ class: classes, id, warnings, statistics, classifications, }) => (Object.assign({ id,
3882
+ warnings, classifications: classes ? classes : classifications !== null && classifications !== void 0 ? classifications : [] }, (statistics ? { statistics } : {}))),
3883
+ });
3884
+ }
2984
3885
  /**
2985
3886
  * Converts a sentence sentiment object returned by the service to another that
2986
3887
  * is user-friendly.
@@ -3059,6 +3960,9 @@ function transformActionResult(actionName, docIds, response) {
3059
3960
  case "LanguageDetectionResults": {
3060
3961
  return toLanguageDetectionResult(docIds, response.results);
3061
3962
  }
3963
+ case "DynamicClassificationResults": {
3964
+ return toDynamicClassificationResult(docIds, response.results);
3965
+ }
3062
3966
  default: {
3063
3967
  const __exhaust = response;
3064
3968
  throw new Error(`Unsupported results kind: ${__exhaust} for an action of type ${actionName}`);
@@ -3121,9 +4025,10 @@ function toHealthcareResult(docIds, results) {
3121
4025
  return Object.assign({ dataSources: dataSources !== null && dataSources !== void 0 ? dataSources : [] }, rest);
3122
4026
  }
3123
4027
  function makeHealthcareRelation(entities) {
3124
- return (relation) => ({
3125
- relationType: relation.relationType,
3126
- roles: relation.entities.map((role) => ({
4028
+ return ({ entities: generatedEntities, relationType, confidenceScore, }) => ({
4029
+ relationType: relationType,
4030
+ confidenceScore,
4031
+ roles: generatedEntities.map((role) => ({
3127
4032
  entity: entities[parseHealthcareEntityIndex(role.ref)],
3128
4033
  name: role.role,
3129
4034
  })),
@@ -3200,6 +4105,16 @@ function transformAnalyzeBatchResults(docIds, response = []) {
3200
4105
  return Object.assign(Object.assign(Object.assign({ kind: "CustomMultiLabelClassification", results: toCustomSingleLabelClassificationResult(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { deploymentName,
3201
4106
  projectName });
3202
4107
  }
4108
+ case "ExtractiveSummarizationLROResults": {
4109
+ const { results } = actionData;
4110
+ const { modelVersion, statistics } = results;
4111
+ return Object.assign(Object.assign(Object.assign({ kind: "ExtractiveSummarization", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
4112
+ }
4113
+ case "AbstractiveSummarizationLROResults": {
4114
+ const { results } = actionData;
4115
+ const { modelVersion, statistics } = results;
4116
+ return Object.assign(Object.assign(Object.assign({ kind: "AbstractiveSummarization", results: transformDocumentResults(docIds, results), completedOn }, (actionName ? { actionName } : {})), (statistics ? { statistics } : {})), { modelVersion });
4117
+ }
3203
4118
  default: {
3204
4119
  throw new Error(`Unsupported results kind: ${kind}`);
3205
4120
  }
@@ -3475,7 +4390,7 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
3475
4390
  const defaults = {
3476
4391
  requestContentType: "application/json; charset=utf-8"
3477
4392
  };
3478
- const packageDetails = `azsdk-js-ai-language-text/1.0.1`;
4393
+ const packageDetails = `azsdk-js-ai-language-text/1.1.0-beta.1`;
3479
4394
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3480
4395
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3481
4396
  : `${packageDetails}`;
@@ -3483,26 +4398,10 @@ class GeneratedClient extends coreClient__namespace.ServiceClient {
3483
4398
  userAgentPrefix
3484
4399
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{Endpoint}/language" });
3485
4400
  super(optionsWithDefaults);
3486
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3487
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3488
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3489
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3490
- if (!bearerTokenAuthenticationPolicyFound) {
3491
- this.pipeline.removePolicy({
3492
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3493
- });
3494
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3495
- scopes: `${optionsWithDefaults.baseUri}/.default`,
3496
- challengeCallbacks: {
3497
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3498
- }
3499
- }));
3500
- }
3501
- }
3502
4401
  // Parameter assignments
3503
4402
  this.endpoint = endpoint;
3504
4403
  // Assigning values to Constant parameters
3505
- this.apiVersion = options.apiVersion || "2022-05-01";
4404
+ this.apiVersion = options.apiVersion || "2022-10-01-preview";
3506
4405
  this.analyzeText = new AnalyzeTextImpl(this);
3507
4406
  this.addCustomApiVersionPolicy(options.apiVersion);
3508
4407
  }
@@ -3709,14 +4608,15 @@ class TextAnalysisClient {
3709
4608
  }
3710
4609
  // implementation
3711
4610
  async beginAnalyzeBatch(actions, documents, languageOrOptions, options = {}) {
4611
+ var _a;
3712
4612
  let realOptions;
3713
4613
  let realInputs;
3714
4614
  if (!Array.isArray(documents) || documents.length === 0) {
3715
4615
  throw new Error("'documents' must be a non-empty array");
3716
4616
  }
3717
4617
  if (isStringArray(documents)) {
3718
- const language = languageOrOptions || this.defaultLanguage;
3719
- realInputs = convertToTextDocumentInput(documents, language);
4618
+ const languageHint = (_a = languageOrOptions) !== null && _a !== void 0 ? _a : this.defaultLanguage;
4619
+ realInputs = convertToTextDocumentInput(documents, languageHint);
3720
4620
  realOptions = options;
3721
4621
  }
3722
4622
  else {
@@ -3826,6 +4726,8 @@ var KnownAnalyzeTextTaskKind;
3826
4726
  KnownAnalyzeTextTaskKind["LanguageDetection"] = "LanguageDetection";
3827
4727
  /** EntityLinking */
3828
4728
  KnownAnalyzeTextTaskKind["EntityLinking"] = "EntityLinking";
4729
+ /** DynamicClassification */
4730
+ KnownAnalyzeTextTaskKind["DynamicClassification"] = "DynamicClassification";
3829
4731
  })(KnownAnalyzeTextTaskKind || (KnownAnalyzeTextTaskKind = {}));
3830
4732
  /** Known values of {@link AnalyzeTextTaskResultsKind} that the service accepts. */
3831
4733
  var KnownAnalyzeTextTaskResultsKind;
@@ -3842,6 +4744,8 @@ var KnownAnalyzeTextTaskResultsKind;
3842
4744
  KnownAnalyzeTextTaskResultsKind["LanguageDetectionResults"] = "LanguageDetectionResults";
3843
4745
  /** EntityLinkingResults */
3844
4746
  KnownAnalyzeTextTaskResultsKind["EntityLinkingResults"] = "EntityLinkingResults";
4747
+ /** DynamicClassificationResults */
4748
+ KnownAnalyzeTextTaskResultsKind["DynamicClassificationResults"] = "DynamicClassificationResults";
3845
4749
  })(KnownAnalyzeTextTaskResultsKind || (KnownAnalyzeTextTaskResultsKind = {}));
3846
4750
  /** Known values of {@link ErrorCode} that the service accepts. */
3847
4751
  exports.KnownErrorCode = void 0;
@@ -3930,12 +4834,16 @@ var KnownAnalyzeTextLROTaskKind;
3930
4834
  KnownAnalyzeTextLROTaskKind["EntityLinking"] = "EntityLinking";
3931
4835
  /** Healthcare */
3932
4836
  KnownAnalyzeTextLROTaskKind["Healthcare"] = "Healthcare";
4837
+ /** ExtractiveSummarization */
4838
+ KnownAnalyzeTextLROTaskKind["ExtractiveSummarization"] = "ExtractiveSummarization";
3933
4839
  /** CustomEntityRecognition */
3934
4840
  KnownAnalyzeTextLROTaskKind["CustomEntityRecognition"] = "CustomEntityRecognition";
3935
4841
  /** CustomSingleLabelClassification */
3936
4842
  KnownAnalyzeTextLROTaskKind["CustomSingleLabelClassification"] = "CustomSingleLabelClassification";
3937
4843
  /** CustomMultiLabelClassification */
3938
4844
  KnownAnalyzeTextLROTaskKind["CustomMultiLabelClassification"] = "CustomMultiLabelClassification";
4845
+ /** AbstractiveSummarization */
4846
+ KnownAnalyzeTextLROTaskKind["AbstractiveSummarization"] = "AbstractiveSummarization";
3939
4847
  })(KnownAnalyzeTextLROTaskKind || (KnownAnalyzeTextLROTaskKind = {}));
3940
4848
  /** Known values of {@link OperationStatus} that the service accepts. */
3941
4849
  var KnownOperationStatus;
@@ -3970,12 +4878,16 @@ var KnownAnalyzeTextLROResultsKind;
3970
4878
  KnownAnalyzeTextLROResultsKind["EntityLinkingLROResults"] = "EntityLinkingLROResults";
3971
4879
  /** HealthcareLROResults */
3972
4880
  KnownAnalyzeTextLROResultsKind["HealthcareLROResults"] = "HealthcareLROResults";
4881
+ /** ExtractiveSummarizationLROResults */
4882
+ KnownAnalyzeTextLROResultsKind["ExtractiveSummarizationLROResults"] = "ExtractiveSummarizationLROResults";
3973
4883
  /** CustomEntityRecognitionLROResults */
3974
4884
  KnownAnalyzeTextLROResultsKind["CustomEntityRecognitionLROResults"] = "CustomEntityRecognitionLROResults";
3975
4885
  /** CustomSingleLabelClassificationLROResults */
3976
4886
  KnownAnalyzeTextLROResultsKind["CustomSingleLabelClassificationLROResults"] = "CustomSingleLabelClassificationLROResults";
3977
4887
  /** CustomMultiLabelClassificationLROResults */
3978
4888
  KnownAnalyzeTextLROResultsKind["CustomMultiLabelClassificationLROResults"] = "CustomMultiLabelClassificationLROResults";
4889
+ /** AbstractiveSummarizationLROResults */
4890
+ KnownAnalyzeTextLROResultsKind["AbstractiveSummarizationLROResults"] = "AbstractiveSummarizationLROResults";
3979
4891
  })(KnownAnalyzeTextLROResultsKind || (KnownAnalyzeTextLROResultsKind = {}));
3980
4892
  /** Known values of {@link State} that the service accepts. */
3981
4893
  var KnownState;
@@ -4361,6 +5273,48 @@ exports.KnownPiiEntityCategory = void 0;
4361
5273
  /** Default */
4362
5274
  KnownPiiEntityCategory["Default"] = "Default";
4363
5275
  })(exports.KnownPiiEntityCategory || (exports.KnownPiiEntityCategory = {}));
5276
+ /** Known values of {@link ClassificationType} that the service accepts. */
5277
+ exports.KnownClassificationType = void 0;
5278
+ (function (KnownClassificationType) {
5279
+ /** Single */
5280
+ KnownClassificationType["Single"] = "Single";
5281
+ /** Multi */
5282
+ KnownClassificationType["Multi"] = "Multi";
5283
+ })(exports.KnownClassificationType || (exports.KnownClassificationType = {}));
5284
+ /** Known values of {@link ResolutionKind} that the service accepts. */
5285
+ exports.KnownResolutionKind = void 0;
5286
+ (function (KnownResolutionKind) {
5287
+ /** BooleanResolution */
5288
+ KnownResolutionKind["BooleanResolution"] = "BooleanResolution";
5289
+ /** DateTimeResolution */
5290
+ KnownResolutionKind["DateTimeResolution"] = "DateTimeResolution";
5291
+ /** NumberResolution */
5292
+ KnownResolutionKind["NumberResolution"] = "NumberResolution";
5293
+ /** OrdinalResolution */
5294
+ KnownResolutionKind["OrdinalResolution"] = "OrdinalResolution";
5295
+ /** SpeedResolution */
5296
+ KnownResolutionKind["SpeedResolution"] = "SpeedResolution";
5297
+ /** WeightResolution */
5298
+ KnownResolutionKind["WeightResolution"] = "WeightResolution";
5299
+ /** LengthResolution */
5300
+ KnownResolutionKind["LengthResolution"] = "LengthResolution";
5301
+ /** VolumeResolution */
5302
+ KnownResolutionKind["VolumeResolution"] = "VolumeResolution";
5303
+ /** AreaResolution */
5304
+ KnownResolutionKind["AreaResolution"] = "AreaResolution";
5305
+ /** AgeResolution */
5306
+ KnownResolutionKind["AgeResolution"] = "AgeResolution";
5307
+ /** InformationResolution */
5308
+ KnownResolutionKind["InformationResolution"] = "InformationResolution";
5309
+ /** TemperatureResolution */
5310
+ KnownResolutionKind["TemperatureResolution"] = "TemperatureResolution";
5311
+ /** CurrencyResolution */
5312
+ KnownResolutionKind["CurrencyResolution"] = "CurrencyResolution";
5313
+ /** NumericRangeResolution */
5314
+ KnownResolutionKind["NumericRangeResolution"] = "NumericRangeResolution";
5315
+ /** TemporalSpanResolution */
5316
+ KnownResolutionKind["TemporalSpanResolution"] = "TemporalSpanResolution";
5317
+ })(exports.KnownResolutionKind || (exports.KnownResolutionKind = {}));
4364
5318
  /** Known values of {@link WarningCode} that the service accepts. */
4365
5319
  var KnownWarningCode;
4366
5320
  (function (KnownWarningCode) {
@@ -4369,8 +5323,42 @@ var KnownWarningCode;
4369
5323
  /** DocumentTruncated */
4370
5324
  KnownWarningCode["DocumentTruncated"] = "DocumentTruncated";
4371
5325
  })(KnownWarningCode || (KnownWarningCode = {}));
5326
+ /** Known values of {@link ScriptKind} that the service accepts. */
5327
+ exports.KnownScriptKind = void 0;
5328
+ (function (KnownScriptKind) {
5329
+ /** Latin */
5330
+ KnownScriptKind["Latin"] = "Latin";
5331
+ })(exports.KnownScriptKind || (exports.KnownScriptKind = {}));
5332
+ /** Known values of {@link FhirVersion} that the service accepts. */
5333
+ var KnownFhirVersion;
5334
+ (function (KnownFhirVersion) {
5335
+ /** Four01 */
5336
+ KnownFhirVersion["Four01"] = "4.0.1";
5337
+ })(KnownFhirVersion || (KnownFhirVersion = {}));
5338
+ /** Known values of {@link HealthcareDocumentType} that the service accepts. */
5339
+ exports.KnownHealthcareDocumentType = void 0;
5340
+ (function (KnownHealthcareDocumentType) {
5341
+ /** None */
5342
+ KnownHealthcareDocumentType["None"] = "None";
5343
+ /** ClinicalTrial */
5344
+ KnownHealthcareDocumentType["ClinicalTrial"] = "ClinicalTrial";
5345
+ /** DischargeSummary */
5346
+ KnownHealthcareDocumentType["DischargeSummary"] = "DischargeSummary";
5347
+ /** ProgressNote */
5348
+ KnownHealthcareDocumentType["ProgressNote"] = "ProgressNote";
5349
+ /** HistoryAndPhysical */
5350
+ KnownHealthcareDocumentType["HistoryAndPhysical"] = "HistoryAndPhysical";
5351
+ /** Consult */
5352
+ KnownHealthcareDocumentType["Consult"] = "Consult";
5353
+ /** Imaging */
5354
+ KnownHealthcareDocumentType["Imaging"] = "Imaging";
5355
+ /** Pathology */
5356
+ KnownHealthcareDocumentType["Pathology"] = "Pathology";
5357
+ /** ProcedureNote */
5358
+ KnownHealthcareDocumentType["ProcedureNote"] = "ProcedureNote";
5359
+ })(exports.KnownHealthcareDocumentType || (exports.KnownHealthcareDocumentType = {}));
4372
5360
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
4373
- var KnownHealthcareEntityCategory;
5361
+ exports.KnownHealthcareEntityCategory = void 0;
4374
5362
  (function (KnownHealthcareEntityCategory) {
4375
5363
  /** BodyStructure */
4376
5364
  KnownHealthcareEntityCategory["BodyStructure"] = "BodyStructure";
@@ -4424,9 +5412,9 @@ var KnownHealthcareEntityCategory;
4424
5412
  KnownHealthcareEntityCategory["FamilyRelation"] = "FamilyRelation";
4425
5413
  /** TreatmentName */
4426
5414
  KnownHealthcareEntityCategory["TreatmentName"] = "TreatmentName";
4427
- })(KnownHealthcareEntityCategory || (KnownHealthcareEntityCategory = {}));
5415
+ })(exports.KnownHealthcareEntityCategory || (exports.KnownHealthcareEntityCategory = {}));
4428
5416
  /** Known values of {@link RelationType} that the service accepts. */
4429
- var KnownRelationType;
5417
+ exports.KnownRelationType = void 0;
4430
5418
  (function (KnownRelationType) {
4431
5419
  /** Abbreviation */
4432
5420
  KnownRelationType["Abbreviation"] = "Abbreviation";
@@ -4470,7 +5458,373 @@ var KnownRelationType;
4470
5458
  KnownRelationType["ValueOfCondition"] = "ValueOfCondition";
4471
5459
  /** ValueOfExamination */
4472
5460
  KnownRelationType["ValueOfExamination"] = "ValueOfExamination";
4473
- })(KnownRelationType || (KnownRelationType = {}));
5461
+ })(exports.KnownRelationType || (exports.KnownRelationType = {}));
5462
+ /** Known values of {@link ExtractiveSummarizationOrderingCriteria} that the service accepts. */
5463
+ exports.KnownExtractiveSummarizationOrderingCriteria = void 0;
5464
+ (function (KnownExtractiveSummarizationOrderingCriteria) {
5465
+ /** Indicates that results should be sorted in order of appearance in the text. */
5466
+ KnownExtractiveSummarizationOrderingCriteria["Offset"] = "Offset";
5467
+ /** Indicates that results should be sorted in order of importance (i.e. rank score) according to the model. */
5468
+ KnownExtractiveSummarizationOrderingCriteria["Rank"] = "Rank";
5469
+ })(exports.KnownExtractiveSummarizationOrderingCriteria || (exports.KnownExtractiveSummarizationOrderingCriteria = {}));
5470
+ /** Known values of {@link AgeUnit} that the service accepts. */
5471
+ exports.KnownAgeUnit = void 0;
5472
+ (function (KnownAgeUnit) {
5473
+ /** Unspecified */
5474
+ KnownAgeUnit["Unspecified"] = "Unspecified";
5475
+ /** Year */
5476
+ KnownAgeUnit["Year"] = "Year";
5477
+ /** Month */
5478
+ KnownAgeUnit["Month"] = "Month";
5479
+ /** Week */
5480
+ KnownAgeUnit["Week"] = "Week";
5481
+ /** Day */
5482
+ KnownAgeUnit["Day"] = "Day";
5483
+ })(exports.KnownAgeUnit || (exports.KnownAgeUnit = {}));
5484
+ /** Known values of {@link VolumeUnit} that the service accepts. */
5485
+ exports.KnownVolumeUnit = void 0;
5486
+ (function (KnownVolumeUnit) {
5487
+ /** Unspecified */
5488
+ KnownVolumeUnit["Unspecified"] = "Unspecified";
5489
+ /** CubicMeter */
5490
+ KnownVolumeUnit["CubicMeter"] = "CubicMeter";
5491
+ /** CubicCentimeter */
5492
+ KnownVolumeUnit["CubicCentimeter"] = "CubicCentimeter";
5493
+ /** CubicMillimeter */
5494
+ KnownVolumeUnit["CubicMillimeter"] = "CubicMillimeter";
5495
+ /** Hectoliter */
5496
+ KnownVolumeUnit["Hectoliter"] = "Hectoliter";
5497
+ /** Decaliter */
5498
+ KnownVolumeUnit["Decaliter"] = "Decaliter";
5499
+ /** Liter */
5500
+ KnownVolumeUnit["Liter"] = "Liter";
5501
+ /** Centiliter */
5502
+ KnownVolumeUnit["Centiliter"] = "Centiliter";
5503
+ /** Milliliter */
5504
+ KnownVolumeUnit["Milliliter"] = "Milliliter";
5505
+ /** CubicYard */
5506
+ KnownVolumeUnit["CubicYard"] = "CubicYard";
5507
+ /** CubicInch */
5508
+ KnownVolumeUnit["CubicInch"] = "CubicInch";
5509
+ /** CubicFoot */
5510
+ KnownVolumeUnit["CubicFoot"] = "CubicFoot";
5511
+ /** CubicMile */
5512
+ KnownVolumeUnit["CubicMile"] = "CubicMile";
5513
+ /** FluidOunce */
5514
+ KnownVolumeUnit["FluidOunce"] = "FluidOunce";
5515
+ /** Teaspoon */
5516
+ KnownVolumeUnit["Teaspoon"] = "Teaspoon";
5517
+ /** Tablespoon */
5518
+ KnownVolumeUnit["Tablespoon"] = "Tablespoon";
5519
+ /** Pint */
5520
+ KnownVolumeUnit["Pint"] = "Pint";
5521
+ /** Quart */
5522
+ KnownVolumeUnit["Quart"] = "Quart";
5523
+ /** Cup */
5524
+ KnownVolumeUnit["Cup"] = "Cup";
5525
+ /** Gill */
5526
+ KnownVolumeUnit["Gill"] = "Gill";
5527
+ /** Pinch */
5528
+ KnownVolumeUnit["Pinch"] = "Pinch";
5529
+ /** FluidDram */
5530
+ KnownVolumeUnit["FluidDram"] = "FluidDram";
5531
+ /** Barrel */
5532
+ KnownVolumeUnit["Barrel"] = "Barrel";
5533
+ /** Minim */
5534
+ KnownVolumeUnit["Minim"] = "Minim";
5535
+ /** Cord */
5536
+ KnownVolumeUnit["Cord"] = "Cord";
5537
+ /** Peck */
5538
+ KnownVolumeUnit["Peck"] = "Peck";
5539
+ /** Bushel */
5540
+ KnownVolumeUnit["Bushel"] = "Bushel";
5541
+ /** Hogshead */
5542
+ KnownVolumeUnit["Hogshead"] = "Hogshead";
5543
+ })(exports.KnownVolumeUnit || (exports.KnownVolumeUnit = {}));
5544
+ /** Known values of {@link SpeedUnit} that the service accepts. */
5545
+ exports.KnownSpeedUnit = void 0;
5546
+ (function (KnownSpeedUnit) {
5547
+ /** Unspecified */
5548
+ KnownSpeedUnit["Unspecified"] = "Unspecified";
5549
+ /** MetersPerSecond */
5550
+ KnownSpeedUnit["MetersPerSecond"] = "MetersPerSecond";
5551
+ /** KilometersPerHour */
5552
+ KnownSpeedUnit["KilometersPerHour"] = "KilometersPerHour";
5553
+ /** KilometersPerMinute */
5554
+ KnownSpeedUnit["KilometersPerMinute"] = "KilometersPerMinute";
5555
+ /** KilometersPerSecond */
5556
+ KnownSpeedUnit["KilometersPerSecond"] = "KilometersPerSecond";
5557
+ /** MilesPerHour */
5558
+ KnownSpeedUnit["MilesPerHour"] = "MilesPerHour";
5559
+ /** Knot */
5560
+ KnownSpeedUnit["Knot"] = "Knot";
5561
+ /** FootPerSecond */
5562
+ KnownSpeedUnit["FootPerSecond"] = "FootPerSecond";
5563
+ /** FootPerMinute */
5564
+ KnownSpeedUnit["FootPerMinute"] = "FootPerMinute";
5565
+ /** YardsPerMinute */
5566
+ KnownSpeedUnit["YardsPerMinute"] = "YardsPerMinute";
5567
+ /** YardsPerSecond */
5568
+ KnownSpeedUnit["YardsPerSecond"] = "YardsPerSecond";
5569
+ /** MetersPerMillisecond */
5570
+ KnownSpeedUnit["MetersPerMillisecond"] = "MetersPerMillisecond";
5571
+ /** CentimetersPerMillisecond */
5572
+ KnownSpeedUnit["CentimetersPerMillisecond"] = "CentimetersPerMillisecond";
5573
+ /** KilometersPerMillisecond */
5574
+ KnownSpeedUnit["KilometersPerMillisecond"] = "KilometersPerMillisecond";
5575
+ })(exports.KnownSpeedUnit || (exports.KnownSpeedUnit = {}));
5576
+ /** Known values of {@link AreaUnit} that the service accepts. */
5577
+ exports.KnownAreaUnit = void 0;
5578
+ (function (KnownAreaUnit) {
5579
+ /** Unspecified */
5580
+ KnownAreaUnit["Unspecified"] = "Unspecified";
5581
+ /** SquareKilometer */
5582
+ KnownAreaUnit["SquareKilometer"] = "SquareKilometer";
5583
+ /** SquareHectometer */
5584
+ KnownAreaUnit["SquareHectometer"] = "SquareHectometer";
5585
+ /** SquareDecameter */
5586
+ KnownAreaUnit["SquareDecameter"] = "SquareDecameter";
5587
+ /** SquareDecimeter */
5588
+ KnownAreaUnit["SquareDecimeter"] = "SquareDecimeter";
5589
+ /** SquareMeter */
5590
+ KnownAreaUnit["SquareMeter"] = "SquareMeter";
5591
+ /** SquareCentimeter */
5592
+ KnownAreaUnit["SquareCentimeter"] = "SquareCentimeter";
5593
+ /** SquareMillimeter */
5594
+ KnownAreaUnit["SquareMillimeter"] = "SquareMillimeter";
5595
+ /** SquareInch */
5596
+ KnownAreaUnit["SquareInch"] = "SquareInch";
5597
+ /** SquareFoot */
5598
+ KnownAreaUnit["SquareFoot"] = "SquareFoot";
5599
+ /** SquareMile */
5600
+ KnownAreaUnit["SquareMile"] = "SquareMile";
5601
+ /** SquareYard */
5602
+ KnownAreaUnit["SquareYard"] = "SquareYard";
5603
+ /** Acre */
5604
+ KnownAreaUnit["Acre"] = "Acre";
5605
+ })(exports.KnownAreaUnit || (exports.KnownAreaUnit = {}));
5606
+ /** Known values of {@link LengthUnit} that the service accepts. */
5607
+ exports.KnownLengthUnit = void 0;
5608
+ (function (KnownLengthUnit) {
5609
+ /** Unspecified */
5610
+ KnownLengthUnit["Unspecified"] = "Unspecified";
5611
+ /** Kilometer */
5612
+ KnownLengthUnit["Kilometer"] = "Kilometer";
5613
+ /** Hectometer */
5614
+ KnownLengthUnit["Hectometer"] = "Hectometer";
5615
+ /** Decameter */
5616
+ KnownLengthUnit["Decameter"] = "Decameter";
5617
+ /** Meter */
5618
+ KnownLengthUnit["Meter"] = "Meter";
5619
+ /** Decimeter */
5620
+ KnownLengthUnit["Decimeter"] = "Decimeter";
5621
+ /** Centimeter */
5622
+ KnownLengthUnit["Centimeter"] = "Centimeter";
5623
+ /** Millimeter */
5624
+ KnownLengthUnit["Millimeter"] = "Millimeter";
5625
+ /** Micrometer */
5626
+ KnownLengthUnit["Micrometer"] = "Micrometer";
5627
+ /** Nanometer */
5628
+ KnownLengthUnit["Nanometer"] = "Nanometer";
5629
+ /** Picometer */
5630
+ KnownLengthUnit["Picometer"] = "Picometer";
5631
+ /** Mile */
5632
+ KnownLengthUnit["Mile"] = "Mile";
5633
+ /** Yard */
5634
+ KnownLengthUnit["Yard"] = "Yard";
5635
+ /** Inch */
5636
+ KnownLengthUnit["Inch"] = "Inch";
5637
+ /** Foot */
5638
+ KnownLengthUnit["Foot"] = "Foot";
5639
+ /** LightYear */
5640
+ KnownLengthUnit["LightYear"] = "LightYear";
5641
+ /** Pt */
5642
+ KnownLengthUnit["Pt"] = "Pt";
5643
+ })(exports.KnownLengthUnit || (exports.KnownLengthUnit = {}));
5644
+ /** Known values of {@link InformationUnit} that the service accepts. */
5645
+ exports.KnownInformationUnit = void 0;
5646
+ (function (KnownInformationUnit) {
5647
+ /** Unspecified */
5648
+ KnownInformationUnit["Unspecified"] = "Unspecified";
5649
+ /** Bit */
5650
+ KnownInformationUnit["Bit"] = "Bit";
5651
+ /** Kilobit */
5652
+ KnownInformationUnit["Kilobit"] = "Kilobit";
5653
+ /** Megabit */
5654
+ KnownInformationUnit["Megabit"] = "Megabit";
5655
+ /** Gigabit */
5656
+ KnownInformationUnit["Gigabit"] = "Gigabit";
5657
+ /** Terabit */
5658
+ KnownInformationUnit["Terabit"] = "Terabit";
5659
+ /** Petabit */
5660
+ KnownInformationUnit["Petabit"] = "Petabit";
5661
+ /** Byte */
5662
+ KnownInformationUnit["Byte"] = "Byte";
5663
+ /** Kilobyte */
5664
+ KnownInformationUnit["Kilobyte"] = "Kilobyte";
5665
+ /** Megabyte */
5666
+ KnownInformationUnit["Megabyte"] = "Megabyte";
5667
+ /** Gigabyte */
5668
+ KnownInformationUnit["Gigabyte"] = "Gigabyte";
5669
+ /** Terabyte */
5670
+ KnownInformationUnit["Terabyte"] = "Terabyte";
5671
+ /** Petabyte */
5672
+ KnownInformationUnit["Petabyte"] = "Petabyte";
5673
+ })(exports.KnownInformationUnit || (exports.KnownInformationUnit = {}));
5674
+ /** Known values of {@link TemperatureUnit} that the service accepts. */
5675
+ exports.KnownTemperatureUnit = void 0;
5676
+ (function (KnownTemperatureUnit) {
5677
+ /** Unspecified */
5678
+ KnownTemperatureUnit["Unspecified"] = "Unspecified";
5679
+ /** Fahrenheit */
5680
+ KnownTemperatureUnit["Fahrenheit"] = "Fahrenheit";
5681
+ /** Kelvin */
5682
+ KnownTemperatureUnit["Kelvin"] = "Kelvin";
5683
+ /** Rankine */
5684
+ KnownTemperatureUnit["Rankine"] = "Rankine";
5685
+ /** Celsius */
5686
+ KnownTemperatureUnit["Celsius"] = "Celsius";
5687
+ })(exports.KnownTemperatureUnit || (exports.KnownTemperatureUnit = {}));
5688
+ /** Known values of {@link WeightUnit} that the service accepts. */
5689
+ exports.KnownWeightUnit = void 0;
5690
+ (function (KnownWeightUnit) {
5691
+ /** Unspecified */
5692
+ KnownWeightUnit["Unspecified"] = "Unspecified";
5693
+ /** Kilogram */
5694
+ KnownWeightUnit["Kilogram"] = "Kilogram";
5695
+ /** Gram */
5696
+ KnownWeightUnit["Gram"] = "Gram";
5697
+ /** Milligram */
5698
+ KnownWeightUnit["Milligram"] = "Milligram";
5699
+ /** Gallon */
5700
+ KnownWeightUnit["Gallon"] = "Gallon";
5701
+ /** MetricTon */
5702
+ KnownWeightUnit["MetricTon"] = "MetricTon";
5703
+ /** Ton */
5704
+ KnownWeightUnit["Ton"] = "Ton";
5705
+ /** Pound */
5706
+ KnownWeightUnit["Pound"] = "Pound";
5707
+ /** Ounce */
5708
+ KnownWeightUnit["Ounce"] = "Ounce";
5709
+ /** Grain */
5710
+ KnownWeightUnit["Grain"] = "Grain";
5711
+ /** PennyWeight */
5712
+ KnownWeightUnit["PennyWeight"] = "PennyWeight";
5713
+ /** LongTonBritish */
5714
+ KnownWeightUnit["LongTonBritish"] = "LongTonBritish";
5715
+ /** ShortTonUS */
5716
+ KnownWeightUnit["ShortTonUS"] = "ShortTonUS";
5717
+ /** ShortHundredWeightUS */
5718
+ KnownWeightUnit["ShortHundredWeightUS"] = "ShortHundredWeightUS";
5719
+ /** Stone */
5720
+ KnownWeightUnit["Stone"] = "Stone";
5721
+ /** Dram */
5722
+ KnownWeightUnit["Dram"] = "Dram";
5723
+ })(exports.KnownWeightUnit || (exports.KnownWeightUnit = {}));
5724
+ /** Known values of {@link DateTimeSubKind} that the service accepts. */
5725
+ exports.KnownDateTimeSubKind = void 0;
5726
+ (function (KnownDateTimeSubKind) {
5727
+ /** Time */
5728
+ KnownDateTimeSubKind["Time"] = "Time";
5729
+ /** Date */
5730
+ KnownDateTimeSubKind["Date"] = "Date";
5731
+ /** DateTime */
5732
+ KnownDateTimeSubKind["DateTime"] = "DateTime";
5733
+ /** Duration */
5734
+ KnownDateTimeSubKind["Duration"] = "Duration";
5735
+ /** Set */
5736
+ KnownDateTimeSubKind["Set"] = "Set";
5737
+ })(exports.KnownDateTimeSubKind || (exports.KnownDateTimeSubKind = {}));
5738
+ /** Known values of {@link TemporalModifier} that the service accepts. */
5739
+ exports.KnownTemporalModifier = void 0;
5740
+ (function (KnownTemporalModifier) {
5741
+ /** AfterApprox */
5742
+ KnownTemporalModifier["AfterApprox"] = "AfterApprox";
5743
+ /** Before */
5744
+ KnownTemporalModifier["Before"] = "Before";
5745
+ /** BeforeStart */
5746
+ KnownTemporalModifier["BeforeStart"] = "BeforeStart";
5747
+ /** Approx */
5748
+ KnownTemporalModifier["Approx"] = "Approx";
5749
+ /** ReferenceUndefined */
5750
+ KnownTemporalModifier["ReferenceUndefined"] = "ReferenceUndefined";
5751
+ /** SinceEnd */
5752
+ KnownTemporalModifier["SinceEnd"] = "SinceEnd";
5753
+ /** AfterMid */
5754
+ KnownTemporalModifier["AfterMid"] = "AfterMid";
5755
+ /** Start */
5756
+ KnownTemporalModifier["Start"] = "Start";
5757
+ /** After */
5758
+ KnownTemporalModifier["After"] = "After";
5759
+ /** BeforeEnd */
5760
+ KnownTemporalModifier["BeforeEnd"] = "BeforeEnd";
5761
+ /** Until */
5762
+ KnownTemporalModifier["Until"] = "Until";
5763
+ /** End */
5764
+ KnownTemporalModifier["End"] = "End";
5765
+ /** Less */
5766
+ KnownTemporalModifier["Less"] = "Less";
5767
+ /** Since */
5768
+ KnownTemporalModifier["Since"] = "Since";
5769
+ /** AfterStart */
5770
+ KnownTemporalModifier["AfterStart"] = "AfterStart";
5771
+ /** BeforeApprox */
5772
+ KnownTemporalModifier["BeforeApprox"] = "BeforeApprox";
5773
+ /** Mid */
5774
+ KnownTemporalModifier["Mid"] = "Mid";
5775
+ /** More */
5776
+ KnownTemporalModifier["More"] = "More";
5777
+ })(exports.KnownTemporalModifier || (exports.KnownTemporalModifier = {}));
5778
+ /** Known values of {@link NumberKind} that the service accepts. */
5779
+ exports.KnownNumberKind = void 0;
5780
+ (function (KnownNumberKind) {
5781
+ /** Integer */
5782
+ KnownNumberKind["Integer"] = "Integer";
5783
+ /** Decimal */
5784
+ KnownNumberKind["Decimal"] = "Decimal";
5785
+ /** Power */
5786
+ KnownNumberKind["Power"] = "Power";
5787
+ /** Fraction */
5788
+ KnownNumberKind["Fraction"] = "Fraction";
5789
+ /** Percent */
5790
+ KnownNumberKind["Percent"] = "Percent";
5791
+ /** Unspecified */
5792
+ KnownNumberKind["Unspecified"] = "Unspecified";
5793
+ })(exports.KnownNumberKind || (exports.KnownNumberKind = {}));
5794
+ /** Known values of {@link RelativeTo} that the service accepts. */
5795
+ exports.KnownRelativeTo = void 0;
5796
+ (function (KnownRelativeTo) {
5797
+ /** Current */
5798
+ KnownRelativeTo["Current"] = "Current";
5799
+ /** End */
5800
+ KnownRelativeTo["End"] = "End";
5801
+ /** Start */
5802
+ KnownRelativeTo["Start"] = "Start";
5803
+ })(exports.KnownRelativeTo || (exports.KnownRelativeTo = {}));
5804
+ /** Known values of {@link RangeKind} that the service accepts. */
5805
+ exports.KnownRangeKind = void 0;
5806
+ (function (KnownRangeKind) {
5807
+ /** Number */
5808
+ KnownRangeKind["Number"] = "Number";
5809
+ /** Speed */
5810
+ KnownRangeKind["Speed"] = "Speed";
5811
+ /** Weight */
5812
+ KnownRangeKind["Weight"] = "Weight";
5813
+ /** Length */
5814
+ KnownRangeKind["Length"] = "Length";
5815
+ /** Volume */
5816
+ KnownRangeKind["Volume"] = "Volume";
5817
+ /** Area */
5818
+ KnownRangeKind["Area"] = "Area";
5819
+ /** Age */
5820
+ KnownRangeKind["Age"] = "Age";
5821
+ /** Information */
5822
+ KnownRangeKind["Information"] = "Information";
5823
+ /** Temperature */
5824
+ KnownRangeKind["Temperature"] = "Temperature";
5825
+ /** Currency */
5826
+ KnownRangeKind["Currency"] = "Currency";
5827
+ })(exports.KnownRangeKind || (exports.KnownRangeKind = {}));
4474
5828
 
4475
5829
  // Copyright (c) Microsoft Corporation.
4476
5830
  /**
@@ -4483,6 +5837,7 @@ const AnalyzeActionNames = {
4483
5837
  PiiEntityRecognition: "PiiEntityRecognition",
4484
5838
  LanguageDetection: "LanguageDetection",
4485
5839
  SentimentAnalysis: "SentimentAnalysis",
5840
+ DynamicClassification: "DynamicClassification",
4486
5841
  };
4487
5842
  /**
4488
5843
  * Type of actions supported by the {@link TextAnalysisClient.beginAnalyzeBatch} method.
@@ -4494,10 +5849,20 @@ const AnalyzeBatchActionNames = {
4494
5849
  KeyPhraseExtraction: "KeyPhraseExtraction",
4495
5850
  EntityLinking: "EntityLinking",
4496
5851
  Healthcare: "Healthcare",
5852
+ ExtractiveSummarization: "ExtractiveSummarization",
5853
+ AbstractiveSummarization: "AbstractiveSummarization",
4497
5854
  CustomEntityRecognition: "CustomEntityRecognition",
4498
5855
  CustomSingleLabelClassification: "CustomSingleLabelClassification",
4499
5856
  CustomMultiLabelClassification: "CustomMultiLabelClassification",
4500
5857
  };
5858
+ /**
5859
+ * Known values of the {@link HealthcareAction.fhirVersion} parameter.
5860
+ */
5861
+ exports.KnownFhirVersion = void 0;
5862
+ (function (KnownFhirVersion) {
5863
+ /** 4.0.1 */
5864
+ KnownFhirVersion["4.0.1"] = "4.0.1";
5865
+ })(exports.KnownFhirVersion || (exports.KnownFhirVersion = {}));
4501
5866
  /**
4502
5867
  * Enum of possible error codes of a {@link TextAnalysisError}.
4503
5868
  */