@azure/search-documents 12.1.0-beta.2 → 12.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +405 -258
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/base64.browser.js +1 -1
  5. package/dist-esm/src/base64.browser.js.map +1 -1
  6. package/dist-esm/src/base64.js +1 -1
  7. package/dist-esm/src/base64.js.map +1 -1
  8. package/dist-esm/src/errorModels.js +1 -1
  9. package/dist-esm/src/errorModels.js.map +1 -1
  10. package/dist-esm/src/generated/data/models/index.js +17 -17
  11. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  12. package/dist-esm/src/generated/data/models/mappers.js +153 -48
  13. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  14. package/dist-esm/src/generated/data/searchClient.js +1 -1
  15. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  16. package/dist-esm/src/generated/service/models/index.js +43 -23
  17. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  18. package/dist-esm/src/generated/service/models/mappers.js +89 -33
  19. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  20. package/dist-esm/src/generated/service/searchServiceClient.js +1 -1
  21. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  22. package/dist-esm/src/geographyPoint.js +1 -1
  23. package/dist-esm/src/geographyPoint.js.map +1 -1
  24. package/dist-esm/src/index.js +3 -3
  25. package/dist-esm/src/index.js.map +1 -1
  26. package/dist-esm/src/indexDocumentsBatch.js +1 -1
  27. package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
  28. package/dist-esm/src/indexModels.js +1 -1
  29. package/dist-esm/src/indexModels.js.map +1 -1
  30. package/dist-esm/src/logger.js +1 -1
  31. package/dist-esm/src/logger.js.map +1 -1
  32. package/dist-esm/src/odata.js +1 -1
  33. package/dist-esm/src/odata.js.map +1 -1
  34. package/dist-esm/src/odataMetadataPolicy.js +1 -1
  35. package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
  36. package/dist-esm/src/searchApiKeyCredentialPolicy.js +1 -1
  37. package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
  38. package/dist-esm/src/searchAudience.js +1 -1
  39. package/dist-esm/src/searchAudience.js.map +1 -1
  40. package/dist-esm/src/searchClient.js +1 -1
  41. package/dist-esm/src/searchClient.js.map +1 -1
  42. package/dist-esm/src/searchIndexClient.js +1 -1
  43. package/dist-esm/src/searchIndexClient.js.map +1 -1
  44. package/dist-esm/src/searchIndexerClient.js +1 -1
  45. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  46. package/dist-esm/src/searchIndexingBufferedSender.js +1 -1
  47. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  48. package/dist-esm/src/serialization.js +1 -1
  49. package/dist-esm/src/serialization.js.map +1 -1
  50. package/dist-esm/src/serviceModels.js +1 -1
  51. package/dist-esm/src/serviceModels.js.map +1 -1
  52. package/dist-esm/src/serviceUtils.js +58 -98
  53. package/dist-esm/src/serviceUtils.js.map +1 -1
  54. package/dist-esm/src/synonymMapHelper.browser.js +1 -1
  55. package/dist-esm/src/synonymMapHelper.browser.js.map +1 -1
  56. package/dist-esm/src/synonymMapHelper.js +1 -1
  57. package/dist-esm/src/synonymMapHelper.js.map +1 -1
  58. package/dist-esm/src/tracing.js +1 -1
  59. package/dist-esm/src/tracing.js.map +1 -1
  60. package/dist-esm/src/walk.js +1 -1
  61. package/dist-esm/src/walk.js.map +1 -1
  62. package/package.json +9 -8
  63. package/types/search-documents.d.ts +380 -267
  64. package/dist-esm/src/generatedStringLiteralUnions.js +0 -4
  65. package/dist-esm/src/generatedStringLiteralUnions.js.map +0 -1
package/dist/index.js CHANGED
@@ -42,12 +42,12 @@ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
42
42
  * Code generated by Microsoft (R) AutoRest Code Generator.
43
43
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
44
44
  */
45
- /** Known values of {@link ApiVersion20240501Preview} that the service accepts. */
46
- var KnownApiVersion20240501Preview$1;
47
- (function (KnownApiVersion20240501Preview) {
48
- /** Api Version '2024-05-01-preview' */
49
- KnownApiVersion20240501Preview["TwoThousandTwentyFour0501Preview"] = "2024-05-01-preview";
50
- })(KnownApiVersion20240501Preview$1 || (KnownApiVersion20240501Preview$1 = {}));
45
+ /** Known values of {@link ApiVersion20240901Preview} that the service accepts. */
46
+ var KnownApiVersion20240901Preview$1;
47
+ (function (KnownApiVersion20240901Preview) {
48
+ /** Api Version '2024-09-01-preview' */
49
+ KnownApiVersion20240901Preview["TwoThousandTwentyFour0901Preview"] = "2024-09-01-preview";
50
+ })(KnownApiVersion20240901Preview$1 || (KnownApiVersion20240901Preview$1 = {}));
51
51
  /** Known values of {@link SemanticErrorMode} that the service accepts. */
52
52
  exports.KnownSemanticErrorMode = void 0;
53
53
  (function (KnownSemanticErrorMode) {
@@ -265,13 +265,13 @@ exports.KnownVectorThresholdKind = void 0;
265
265
  KnownVectorThresholdKind["SearchScore"] = "searchScore";
266
266
  })(exports.KnownVectorThresholdKind || (exports.KnownVectorThresholdKind = {}));
267
267
  /** Known values of {@link VectorFilterMode} that the service accepts. */
268
- var KnownVectorFilterMode;
268
+ exports.KnownVectorFilterMode = void 0;
269
269
  (function (KnownVectorFilterMode) {
270
270
  /** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */
271
271
  KnownVectorFilterMode["PostFilter"] = "postFilter";
272
272
  /** The filter will be applied before the search query. */
273
273
  KnownVectorFilterMode["PreFilter"] = "preFilter";
274
- })(KnownVectorFilterMode || (KnownVectorFilterMode = {}));
274
+ })(exports.KnownVectorFilterMode || (exports.KnownVectorFilterMode = {}));
275
275
  /** Known values of {@link HybridCountAndFacetMode} that the service accepts. */
276
276
  exports.KnownHybridCountAndFacetMode = void 0;
277
277
  (function (KnownHybridCountAndFacetMode) {
@@ -280,10 +280,20 @@ exports.KnownHybridCountAndFacetMode = void 0;
280
280
  /** Include all documents that were matched by the search query when computing 'count' and 'facets', regardless of whether or not those documents are within the 'maxTextRecallSize' retrieval window. */
281
281
  KnownHybridCountAndFacetMode["CountAllResults"] = "countAllResults";
282
282
  })(exports.KnownHybridCountAndFacetMode || (exports.KnownHybridCountAndFacetMode = {}));
283
+ /** Known values of {@link SemanticFieldState} that the service accepts. */
284
+ exports.KnownSemanticFieldState = void 0;
285
+ (function (KnownSemanticFieldState) {
286
+ /** The field was fully used for semantic enrichment. */
287
+ KnownSemanticFieldState["Used"] = "used";
288
+ /** The field was not used for semantic enrichment. */
289
+ KnownSemanticFieldState["Unused"] = "unused";
290
+ /** The field was partially used for semantic enrichment. */
291
+ KnownSemanticFieldState["Partial"] = "partial";
292
+ })(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
283
293
  /** Known values of {@link SemanticErrorReason} that the service accepts. */
284
294
  exports.KnownSemanticErrorReason = void 0;
285
295
  (function (KnownSemanticErrorReason) {
286
- /** If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. */
296
+ /** If `semanticMaxWaitInMilliseconds` was set and the semantic processing duration exceeded that value. Only the base results were returned. */
287
297
  KnownSemanticErrorReason["MaxWaitExceeded"] = "maxWaitExceeded";
288
298
  /** The request was throttled. Only the base results were returned. */
289
299
  KnownSemanticErrorReason["CapacityOverloaded"] = "capacityOverloaded";
@@ -298,16 +308,6 @@ exports.KnownSemanticSearchResultsType = void 0;
298
308
  /** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
299
309
  KnownSemanticSearchResultsType["RerankedResults"] = "rerankedResults";
300
310
  })(exports.KnownSemanticSearchResultsType || (exports.KnownSemanticSearchResultsType = {}));
301
- /** Known values of {@link SemanticFieldState} that the service accepts. */
302
- exports.KnownSemanticFieldState = void 0;
303
- (function (KnownSemanticFieldState) {
304
- /** The field was fully used for semantic enrichment. */
305
- KnownSemanticFieldState["Used"] = "used";
306
- /** The field was not used for semantic enrichment. */
307
- KnownSemanticFieldState["Unused"] = "unused";
308
- /** The field was partially used for semantic enrichment. */
309
- KnownSemanticFieldState["Partial"] = "partial";
310
- })(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
311
311
 
312
312
  /*
313
313
  * Copyright (c) Microsoft Corporation.
@@ -316,12 +316,12 @@ exports.KnownSemanticFieldState = void 0;
316
316
  * Code generated by Microsoft (R) AutoRest Code Generator.
317
317
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
318
318
  */
319
- /** Known values of {@link ApiVersion20240501Preview} that the service accepts. */
320
- var KnownApiVersion20240501Preview;
321
- (function (KnownApiVersion20240501Preview) {
322
- /** Api Version '2024-05-01-preview' */
323
- KnownApiVersion20240501Preview["TwoThousandTwentyFour0501Preview"] = "2024-05-01-preview";
324
- })(KnownApiVersion20240501Preview || (KnownApiVersion20240501Preview = {}));
319
+ /** Known values of {@link ApiVersion20240901Preview} that the service accepts. */
320
+ var KnownApiVersion20240901Preview;
321
+ (function (KnownApiVersion20240901Preview) {
322
+ /** Api Version '2024-09-01-preview' */
323
+ KnownApiVersion20240901Preview["TwoThousandTwentyFour0901Preview"] = "2024-09-01-preview";
324
+ })(KnownApiVersion20240901Preview || (KnownApiVersion20240901Preview = {}));
325
325
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
326
326
  exports.KnownSearchIndexerDataSourceType = void 0;
327
327
  (function (KnownSearchIndexerDataSourceType) {
@@ -415,7 +415,7 @@ exports.KnownIndexProjectionMode = void 0;
415
415
  KnownIndexProjectionMode["IncludeIndexingParentDocuments"] = "includeIndexingParentDocuments";
416
416
  })(exports.KnownIndexProjectionMode || (exports.KnownIndexProjectionMode = {}));
417
417
  /** Known values of {@link SearchFieldDataType} that the service accepts. */
418
- var KnownSearchFieldDataType;
418
+ exports.KnownSearchFieldDataType = void 0;
419
419
  (function (KnownSearchFieldDataType) {
420
420
  /** Indicates that a field contains a string. */
421
421
  KnownSearchFieldDataType["String"] = "Edm.String";
@@ -443,7 +443,7 @@ var KnownSearchFieldDataType;
443
443
  KnownSearchFieldDataType["SByte"] = "Edm.SByte";
444
444
  /** Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte). */
445
445
  KnownSearchFieldDataType["Byte"] = "Edm.Byte";
446
- })(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
446
+ })(exports.KnownSearchFieldDataType || (exports.KnownSearchFieldDataType = {}));
447
447
  /** Known values of {@link LexicalAnalyzerName} that the service accepts. */
448
448
  exports.KnownLexicalAnalyzerName = void 0;
449
449
  (function (KnownLexicalAnalyzerName) {
@@ -621,7 +621,7 @@ exports.KnownLexicalAnalyzerName = void 0;
621
621
  KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
622
622
  /** Standard Lucene analyzer. */
623
623
  KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
624
- /** Standard ASCII Folding Lucene analyzer. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */
624
+ /** Standard ASCII Folding Lucene analyzer. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */
625
625
  KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
626
626
  /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */
627
627
  KnownLexicalAnalyzerName["Keyword"] = "keyword";
@@ -655,13 +655,13 @@ exports.KnownVectorEncodingFormat = void 0;
655
655
  KnownVectorEncodingFormat["PackedBit"] = "packedBit";
656
656
  })(exports.KnownVectorEncodingFormat || (exports.KnownVectorEncodingFormat = {}));
657
657
  /** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
658
- var KnownVectorSearchAlgorithmKind;
658
+ exports.KnownVectorSearchAlgorithmKind = void 0;
659
659
  (function (KnownVectorSearchAlgorithmKind) {
660
660
  /** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
661
661
  KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
662
662
  /** Exhaustive KNN algorithm which will perform brute-force search. */
663
663
  KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
664
- })(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
664
+ })(exports.KnownVectorSearchAlgorithmKind || (exports.KnownVectorSearchAlgorithmKind = {}));
665
665
  /** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */
666
666
  exports.KnownVectorSearchVectorizerKind = void 0;
667
667
  (function (KnownVectorSearchVectorizerKind) {
@@ -679,9 +679,11 @@ exports.KnownVectorSearchCompressionKind = void 0;
679
679
  (function (KnownVectorSearchCompressionKind) {
680
680
  /** Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. */
681
681
  KnownVectorSearchCompressionKind["ScalarQuantization"] = "scalarQuantization";
682
+ /** Binary Quantization, a type of compression method. In binary quantization, the original vectors values are compressed to the narrower binary type by discretizing and representing each component of a vector using binary values, thereby reducing the overall data size. */
683
+ KnownVectorSearchCompressionKind["BinaryQuantization"] = "binaryQuantization";
682
684
  })(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
683
685
  /** Known values of {@link TokenFilterName} that the service accepts. */
684
- exports.KnownTokenFilterName = void 0;
686
+ var KnownTokenFilterName;
685
687
  (function (KnownTokenFilterName) {
686
688
  /** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
687
689
  KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
@@ -737,7 +739,7 @@ exports.KnownTokenFilterName = void 0;
737
739
  KnownTokenFilterName["Snowball"] = "snowball";
738
740
  /** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
739
741
  KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
740
- /** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
742
+ /** Language specific stemming filter. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
741
743
  KnownTokenFilterName["Stemmer"] = "stemmer";
742
744
  /** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
743
745
  KnownTokenFilterName["Stopwords"] = "stopwords";
@@ -751,15 +753,15 @@ exports.KnownTokenFilterName = void 0;
751
753
  KnownTokenFilterName["Uppercase"] = "uppercase";
752
754
  /** Splits words into subwords and performs optional transformations on subword groups. */
753
755
  KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
754
- })(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
756
+ })(KnownTokenFilterName || (KnownTokenFilterName = {}));
755
757
  /** Known values of {@link CharFilterName} that the service accepts. */
756
- exports.KnownCharFilterName = void 0;
758
+ var KnownCharFilterName;
757
759
  (function (KnownCharFilterName) {
758
760
  /** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
759
761
  KnownCharFilterName["HtmlStrip"] = "html_strip";
760
- })(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
762
+ })(KnownCharFilterName || (KnownCharFilterName = {}));
761
763
  /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
762
- var KnownVectorSearchAlgorithmMetric;
764
+ exports.KnownVectorSearchAlgorithmMetric = void 0;
763
765
  (function (KnownVectorSearchAlgorithmMetric) {
764
766
  /** Measures the angle between vectors to quantify their similarity, disregarding magnitude. The smaller the angle, the closer the similarity. */
765
767
  KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
@@ -769,13 +771,13 @@ var KnownVectorSearchAlgorithmMetric;
769
771
  KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
770
772
  /** Only applicable to bit-packed binary data types. Determines dissimilarity by counting differing positions in binary vectors. The fewer differences, the closer the similarity. */
771
773
  KnownVectorSearchAlgorithmMetric["Hamming"] = "hamming";
772
- })(KnownVectorSearchAlgorithmMetric || (KnownVectorSearchAlgorithmMetric = {}));
773
- /** Known values of {@link VectorSearchCompressionTargetDataType} that the service accepts. */
774
- exports.KnownVectorSearchCompressionTargetDataType = void 0;
775
- (function (KnownVectorSearchCompressionTargetDataType) {
774
+ })(exports.KnownVectorSearchAlgorithmMetric || (exports.KnownVectorSearchAlgorithmMetric = {}));
775
+ /** Known values of {@link VectorSearchCompressionTarget} that the service accepts. */
776
+ exports.KnownVectorSearchCompressionTarget = void 0;
777
+ (function (KnownVectorSearchCompressionTarget) {
776
778
  /** Int8 */
777
- KnownVectorSearchCompressionTargetDataType["Int8"] = "int8";
778
- })(exports.KnownVectorSearchCompressionTargetDataType || (exports.KnownVectorSearchCompressionTargetDataType = {}));
779
+ KnownVectorSearchCompressionTarget["Int8"] = "int8";
780
+ })(exports.KnownVectorSearchCompressionTarget || (exports.KnownVectorSearchCompressionTarget = {}));
779
781
  /** Known values of {@link AzureOpenAIModelName} that the service accepts. */
780
782
  exports.KnownAzureOpenAIModelName = void 0;
781
783
  (function (KnownAzureOpenAIModelName) {
@@ -785,8 +787,6 @@ exports.KnownAzureOpenAIModelName = void 0;
785
787
  KnownAzureOpenAIModelName["TextEmbedding3Large"] = "text-embedding-3-large";
786
788
  /** TextEmbedding3Small */
787
789
  KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
788
- /** Experimental */
789
- KnownAzureOpenAIModelName["Experimental"] = "experimental";
790
790
  })(exports.KnownAzureOpenAIModelName || (exports.KnownAzureOpenAIModelName = {}));
791
791
  /** Known values of {@link AIStudioModelCatalogName} that the service accepts. */
792
792
  exports.KnownAIStudioModelCatalogName = void 0;
@@ -1184,18 +1184,18 @@ exports.KnownOcrSkillLanguage = void 0;
1184
1184
  /** Unknown (All) */
1185
1185
  KnownOcrSkillLanguage["Unk"] = "unk";
1186
1186
  })(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
1187
- /** Known values of {@link LineEnding} that the service accepts. */
1188
- exports.KnownLineEnding = void 0;
1189
- (function (KnownLineEnding) {
1187
+ /** Known values of {@link OcrLineEnding} that the service accepts. */
1188
+ exports.KnownOcrLineEnding = void 0;
1189
+ (function (KnownOcrLineEnding) {
1190
1190
  /** Lines are separated by a single space character. */
1191
- KnownLineEnding["Space"] = "space";
1191
+ KnownOcrLineEnding["Space"] = "space";
1192
1192
  /** Lines are separated by a carriage return ('\r') character. */
1193
- KnownLineEnding["CarriageReturn"] = "carriageReturn";
1193
+ KnownOcrLineEnding["CarriageReturn"] = "carriageReturn";
1194
1194
  /** Lines are separated by a single line feed ('\n') character. */
1195
- KnownLineEnding["LineFeed"] = "lineFeed";
1195
+ KnownOcrLineEnding["LineFeed"] = "lineFeed";
1196
1196
  /** Lines are separated by a carriage return and a line feed ('\r\n') character. */
1197
- KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
1198
- })(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
1197
+ KnownOcrLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
1198
+ })(exports.KnownOcrLineEnding || (exports.KnownOcrLineEnding = {}));
1199
1199
  /** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
1200
1200
  exports.KnownImageAnalysisSkillLanguage = void 0;
1201
1201
  (function (KnownImageAnalysisSkillLanguage) {
@@ -1518,6 +1518,26 @@ exports.KnownTextSplitMode = void 0;
1518
1518
  /** Split the text into individual sentences. */
1519
1519
  KnownTextSplitMode["Sentences"] = "sentences";
1520
1520
  })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
1521
+ /** Known values of {@link SplitSkillUnit} that the service accepts. */
1522
+ exports.KnownSplitSkillUnit = void 0;
1523
+ (function (KnownSplitSkillUnit) {
1524
+ /** The length will be measured by character. */
1525
+ KnownSplitSkillUnit["Characters"] = "characters";
1526
+ /** The length will be measured by an AzureOpenAI tokenizer from the tiktoken library. */
1527
+ KnownSplitSkillUnit["AzureOpenAITokens"] = "azureOpenAITokens";
1528
+ })(exports.KnownSplitSkillUnit || (exports.KnownSplitSkillUnit = {}));
1529
+ /** Known values of {@link SplitSkillEncoderModelName} that the service accepts. */
1530
+ exports.KnownSplitSkillEncoderModelName = void 0;
1531
+ (function (KnownSplitSkillEncoderModelName) {
1532
+ /** Refers to a base model trained with a 50,000 token vocabulary, often used in general natural language processing tasks. */
1533
+ KnownSplitSkillEncoderModelName["R50KBase"] = "r50k_base";
1534
+ /** A base model with a 50,000 token vocabulary, optimized for prompt-based tasks. */
1535
+ KnownSplitSkillEncoderModelName["P50KBase"] = "p50k_base";
1536
+ /** Similar to p50k_base but fine-tuned for editing or rephrasing tasks with a 50,000 token vocabulary. */
1537
+ KnownSplitSkillEncoderModelName["P50KEdit"] = "p50k_edit";
1538
+ /** A base model with a 100,000 token vocabulary. */
1539
+ KnownSplitSkillEncoderModelName["CL100KBase"] = "cl100k_base";
1540
+ })(exports.KnownSplitSkillEncoderModelName || (exports.KnownSplitSkillEncoderModelName = {}));
1521
1541
  /** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
1522
1542
  exports.KnownCustomEntityLookupSkillLanguage = void 0;
1523
1543
  (function (KnownCustomEntityLookupSkillLanguage) {
@@ -1689,7 +1709,7 @@ exports.KnownTextTranslationSkillLanguage = void 0;
1689
1709
  KnownTextTranslationSkillLanguage["Pa"] = "pa";
1690
1710
  })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
1691
1711
  /** Known values of {@link LexicalTokenizerName} that the service accepts. */
1692
- exports.KnownLexicalTokenizerName = void 0;
1712
+ var KnownLexicalTokenizerName;
1693
1713
  (function (KnownLexicalTokenizerName) {
1694
1714
  /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */
1695
1715
  KnownLexicalTokenizerName["Classic"] = "classic";
@@ -1717,7 +1737,7 @@ exports.KnownLexicalTokenizerName = void 0;
1717
1737
  KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
1718
1738
  /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
1719
1739
  KnownLexicalTokenizerName["Whitespace"] = "whitespace";
1720
- })(exports.KnownLexicalTokenizerName || (exports.KnownLexicalTokenizerName = {}));
1740
+ })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
1721
1741
  /** Known values of {@link RegexFlags} that the service accepts. */
1722
1742
  exports.KnownRegexFlags = void 0;
1723
1743
  (function (KnownRegexFlags) {
@@ -1740,7 +1760,7 @@ exports.KnownRegexFlags = void 0;
1740
1760
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
1741
1761
 
1742
1762
  // Copyright (c) Microsoft Corporation.
1743
- // Licensed under the MIT license.
1763
+ // Licensed under the MIT License.
1744
1764
  const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
1745
1765
  /**
1746
1766
  * Represents a geographic point in global coordinates.
@@ -1768,7 +1788,7 @@ class GeographyPoint {
1768
1788
  }
1769
1789
 
1770
1790
  // Copyright (c) Microsoft Corporation.
1771
- // Licensed under the MIT license.
1791
+ // Licensed under the MIT License.
1772
1792
  /**
1773
1793
  * Class used to perform batch operations
1774
1794
  * with multiple documents to the index.
@@ -1831,7 +1851,7 @@ class IndexDocumentsBatch {
1831
1851
  }
1832
1852
 
1833
1853
  // Copyright (c) Microsoft Corporation.
1834
- // Licensed under the MIT license.
1854
+ // Licensed under the MIT License.
1835
1855
  function formatNullAndUndefined(input) {
1836
1856
  if (input === null || input === undefined) {
1837
1857
  return "null";
@@ -1878,7 +1898,7 @@ function odata(strings, ...values) {
1878
1898
  }
1879
1899
 
1880
1900
  // Copyright (c) Microsoft Corporation.
1881
- // Licensed under the MIT license.
1901
+ // Licensed under the MIT License.
1882
1902
  /**
1883
1903
  * Known values for Search Audience
1884
1904
  */
@@ -1899,7 +1919,7 @@ exports.KnownSearchAudience = void 0;
1899
1919
  })(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
1900
1920
 
1901
1921
  // Copyright (c) Microsoft Corporation.
1902
- // Licensed under the MIT license.
1922
+ // Licensed under the MIT License.
1903
1923
  /**
1904
1924
  * Encodes a string in base64 format.
1905
1925
  * @param value - The string to encode.
@@ -2070,20 +2090,6 @@ const SearchDocumentsResult = {
2070
2090
  className: "SearchRequest",
2071
2091
  },
2072
2092
  },
2073
- semanticPartialResponseReason: {
2074
- serializedName: "@search\\.semanticPartialResponseReason",
2075
- readOnly: true,
2076
- type: {
2077
- name: "String",
2078
- },
2079
- },
2080
- semanticPartialResponseType: {
2081
- serializedName: "@search\\.semanticPartialResponseType",
2082
- readOnly: true,
2083
- type: {
2084
- name: "String",
2085
- },
2086
- },
2087
2093
  results: {
2088
2094
  serializedName: "value",
2089
2095
  required: true,
@@ -2105,6 +2111,20 @@ const SearchDocumentsResult = {
2105
2111
  name: "String",
2106
2112
  },
2107
2113
  },
2114
+ semanticPartialResponseReason: {
2115
+ serializedName: "@search\\.semanticPartialResponseReason",
2116
+ readOnly: true,
2117
+ type: {
2118
+ name: "String",
2119
+ },
2120
+ },
2121
+ semanticPartialResponseType: {
2122
+ serializedName: "@search\\.semanticPartialResponseType",
2123
+ readOnly: true,
2124
+ type: {
2125
+ name: "String",
2126
+ },
2127
+ },
2108
2128
  },
2109
2129
  },
2110
2130
  };
@@ -2260,34 +2280,6 @@ const SearchRequest = {
2260
2280
  name: "String",
2261
2281
  },
2262
2282
  },
2263
- semanticQuery: {
2264
- serializedName: "semanticQuery",
2265
- type: {
2266
- name: "String",
2267
- },
2268
- },
2269
- semanticConfigurationName: {
2270
- serializedName: "semanticConfiguration",
2271
- type: {
2272
- name: "String",
2273
- },
2274
- },
2275
- semanticErrorHandling: {
2276
- serializedName: "semanticErrorHandling",
2277
- type: {
2278
- name: "String",
2279
- },
2280
- },
2281
- semanticMaxWaitInMilliseconds: {
2282
- constraints: {
2283
- InclusiveMinimum: 700,
2284
- },
2285
- serializedName: "semanticMaxWaitInMilliseconds",
2286
- nullable: true,
2287
- type: {
2288
- name: "Number",
2289
- },
2290
- },
2291
2283
  debug: {
2292
2284
  serializedName: "debug",
2293
2285
  type: {
@@ -2325,12 +2317,6 @@ const SearchRequest = {
2325
2317
  name: "String",
2326
2318
  },
2327
2319
  },
2328
- answers: {
2329
- serializedName: "answers",
2330
- type: {
2331
- name: "String",
2332
- },
2333
- },
2334
2320
  select: {
2335
2321
  serializedName: "select",
2336
2322
  type: {
@@ -2349,6 +2335,40 @@ const SearchRequest = {
2349
2335
  name: "Number",
2350
2336
  },
2351
2337
  },
2338
+ semanticConfigurationName: {
2339
+ serializedName: "semanticConfiguration",
2340
+ type: {
2341
+ name: "String",
2342
+ },
2343
+ },
2344
+ semanticErrorHandling: {
2345
+ serializedName: "semanticErrorHandling",
2346
+ type: {
2347
+ name: "String",
2348
+ },
2349
+ },
2350
+ semanticMaxWaitInMilliseconds: {
2351
+ constraints: {
2352
+ InclusiveMinimum: 700,
2353
+ },
2354
+ serializedName: "semanticMaxWaitInMilliseconds",
2355
+ nullable: true,
2356
+ type: {
2357
+ name: "Number",
2358
+ },
2359
+ },
2360
+ semanticQuery: {
2361
+ serializedName: "semanticQuery",
2362
+ type: {
2363
+ name: "String",
2364
+ },
2365
+ },
2366
+ answers: {
2367
+ serializedName: "answers",
2368
+ type: {
2369
+ name: "String",
2370
+ },
2371
+ },
2352
2372
  captions: {
2353
2373
  serializedName: "captions",
2354
2374
  type: {
@@ -2443,6 +2463,12 @@ const VectorQuery = {
2443
2463
  className: "VectorThreshold",
2444
2464
  },
2445
2465
  },
2466
+ filterOverride: {
2467
+ serializedName: "filterOverride",
2468
+ type: {
2469
+ name: "String",
2470
+ },
2471
+ },
2446
2472
  },
2447
2473
  },
2448
2474
  };
@@ -2585,6 +2611,13 @@ const DocumentDebugInfo = {
2585
2611
  className: "SemanticDebugInfo",
2586
2612
  },
2587
2613
  },
2614
+ vectors: {
2615
+ serializedName: "vectors",
2616
+ type: {
2617
+ name: "Composite",
2618
+ className: "VectorsDebugInfo",
2619
+ },
2620
+ },
2588
2621
  },
2589
2622
  },
2590
2623
  };
@@ -2687,6 +2720,98 @@ const QueryResultDocumentRerankerInput = {
2687
2720
  },
2688
2721
  },
2689
2722
  };
2723
+ const VectorsDebugInfo = {
2724
+ type: {
2725
+ name: "Composite",
2726
+ className: "VectorsDebugInfo",
2727
+ modelProperties: {
2728
+ subscores: {
2729
+ serializedName: "subscores",
2730
+ type: {
2731
+ name: "Composite",
2732
+ className: "QueryResultDocumentSubscores",
2733
+ },
2734
+ },
2735
+ },
2736
+ },
2737
+ };
2738
+ const QueryResultDocumentSubscores = {
2739
+ type: {
2740
+ name: "Composite",
2741
+ className: "QueryResultDocumentSubscores",
2742
+ modelProperties: {
2743
+ text: {
2744
+ serializedName: "text",
2745
+ type: {
2746
+ name: "Composite",
2747
+ className: "TextResult",
2748
+ },
2749
+ },
2750
+ vectors: {
2751
+ serializedName: "vectors",
2752
+ readOnly: true,
2753
+ type: {
2754
+ name: "Sequence",
2755
+ element: {
2756
+ type: {
2757
+ name: "Dictionary",
2758
+ value: {
2759
+ type: {
2760
+ name: "Composite",
2761
+ className: "SingleVectorFieldResult",
2762
+ },
2763
+ },
2764
+ },
2765
+ },
2766
+ },
2767
+ },
2768
+ documentBoost: {
2769
+ serializedName: "documentBoost",
2770
+ readOnly: true,
2771
+ type: {
2772
+ name: "Number",
2773
+ },
2774
+ },
2775
+ },
2776
+ },
2777
+ };
2778
+ const TextResult = {
2779
+ type: {
2780
+ name: "Composite",
2781
+ className: "TextResult",
2782
+ modelProperties: {
2783
+ searchScore: {
2784
+ serializedName: "searchScore",
2785
+ readOnly: true,
2786
+ type: {
2787
+ name: "Number",
2788
+ },
2789
+ },
2790
+ },
2791
+ },
2792
+ };
2793
+ const SingleVectorFieldResult = {
2794
+ type: {
2795
+ name: "Composite",
2796
+ className: "SingleVectorFieldResult",
2797
+ modelProperties: {
2798
+ searchScore: {
2799
+ serializedName: "searchScore",
2800
+ readOnly: true,
2801
+ type: {
2802
+ name: "Number",
2803
+ },
2804
+ },
2805
+ vectorSimilarity: {
2806
+ serializedName: "vectorSimilarity",
2807
+ readOnly: true,
2808
+ type: {
2809
+ name: "Number",
2810
+ },
2811
+ },
2812
+ },
2813
+ },
2814
+ };
2690
2815
  const SuggestDocumentsResult = {
2691
2816
  type: {
2692
2817
  name: "Composite",
@@ -3161,14 +3286,17 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
3161
3286
  QueryCaptionResult: QueryCaptionResult,
3162
3287
  QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
3163
3288
  QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
3289
+ QueryResultDocumentSubscores: QueryResultDocumentSubscores,
3164
3290
  SearchDocumentsResult: SearchDocumentsResult,
3165
3291
  SearchRequest: SearchRequest,
3166
3292
  SearchResult: SearchResult,
3167
3293
  SearchScoreThreshold: SearchScoreThreshold,
3168
3294
  SemanticDebugInfo: SemanticDebugInfo,
3295
+ SingleVectorFieldResult: SingleVectorFieldResult,
3169
3296
  SuggestDocumentsResult: SuggestDocumentsResult,
3170
3297
  SuggestRequest: SuggestRequest,
3171
3298
  SuggestResult: SuggestResult,
3299
+ TextResult: TextResult,
3172
3300
  VectorQuery: VectorQuery,
3173
3301
  VectorSimilarityThreshold: VectorSimilarityThreshold,
3174
3302
  VectorThreshold: VectorThreshold,
@@ -3176,6 +3304,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
3176
3304
  VectorizableImageUrlQuery: VectorizableImageUrlQuery,
3177
3305
  VectorizableTextQuery: VectorizableTextQuery,
3178
3306
  VectorizedQuery: VectorizedQuery,
3307
+ VectorsDebugInfo: VectorsDebugInfo,
3179
3308
  discriminators: discriminators$1
3180
3309
  });
3181
3310
 
@@ -4130,7 +4259,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
4130
4259
  const defaults = {
4131
4260
  requestContentType: "application/json; charset=utf-8",
4132
4261
  };
4133
- const packageDetails = `azsdk-js-search-documents/12.1.0-beta.2`;
4262
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.1`;
4134
4263
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4135
4264
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4136
4265
  : `${packageDetails}`;
@@ -4173,14 +4302,14 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
4173
4302
  };
4174
4303
 
4175
4304
  // Copyright (c) Microsoft Corporation.
4176
- // Licensed under the MIT license.
4305
+ // Licensed under the MIT License.
4177
4306
  /**
4178
4307
  * The `@azure/logger` configuration for this package.
4179
4308
  */
4180
4309
  const logger = logger$1.createClientLogger("search");
4181
4310
 
4182
4311
  // Copyright (c) Microsoft Corporation.
4183
- // Licensed under the MIT license.
4312
+ // Licensed under the MIT License.
4184
4313
  const AcceptHeaderName = "Accept";
4185
4314
  const odataMetadataPolicy = "OdataMetadataPolicy";
4186
4315
  /**
@@ -4198,7 +4327,7 @@ function createOdataMetadataPolicy(metadataLevel) {
4198
4327
  }
4199
4328
 
4200
4329
  // Copyright (c) Microsoft Corporation.
4201
- // Licensed under the MIT license.
4330
+ // Licensed under the MIT License.
4202
4331
  const API_KEY_HEADER_NAME = "api-key";
4203
4332
  const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
4204
4333
  /**
@@ -4218,7 +4347,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
4218
4347
  }
4219
4348
 
4220
4349
  // Copyright (c) Microsoft Corporation.
4221
- // Licensed under the MIT license.
4350
+ // Licensed under the MIT License.
4222
4351
  function walk(v, fn) {
4223
4352
  var _a;
4224
4353
  const seen = new Set();
@@ -4296,7 +4425,7 @@ function shallowCopy(value) {
4296
4425
  }
4297
4426
 
4298
4427
  // Copyright (c) Microsoft Corporation.
4299
- // Licensed under the MIT license.
4428
+ // Licensed under the MIT License.
4300
4429
  const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
4301
4430
  const GeoJSONPointTypeName = "Point";
4302
4431
  const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
@@ -4433,7 +4562,7 @@ function isValidObject(obj, options = {}) {
4433
4562
  }
4434
4563
 
4435
4564
  // Copyright (c) Microsoft Corporation.
4436
- // Licensed under the MIT license.
4565
+ // Licensed under the MIT License.
4437
4566
  function isComplexField(field) {
4438
4567
  return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
4439
4568
  }
@@ -5087,75 +5216,37 @@ exports.KnownAnalyzerNames = void 0;
5087
5216
  // END manually modified generated interfaces
5088
5217
 
5089
5218
  // Copyright (c) Microsoft Corporation.
5090
- // Licensed under the MIT license.
5091
- const defaultServiceVersion = "2024-05-01-Preview";
5219
+ // Licensed under the MIT License.
5220
+ const defaultServiceVersion = "2024-09-01-Preview";
5221
+ const knownSkills = {
5222
+ "#Microsoft.Skills.Custom.WebApiSkill": true,
5223
+ "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": true,
5224
+ "#Microsoft.Skills.Text.CustomEntityLookupSkill": true,
5225
+ "#Microsoft.Skills.Text.EntityRecognitionSkill": true,
5226
+ "#Microsoft.Skills.Text.KeyPhraseExtractionSkill": true,
5227
+ "#Microsoft.Skills.Text.LanguageDetectionSkill": true,
5228
+ "#Microsoft.Skills.Text.MergeSkill": true,
5229
+ "#Microsoft.Skills.Text.PIIDetectionSkill": true,
5230
+ "#Microsoft.Skills.Text.SentimentSkill": true,
5231
+ "#Microsoft.Skills.Text.SplitSkill": true,
5232
+ "#Microsoft.Skills.Text.TranslationSkill": true,
5233
+ "#Microsoft.Skills.Text.V3.EntityLinkingSkill": true,
5234
+ "#Microsoft.Skills.Text.V3.EntityRecognitionSkill": true,
5235
+ "#Microsoft.Skills.Text.V3.SentimentSkill": true,
5236
+ "#Microsoft.Skills.Util.ConditionalSkill": true,
5237
+ "#Microsoft.Skills.Util.DocumentExtractionSkill": true,
5238
+ "#Microsoft.Skills.Util.ShaperSkill": true,
5239
+ "#Microsoft.Skills.Vision.ImageAnalysisSkill": true,
5240
+ "#Microsoft.Skills.Vision.OcrSkill": true,
5241
+ "#Microsoft.Skills.Custom.AmlSkill": true,
5242
+ "#Microsoft.Skills.Vision.VectorizeSkill": true,
5243
+ };
5092
5244
  function convertSkillsToPublic(skills) {
5093
5245
  if (!skills) {
5094
5246
  return skills;
5095
5247
  }
5096
- const result = [];
5097
- for (const skill of skills) {
5098
- switch (skill.odatatype) {
5099
- case "#Microsoft.Skills.Util.ConditionalSkill":
5100
- result.push(skill);
5101
- break;
5102
- case "#Microsoft.Skills.Text.KeyPhraseExtractionSkill":
5103
- result.push(skill);
5104
- break;
5105
- case "#Microsoft.Skills.Vision.OcrSkill":
5106
- result.push(skill);
5107
- break;
5108
- case "#Microsoft.Skills.Vision.ImageAnalysisSkill":
5109
- result.push(skill);
5110
- break;
5111
- case "#Microsoft.Skills.Text.LanguageDetectionSkill":
5112
- result.push(skill);
5113
- break;
5114
- case "#Microsoft.Skills.Util.ShaperSkill":
5115
- result.push(skill);
5116
- break;
5117
- case "#Microsoft.Skills.Text.MergeSkill":
5118
- result.push(skill);
5119
- break;
5120
- case "#Microsoft.Skills.Text.EntityRecognitionSkill":
5121
- result.push(skill);
5122
- break;
5123
- case "#Microsoft.Skills.Text.SentimentSkill":
5124
- result.push(skill);
5125
- break;
5126
- case "#Microsoft.Skills.Text.SplitSkill":
5127
- result.push(skill);
5128
- break;
5129
- case "#Microsoft.Skills.Text.PIIDetectionSkill":
5130
- result.push(skill);
5131
- break;
5132
- case "#Microsoft.Skills.Text.V3.EntityRecognitionSkill":
5133
- result.push(skill);
5134
- break;
5135
- case "#Microsoft.Skills.Text.V3.EntityLinkingSkill":
5136
- result.push(skill);
5137
- break;
5138
- case "#Microsoft.Skills.Text.V3.SentimentSkill":
5139
- result.push(skill);
5140
- break;
5141
- case "#Microsoft.Skills.Text.TranslationSkill":
5142
- result.push(skill);
5143
- break;
5144
- case "#Microsoft.Skills.Custom.WebApiSkill":
5145
- result.push(skill);
5146
- break;
5147
- case "#Microsoft.Skills.Text.CustomEntityLookupSkill":
5148
- result.push(skill);
5149
- break;
5150
- case "#Microsoft.Skills.Util.DocumentExtractionSkill":
5151
- result.push(skill);
5152
- break;
5153
- case "#Microsoft.Skills.Custom.AmlSkill":
5154
- result.push(skill);
5155
- break;
5156
- }
5157
- }
5158
- return result;
5248
+ // This validation has already GAed
5249
+ return skills.filter((skill) => knownSkills[skill.odatatype]);
5159
5250
  }
5160
5251
  function convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount) {
5161
5252
  if (!cognitiveServicesAccount) {
@@ -5255,7 +5346,7 @@ function convertFieldsToPublic(fields) {
5255
5346
  });
5256
5347
  }
5257
5348
  function convertFieldsToGenerated(fields) {
5258
- return fields.map((field) => {
5349
+ return fields === null || fields === void 0 ? void 0 : fields.map((field) => {
5259
5350
  var _a, _b, _c, _d;
5260
5351
  if (isComplexField(field)) {
5261
5352
  return {
@@ -5382,35 +5473,39 @@ function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer)
5382
5473
  if (!generatedVectorizer) {
5383
5474
  return generatedVectorizer;
5384
5475
  }
5385
- switch (generatedVectorizer.kind) {
5386
- case "azureOpenAI": {
5387
- const { azureOpenAIParameters } = generatedVectorizer;
5388
- const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters === null || azureOpenAIParameters === void 0 ? void 0 : azureOpenAIParameters.authIdentity);
5389
- const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { azureOpenAIParameters: Object.assign(Object.assign({}, azureOpenAIParameters), { authIdentity }) });
5476
+ const knownVectorizerDeserializers = {
5477
+ azureOpenAI: () => {
5478
+ const { parameters } = generatedVectorizer;
5479
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
5480
+ const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
5390
5481
  return vectorizer;
5391
- }
5392
- case "customWebApi": {
5393
- const { customWebApiParameters } = generatedVectorizer;
5394
- const authIdentity = convertSearchIndexerDataIdentityToPublic(customWebApiParameters === null || customWebApiParameters === void 0 ? void 0 : customWebApiParameters.authIdentity);
5395
- const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { customVectorizerParameters: Object.assign(Object.assign({}, customWebApiParameters), { authIdentity }) });
5482
+ },
5483
+ customWebApi: () => {
5484
+ const { parameters } = generatedVectorizer;
5485
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
5486
+ const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
5396
5487
  return vectorizer;
5397
- }
5398
- case "aiServicesVision": {
5488
+ },
5489
+ aiServicesVision: () => {
5490
+ var _a;
5399
5491
  const generatedVisionVectorizer = generatedVectorizer;
5400
5492
  const { aIServicesVisionParameters: generatedParameters } = generatedVisionVectorizer;
5401
- const aIServicesVisionParameters = generatedParameters
5493
+ const parameters = generatedParameters
5402
5494
  ? Object.assign(Object.assign({}, generatedParameters), { modelVersion: (_a = generatedParameters.modelVersion) !== null && _a !== void 0 ? _a : undefined, resourceUri: generatedParameters.resourceUri, authIdentity: convertSearchIndexerDataIdentityToPublic(generatedParameters.authIdentity) }) : undefined;
5403
- const vectorizer = Object.assign(Object.assign({}, generatedVisionVectorizer), { aIServicesVisionParameters });
5495
+ const vectorizer = Object.assign(Object.assign({}, generatedVisionVectorizer), { parameters });
5404
5496
  return vectorizer;
5405
- }
5406
- case "aml": {
5497
+ },
5498
+ aml: () => {
5407
5499
  const generatedAMLVectorizer = generatedVectorizer;
5408
5500
  const vectorizer = Object.assign(Object.assign({}, generatedAMLVectorizer), { amlParameters: generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(generatedAMLVectorizer.aMLParameters) });
5409
5501
  return vectorizer;
5410
- }
5411
- }
5412
- logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
5413
- return generatedVectorizer;
5502
+ },
5503
+ };
5504
+ const defaultDeserializer = () => {
5505
+ logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
5506
+ return generatedVectorizer;
5507
+ };
5508
+ return ((_a = knownVectorizerDeserializers[generatedVectorizer.kind]) !== null && _a !== void 0 ? _a : defaultDeserializer)();
5414
5509
  }
5415
5510
  function generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(aMLParameters) {
5416
5511
  if (!aMLParameters) {
@@ -5482,23 +5577,17 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
5482
5577
  return result;
5483
5578
  }
5484
5579
  function publicIndexToGeneratedIndex(index) {
5580
+ var _a;
5485
5581
  const { encryptionKey, tokenFilters, analyzers, tokenizers, fields, similarity } = index;
5486
- return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
5582
+ return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: (_a = convertFieldsToGenerated(fields)) !== null && _a !== void 0 ? _a : [], similarity: convertSimilarityToGenerated(similarity) });
5487
5583
  }
5488
5584
  function generatedSkillsetToPublicSkillset(generatedSkillset) {
5489
- const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey, indexProjections } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey", "indexProjections"]);
5490
- return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjections: indexProjections });
5585
+ const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey, indexProjection } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey", "indexProjection"]);
5586
+ return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjection: indexProjection });
5491
5587
  }
5492
5588
  function publicSkillsetToGeneratedSkillset(skillset) {
5493
- return {
5494
- name: skillset.name,
5495
- description: skillset.description,
5496
- etag: skillset.etag,
5497
- skills: skillset.skills,
5498
- cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount),
5499
- knowledgeStore: skillset.knowledgeStore,
5500
- encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),
5501
- };
5589
+ const { cognitiveServicesAccount, encryptionKey } = skillset;
5590
+ return Object.assign(Object.assign({}, skillset), { cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount), encryptionKey: convertEncryptionKeyToGenerated(encryptionKey) });
5502
5591
  }
5503
5592
  function generatedSynonymMapToPublicSynonymMap(synonymMap) {
5504
5593
  const result = {
@@ -5616,7 +5705,7 @@ function convertSearchIndexerCacheToPublic(cache) {
5616
5705
  }
5617
5706
 
5618
5707
  // Copyright (c) Microsoft Corporation.
5619
- // Licensed under the MIT license.
5708
+ // Licensed under the MIT License.
5620
5709
  /**
5621
5710
  * Creates a tracing client using the global tracer.
5622
5711
  * @internal
@@ -5628,7 +5717,7 @@ const tracingClient = coreTracing.createTracingClient({
5628
5717
  const createSpan = tracingClient.startSpan;
5629
5718
 
5630
5719
  // Copyright (c) Microsoft Corporation.
5631
- // Licensed under the MIT license.
5720
+ // Licensed under the MIT License.
5632
5721
  /**
5633
5722
  * Class used to perform operations against a search index,
5634
5723
  * including querying documents in the index as well as
@@ -7405,11 +7494,11 @@ const SearchIndexerSkillset = {
7405
7494
  className: "SearchIndexerKnowledgeStore",
7406
7495
  },
7407
7496
  },
7408
- indexProjections: {
7497
+ indexProjection: {
7409
7498
  serializedName: "indexProjections",
7410
7499
  type: {
7411
7500
  name: "Composite",
7412
- className: "SearchIndexerIndexProjections",
7501
+ className: "SearchIndexerIndexProjection",
7413
7502
  },
7414
7503
  },
7415
7504
  etag: {
@@ -7724,10 +7813,10 @@ const SearchIndexerKnowledgeStoreParameters = {
7724
7813
  },
7725
7814
  },
7726
7815
  };
7727
- const SearchIndexerIndexProjections = {
7816
+ const SearchIndexerIndexProjection = {
7728
7817
  type: {
7729
7818
  name: "Composite",
7730
- className: "SearchIndexerIndexProjections",
7819
+ className: "SearchIndexerIndexProjection",
7731
7820
  modelProperties: {
7732
7821
  selectors: {
7733
7822
  serializedName: "selectors",
@@ -7746,7 +7835,7 @@ const SearchIndexerIndexProjections = {
7746
7835
  serializedName: "parameters",
7747
7836
  type: {
7748
7837
  name: "Composite",
7749
- className: "SearchIndexerIndexProjectionsParameters",
7838
+ className: "SearchIndexerIndexProjectionParameters",
7750
7839
  },
7751
7840
  },
7752
7841
  },
@@ -7794,10 +7883,10 @@ const SearchIndexerIndexProjectionSelector = {
7794
7883
  },
7795
7884
  },
7796
7885
  };
7797
- const SearchIndexerIndexProjectionsParameters = {
7886
+ const SearchIndexerIndexProjectionParameters = {
7798
7887
  type: {
7799
7888
  name: "Composite",
7800
- className: "SearchIndexerIndexProjectionsParameters",
7889
+ className: "SearchIndexerIndexProjectionParameters",
7801
7890
  additionalProperties: { type: { name: "Object" } },
7802
7891
  modelProperties: {
7803
7892
  projectionMode: {
@@ -8685,7 +8774,7 @@ const VectorSearch = {
8685
8774
  element: {
8686
8775
  type: {
8687
8776
  name: "Composite",
8688
- className: "BaseVectorSearchCompressionConfiguration",
8777
+ className: "VectorSearchCompression",
8689
8778
  },
8690
8779
  },
8691
8780
  },
@@ -8712,13 +8801,13 @@ const VectorSearchProfile = {
8712
8801
  name: "String",
8713
8802
  },
8714
8803
  },
8715
- vectorizer: {
8804
+ vectorizerName: {
8716
8805
  serializedName: "vectorizer",
8717
8806
  type: {
8718
8807
  name: "String",
8719
8808
  },
8720
8809
  },
8721
- compressionConfigurationName: {
8810
+ compressionName: {
8722
8811
  serializedName: "compression",
8723
8812
  type: {
8724
8813
  name: "String",
@@ -8764,7 +8853,7 @@ const VectorSearchVectorizer = {
8764
8853
  clientName: "kind",
8765
8854
  },
8766
8855
  modelProperties: {
8767
- name: {
8856
+ vectorizerName: {
8768
8857
  serializedName: "name",
8769
8858
  required: true,
8770
8859
  type: {
@@ -8781,17 +8870,17 @@ const VectorSearchVectorizer = {
8781
8870
  },
8782
8871
  },
8783
8872
  };
8784
- const BaseVectorSearchCompressionConfiguration = {
8873
+ const VectorSearchCompression = {
8785
8874
  type: {
8786
8875
  name: "Composite",
8787
- className: "BaseVectorSearchCompressionConfiguration",
8788
- uberParent: "BaseVectorSearchCompressionConfiguration",
8876
+ className: "VectorSearchCompression",
8877
+ uberParent: "VectorSearchCompression",
8789
8878
  polymorphicDiscriminator: {
8790
8879
  serializedName: "kind",
8791
8880
  clientName: "kind",
8792
8881
  },
8793
8882
  modelProperties: {
8794
- name: {
8883
+ compressionName: {
8795
8884
  serializedName: "name",
8796
8885
  required: true,
8797
8886
  type: {
@@ -8819,6 +8908,13 @@ const BaseVectorSearchCompressionConfiguration = {
8819
8908
  name: "Number",
8820
8909
  },
8821
8910
  },
8911
+ truncationDimension: {
8912
+ serializedName: "truncationDimension",
8913
+ nullable: true,
8914
+ type: {
8915
+ name: "Number",
8916
+ },
8917
+ },
8822
8918
  },
8823
8919
  },
8824
8920
  };
@@ -9195,7 +9291,7 @@ const ServiceLimits = {
9195
9291
  name: "Number",
9196
9292
  },
9197
9293
  },
9198
- maxStoragePerIndex: {
9294
+ maxStoragePerIndexInBytes: {
9199
9295
  serializedName: "maxStoragePerIndex",
9200
9296
  nullable: true,
9201
9297
  type: {
@@ -9291,7 +9387,7 @@ const AzureOpenAIParameters = {
9291
9387
  name: "Composite",
9292
9388
  className: "AzureOpenAIParameters",
9293
9389
  modelProperties: {
9294
- resourceUri: {
9390
+ resourceUrl: {
9295
9391
  serializedName: "resourceUri",
9296
9392
  type: {
9297
9393
  name: "String",
@@ -9325,10 +9421,10 @@ const AzureOpenAIParameters = {
9325
9421
  },
9326
9422
  },
9327
9423
  };
9328
- const CustomWebApiParameters = {
9424
+ const WebApiParameters = {
9329
9425
  type: {
9330
9426
  name: "Composite",
9331
- className: "CustomWebApiParameters",
9427
+ className: "WebApiParameters",
9332
9428
  modelProperties: {
9333
9429
  uri: {
9334
9430
  serializedName: "uri",
@@ -9672,6 +9768,32 @@ const CustomEntityAlias = {
9672
9768
  },
9673
9769
  },
9674
9770
  };
9771
+ const AzureOpenAITokenizerParameters = {
9772
+ type: {
9773
+ name: "Composite",
9774
+ className: "AzureOpenAITokenizerParameters",
9775
+ modelProperties: {
9776
+ encoderModelName: {
9777
+ serializedName: "encoderModelName",
9778
+ nullable: true,
9779
+ type: {
9780
+ name: "String",
9781
+ },
9782
+ },
9783
+ allowedSpecialTokens: {
9784
+ serializedName: "allowedSpecialTokens",
9785
+ type: {
9786
+ name: "Sequence",
9787
+ element: {
9788
+ type: {
9789
+ name: "String",
9790
+ },
9791
+ },
9792
+ },
9793
+ },
9794
+ },
9795
+ },
9796
+ };
9675
9797
  const SearchIndexerDataNoneIdentity = {
9676
9798
  serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
9677
9799
  type: {
@@ -9689,7 +9811,7 @@ const SearchIndexerDataUserAssignedIdentity = {
9689
9811
  className: "SearchIndexerDataUserAssignedIdentity",
9690
9812
  uberParent: "SearchIndexerDataIdentity",
9691
9813
  polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
9692
- modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
9814
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { resourceId: {
9693
9815
  serializedName: "userAssignedIdentity",
9694
9816
  required: true,
9695
9817
  type: {
@@ -10157,6 +10279,18 @@ const SplitSkill = {
10157
10279
  type: {
10158
10280
  name: "Number",
10159
10281
  },
10282
+ }, unit: {
10283
+ serializedName: "unit",
10284
+ nullable: true,
10285
+ type: {
10286
+ name: "String",
10287
+ },
10288
+ }, azureOpenAITokenizerParameters: {
10289
+ serializedName: "azureOpenAITokenizerParameters",
10290
+ type: {
10291
+ name: "Composite",
10292
+ className: "AzureOpenAITokenizerParameters",
10293
+ },
10160
10294
  } }),
10161
10295
  },
10162
10296
  };
@@ -12050,7 +12184,7 @@ const AzureOpenAIVectorizer = {
12050
12184
  className: "AzureOpenAIVectorizer",
12051
12185
  uberParent: "VectorSearchVectorizer",
12052
12186
  polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12053
- modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { azureOpenAIParameters: {
12187
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
12054
12188
  serializedName: "azureOpenAIParameters",
12055
12189
  type: {
12056
12190
  name: "Composite",
@@ -12059,18 +12193,18 @@ const AzureOpenAIVectorizer = {
12059
12193
  } }),
12060
12194
  },
12061
12195
  };
12062
- const CustomVectorizer = {
12196
+ const WebApiVectorizer = {
12063
12197
  serializedName: "customWebApi",
12064
12198
  type: {
12065
12199
  name: "Composite",
12066
- className: "CustomVectorizer",
12200
+ className: "WebApiVectorizer",
12067
12201
  uberParent: "VectorSearchVectorizer",
12068
12202
  polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12069
- modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { customWebApiParameters: {
12203
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { parameters: {
12070
12204
  serializedName: "customWebApiParameters",
12071
12205
  type: {
12072
12206
  name: "Composite",
12073
- className: "CustomWebApiParameters",
12207
+ className: "WebApiParameters",
12074
12208
  },
12075
12209
  } }),
12076
12210
  },
@@ -12107,14 +12241,14 @@ const AMLVectorizer = {
12107
12241
  } }),
12108
12242
  },
12109
12243
  };
12110
- const ScalarQuantizationCompressionConfiguration = {
12244
+ const ScalarQuantizationCompression = {
12111
12245
  serializedName: "scalarQuantization",
12112
12246
  type: {
12113
12247
  name: "Composite",
12114
- className: "ScalarQuantizationCompressionConfiguration",
12115
- uberParent: "BaseVectorSearchCompressionConfiguration",
12116
- polymorphicDiscriminator: BaseVectorSearchCompressionConfiguration.type.polymorphicDiscriminator,
12117
- modelProperties: Object.assign(Object.assign({}, BaseVectorSearchCompressionConfiguration.type.modelProperties), { parameters: {
12248
+ className: "ScalarQuantizationCompression",
12249
+ uberParent: "VectorSearchCompression",
12250
+ polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
12251
+ modelProperties: Object.assign(Object.assign({}, VectorSearchCompression.type.modelProperties), { parameters: {
12118
12252
  serializedName: "scalarQuantizationParameters",
12119
12253
  type: {
12120
12254
  name: "Composite",
@@ -12123,6 +12257,16 @@ const ScalarQuantizationCompressionConfiguration = {
12123
12257
  } }),
12124
12258
  },
12125
12259
  };
12260
+ const BinaryQuantizationCompression = {
12261
+ serializedName: "binaryQuantization",
12262
+ type: {
12263
+ name: "Composite",
12264
+ className: "BinaryQuantizationCompression",
12265
+ uberParent: "VectorSearchCompression",
12266
+ polymorphicDiscriminator: VectorSearchCompression.type.polymorphicDiscriminator,
12267
+ modelProperties: Object.assign({}, VectorSearchCompression.type.modelProperties),
12268
+ },
12269
+ };
12126
12270
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
12127
12271
  type: {
12128
12272
  name: "Composite",
@@ -12154,7 +12298,7 @@ let discriminators = {
12154
12298
  Similarity: Similarity,
12155
12299
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
12156
12300
  VectorSearchVectorizer: VectorSearchVectorizer,
12157
- BaseVectorSearchCompressionConfiguration: BaseVectorSearchCompressionConfiguration,
12301
+ VectorSearchCompression: VectorSearchCompression,
12158
12302
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
12159
12303
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
12160
12304
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
@@ -12237,10 +12381,11 @@ let discriminators = {
12237
12381
  "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
12238
12382
  "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration,
12239
12383
  "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
12240
- "VectorSearchVectorizer.customWebApi": CustomVectorizer,
12384
+ "VectorSearchVectorizer.customWebApi": WebApiVectorizer,
12241
12385
  "VectorSearchVectorizer.aiServicesVision": AIServicesVisionVectorizer,
12242
12386
  "VectorSearchVectorizer.aml": AMLVectorizer,
12243
- "BaseVectorSearchCompressionConfiguration.scalarQuantization": ScalarQuantizationCompressionConfiguration,
12387
+ "VectorSearchCompression.scalarQuantization": ScalarQuantizationCompression,
12388
+ "VectorSearchCompression.binaryQuantization": BinaryQuantizationCompression,
12244
12389
  };
12245
12390
 
12246
12391
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -12257,9 +12402,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
12257
12402
  AzureMachineLearningSkill: AzureMachineLearningSkill,
12258
12403
  AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
12259
12404
  AzureOpenAIParameters: AzureOpenAIParameters,
12405
+ AzureOpenAITokenizerParameters: AzureOpenAITokenizerParameters,
12260
12406
  AzureOpenAIVectorizer: AzureOpenAIVectorizer,
12261
12407
  BM25Similarity: BM25Similarity,
12262
- BaseVectorSearchCompressionConfiguration: BaseVectorSearchCompressionConfiguration,
12408
+ BinaryQuantizationCompression: BinaryQuantizationCompression,
12263
12409
  CharFilter: CharFilter,
12264
12410
  CjkBigramTokenFilter: CjkBigramTokenFilter,
12265
12411
  ClassicSimilarity: ClassicSimilarity,
@@ -12274,8 +12420,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
12274
12420
  CustomEntityAlias: CustomEntityAlias,
12275
12421
  CustomEntityLookupSkill: CustomEntityLookupSkill,
12276
12422
  CustomNormalizer: CustomNormalizer,
12277
- CustomVectorizer: CustomVectorizer,
12278
- CustomWebApiParameters: CustomWebApiParameters,
12279
12423
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
12280
12424
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
12281
12425
  DataSourceCredentials: DataSourceCredentials,
@@ -12353,7 +12497,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
12353
12497
  PatternTokenizer: PatternTokenizer,
12354
12498
  PhoneticTokenFilter: PhoneticTokenFilter,
12355
12499
  ResourceCounter: ResourceCounter,
12356
- ScalarQuantizationCompressionConfiguration: ScalarQuantizationCompressionConfiguration,
12500
+ ScalarQuantizationCompression: ScalarQuantizationCompression,
12357
12501
  ScalarQuantizationParameters: ScalarQuantizationParameters,
12358
12502
  ScoringFunction: ScoringFunction,
12359
12503
  ScoringProfile: ScoringProfile,
@@ -12368,9 +12512,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
12368
12512
  SearchIndexerDataSource: SearchIndexerDataSource,
12369
12513
  SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
12370
12514
  SearchIndexerError: SearchIndexerError,
12515
+ SearchIndexerIndexProjection: SearchIndexerIndexProjection,
12516
+ SearchIndexerIndexProjectionParameters: SearchIndexerIndexProjectionParameters,
12371
12517
  SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
12372
- SearchIndexerIndexProjections: SearchIndexerIndexProjections,
12373
- SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
12374
12518
  SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
12375
12519
  SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
12376
12520
  SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
@@ -12419,10 +12563,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
12419
12563
  UniqueTokenFilter: UniqueTokenFilter,
12420
12564
  VectorSearch: VectorSearch,
12421
12565
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
12566
+ VectorSearchCompression: VectorSearchCompression,
12422
12567
  VectorSearchProfile: VectorSearchProfile,
12423
12568
  VectorSearchVectorizer: VectorSearchVectorizer,
12424
12569
  VisionVectorizeSkill: VisionVectorizeSkill,
12570
+ WebApiParameters: WebApiParameters,
12425
12571
  WebApiSkill: WebApiSkill,
12572
+ WebApiVectorizer: WebApiVectorizer,
12426
12573
  WordDelimiterTokenFilter: WordDelimiterTokenFilter,
12427
12574
  discriminators: discriminators
12428
12575
  });
@@ -13797,7 +13944,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
13797
13944
  const defaults = {
13798
13945
  requestContentType: "application/json; charset=utf-8",
13799
13946
  };
13800
- const packageDetails = `azsdk-js-search-documents/12.1.0-beta.2`;
13947
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.1`;
13801
13948
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
13802
13949
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
13803
13950
  : `${packageDetails}`;
@@ -13869,7 +14016,7 @@ const getServiceStatisticsOperationSpec = {
13869
14016
  };
13870
14017
 
13871
14018
  // Copyright (c) Microsoft Corporation.
13872
- // Licensed under the MIT license.
14019
+ // Licensed under the MIT License.
13873
14020
  /**
13874
14021
  * Class to perform operations to manage
13875
14022
  * (create, update, list/delete)
@@ -14513,7 +14660,7 @@ class SearchIndexClient {
14513
14660
  }
14514
14661
 
14515
14662
  // Copyright (c) Microsoft Corporation.
14516
- // Licensed under the MIT license.
14663
+ // Licensed under the MIT License.
14517
14664
  /**
14518
14665
  * Class to perform operations to manage
14519
14666
  * (create, update, list/delete)
@@ -15099,7 +15246,7 @@ class SearchIndexerClient {
15099
15246
  }
15100
15247
 
15101
15248
  // Copyright (c) Microsoft Corporation.
15102
- // Licensed under the MIT license.
15249
+ // Licensed under the MIT License.
15103
15250
  /**
15104
15251
  * Default Batch Size
15105
15252
  */
@@ -15377,7 +15524,7 @@ class SearchIndexingBufferedSender {
15377
15524
  }
15378
15525
 
15379
15526
  // Copyright (c) Microsoft Corporation.
15380
- // Licensed under the MIT license.
15527
+ // Licensed under the MIT License.
15381
15528
  const readFileAsync = util.promisify(fs__namespace.readFile);
15382
15529
  /**
15383
15530
  * Helper method to create a SynonymMap object. This is a NodeJS only method.