@azure/ai-language-text 1.1.0-beta.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,8 @@ import { TokenCredential } from '@azure/core-auth';
19
19
 
20
20
  /** Options for an Abstractive Summarization action. */
21
21
  export declare interface AbstractiveSummarizationAction {
22
- /** The max number of sentences to be part of the summary. */
23
- maxSentenceCount?: number;
22
+ /** The approximate number of sentences to be part of the summary. */
23
+ sentenceCount?: number;
24
24
  /**
25
25
  * Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
26
26
  *
@@ -68,7 +68,7 @@ export declare interface AbstractiveSummary {
68
68
  /** The text of the summary. */
69
69
  text: string;
70
70
  /** The context list of the summary. */
71
- contexts?: SummaryContext[];
71
+ contexts: SummaryContext[];
72
72
  }
73
73
 
74
74
  /** Configuration common to all actions. */
@@ -105,27 +105,6 @@ export declare interface ActionPrebuilt extends ActionCommon {
105
105
  modelVersion?: string;
106
106
  }
107
107
 
108
- /** Represents the Age entity resolution model. */
109
- export declare interface AgeResolution extends BaseResolution, QuantityResolution {
110
- /** Polymorphic discriminator, which specifies the different types this object can be */
111
- resolutionKind: "AgeResolution";
112
- /** The Age Unit of measurement */
113
- unit: AgeUnit;
114
- }
115
-
116
- /**
117
- * Defines values for AgeUnit. \
118
- * {@link KnownAgeUnit} can be used interchangeably with AgeUnit,
119
- * this enum contains the known values that the service supports.
120
- * ### Known values supported by the service
121
- * **Unspecified** \
122
- * **Year** \
123
- * **Month** \
124
- * **Week** \
125
- * **Day**
126
- */
127
- export declare type AgeUnit = string;
128
-
129
108
  /**
130
109
  * Type of actions supported by the {@link TextAnalysisClient.analyze} method.
131
110
  */
@@ -141,7 +120,6 @@ export declare const AnalyzeActionNames: {
141
120
  readonly PiiEntityRecognition: "PiiEntityRecognition";
142
121
  readonly LanguageDetection: "LanguageDetection";
143
122
  readonly SentimentAnalysis: "SentimentAnalysis";
144
- readonly DynamicClassification: "DynamicClassification";
145
123
  };
146
124
 
147
125
  /**
@@ -153,7 +131,6 @@ export declare type AnalyzeActionParameters<ActionName extends AnalyzeActionName
153
131
  PiiEntityRecognition: PiiEntityRecognitionAction;
154
132
  KeyPhraseExtraction: KeyPhraseExtractionAction;
155
133
  SentimentAnalysis: SentimentAnalysisAction;
156
- DynamicClassification: DynamicClassificationAction;
157
134
  LanguageDetection: LanguageDetectionAction;
158
135
  }[ActionName];
159
136
 
@@ -257,39 +234,9 @@ export declare type AnalyzeResult<ActionName extends AnalyzeActionName> = {
257
234
  PiiEntityRecognition: PiiEntityRecognitionResult[];
258
235
  KeyPhraseExtraction: KeyPhraseExtractionResult[];
259
236
  SentimentAnalysis: SentimentAnalysisResult[];
260
- DynamicClassification: DynamicClassificationResult[];
261
237
  LanguageDetection: LanguageDetectionResult[];
262
238
  }[ActionName];
263
239
 
264
- /** Represents the area entity resolution model. */
265
- export declare interface AreaResolution extends BaseResolution, QuantityResolution {
266
- /** Polymorphic discriminator, which specifies the different types this object can be */
267
- resolutionKind: "AreaResolution";
268
- /** The area Unit of measurement */
269
- unit: AreaUnit;
270
- }
271
-
272
- /**
273
- * Defines values for AreaUnit. \
274
- * {@link KnownAreaUnit} can be used interchangeably with AreaUnit,
275
- * this enum contains the known values that the service supports.
276
- * ### Known values supported by the service
277
- * **Unspecified** \
278
- * **SquareKilometer** \
279
- * **SquareHectometer** \
280
- * **SquareDecameter** \
281
- * **SquareDecimeter** \
282
- * **SquareMeter** \
283
- * **SquareCentimeter** \
284
- * **SquareMillimeter** \
285
- * **SquareInch** \
286
- * **SquareFoot** \
287
- * **SquareMile** \
288
- * **SquareYard** \
289
- * **Acre**
290
- */
291
- export declare type AreaUnit = string;
292
-
293
240
  /** An object that contains the predicted sentiment, confidence scores and other information about an assessment of a target. For example, in the sentence "The food is good", the assessment of the target 'food' is 'good'. */
294
241
  export declare interface AssessmentSentiment {
295
242
  /** Assessment sentiment in the sentence. */
@@ -308,14 +255,6 @@ export declare interface AssessmentSentiment {
308
255
 
309
256
  export { AzureKeyCredential }
310
257
 
311
- /** The abstract base class for entity resolutions. */
312
- export declare interface BaseResolution {
313
- /** Polymorphic discriminator, which specifies the different types this object can be */
314
- resolutionKind: "AgeResolution" | "VolumeResolution" | "SpeedResolution" | "AreaResolution" | "LengthResolution" | "InformationResolution" | "TemperatureResolution" | "WeightResolution" | "CurrencyResolution" | "BooleanResolution" | "DateTimeResolution" | "NumberResolution" | "OrdinalResolution" | "TemporalSpanResolution" | "NumericRangeResolution";
315
- }
316
-
317
- export declare type BaseResolutionUnion = BaseResolution | AgeResolution | VolumeResolution | SpeedResolution | AreaResolution | LengthResolution | InformationResolution | TemperatureResolution | WeightResolution | CurrencyResolution | BooleanResolution | DateTimeResolution | NumberResolution | OrdinalResolution | TemporalSpanResolution | NumericRangeResolution;
318
-
319
258
  /**
320
259
  * The error of an analyze batch action.
321
260
  */
@@ -358,7 +297,7 @@ export declare interface BatchActionSuccessResult<T, Kind extends AnalyzeBatchAc
358
297
  /**
359
298
  * The list of document results.
360
299
  */
361
- readonly results: WithDetectedLanguage<T>[];
300
+ readonly results: T[];
362
301
  /**
363
302
  * When this action was completed by the service.
364
303
  */
@@ -381,17 +320,6 @@ export declare interface BeginAnalyzeBatchOptions extends TextAnalysisOperationO
381
320
  * The operation's display name.
382
321
  */
383
322
  displayName?: string;
384
- /**
385
- * Default language code to use for records requesting automatic language detection
386
- */
387
- defaultLanguage?: string;
388
- }
389
-
390
- /** A resolution for boolean expressions */
391
- export declare interface BooleanResolution extends BaseResolution {
392
- /** Polymorphic discriminator, which specifies the different types this object can be */
393
- resolutionKind: "BooleanResolution";
394
- value: boolean;
395
323
  }
396
324
 
397
325
  /** A classification result from a custom classify document single category action */
@@ -402,26 +330,6 @@ export declare interface ClassificationCategory {
402
330
  confidenceScore: number;
403
331
  }
404
332
 
405
- /**
406
- * Defines values for ClassificationType. \
407
- * {@link KnownClassificationType} can be used interchangeably with ClassificationType,
408
- * this enum contains the known values that the service supports.
409
- * ### Known values supported by the service
410
- * **Single** \
411
- * **Multi**
412
- */
413
- export declare type ClassificationType = string;
414
-
415
- /** Represents the currency entity resolution model. */
416
- export declare interface CurrencyResolution extends BaseResolution, QuantityResolution {
417
- /** Polymorphic discriminator, which specifies the different types this object can be */
418
- resolutionKind: "CurrencyResolution";
419
- /** The alphabetic code based on another ISO standard, ISO 3166, which lists the codes for country names. The first two letters of the ISO 4217 three-letter code are the same as the code for the country name, and, where possible, the third letter corresponds to the first letter of the currency name. */
420
- iso4217?: string;
421
- /** The unit of the amount captured in the extracted entity */
422
- unit: string;
423
- }
424
-
425
333
  /**
426
334
  * Custom action metadata.
427
335
  */
@@ -556,33 +464,6 @@ export declare interface CustomSingleLabelClassificationSuccessResult extends Te
556
464
  readonly classifications: ClassificationCategory[];
557
465
  }
558
466
 
559
- /** A resolution for datetime entity instances. */
560
- export declare interface DateTimeResolution extends BaseResolution {
561
- /** Polymorphic discriminator, which specifies the different types this object can be */
562
- resolutionKind: "DateTimeResolution";
563
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
564
- timex: string;
565
- /** The DateTime SubKind */
566
- dateTimeSubKind: DateTimeSubKind;
567
- /** The actual time that the extracted text denote. */
568
- value: string;
569
- /** An optional modifier of a date/time instance. */
570
- modifier?: TemporalModifier;
571
- }
572
-
573
- /**
574
- * Defines values for DateTimeSubKind. \
575
- * {@link KnownDateTimeSubKind} can be used interchangeably with DateTimeSubKind,
576
- * this enum contains the known values that the service supports.
577
- * ### Known values supported by the service
578
- * **Time** \
579
- * **Date** \
580
- * **DateTime** \
581
- * **Duration** \
582
- * **Set**
583
- */
584
- export declare type DateTimeSubKind = string;
585
-
586
467
  /** Information about the language of a document as identified by the Language service. */
587
468
  export declare interface DetectedLanguage {
588
469
  /** Long name of a detected language (e.g. English, French). */
@@ -591,14 +472,6 @@ export declare interface DetectedLanguage {
591
472
  iso6391Name: string;
592
473
  /** A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. */
593
474
  confidenceScore: number;
594
- /** Identifies the script of the input document. */
595
- script?: ScriptKind;
596
- }
597
-
598
- /** The auto-detected language of the input document. */
599
- export declare interface DocumentDetectedLanguage {
600
- /** If 'language' is set to 'auto' for the document in the request this field will contain a 2 letter ISO 639-1 representation of the language detected for this document. */
601
- detectedLanguage?: DetectedLanguage;
602
475
  }
603
476
 
604
477
  /** Defines values for DocumentSentimentLabel. */
@@ -612,35 +485,6 @@ export declare interface DocumentWarning {
612
485
  message: string;
613
486
  }
614
487
 
615
- /** Options for a dynamic classification action. */
616
- export declare interface DynamicClassificationAction extends ActionPrebuilt {
617
- /** Specifies either one or multiple categories per document. Defaults to multi classification which may return more than one class for each document. */
618
- classificationType?: ClassificationType;
619
- /** a list of categories to which input is classified to. */
620
- categories: string[];
621
- }
622
-
623
- /**
624
- * An error result from a language detection action on a single document.
625
- */
626
- export declare type DynamicClassificationErrorResult = TextAnalysisErrorResult;
627
-
628
- /**
629
- * The result of a language detection action on a single document.
630
- */
631
- export declare type DynamicClassificationResult = DynamicClassificationSuccessResult | DynamicClassificationErrorResult;
632
-
633
- /**
634
- * The result of a language detection action on a single document,
635
- * containing a prediction of what language the document is written in.
636
- */
637
- export declare interface DynamicClassificationSuccessResult extends TextAnalysisSuccessResult {
638
- /**
639
- * The collection of classifications in the input document.
640
- */
641
- readonly classifications: ClassificationCategory[];
642
- }
643
-
644
488
  /** A word or phrase identified as an entity that is categorized within a taxonomy of types. The set of categories recognized by the Language service is described at https://docs.microsoft.com/azure/cognitive-services/language-service/named-entity-recognition/concepts/named-entity-categories . */
645
489
  export declare interface Entity {
646
490
  /** Entity text as appears in the request. */
@@ -759,13 +603,7 @@ export declare interface EntityRecognitionSuccessResult extends TextAnalysisSucc
759
603
  /**
760
604
  * The collection of entities identified in the input document.
761
605
  */
762
- readonly entities: EntityWithResolution[];
763
- }
764
-
765
- /** An entity with resolution. */
766
- export declare interface EntityWithResolution extends Entity {
767
- /** The collection of entity resolution objects. */
768
- resolutions?: BaseResolutionUnion[];
606
+ readonly entities: Entity[];
769
607
  }
770
608
 
771
609
  /** Supported parameters for an Extractive Summarization task. */
@@ -826,21 +664,8 @@ export declare interface ExtractiveSummarizationSuccessResult extends TextAnalys
826
664
  readonly sentences: SummarySentence[];
827
665
  }
828
666
 
829
- /**
830
- * Defines values for FhirVersion. \
831
- * {@link KnownFhirVersion} can be used interchangeably with FhirVersion,
832
- * this enum contains the known values that the service supports.
833
- * ### Known values supported by the service
834
- * **4.0.1**
835
- */
836
- export declare type FhirVersion = string;
837
-
838
667
  /** Supported parameters for a Healthcare task. */
839
668
  export declare interface HealthcareAction extends ActionPrebuilt {
840
- /** The FHIR Spec version that the result will use to format the fhirBundle. For additional information see https://www.hl7.org/fhir/overview.html. */
841
- fhirVersion?: FhirVersion;
842
- /** Document type that can be provided as input for Fhir Documents. Expect to have fhirVersion provided when used. Behavior of using None enum is the same as not using the documentType parameter. */
843
- documentType?: HealthcareDocumentType;
844
669
  /**
845
670
  * Specifies the measurement unit used to calculate the offset and length properties. For a list of possible values, see {@link KnownStringIndexType}.
846
671
  *
@@ -872,23 +697,6 @@ export declare interface HealthcareBatchAction extends AnalyzeBatchActionCommon,
872
697
  */
873
698
  export declare type HealthcareBatchResult = ActionMetadata & BatchActionResult<HealthcareResult, "Healthcare">;
874
699
 
875
- /**
876
- * Defines values for HealthcareDocumentType. \
877
- * {@link KnownHealthcareDocumentType} can be used interchangeably with HealthcareDocumentType,
878
- * this enum contains the known values that the service supports.
879
- * ### Known values supported by the service
880
- * **None** \
881
- * **ClinicalTrial** \
882
- * **DischargeSummary** \
883
- * **ProgressNote** \
884
- * **HistoryAndPhysical** \
885
- * **Consult** \
886
- * **Imaging** \
887
- * **Pathology** \
888
- * **ProcedureNote**
889
- */
890
- export declare type HealthcareDocumentType = string;
891
-
892
700
  /**
893
701
  * A healthcare entity represented as a node in a directed graph where the edges are
894
702
  * a particular type of relationship between the source and target nodes.
@@ -949,6 +757,7 @@ export declare interface HealthcareEntity extends Entity {
949
757
  * **BodyStructure** \
950
758
  * **Age** \
951
759
  * **Gender** \
760
+ * **Ethnicity** \
952
761
  * **ExaminationName** \
953
762
  * **Date** \
954
763
  * **Direction** \
@@ -957,21 +766,30 @@ export declare interface HealthcareEntity extends Entity {
957
766
  * **MeasurementUnit** \
958
767
  * **RelationalOperator** \
959
768
  * **Time** \
769
+ * **Course** \
960
770
  * **GeneOrProtein** \
961
771
  * **Variant** \
772
+ * **Expression** \
773
+ * **MutationType** \
962
774
  * **AdministrativeEvent** \
963
775
  * **CareEnvironment** \
964
776
  * **HealthcareProfession** \
965
777
  * **Diagnosis** \
966
778
  * **SymptomOrSign** \
967
779
  * **ConditionQualifier** \
780
+ * **ConditionScale** \
968
781
  * **MedicationClass** \
969
782
  * **MedicationName** \
970
783
  * **Dosage** \
971
784
  * **MedicationForm** \
972
785
  * **MedicationRoute** \
973
786
  * **FamilyRelation** \
974
- * **TreatmentName**
787
+ * **TreatmentName** \
788
+ * **Allergen** \
789
+ * **Employment** \
790
+ * **LivingStatus** \
791
+ * **SubstanceUse** \
792
+ * **SubstanceUseAmount**
975
793
  */
976
794
  export declare type HealthcareEntityCategory = string;
977
795
 
@@ -1034,42 +852,8 @@ export declare interface HealthcareSuccessResult extends TextAnalysisSuccessResu
1034
852
  * Relations between healthcare entities.
1035
853
  */
1036
854
  readonly entityRelations: HealthcareEntityRelation[];
1037
- /**
1038
- * JSON bundle containing a FHIR compatible object for consumption in other
1039
- * Healthcare tools. For additional information see {@link https://www.hl7.org/fhir/overview.html}.
1040
- */
1041
- readonly fhirBundle?: Record<string, any>;
1042
- }
1043
-
1044
- /** Represents the information (data) entity resolution model. */
1045
- export declare interface InformationResolution extends BaseResolution, QuantityResolution {
1046
- /** Polymorphic discriminator, which specifies the different types this object can be */
1047
- resolutionKind: "InformationResolution";
1048
- /** The information (data) Unit of measurement. */
1049
- unit: InformationUnit;
1050
855
  }
1051
856
 
1052
- /**
1053
- * Defines values for InformationUnit. \
1054
- * {@link KnownInformationUnit} can be used interchangeably with InformationUnit,
1055
- * this enum contains the known values that the service supports.
1056
- * ### Known values supported by the service
1057
- * **Unspecified** \
1058
- * **Bit** \
1059
- * **Kilobit** \
1060
- * **Megabit** \
1061
- * **Gigabit** \
1062
- * **Terabit** \
1063
- * **Petabit** \
1064
- * **Byte** \
1065
- * **Kilobyte** \
1066
- * **Megabyte** \
1067
- * **Gigabyte** \
1068
- * **Terabyte** \
1069
- * **Petabyte**
1070
- */
1071
- export declare type InformationUnit = string;
1072
-
1073
857
  /** Options for a key phrase recognition action. */
1074
858
  export declare interface KeyPhraseExtractionAction extends ActionPrebuilt {
1075
859
  }
@@ -1109,72 +893,6 @@ export declare interface KeyPhraseExtractionSuccessResult extends TextAnalysisSu
1109
893
  readonly keyPhrases: string[];
1110
894
  }
1111
895
 
1112
- /** Known values of {@link AgeUnit} that the service accepts. */
1113
- export declare enum KnownAgeUnit {
1114
- /** Unspecified */
1115
- Unspecified = "Unspecified",
1116
- /** Year */
1117
- Year = "Year",
1118
- /** Month */
1119
- Month = "Month",
1120
- /** Week */
1121
- Week = "Week",
1122
- /** Day */
1123
- Day = "Day"
1124
- }
1125
-
1126
- /** Known values of {@link AreaUnit} that the service accepts. */
1127
- export declare enum KnownAreaUnit {
1128
- /** Unspecified */
1129
- Unspecified = "Unspecified",
1130
- /** SquareKilometer */
1131
- SquareKilometer = "SquareKilometer",
1132
- /** SquareHectometer */
1133
- SquareHectometer = "SquareHectometer",
1134
- /** SquareDecameter */
1135
- SquareDecameter = "SquareDecameter",
1136
- /** SquareDecimeter */
1137
- SquareDecimeter = "SquareDecimeter",
1138
- /** SquareMeter */
1139
- SquareMeter = "SquareMeter",
1140
- /** SquareCentimeter */
1141
- SquareCentimeter = "SquareCentimeter",
1142
- /** SquareMillimeter */
1143
- SquareMillimeter = "SquareMillimeter",
1144
- /** SquareInch */
1145
- SquareInch = "SquareInch",
1146
- /** SquareFoot */
1147
- SquareFoot = "SquareFoot",
1148
- /** SquareMile */
1149
- SquareMile = "SquareMile",
1150
- /** SquareYard */
1151
- SquareYard = "SquareYard",
1152
- /** Acre */
1153
- Acre = "Acre"
1154
- }
1155
-
1156
- /** Known values of {@link ClassificationType} that the service accepts. */
1157
- export declare enum KnownClassificationType {
1158
- /** Single */
1159
- Single = "Single",
1160
- /** Multi */
1161
- Multi = "Multi"
1162
- }
1163
-
1164
- /** Known values of {@link DateTimeSubKind} that the service accepts. */
1165
- export declare enum KnownDateTimeSubKind {
1166
- /** Time */
1167
- Time = "Time",
1168
- /** Date */
1169
- Date = "Date",
1170
- /** DateTime */
1171
- DateTime = "DateTime",
1172
- /** Duration */
1173
- Duration = "Duration",
1174
- /** Set */
1175
- Set = "Set"
1176
- }
1177
-
1178
896
  /** Known values of {@link ErrorCode} that the service accepts. */
1179
897
  export declare enum KnownErrorCode {
1180
898
  /** InvalidRequest */
@@ -1223,36 +941,6 @@ export declare enum KnownExtractiveSummarizationOrderingCriteria {
1223
941
  Rank = "Rank"
1224
942
  }
1225
943
 
1226
- /**
1227
- * Known values of the {@link HealthcareAction.fhirVersion} parameter.
1228
- */
1229
- export declare enum KnownFhirVersion {
1230
- /** 4.0.1 */
1231
- "4.0.1" = "4.0.1"
1232
- }
1233
-
1234
- /** Known values of {@link HealthcareDocumentType} that the service accepts. */
1235
- export declare enum KnownHealthcareDocumentType {
1236
- /** None */
1237
- None = "None",
1238
- /** ClinicalTrial */
1239
- ClinicalTrial = "ClinicalTrial",
1240
- /** DischargeSummary */
1241
- DischargeSummary = "DischargeSummary",
1242
- /** ProgressNote */
1243
- ProgressNote = "ProgressNote",
1244
- /** HistoryAndPhysical */
1245
- HistoryAndPhysical = "HistoryAndPhysical",
1246
- /** Consult */
1247
- Consult = "Consult",
1248
- /** Imaging */
1249
- Imaging = "Imaging",
1250
- /** Pathology */
1251
- Pathology = "Pathology",
1252
- /** ProcedureNote */
1253
- ProcedureNote = "ProcedureNote"
1254
- }
1255
-
1256
944
  /** Known values of {@link HealthcareEntityCategory} that the service accepts. */
1257
945
  export declare enum KnownHealthcareEntityCategory {
1258
946
  /** BodyStructure */
@@ -1261,6 +949,8 @@ export declare enum KnownHealthcareEntityCategory {
1261
949
  Age = "Age",
1262
950
  /** Gender */
1263
951
  Gender = "Gender",
952
+ /** Ethnicity */
953
+ Ethnicity = "Ethnicity",
1264
954
  /** ExaminationName */
1265
955
  ExaminationName = "ExaminationName",
1266
956
  /** Date */
@@ -1277,10 +967,16 @@ export declare enum KnownHealthcareEntityCategory {
1277
967
  RelationalOperator = "RelationalOperator",
1278
968
  /** Time */
1279
969
  Time = "Time",
970
+ /** Course */
971
+ Course = "Course",
1280
972
  /** GeneOrProtein */
1281
973
  GeneOrProtein = "GeneOrProtein",
1282
974
  /** Variant */
1283
975
  Variant = "Variant",
976
+ /** Expression */
977
+ Expression = "Expression",
978
+ /** MutationType */
979
+ MutationType = "MutationType",
1284
980
  /** AdministrativeEvent */
1285
981
  AdministrativeEvent = "AdministrativeEvent",
1286
982
  /** CareEnvironment */
@@ -1293,6 +989,8 @@ export declare enum KnownHealthcareEntityCategory {
1293
989
  SymptomOrSign = "SymptomOrSign",
1294
990
  /** ConditionQualifier */
1295
991
  ConditionQualifier = "ConditionQualifier",
992
+ /** ConditionScale */
993
+ ConditionScale = "ConditionScale",
1296
994
  /** MedicationClass */
1297
995
  MedicationClass = "MedicationClass",
1298
996
  /** MedicationName */
@@ -1306,37 +1004,17 @@ export declare enum KnownHealthcareEntityCategory {
1306
1004
  /** FamilyRelation */
1307
1005
  FamilyRelation = "FamilyRelation",
1308
1006
  /** TreatmentName */
1309
- TreatmentName = "TreatmentName"
1310
- }
1311
-
1312
- /** Known values of {@link InformationUnit} that the service accepts. */
1313
- export declare enum KnownInformationUnit {
1314
- /** Unspecified */
1315
- Unspecified = "Unspecified",
1316
- /** Bit */
1317
- Bit = "Bit",
1318
- /** Kilobit */
1319
- Kilobit = "Kilobit",
1320
- /** Megabit */
1321
- Megabit = "Megabit",
1322
- /** Gigabit */
1323
- Gigabit = "Gigabit",
1324
- /** Terabit */
1325
- Terabit = "Terabit",
1326
- /** Petabit */
1327
- Petabit = "Petabit",
1328
- /** Byte */
1329
- Byte = "Byte",
1330
- /** Kilobyte */
1331
- Kilobyte = "Kilobyte",
1332
- /** Megabyte */
1333
- Megabyte = "Megabyte",
1334
- /** Gigabyte */
1335
- Gigabyte = "Gigabyte",
1336
- /** Terabyte */
1337
- Terabyte = "Terabyte",
1338
- /** Petabyte */
1339
- Petabyte = "Petabyte"
1007
+ TreatmentName = "TreatmentName",
1008
+ /** Allergen */
1009
+ Allergen = "Allergen",
1010
+ /** Employment */
1011
+ Employment = "Employment",
1012
+ /** LivingStatus */
1013
+ LivingStatus = "LivingStatus",
1014
+ /** SubstanceUse */
1015
+ SubstanceUse = "SubstanceUse",
1016
+ /** SubstanceUseAmount */
1017
+ SubstanceUseAmount = "SubstanceUseAmount"
1340
1018
  }
1341
1019
 
1342
1020
  /** Known values of {@link InnerErrorCode} that the service accepts. */
@@ -1371,60 +1049,6 @@ export declare enum KnownInnerErrorCode {
1371
1049
  InvalidCountryHint = "InvalidCountryHint"
1372
1050
  }
1373
1051
 
1374
- /** Known values of {@link LengthUnit} that the service accepts. */
1375
- export declare enum KnownLengthUnit {
1376
- /** Unspecified */
1377
- Unspecified = "Unspecified",
1378
- /** Kilometer */
1379
- Kilometer = "Kilometer",
1380
- /** Hectometer */
1381
- Hectometer = "Hectometer",
1382
- /** Decameter */
1383
- Decameter = "Decameter",
1384
- /** Meter */
1385
- Meter = "Meter",
1386
- /** Decimeter */
1387
- Decimeter = "Decimeter",
1388
- /** Centimeter */
1389
- Centimeter = "Centimeter",
1390
- /** Millimeter */
1391
- Millimeter = "Millimeter",
1392
- /** Micrometer */
1393
- Micrometer = "Micrometer",
1394
- /** Nanometer */
1395
- Nanometer = "Nanometer",
1396
- /** Picometer */
1397
- Picometer = "Picometer",
1398
- /** Mile */
1399
- Mile = "Mile",
1400
- /** Yard */
1401
- Yard = "Yard",
1402
- /** Inch */
1403
- Inch = "Inch",
1404
- /** Foot */
1405
- Foot = "Foot",
1406
- /** LightYear */
1407
- LightYear = "LightYear",
1408
- /** Pt */
1409
- Pt = "Pt"
1410
- }
1411
-
1412
- /** Known values of {@link NumberKind} that the service accepts. */
1413
- export declare enum KnownNumberKind {
1414
- /** Integer */
1415
- Integer = "Integer",
1416
- /** Decimal */
1417
- Decimal = "Decimal",
1418
- /** Power */
1419
- Power = "Power",
1420
- /** Fraction */
1421
- Fraction = "Fraction",
1422
- /** Percent */
1423
- Percent = "Percent",
1424
- /** Unspecified */
1425
- Unspecified = "Unspecified"
1426
- }
1427
-
1428
1052
  /** Known values of {@link PiiEntityCategory} that the service accepts. */
1429
1053
  export declare enum KnownPiiEntityCategory {
1430
1054
  /** ABARoutingNumber */
@@ -1783,34 +1407,22 @@ export declare enum KnownPiiEntityDomain {
1783
1407
  None = "none"
1784
1408
  }
1785
1409
 
1786
- /** Known values of {@link RangeKind} that the service accepts. */
1787
- export declare enum KnownRangeKind {
1788
- /** Number */
1789
- Number = "Number",
1790
- /** Speed */
1791
- Speed = "Speed",
1792
- /** Weight */
1793
- Weight = "Weight",
1794
- /** Length */
1795
- Length = "Length",
1796
- /** Volume */
1797
- Volume = "Volume",
1798
- /** Area */
1799
- Area = "Area",
1800
- /** Age */
1801
- Age = "Age",
1802
- /** Information */
1803
- Information = "Information",
1804
- /** Temperature */
1805
- Temperature = "Temperature",
1806
- /** Currency */
1807
- Currency = "Currency"
1808
- }
1809
-
1810
1410
  /** Known values of {@link RelationType} that the service accepts. */
1811
1411
  export declare enum KnownRelationType {
1812
1412
  /** Abbreviation */
1813
1413
  Abbreviation = "Abbreviation",
1414
+ /** BodySiteOfCondition */
1415
+ BodySiteOfCondition = "BodySiteOfCondition",
1416
+ /** BodySiteOfTreatment */
1417
+ BodySiteOfTreatment = "BodySiteOfTreatment",
1418
+ /** CourseOfCondition */
1419
+ CourseOfCondition = "CourseOfCondition",
1420
+ /** CourseOfExamination */
1421
+ CourseOfExamination = "CourseOfExamination",
1422
+ /** CourseOfMedication */
1423
+ CourseOfMedication = "CourseOfMedication",
1424
+ /** CourseOfTreatment */
1425
+ CourseOfTreatment = "CourseOfTreatment",
1814
1426
  /** DirectionOfBodyStructure */
1815
1427
  DirectionOfBodyStructure = "DirectionOfBodyStructure",
1816
1428
  /** DirectionOfCondition */
@@ -1821,18 +1433,32 @@ export declare enum KnownRelationType {
1821
1433
  DirectionOfTreatment = "DirectionOfTreatment",
1822
1434
  /** DosageOfMedication */
1823
1435
  DosageOfMedication = "DosageOfMedication",
1436
+ /** ExaminationFindsCondition */
1437
+ ExaminationFindsCondition = "ExaminationFindsCondition",
1438
+ /** ExpressionOfGene */
1439
+ ExpressionOfGene = "ExpressionOfGene",
1440
+ /** ExpressionOfVariant */
1441
+ ExpressionOfVariant = "ExpressionOfVariant",
1824
1442
  /** FormOfMedication */
1825
1443
  FormOfMedication = "FormOfMedication",
1444
+ /** FrequencyOfCondition */
1445
+ FrequencyOfCondition = "FrequencyOfCondition",
1826
1446
  /** FrequencyOfMedication */
1827
1447
  FrequencyOfMedication = "FrequencyOfMedication",
1828
1448
  /** FrequencyOfTreatment */
1829
1449
  FrequencyOfTreatment = "FrequencyOfTreatment",
1450
+ /** MutationTypeOfGene */
1451
+ MutationTypeOfGene = "MutationTypeOfGene",
1452
+ /** MutationTypeOfVariant */
1453
+ MutationTypeOfVariant = "MutationTypeOfVariant",
1830
1454
  /** QualifierOfCondition */
1831
1455
  QualifierOfCondition = "QualifierOfCondition",
1832
1456
  /** RelationOfExamination */
1833
1457
  RelationOfExamination = "RelationOfExamination",
1834
1458
  /** RouteOfMedication */
1835
1459
  RouteOfMedication = "RouteOfMedication",
1460
+ /** ScaleOfCondition */
1461
+ ScaleOfCondition = "ScaleOfCondition",
1836
1462
  /** TimeOfCondition */
1837
1463
  TimeOfCondition = "TimeOfCondition",
1838
1464
  /** TimeOfEvent */
@@ -1850,89 +1476,9 @@ export declare enum KnownRelationType {
1850
1476
  /** ValueOfCondition */
1851
1477
  ValueOfCondition = "ValueOfCondition",
1852
1478
  /** ValueOfExamination */
1853
- ValueOfExamination = "ValueOfExamination"
1854
- }
1855
-
1856
- /** Known values of {@link RelativeTo} that the service accepts. */
1857
- export declare enum KnownRelativeTo {
1858
- /** Current */
1859
- Current = "Current",
1860
- /** End */
1861
- End = "End",
1862
- /** Start */
1863
- Start = "Start"
1864
- }
1865
-
1866
- /** Known values of {@link ResolutionKind} that the service accepts. */
1867
- export declare enum KnownResolutionKind {
1868
- /** BooleanResolution */
1869
- BooleanResolution = "BooleanResolution",
1870
- /** DateTimeResolution */
1871
- DateTimeResolution = "DateTimeResolution",
1872
- /** NumberResolution */
1873
- NumberResolution = "NumberResolution",
1874
- /** OrdinalResolution */
1875
- OrdinalResolution = "OrdinalResolution",
1876
- /** SpeedResolution */
1877
- SpeedResolution = "SpeedResolution",
1878
- /** WeightResolution */
1879
- WeightResolution = "WeightResolution",
1880
- /** LengthResolution */
1881
- LengthResolution = "LengthResolution",
1882
- /** VolumeResolution */
1883
- VolumeResolution = "VolumeResolution",
1884
- /** AreaResolution */
1885
- AreaResolution = "AreaResolution",
1886
- /** AgeResolution */
1887
- AgeResolution = "AgeResolution",
1888
- /** InformationResolution */
1889
- InformationResolution = "InformationResolution",
1890
- /** TemperatureResolution */
1891
- TemperatureResolution = "TemperatureResolution",
1892
- /** CurrencyResolution */
1893
- CurrencyResolution = "CurrencyResolution",
1894
- /** NumericRangeResolution */
1895
- NumericRangeResolution = "NumericRangeResolution",
1896
- /** TemporalSpanResolution */
1897
- TemporalSpanResolution = "TemporalSpanResolution"
1898
- }
1899
-
1900
- /** Known values of {@link ScriptKind} that the service accepts. */
1901
- export declare enum KnownScriptKind {
1902
- /** Latin */
1903
- Latin = "Latin"
1904
- }
1905
-
1906
- /** Known values of {@link SpeedUnit} that the service accepts. */
1907
- export declare enum KnownSpeedUnit {
1908
- /** Unspecified */
1909
- Unspecified = "Unspecified",
1910
- /** MeterPerSecond */
1911
- MeterPerSecond = "MeterPerSecond",
1912
- /** KilometerPerHour */
1913
- KilometerPerHour = "KilometerPerHour",
1914
- /** KilometerPerMinute */
1915
- KilometerPerMinute = "KilometerPerMinute",
1916
- /** KilometerPerSecond */
1917
- KilometerPerSecond = "KilometerPerSecond",
1918
- /** MilePerHour */
1919
- MilePerHour = "MilePerHour",
1920
- /** Knot */
1921
- Knot = "Knot",
1922
- /** FootPerSecond */
1923
- FootPerSecond = "FootPerSecond",
1924
- /** FootPerMinute */
1925
- FootPerMinute = "FootPerMinute",
1926
- /** YardPerMinute */
1927
- YardPerMinute = "YardPerMinute",
1928
- /** YardPerSecond */
1929
- YardPerSecond = "YardPerSecond",
1930
- /** MeterPerMillisecond */
1931
- MeterPerMillisecond = "MeterPerMillisecond",
1932
- /** CentimeterPerMillisecond */
1933
- CentimeterPerMillisecond = "CentimeterPerMillisecond",
1934
- /** KilometerPerMillisecond */
1935
- KilometerPerMillisecond = "KilometerPerMillisecond"
1479
+ ValueOfExamination = "ValueOfExamination",
1480
+ /** VariantOfGene */
1481
+ VariantOfGene = "VariantOfGene"
1936
1482
  }
1937
1483
 
1938
1484
  /** Known values of {@link StringIndexType} that the service accepts. */
@@ -1945,60 +1491,6 @@ export declare enum KnownStringIndexType {
1945
1491
  Utf16CodeUnit = "Utf16CodeUnit"
1946
1492
  }
1947
1493
 
1948
- /** Known values of {@link TemperatureUnit} that the service accepts. */
1949
- export declare enum KnownTemperatureUnit {
1950
- /** Unspecified */
1951
- Unspecified = "Unspecified",
1952
- /** Fahrenheit */
1953
- Fahrenheit = "Fahrenheit",
1954
- /** Kelvin */
1955
- Kelvin = "Kelvin",
1956
- /** Rankine */
1957
- Rankine = "Rankine",
1958
- /** Celsius */
1959
- Celsius = "Celsius"
1960
- }
1961
-
1962
- /** Known values of {@link TemporalModifier} that the service accepts. */
1963
- export declare enum KnownTemporalModifier {
1964
- /** AfterApprox */
1965
- AfterApprox = "AfterApprox",
1966
- /** Before */
1967
- Before = "Before",
1968
- /** BeforeStart */
1969
- BeforeStart = "BeforeStart",
1970
- /** Approx */
1971
- Approx = "Approx",
1972
- /** ReferenceUndefined */
1973
- ReferenceUndefined = "ReferenceUndefined",
1974
- /** SinceEnd */
1975
- SinceEnd = "SinceEnd",
1976
- /** AfterMid */
1977
- AfterMid = "AfterMid",
1978
- /** Start */
1979
- Start = "Start",
1980
- /** After */
1981
- After = "After",
1982
- /** BeforeEnd */
1983
- BeforeEnd = "BeforeEnd",
1984
- /** Until */
1985
- Until = "Until",
1986
- /** End */
1987
- End = "End",
1988
- /** Less */
1989
- Less = "Less",
1990
- /** Since */
1991
- Since = "Since",
1992
- /** AfterStart */
1993
- AfterStart = "AfterStart",
1994
- /** BeforeApprox */
1995
- BeforeApprox = "BeforeApprox",
1996
- /** Mid */
1997
- Mid = "Mid",
1998
- /** More */
1999
- More = "More"
2000
- }
2001
-
2002
1494
  /**
2003
1495
  * Enum of possible error codes of a {@link TextAnalysisError}.
2004
1496
  */
@@ -2034,102 +1526,6 @@ export declare const KnownTextAnalysisErrorCode: {
2034
1526
  Warning: KnownErrorCode.Warning;
2035
1527
  };
2036
1528
 
2037
- /** Known values of {@link VolumeUnit} that the service accepts. */
2038
- export declare enum KnownVolumeUnit {
2039
- /** Unspecified */
2040
- Unspecified = "Unspecified",
2041
- /** CubicMeter */
2042
- CubicMeter = "CubicMeter",
2043
- /** CubicCentimeter */
2044
- CubicCentimeter = "CubicCentimeter",
2045
- /** CubicMillimeter */
2046
- CubicMillimeter = "CubicMillimeter",
2047
- /** Hectoliter */
2048
- Hectoliter = "Hectoliter",
2049
- /** Decaliter */
2050
- Decaliter = "Decaliter",
2051
- /** Liter */
2052
- Liter = "Liter",
2053
- /** Centiliter */
2054
- Centiliter = "Centiliter",
2055
- /** Milliliter */
2056
- Milliliter = "Milliliter",
2057
- /** CubicYard */
2058
- CubicYard = "CubicYard",
2059
- /** CubicInch */
2060
- CubicInch = "CubicInch",
2061
- /** CubicFoot */
2062
- CubicFoot = "CubicFoot",
2063
- /** CubicMile */
2064
- CubicMile = "CubicMile",
2065
- /** FluidOunce */
2066
- FluidOunce = "FluidOunce",
2067
- /** Teaspoon */
2068
- Teaspoon = "Teaspoon",
2069
- /** Tablespoon */
2070
- Tablespoon = "Tablespoon",
2071
- /** Pint */
2072
- Pint = "Pint",
2073
- /** Quart */
2074
- Quart = "Quart",
2075
- /** Cup */
2076
- Cup = "Cup",
2077
- /** Gill */
2078
- Gill = "Gill",
2079
- /** Pinch */
2080
- Pinch = "Pinch",
2081
- /** FluidDram */
2082
- FluidDram = "FluidDram",
2083
- /** Barrel */
2084
- Barrel = "Barrel",
2085
- /** Minim */
2086
- Minim = "Minim",
2087
- /** Cord */
2088
- Cord = "Cord",
2089
- /** Peck */
2090
- Peck = "Peck",
2091
- /** Bushel */
2092
- Bushel = "Bushel",
2093
- /** Hogshead */
2094
- Hogshead = "Hogshead"
2095
- }
2096
-
2097
- /** Known values of {@link WeightUnit} that the service accepts. */
2098
- export declare enum KnownWeightUnit {
2099
- /** Unspecified */
2100
- Unspecified = "Unspecified",
2101
- /** Kilogram */
2102
- Kilogram = "Kilogram",
2103
- /** Gram */
2104
- Gram = "Gram",
2105
- /** Milligram */
2106
- Milligram = "Milligram",
2107
- /** Gallon */
2108
- Gallon = "Gallon",
2109
- /** MetricTon */
2110
- MetricTon = "MetricTon",
2111
- /** Ton */
2112
- Ton = "Ton",
2113
- /** Pound */
2114
- Pound = "Pound",
2115
- /** Ounce */
2116
- Ounce = "Ounce",
2117
- /** Grain */
2118
- Grain = "Grain",
2119
- /** PennyWeight */
2120
- PennyWeight = "PennyWeight",
2121
- /** LongTonBritish */
2122
- LongTonBritish = "LongTonBritish",
2123
- /** ShortTonUS */
2124
- ShortTonUS = "ShortTonUS",
2125
- /** ShortHundredWeightUS */
2126
- ShortHundredWeightUS = "ShortHundredWeightUS",
2127
- /** Stone */
2128
- Stone = "Stone",
2129
- /** Dram */
2130
- Dram = "Dram"
2131
- }
2132
-
2133
1529
  /** Options for a language detection action. */
2134
1530
  export declare interface LanguageDetectionAction extends ActionPrebuilt {
2135
1531
  }
@@ -2165,39 +1561,6 @@ export declare interface LanguageDetectionSuccessResult extends TextAnalysisSucc
2165
1561
  readonly primaryLanguage: DetectedLanguage;
2166
1562
  }
2167
1563
 
2168
- /** Represents the length entity resolution model. */
2169
- export declare interface LengthResolution extends BaseResolution, QuantityResolution {
2170
- /** Polymorphic discriminator, which specifies the different types this object can be */
2171
- resolutionKind: "LengthResolution";
2172
- /** The length Unit of measurement */
2173
- unit: LengthUnit;
2174
- }
2175
-
2176
- /**
2177
- * Defines values for LengthUnit. \
2178
- * {@link KnownLengthUnit} can be used interchangeably with LengthUnit,
2179
- * this enum contains the known values that the service supports.
2180
- * ### Known values supported by the service
2181
- * **Unspecified** \
2182
- * **Kilometer** \
2183
- * **Hectometer** \
2184
- * **Decameter** \
2185
- * **Meter** \
2186
- * **Decimeter** \
2187
- * **Centimeter** \
2188
- * **Millimeter** \
2189
- * **Micrometer** \
2190
- * **Nanometer** \
2191
- * **Picometer** \
2192
- * **Mile** \
2193
- * **Yard** \
2194
- * **Inch** \
2195
- * **Foot** \
2196
- * **LightYear** \
2197
- * **Pt**
2198
- */
2199
- export declare type LengthUnit = string;
2200
-
2201
1564
  /** A word or phrase identified as a well-known entity within a database, including its formal (disambiguated) name and a link to the entity information within the source database. */
2202
1565
  export declare interface LinkedEntity {
2203
1566
  /** Entity Linking formal name. */
@@ -2228,42 +1591,6 @@ export declare interface Match {
2228
1591
  length: number;
2229
1592
  }
2230
1593
 
2231
- /**
2232
- * Defines values for NumberKind. \
2233
- * {@link KnownNumberKind} can be used interchangeably with NumberKind,
2234
- * this enum contains the known values that the service supports.
2235
- * ### Known values supported by the service
2236
- * **Integer** \
2237
- * **Decimal** \
2238
- * **Power** \
2239
- * **Fraction** \
2240
- * **Percent** \
2241
- * **Unspecified**
2242
- */
2243
- export declare type NumberKind = string;
2244
-
2245
- /** A resolution for numeric entity instances. */
2246
- export declare interface NumberResolution extends BaseResolution {
2247
- /** Polymorphic discriminator, which specifies the different types this object can be */
2248
- resolutionKind: "NumberResolution";
2249
- /** The type of the extracted number entity. */
2250
- numberKind: NumberKind;
2251
- /** A numeric representation of what the extracted text denotes. */
2252
- value: number;
2253
- }
2254
-
2255
- /** represents the resolution of numeric intervals. */
2256
- export declare interface NumericRangeResolution extends BaseResolution {
2257
- /** Polymorphic discriminator, which specifies the different types this object can be */
2258
- resolutionKind: "NumericRangeResolution";
2259
- /** The kind of range that the resolution object represents. */
2260
- rangeKind: RangeKind;
2261
- /** The beginning value of the interval. */
2262
- minimum: number;
2263
- /** The ending value of the interval. */
2264
- maximum: number;
2265
- }
2266
-
2267
1594
  /**
2268
1595
  * A mined opinion object represents an opinion we've extracted from a sentence.
2269
1596
  * It consists of both a target that these assessments are about, and the actual
@@ -2280,18 +1607,6 @@ export declare interface Opinion {
2280
1607
  readonly assessments: AssessmentSentiment[];
2281
1608
  }
2282
1609
 
2283
- /** A resolution for ordinal numbers entity instances. */
2284
- export declare interface OrdinalResolution extends BaseResolution {
2285
- /** Polymorphic discriminator, which specifies the different types this object can be */
2286
- resolutionKind: "OrdinalResolution";
2287
- /** The offset With respect to the reference (e.g., offset = -1 in "show me the second to last" */
2288
- offset: string;
2289
- /** The reference point that the ordinal number denotes. */
2290
- relativeTo: RelativeTo;
2291
- /** A simple arithmetic expression that the ordinal denotes. */
2292
- value: string;
2293
- }
2294
-
2295
1610
  /**
2296
1611
  * Paged results of the {@link TextAnalysisClient.beginAnalyzeBatch} operation.
2297
1612
  */
@@ -2555,47 +1870,36 @@ export declare interface PollerLike<TState extends OperationState<TResult>, TRes
2555
1870
  sendCancellationRequest: () => Promise<void>;
2556
1871
  }
2557
1872
 
2558
- /** Represents resolutions for quantities. */
2559
- export declare interface QuantityResolution {
2560
- /** The numeric value that the extracted text denotes. */
2561
- value: number;
2562
- }
2563
-
2564
- /**
2565
- * Defines values for RangeKind. \
2566
- * {@link KnownRangeKind} can be used interchangeably with RangeKind,
2567
- * this enum contains the known values that the service supports.
2568
- * ### Known values supported by the service
2569
- * **Number** \
2570
- * **Speed** \
2571
- * **Weight** \
2572
- * **Length** \
2573
- * **Volume** \
2574
- * **Area** \
2575
- * **Age** \
2576
- * **Information** \
2577
- * **Temperature** \
2578
- * **Currency**
2579
- */
2580
- export declare type RangeKind = string;
2581
-
2582
1873
  /**
2583
1874
  * Defines values for RelationType. \
2584
1875
  * {@link KnownRelationType} can be used interchangeably with RelationType,
2585
1876
  * this enum contains the known values that the service supports.
2586
1877
  * ### Known values supported by the service
2587
1878
  * **Abbreviation** \
1879
+ * **BodySiteOfCondition** \
1880
+ * **BodySiteOfTreatment** \
1881
+ * **CourseOfCondition** \
1882
+ * **CourseOfExamination** \
1883
+ * **CourseOfMedication** \
1884
+ * **CourseOfTreatment** \
2588
1885
  * **DirectionOfBodyStructure** \
2589
1886
  * **DirectionOfCondition** \
2590
1887
  * **DirectionOfExamination** \
2591
1888
  * **DirectionOfTreatment** \
2592
1889
  * **DosageOfMedication** \
1890
+ * **ExaminationFindsCondition** \
1891
+ * **ExpressionOfGene** \
1892
+ * **ExpressionOfVariant** \
2593
1893
  * **FormOfMedication** \
1894
+ * **FrequencyOfCondition** \
2594
1895
  * **FrequencyOfMedication** \
2595
1896
  * **FrequencyOfTreatment** \
1897
+ * **MutationTypeOfGene** \
1898
+ * **MutationTypeOfVariant** \
2596
1899
  * **QualifierOfCondition** \
2597
1900
  * **RelationOfExamination** \
2598
1901
  * **RouteOfMedication** \
1902
+ * **ScaleOfCondition** \
2599
1903
  * **TimeOfCondition** \
2600
1904
  * **TimeOfEvent** \
2601
1905
  * **TimeOfExamination** \
@@ -2604,21 +1908,11 @@ export declare type RangeKind = string;
2604
1908
  * **UnitOfCondition** \
2605
1909
  * **UnitOfExamination** \
2606
1910
  * **ValueOfCondition** \
2607
- * **ValueOfExamination**
1911
+ * **ValueOfExamination** \
1912
+ * **VariantOfGene**
2608
1913
  */
2609
1914
  export declare type RelationType = string;
2610
1915
 
2611
- /**
2612
- * Defines values for RelativeTo. \
2613
- * {@link KnownRelativeTo} can be used interchangeably with RelativeTo,
2614
- * this enum contains the known values that the service supports.
2615
- * ### Known values supported by the service
2616
- * **Current** \
2617
- * **End** \
2618
- * **Start**
2619
- */
2620
- export declare type RelativeTo = string;
2621
-
2622
1916
  /**
2623
1917
  * Options for the begin analyze actions operation.
2624
1918
  */
@@ -2629,15 +1923,6 @@ export declare interface RestoreAnalyzeBatchPollerOptions extends TextAnalysisOp
2629
1923
  updateIntervalInMs?: number;
2630
1924
  }
2631
1925
 
2632
- /**
2633
- * Defines values for ScriptKind. \
2634
- * {@link KnownScriptKind} can be used interchangeably with ScriptKind,
2635
- * this enum contains the known values that the service supports.
2636
- * ### Known values supported by the service
2637
- * **Latin**
2638
- */
2639
- export declare type ScriptKind = string;
2640
-
2641
1926
  /**
2642
1927
  * The predicted sentiment for a given span of text. For more information
2643
1928
  * regarding text sentiment, see {@link https://docs.microsoft.com//azure/cognitive-services/language-service/sentiment-opinion-mining/overview}.
@@ -2745,36 +2030,6 @@ export declare interface SentimentConfidenceScores {
2745
2030
  negative: number;
2746
2031
  }
2747
2032
 
2748
- /** Represents the speed entity resolution model. */
2749
- export declare interface SpeedResolution extends BaseResolution, QuantityResolution {
2750
- /** Polymorphic discriminator, which specifies the different types this object can be */
2751
- resolutionKind: "SpeedResolution";
2752
- /** The speed Unit of measurement */
2753
- unit: SpeedUnit;
2754
- }
2755
-
2756
- /**
2757
- * Defines values for SpeedUnit. \
2758
- * {@link KnownSpeedUnit} can be used interchangeably with SpeedUnit,
2759
- * this enum contains the known values that the service supports.
2760
- * ### Known values supported by the service
2761
- * **Unspecified** \
2762
- * **MeterPerSecond** \
2763
- * **KilometerPerHour** \
2764
- * **KilometerPerMinute** \
2765
- * **KilometerPerSecond** \
2766
- * **MilePerHour** \
2767
- * **Knot** \
2768
- * **FootPerSecond** \
2769
- * **FootPerMinute** \
2770
- * **YardPerMinute** \
2771
- * **YardPerSecond** \
2772
- * **MeterPerMillisecond** \
2773
- * **CentimeterPerMillisecond** \
2774
- * **KilometerPerMillisecond**
2775
- */
2776
- export declare type SpeedUnit = string;
2777
-
2778
2033
  /**
2779
2034
  * Defines values for StringIndexType. \
2780
2035
  * {@link KnownStringIndexType} can be used interchangeably with StringIndexType,
@@ -2845,69 +2100,6 @@ export declare interface TargetSentiment {
2845
2100
  readonly length: number;
2846
2101
  }
2847
2102
 
2848
- /** Represents the temperature entity resolution model. */
2849
- export declare interface TemperatureResolution extends BaseResolution, QuantityResolution {
2850
- /** Polymorphic discriminator, which specifies the different types this object can be */
2851
- resolutionKind: "TemperatureResolution";
2852
- /** The temperature Unit of measurement. */
2853
- unit: TemperatureUnit;
2854
- }
2855
-
2856
- /**
2857
- * Defines values for TemperatureUnit. \
2858
- * {@link KnownTemperatureUnit} can be used interchangeably with TemperatureUnit,
2859
- * this enum contains the known values that the service supports.
2860
- * ### Known values supported by the service
2861
- * **Unspecified** \
2862
- * **Fahrenheit** \
2863
- * **Kelvin** \
2864
- * **Rankine** \
2865
- * **Celsius**
2866
- */
2867
- export declare type TemperatureUnit = string;
2868
-
2869
- /**
2870
- * Defines values for TemporalModifier. \
2871
- * {@link KnownTemporalModifier} can be used interchangeably with TemporalModifier,
2872
- * this enum contains the known values that the service supports.
2873
- * ### Known values supported by the service
2874
- * **AfterApprox** \
2875
- * **Before** \
2876
- * **BeforeStart** \
2877
- * **Approx** \
2878
- * **ReferenceUndefined** \
2879
- * **SinceEnd** \
2880
- * **AfterMid** \
2881
- * **Start** \
2882
- * **After** \
2883
- * **BeforeEnd** \
2884
- * **Until** \
2885
- * **End** \
2886
- * **Less** \
2887
- * **Since** \
2888
- * **AfterStart** \
2889
- * **BeforeApprox** \
2890
- * **Mid** \
2891
- * **More**
2892
- */
2893
- export declare type TemporalModifier = string;
2894
-
2895
- /** represents the resolution of a date and/or time span. */
2896
- export declare interface TemporalSpanResolution extends BaseResolution {
2897
- /** Polymorphic discriminator, which specifies the different types this object can be */
2898
- resolutionKind: "TemporalSpanResolution";
2899
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
2900
- begin?: string;
2901
- /** An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml) */
2902
- end?: string;
2903
- /** An optional duration value formatted based on the ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601#Durations) */
2904
- duration?: string;
2905
- /** An optional modifier of a date/time instance. */
2906
- modifier?: TemporalModifier;
2907
- /** An optional triplet containing the beginning, the end, and the duration all stated as ISO 8601 formatted strings. */
2908
- timex?: string;
2909
- }
2910
-
2911
2103
  /**
2912
2104
  * A client for interacting with the text analysis features in Azure Cognitive
2913
2105
  * Language Service.
@@ -3219,10 +2411,10 @@ export declare class TextAnalysisClient {
3219
2411
  *
3220
2412
  * ```js
3221
2413
  * const documents = [<input strings>];
3222
- * const languageHint = "en";
2414
+ * const languageCode = "en";
3223
2415
  * const categoriesFilter = [KnownPiiCategory.USSocialSecurityNumber];
3224
2416
  * const domainFilter = KnownPiiDomain.Phi;
3225
- * const results = await client.analyze("PiiEntityRecognition", documents, languageHint, {
2417
+ * const results = await client.analyze("PiiEntityRecognition", documents, languageCode, {
3226
2418
  * domainFilter, categoriesFilter
3227
2419
  * });
3228
2420
  *
@@ -3252,8 +2444,7 @@ export declare class TextAnalysisClient {
3252
2444
  * about the languages supported for Entity Recognition actions can be
3253
2445
  * found in {@link https://docs.microsoft.com//azure/cognitive-services/language-service/named-entity-recognition/language-support}.
3254
2446
  * If set to "auto", the service will automatically infer the language from
3255
- * the input text. If that process fails, the value in the `defaultLanguage`
3256
- * option will be used.
2447
+ * the input text.
3257
2448
  * @param options - optional action parameters and settings for the operation
3258
2449
  *
3259
2450
  * @returns an array of results corresponding to the input documents
@@ -3313,8 +2504,7 @@ export declare class TextAnalysisClient {
3313
2504
  * about the languages supported for Entity Recognition actions can be
3314
2505
  * found in {@link https://docs.microsoft.com//azure/cognitive-services/language-service/named-entity-recognition/language-support}.
3315
2506
  * If set to "auto", the service will automatically infer the language from
3316
- * the input text. If that process fails, the value in the `defaultLanguage`
3317
- * option will be used.
2507
+ * the input text.
3318
2508
  * @param options - optional settings for the operation
3319
2509
  *
3320
2510
  * @returns an array of results corresponding to the input actions
@@ -3482,8 +2672,6 @@ export declare interface TextAnalysisSuccessResult {
3482
2672
 
3483
2673
  /** if includeStatistics=true was specified in the request this field will contain information about the request payload. */
3484
2674
  export declare interface TextDocumentBatchStatistics {
3485
- /** Describes unknown properties. The value of an unknown property can be of "any" type. */
3486
- [property: string]: any;
3487
2675
  /** Number of documents submitted in the request. */
3488
2676
  documentCount: number;
3489
2677
  /** Number of valid documents. This excludes empty, over-size limit or non-supported languages documents. */
@@ -3500,7 +2688,7 @@ export declare interface TextDocumentInput {
3500
2688
  id: string;
3501
2689
  /** The input text to process. */
3502
2690
  text: string;
3503
- /** (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. For Auto Language Detection, use "auto". If not set, use "en" for English as default. */
2691
+ /** (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. */
3504
2692
  language?: string;
3505
2693
  }
3506
2694
 
@@ -3515,50 +2703,6 @@ export declare interface TextDocumentStatistics {
3515
2703
  /** Defines values for TokenSentimentLabel. */
3516
2704
  export declare type TokenSentimentLabel = "positive" | "mixed" | "negative";
3517
2705
 
3518
- /** Represents the volume entity resolution model. */
3519
- export declare interface VolumeResolution extends BaseResolution, QuantityResolution {
3520
- /** Polymorphic discriminator, which specifies the different types this object can be */
3521
- resolutionKind: "VolumeResolution";
3522
- /** The Volume Unit of measurement */
3523
- unit: VolumeUnit;
3524
- }
3525
-
3526
- /**
3527
- * Defines values for VolumeUnit. \
3528
- * {@link KnownVolumeUnit} can be used interchangeably with VolumeUnit,
3529
- * this enum contains the known values that the service supports.
3530
- * ### Known values supported by the service
3531
- * **Unspecified** \
3532
- * **CubicMeter** \
3533
- * **CubicCentimeter** \
3534
- * **CubicMillimeter** \
3535
- * **Hectoliter** \
3536
- * **Decaliter** \
3537
- * **Liter** \
3538
- * **Centiliter** \
3539
- * **Milliliter** \
3540
- * **CubicYard** \
3541
- * **CubicInch** \
3542
- * **CubicFoot** \
3543
- * **CubicMile** \
3544
- * **FluidOunce** \
3545
- * **Teaspoon** \
3546
- * **Tablespoon** \
3547
- * **Pint** \
3548
- * **Quart** \
3549
- * **Cup** \
3550
- * **Gill** \
3551
- * **Pinch** \
3552
- * **FluidDram** \
3553
- * **Barrel** \
3554
- * **Minim** \
3555
- * **Cord** \
3556
- * **Peck** \
3557
- * **Bushel** \
3558
- * **Hogshead**
3559
- */
3560
- export declare type VolumeUnit = string;
3561
-
3562
2706
  /**
3563
2707
  * Defines values for WarningCode. \
3564
2708
  * {@link KnownWarningCode} can be used interchangeably with WarningCode,
@@ -3569,44 +2713,4 @@ export declare type VolumeUnit = string;
3569
2713
  */
3570
2714
  export declare type WarningCode = string;
3571
2715
 
3572
- /** Represents the weight entity resolution model. */
3573
- export declare interface WeightResolution extends BaseResolution, QuantityResolution {
3574
- /** Polymorphic discriminator, which specifies the different types this object can be */
3575
- resolutionKind: "WeightResolution";
3576
- /** The weight Unit of measurement. */
3577
- unit: WeightUnit;
3578
- }
3579
-
3580
- /**
3581
- * Defines values for WeightUnit. \
3582
- * {@link KnownWeightUnit} can be used interchangeably with WeightUnit,
3583
- * this enum contains the known values that the service supports.
3584
- * ### Known values supported by the service
3585
- * **Unspecified** \
3586
- * **Kilogram** \
3587
- * **Gram** \
3588
- * **Milligram** \
3589
- * **Gallon** \
3590
- * **MetricTon** \
3591
- * **Ton** \
3592
- * **Pound** \
3593
- * **Ounce** \
3594
- * **Grain** \
3595
- * **PennyWeight** \
3596
- * **LongTonBritish** \
3597
- * **ShortTonUS** \
3598
- * **ShortHundredWeightUS** \
3599
- * **Stone** \
3600
- * **Dram**
3601
- */
3602
- export declare type WeightUnit = string;
3603
-
3604
- /**
3605
- * Document results with potentially automatically detected language.
3606
- */
3607
- export declare type WithDetectedLanguage<T> = T & DocumentDetectedLanguage & {
3608
- /** Indicates whether the default language hint was used */
3609
- isLanguageDefaulted?: boolean;
3610
- };
3611
-
3612
2716
  export { }