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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +2710 -454
  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 +220 -6
  11. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  12. package/dist-esm/src/generated/data/models/mappers.js +481 -0
  13. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  14. package/dist-esm/src/generated/data/models/parameters.js +51 -0
  15. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  16. package/dist-esm/src/generated/data/operations/documents.js +5 -0
  17. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  18. package/dist-esm/src/generated/data/searchClient.js +1 -1
  19. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  20. package/dist-esm/src/generated/service/models/index.js +210 -84
  21. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  22. package/dist-esm/src/generated/service/models/mappers.js +815 -77
  23. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  24. package/dist-esm/src/generated/service/models/parameters.js +51 -1
  25. package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
  26. package/dist-esm/src/generated/service/operations/aliases.js +160 -0
  27. package/dist-esm/src/generated/service/operations/aliases.js.map +1 -0
  28. package/dist-esm/src/generated/service/operations/dataSources.js +4 -1
  29. package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
  30. package/dist-esm/src/generated/service/operations/index.js +1 -0
  31. package/dist-esm/src/generated/service/operations/index.js.map +1 -1
  32. package/dist-esm/src/generated/service/operations/indexers.js +29 -1
  33. package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
  34. package/dist-esm/src/generated/service/operations/skillsets.js +30 -1
  35. package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
  36. package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +9 -0
  37. package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +1 -0
  38. package/dist-esm/src/generated/service/operationsInterfaces/index.js +1 -0
  39. package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
  40. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
  41. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
  42. package/dist-esm/src/generated/service/searchServiceClient.js +3 -2
  43. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  44. package/dist-esm/src/geographyPoint.js +1 -1
  45. package/dist-esm/src/geographyPoint.js.map +1 -1
  46. package/dist-esm/src/index.js +4 -4
  47. package/dist-esm/src/index.js.map +1 -1
  48. package/dist-esm/src/indexDocumentsBatch.js +1 -1
  49. package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
  50. package/dist-esm/src/indexModels.js +1 -1
  51. package/dist-esm/src/indexModels.js.map +1 -1
  52. package/dist-esm/src/logger.js +1 -1
  53. package/dist-esm/src/logger.js.map +1 -1
  54. package/dist-esm/src/odata.js +1 -1
  55. package/dist-esm/src/odata.js.map +1 -1
  56. package/dist-esm/src/odataMetadataPolicy.js +1 -1
  57. package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
  58. package/dist-esm/src/searchApiKeyCredentialPolicy.js +1 -1
  59. package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
  60. package/dist-esm/src/searchAudience.js +1 -1
  61. package/dist-esm/src/searchAudience.js.map +1 -1
  62. package/dist-esm/src/searchClient.js +52 -8
  63. package/dist-esm/src/searchClient.js.map +1 -1
  64. package/dist-esm/src/searchIndexClient.js +158 -6
  65. package/dist-esm/src/searchIndexClient.js.map +1 -1
  66. package/dist-esm/src/searchIndexerClient.js +53 -2
  67. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  68. package/dist-esm/src/searchIndexingBufferedSender.js +1 -1
  69. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  70. package/dist-esm/src/serialization.js +1 -1
  71. package/dist-esm/src/serialization.js.map +1 -1
  72. package/dist-esm/src/serviceModels.js +1 -1
  73. package/dist-esm/src/serviceModels.js.map +1 -1
  74. package/dist-esm/src/serviceUtils.js +112 -26
  75. package/dist-esm/src/serviceUtils.js.map +1 -1
  76. package/dist-esm/src/synonymMapHelper.browser.js +1 -1
  77. package/dist-esm/src/synonymMapHelper.browser.js.map +1 -1
  78. package/dist-esm/src/synonymMapHelper.js +1 -1
  79. package/dist-esm/src/synonymMapHelper.js.map +1 -1
  80. package/dist-esm/src/tracing.js +1 -1
  81. package/dist-esm/src/tracing.js.map +1 -1
  82. package/dist-esm/src/walk.js +1 -1
  83. package/dist-esm/src/walk.js.map +1 -1
  84. package/package.json +13 -16
  85. package/types/search-documents.d.ts +1774 -108
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 ApiVersion20240701} that the service accepts. */
46
- var KnownApiVersion20240701$1;
47
- (function (KnownApiVersion20240701) {
48
- /** Api Version '2024-07-01' */
49
- KnownApiVersion20240701["TwoThousandTwentyFour0701"] = "2024-07-01";
50
- })(KnownApiVersion20240701$1 || (KnownApiVersion20240701$1 = {}));
45
+ /** Known values of {@link ApiVersion20241101Preview} that the service accepts. */
46
+ var KnownApiVersion20241101Preview$1;
47
+ (function (KnownApiVersion20241101Preview) {
48
+ /** Api Version '2024-11-01-preview' */
49
+ KnownApiVersion20241101Preview["TwoThousandTwentyFour1101Preview"] = "2024-11-01-preview";
50
+ })(KnownApiVersion20241101Preview$1 || (KnownApiVersion20241101Preview$1 = {}));
51
51
  /** Known values of {@link SemanticErrorMode} that the service accepts. */
52
52
  exports.KnownSemanticErrorMode = void 0;
53
53
  (function (KnownSemanticErrorMode) {
@@ -72,6 +72,184 @@ var KnownQueryCaptionType;
72
72
  /** Extracts captions from the matching documents that contain passages relevant to the search query. */
73
73
  KnownQueryCaptionType["Extractive"] = "extractive";
74
74
  })(KnownQueryCaptionType || (KnownQueryCaptionType = {}));
75
+ /** Known values of {@link QueryRewritesType} that the service accepts. */
76
+ var KnownQueryRewritesType;
77
+ (function (KnownQueryRewritesType) {
78
+ /** Do not generate additional query rewrites for this query. */
79
+ KnownQueryRewritesType["None"] = "none";
80
+ /** Generate alternative query terms to increase the recall of a search request. */
81
+ KnownQueryRewritesType["Generative"] = "generative";
82
+ })(KnownQueryRewritesType || (KnownQueryRewritesType = {}));
83
+ /** Known values of {@link QueryDebugMode} that the service accepts. */
84
+ exports.KnownQueryDebugMode = void 0;
85
+ (function (KnownQueryDebugMode) {
86
+ /** No query debugging information will be returned. */
87
+ KnownQueryDebugMode["Disabled"] = "disabled";
88
+ /** Allows the user to further explore their reranked results. */
89
+ KnownQueryDebugMode["Semantic"] = "semantic";
90
+ /** Allows the user to further explore their hybrid and vector query results. */
91
+ KnownQueryDebugMode["Vector"] = "vector";
92
+ /** Allows the user to explore the list of query rewrites generated for their search request. */
93
+ KnownQueryDebugMode["QueryRewrites"] = "queryRewrites";
94
+ /** Turn on all debug options. */
95
+ KnownQueryDebugMode["All"] = "all";
96
+ })(exports.KnownQueryDebugMode || (exports.KnownQueryDebugMode = {}));
97
+ /** Known values of {@link QueryLanguage} that the service accepts. */
98
+ exports.KnownQueryLanguage = void 0;
99
+ (function (KnownQueryLanguage) {
100
+ /** Query language not specified. */
101
+ KnownQueryLanguage["None"] = "none";
102
+ /** Query language value for English (United States). */
103
+ KnownQueryLanguage["EnUs"] = "en-us";
104
+ /** Query language value for English (Great Britain). */
105
+ KnownQueryLanguage["EnGb"] = "en-gb";
106
+ /** Query language value for English (India). */
107
+ KnownQueryLanguage["EnIn"] = "en-in";
108
+ /** Query language value for English (Canada). */
109
+ KnownQueryLanguage["EnCa"] = "en-ca";
110
+ /** Query language value for English (Australia). */
111
+ KnownQueryLanguage["EnAu"] = "en-au";
112
+ /** Query language value for French (France). */
113
+ KnownQueryLanguage["FrFr"] = "fr-fr";
114
+ /** Query language value for French (Canada). */
115
+ KnownQueryLanguage["FrCa"] = "fr-ca";
116
+ /** Query language value for German (Germany). */
117
+ KnownQueryLanguage["DeDe"] = "de-de";
118
+ /** Query language value for Spanish (Spain). */
119
+ KnownQueryLanguage["EsEs"] = "es-es";
120
+ /** Query language value for Spanish (Mexico). */
121
+ KnownQueryLanguage["EsMx"] = "es-mx";
122
+ /** Query language value for Chinese (China). */
123
+ KnownQueryLanguage["ZhCn"] = "zh-cn";
124
+ /** Query language value for Chinese (Taiwan). */
125
+ KnownQueryLanguage["ZhTw"] = "zh-tw";
126
+ /** Query language value for Portuguese (Brazil). */
127
+ KnownQueryLanguage["PtBr"] = "pt-br";
128
+ /** Query language value for Portuguese (Portugal). */
129
+ KnownQueryLanguage["PtPt"] = "pt-pt";
130
+ /** Query language value for Italian (Italy). */
131
+ KnownQueryLanguage["ItIt"] = "it-it";
132
+ /** Query language value for Japanese (Japan). */
133
+ KnownQueryLanguage["JaJp"] = "ja-jp";
134
+ /** Query language value for Korean (Korea). */
135
+ KnownQueryLanguage["KoKr"] = "ko-kr";
136
+ /** Query language value for Russian (Russia). */
137
+ KnownQueryLanguage["RuRu"] = "ru-ru";
138
+ /** Query language value for Czech (Czech Republic). */
139
+ KnownQueryLanguage["CsCz"] = "cs-cz";
140
+ /** Query language value for Dutch (Belgium). */
141
+ KnownQueryLanguage["NlBe"] = "nl-be";
142
+ /** Query language value for Dutch (Netherlands). */
143
+ KnownQueryLanguage["NlNl"] = "nl-nl";
144
+ /** Query language value for Hungarian (Hungary). */
145
+ KnownQueryLanguage["HuHu"] = "hu-hu";
146
+ /** Query language value for Polish (Poland). */
147
+ KnownQueryLanguage["PlPl"] = "pl-pl";
148
+ /** Query language value for Swedish (Sweden). */
149
+ KnownQueryLanguage["SvSe"] = "sv-se";
150
+ /** Query language value for Turkish (Turkey). */
151
+ KnownQueryLanguage["TrTr"] = "tr-tr";
152
+ /** Query language value for Hindi (India). */
153
+ KnownQueryLanguage["HiIn"] = "hi-in";
154
+ /** Query language value for Arabic (Saudi Arabia). */
155
+ KnownQueryLanguage["ArSa"] = "ar-sa";
156
+ /** Query language value for Arabic (Egypt). */
157
+ KnownQueryLanguage["ArEg"] = "ar-eg";
158
+ /** Query language value for Arabic (Morocco). */
159
+ KnownQueryLanguage["ArMa"] = "ar-ma";
160
+ /** Query language value for Arabic (Kuwait). */
161
+ KnownQueryLanguage["ArKw"] = "ar-kw";
162
+ /** Query language value for Arabic (Jordan). */
163
+ KnownQueryLanguage["ArJo"] = "ar-jo";
164
+ /** Query language value for Danish (Denmark). */
165
+ KnownQueryLanguage["DaDk"] = "da-dk";
166
+ /** Query language value for Norwegian (Norway). */
167
+ KnownQueryLanguage["NoNo"] = "no-no";
168
+ /** Query language value for Bulgarian (Bulgaria). */
169
+ KnownQueryLanguage["BgBg"] = "bg-bg";
170
+ /** Query language value for Croatian (Croatia). */
171
+ KnownQueryLanguage["HrHr"] = "hr-hr";
172
+ /** Query language value for Croatian (Bosnia and Herzegovina). */
173
+ KnownQueryLanguage["HrBa"] = "hr-ba";
174
+ /** Query language value for Malay (Malaysia). */
175
+ KnownQueryLanguage["MsMy"] = "ms-my";
176
+ /** Query language value for Malay (Brunei Darussalam). */
177
+ KnownQueryLanguage["MsBn"] = "ms-bn";
178
+ /** Query language value for Slovenian (Slovenia). */
179
+ KnownQueryLanguage["SlSl"] = "sl-sl";
180
+ /** Query language value for Tamil (India). */
181
+ KnownQueryLanguage["TaIn"] = "ta-in";
182
+ /** Query language value for Vietnamese (Viet Nam). */
183
+ KnownQueryLanguage["ViVn"] = "vi-vn";
184
+ /** Query language value for Greek (Greece). */
185
+ KnownQueryLanguage["ElGr"] = "el-gr";
186
+ /** Query language value for Romanian (Romania). */
187
+ KnownQueryLanguage["RoRo"] = "ro-ro";
188
+ /** Query language value for Icelandic (Iceland). */
189
+ KnownQueryLanguage["IsIs"] = "is-is";
190
+ /** Query language value for Indonesian (Indonesia). */
191
+ KnownQueryLanguage["IdId"] = "id-id";
192
+ /** Query language value for Thai (Thailand). */
193
+ KnownQueryLanguage["ThTh"] = "th-th";
194
+ /** Query language value for Lithuanian (Lithuania). */
195
+ KnownQueryLanguage["LtLt"] = "lt-lt";
196
+ /** Query language value for Ukrainian (Ukraine). */
197
+ KnownQueryLanguage["UkUa"] = "uk-ua";
198
+ /** Query language value for Latvian (Latvia). */
199
+ KnownQueryLanguage["LvLv"] = "lv-lv";
200
+ /** Query language value for Estonian (Estonia). */
201
+ KnownQueryLanguage["EtEe"] = "et-ee";
202
+ /** Query language value for Catalan. */
203
+ KnownQueryLanguage["CaEs"] = "ca-es";
204
+ /** Query language value for Finnish (Finland). */
205
+ KnownQueryLanguage["FiFi"] = "fi-fi";
206
+ /** Query language value for Serbian (Bosnia and Herzegovina). */
207
+ KnownQueryLanguage["SrBa"] = "sr-ba";
208
+ /** Query language value for Serbian (Montenegro). */
209
+ KnownQueryLanguage["SrMe"] = "sr-me";
210
+ /** Query language value for Serbian (Serbia). */
211
+ KnownQueryLanguage["SrRs"] = "sr-rs";
212
+ /** Query language value for Slovak (Slovakia). */
213
+ KnownQueryLanguage["SkSk"] = "sk-sk";
214
+ /** Query language value for Norwegian (Norway). */
215
+ KnownQueryLanguage["NbNo"] = "nb-no";
216
+ /** Query language value for Armenian (Armenia). */
217
+ KnownQueryLanguage["HyAm"] = "hy-am";
218
+ /** Query language value for Bengali (India). */
219
+ KnownQueryLanguage["BnIn"] = "bn-in";
220
+ /** Query language value for Basque. */
221
+ KnownQueryLanguage["EuEs"] = "eu-es";
222
+ /** Query language value for Galician. */
223
+ KnownQueryLanguage["GlEs"] = "gl-es";
224
+ /** Query language value for Gujarati (India). */
225
+ KnownQueryLanguage["GuIn"] = "gu-in";
226
+ /** Query language value for Hebrew (Israel). */
227
+ KnownQueryLanguage["HeIl"] = "he-il";
228
+ /** Query language value for Irish (Ireland). */
229
+ KnownQueryLanguage["GaIe"] = "ga-ie";
230
+ /** Query language value for Kannada (India). */
231
+ KnownQueryLanguage["KnIn"] = "kn-in";
232
+ /** Query language value for Malayalam (India). */
233
+ KnownQueryLanguage["MlIn"] = "ml-in";
234
+ /** Query language value for Marathi (India). */
235
+ KnownQueryLanguage["MrIn"] = "mr-in";
236
+ /** Query language value for Persian (U.A.E.). */
237
+ KnownQueryLanguage["FaAe"] = "fa-ae";
238
+ /** Query language value for Punjabi (India). */
239
+ KnownQueryLanguage["PaIn"] = "pa-in";
240
+ /** Query language value for Telugu (India). */
241
+ KnownQueryLanguage["TeIn"] = "te-in";
242
+ /** Query language value for Urdu (Pakistan). */
243
+ KnownQueryLanguage["UrPk"] = "ur-pk";
244
+ })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
245
+ /** Known values of {@link QuerySpellerType} that the service accepts. */
246
+ exports.KnownQuerySpeller = void 0;
247
+ (function (KnownQuerySpellerType) {
248
+ /** Speller not enabled. */
249
+ KnownQuerySpellerType["None"] = "none";
250
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
251
+ KnownQuerySpellerType["Lexicon"] = "lexicon";
252
+ })(exports.KnownQuerySpeller || (exports.KnownQuerySpeller = {}));
75
253
  /** Known values of {@link VectorQueryKind} that the service accepts. */
76
254
  exports.KnownVectorQueryKind = void 0;
77
255
  (function (KnownVectorQueryKind) {
@@ -79,7 +257,19 @@ exports.KnownVectorQueryKind = void 0;
79
257
  KnownVectorQueryKind["Vector"] = "vector";
80
258
  /** Vector query where a text value that needs to be vectorized is provided. */
81
259
  KnownVectorQueryKind["Text"] = "text";
260
+ /** Vector query where an url that represents an image value that needs to be vectorized is provided. */
261
+ KnownVectorQueryKind["ImageUrl"] = "imageUrl";
262
+ /** Vector query where a base 64 encoded binary of an image that needs to be vectorized is provided. */
263
+ KnownVectorQueryKind["ImageBinary"] = "imageBinary";
82
264
  })(exports.KnownVectorQueryKind || (exports.KnownVectorQueryKind = {}));
265
+ /** Known values of {@link VectorThresholdKind} that the service accepts. */
266
+ exports.KnownVectorThresholdKind = void 0;
267
+ (function (KnownVectorThresholdKind) {
268
+ /** The results of the vector query will be filtered based on the vector similarity metric. Note this is the canonical definition of similarity metric, not the 'distance' version. The threshold direction (larger or smaller) will be chosen automatically according to the metric used by the field. */
269
+ KnownVectorThresholdKind["VectorSimilarity"] = "vectorSimilarity";
270
+ /** The results of the vector query will filter based on the '@search.score' value. Note this is the @search.score returned as part of the search response. The threshold direction will be chosen for higher @search.score. */
271
+ KnownVectorThresholdKind["SearchScore"] = "searchScore";
272
+ })(exports.KnownVectorThresholdKind || (exports.KnownVectorThresholdKind = {}));
83
273
  /** Known values of {@link VectorFilterMode} that the service accepts. */
84
274
  exports.KnownVectorFilterMode = void 0;
85
275
  (function (KnownVectorFilterMode) {
@@ -88,6 +278,24 @@ exports.KnownVectorFilterMode = void 0;
88
278
  /** The filter will be applied before the search query. */
89
279
  KnownVectorFilterMode["PreFilter"] = "preFilter";
90
280
  })(exports.KnownVectorFilterMode || (exports.KnownVectorFilterMode = {}));
281
+ /** Known values of {@link HybridCountAndFacetMode} that the service accepts. */
282
+ exports.KnownHybridCountAndFacetMode = void 0;
283
+ (function (KnownHybridCountAndFacetMode) {
284
+ /** Only include documents that were matched within the 'maxTextRecallSize' retrieval window when computing 'count' and 'facets'. */
285
+ KnownHybridCountAndFacetMode["CountRetrievableResults"] = "countRetrievableResults";
286
+ /** 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. */
287
+ KnownHybridCountAndFacetMode["CountAllResults"] = "countAllResults";
288
+ })(exports.KnownHybridCountAndFacetMode || (exports.KnownHybridCountAndFacetMode = {}));
289
+ /** Known values of {@link SemanticFieldState} that the service accepts. */
290
+ exports.KnownSemanticFieldState = void 0;
291
+ (function (KnownSemanticFieldState) {
292
+ /** The field was fully used for semantic enrichment. */
293
+ KnownSemanticFieldState["Used"] = "used";
294
+ /** The field was not used for semantic enrichment. */
295
+ KnownSemanticFieldState["Unused"] = "unused";
296
+ /** The field was partially used for semantic enrichment. */
297
+ KnownSemanticFieldState["Partial"] = "partial";
298
+ })(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
91
299
  /** Known values of {@link SemanticErrorReason} that the service accepts. */
92
300
  exports.KnownSemanticErrorReason = void 0;
93
301
  (function (KnownSemanticErrorReason) {
@@ -106,6 +314,12 @@ exports.KnownSemanticSearchResultsType = void 0;
106
314
  /** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
107
315
  KnownSemanticSearchResultsType["RerankedResults"] = "rerankedResults";
108
316
  })(exports.KnownSemanticSearchResultsType || (exports.KnownSemanticSearchResultsType = {}));
317
+ /** Known values of {@link SemanticQueryRewritesResultType} that the service accepts. */
318
+ exports.KnownSemanticQueryRewritesResultType = void 0;
319
+ (function (KnownSemanticQueryRewritesResultType) {
320
+ /** Query rewrites were not successfully generated for this request. Only the original query was used to retrieve the results. */
321
+ KnownSemanticQueryRewritesResultType["OriginalQueryOnly"] = "originalQueryOnly";
322
+ })(exports.KnownSemanticQueryRewritesResultType || (exports.KnownSemanticQueryRewritesResultType = {}));
109
323
 
110
324
  /*
111
325
  * Copyright (c) Microsoft Corporation.
@@ -114,12 +328,12 @@ exports.KnownSemanticSearchResultsType = void 0;
114
328
  * Code generated by Microsoft (R) AutoRest Code Generator.
115
329
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
116
330
  */
117
- /** Known values of {@link ApiVersion20240701} that the service accepts. */
118
- var KnownApiVersion20240701;
119
- (function (KnownApiVersion20240701) {
120
- /** Api Version '2024-07-01' */
121
- KnownApiVersion20240701["TwoThousandTwentyFour0701"] = "2024-07-01";
122
- })(KnownApiVersion20240701 || (KnownApiVersion20240701 = {}));
331
+ /** Known values of {@link ApiVersion20241101Preview} that the service accepts. */
332
+ var KnownApiVersion20241101Preview;
333
+ (function (KnownApiVersion20241101Preview) {
334
+ /** Api Version '2024-11-01-preview' */
335
+ KnownApiVersion20241101Preview["TwoThousandTwentyFour1101Preview"] = "2024-11-01-preview";
336
+ })(KnownApiVersion20241101Preview || (KnownApiVersion20241101Preview = {}));
123
337
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
124
338
  exports.KnownSearchIndexerDataSourceType = void 0;
125
339
  (function (KnownSearchIndexerDataSourceType) {
@@ -135,6 +349,8 @@ exports.KnownSearchIndexerDataSourceType = void 0;
135
349
  KnownSearchIndexerDataSourceType["MySql"] = "mysql";
136
350
  /** Indicates an ADLS Gen2 datasource. */
137
351
  KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
352
+ /** Indicates a Microsoft Fabric OneLake datasource. */
353
+ KnownSearchIndexerDataSourceType["OneLake"] = "onelake";
138
354
  })(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
139
355
  /** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
140
356
  exports.KnownBlobIndexerParsingMode = void 0;
@@ -151,7 +367,33 @@ exports.KnownBlobIndexerParsingMode = void 0;
151
367
  KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
152
368
  /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */
153
369
  KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
370
+ /** Set to markdown to extract content from markdown files. */
371
+ KnownBlobIndexerParsingMode["Markdown"] = "markdown";
154
372
  })(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
373
+ /** Known values of {@link MarkdownParsingSubmode} that the service accepts. */
374
+ exports.KnownMarkdownParsingSubmode = void 0;
375
+ (function (KnownMarkdownParsingSubmode) {
376
+ /** Indicates that each section of the markdown file (up to a specified depth) will be parsed into individual search documents. This can result in a single markdown file producing multiple search documents. This is the default sub-mode. */
377
+ KnownMarkdownParsingSubmode["OneToMany"] = "oneToMany";
378
+ /** Indicates that each markdown file will be parsed into a single search document. */
379
+ KnownMarkdownParsingSubmode["OneToOne"] = "oneToOne";
380
+ })(exports.KnownMarkdownParsingSubmode || (exports.KnownMarkdownParsingSubmode = {}));
381
+ /** Known values of {@link MarkdownHeaderDepth} that the service accepts. */
382
+ exports.KnownMarkdownHeaderDepth = void 0;
383
+ (function (KnownMarkdownHeaderDepth) {
384
+ /** Indicates that headers up to a level of h1 will be considered while grouping markdown content. */
385
+ KnownMarkdownHeaderDepth["H1"] = "h1";
386
+ /** Indicates that headers up to a level of h2 will be considered while grouping markdown content. */
387
+ KnownMarkdownHeaderDepth["H2"] = "h2";
388
+ /** Indicates that headers up to a level of h3 will be considered while grouping markdown content. */
389
+ KnownMarkdownHeaderDepth["H3"] = "h3";
390
+ /** Indicates that headers up to a level of h4 will be considered while grouping markdown content. */
391
+ KnownMarkdownHeaderDepth["H4"] = "h4";
392
+ /** Indicates that headers up to a level of h5 will be considered while grouping markdown content. */
393
+ KnownMarkdownHeaderDepth["H5"] = "h5";
394
+ /** Indicates that headers up to a level of h6 will be considered while grouping markdown content. This is the default. */
395
+ KnownMarkdownHeaderDepth["H6"] = "h6";
396
+ })(exports.KnownMarkdownHeaderDepth || (exports.KnownMarkdownHeaderDepth = {}));
155
397
  /** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
156
398
  exports.KnownBlobIndexerDataToExtract = void 0;
157
399
  (function (KnownBlobIndexerDataToExtract) {
@@ -188,6 +430,20 @@ exports.KnownIndexerExecutionEnvironment = void 0;
188
430
  /** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
189
431
  KnownIndexerExecutionEnvironment["Private"] = "private";
190
432
  })(exports.KnownIndexerExecutionEnvironment || (exports.KnownIndexerExecutionEnvironment = {}));
433
+ /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
434
+ exports.KnownIndexerExecutionStatusDetail = void 0;
435
+ (function (KnownIndexerExecutionStatusDetail) {
436
+ /** Indicates that the reset that occurred was for a call to ResetDocs. */
437
+ KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
438
+ })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
439
+ /** Known values of {@link IndexingMode} that the service accepts. */
440
+ exports.KnownIndexingMode = void 0;
441
+ (function (KnownIndexingMode) {
442
+ /** The indexer is indexing all documents in the datasource. */
443
+ KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
444
+ /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
445
+ KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
446
+ })(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
191
447
  /** Known values of {@link IndexProjectionMode} that the service accepts. */
192
448
  exports.KnownIndexProjectionMode = void 0;
193
449
  (function (KnownIndexProjectionMode) {
@@ -227,7 +483,7 @@ exports.KnownSearchFieldDataType = void 0;
227
483
  KnownSearchFieldDataType["Byte"] = "Edm.Byte";
228
484
  })(exports.KnownSearchFieldDataType || (exports.KnownSearchFieldDataType = {}));
229
485
  /** Known values of {@link LexicalAnalyzerName} that the service accepts. */
230
- var KnownLexicalAnalyzerName;
486
+ exports.KnownLexicalAnalyzerName = void 0;
231
487
  (function (KnownLexicalAnalyzerName) {
232
488
  /** Microsoft analyzer for Arabic. */
233
489
  KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
@@ -415,7 +671,21 @@ var KnownLexicalAnalyzerName;
415
671
  KnownLexicalAnalyzerName["Stop"] = "stop";
416
672
  /** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */
417
673
  KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
418
- })(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
674
+ })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
675
+ /** Known values of {@link LexicalNormalizerName} that the service accepts. */
676
+ exports.KnownNormalizerNames = void 0;
677
+ (function (KnownLexicalNormalizerName) {
678
+ /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
679
+ KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
680
+ /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
681
+ KnownLexicalNormalizerName["Elision"] = "elision";
682
+ /** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
683
+ KnownLexicalNormalizerName["Lowercase"] = "lowercase";
684
+ /** Standard normalizer, which consists of lowercase and asciifolding. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
685
+ KnownLexicalNormalizerName["Standard"] = "standard";
686
+ /** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
687
+ KnownLexicalNormalizerName["Uppercase"] = "uppercase";
688
+ })(exports.KnownNormalizerNames || (exports.KnownNormalizerNames = {}));
419
689
  /** Known values of {@link VectorEncodingFormat} that the service accepts. */
420
690
  exports.KnownVectorEncodingFormat = void 0;
421
691
  (function (KnownVectorEncodingFormat) {
@@ -437,6 +707,10 @@ exports.KnownVectorSearchVectorizerKind = void 0;
437
707
  KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
438
708
  /** Generate embeddings using a custom web endpoint at query time. */
439
709
  KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
710
+ /** Generate embeddings for an image or text input at query time using the Azure AI Services Vision Vectorize API. */
711
+ KnownVectorSearchVectorizerKind["AIServicesVision"] = "aiServicesVision";
712
+ /** Generate embeddings using an Azure Machine Learning endpoint deployed via the Azure AI Studio Model Catalog at query time. */
713
+ KnownVectorSearchVectorizerKind["AML"] = "aml";
440
714
  })(exports.KnownVectorSearchVectorizerKind || (exports.KnownVectorSearchVectorizerKind = {}));
441
715
  /** Known values of {@link VectorSearchCompressionKind} that the service accepts. */
442
716
  exports.KnownVectorSearchCompressionKind = void 0;
@@ -446,6 +720,92 @@ exports.KnownVectorSearchCompressionKind = void 0;
446
720
  /** 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. */
447
721
  KnownVectorSearchCompressionKind["BinaryQuantization"] = "binaryQuantization";
448
722
  })(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
723
+ /** Known values of {@link VectorSearchCompressionRescoreStorageMethod} that the service accepts. */
724
+ exports.KnownVectorSearchCompressionRescoreStorageMethod = void 0;
725
+ (function (KnownVectorSearchCompressionRescoreStorageMethod) {
726
+ /** This option preserves the original full-precision vectors. Choose this option for maximum flexibility and highest quality of compressed search results. This consumes more storage but allows for rescoring and oversampling. */
727
+ KnownVectorSearchCompressionRescoreStorageMethod["PreserveOriginals"] = "preserveOriginals";
728
+ /** This option discards the original full-precision vectors. Choose this option for maximum storage savings. Since this option does not allow for rescoring and oversampling, it will often cause slight to moderate reductions in quality. */
729
+ KnownVectorSearchCompressionRescoreStorageMethod["DiscardOriginals"] = "discardOriginals";
730
+ })(exports.KnownVectorSearchCompressionRescoreStorageMethod || (exports.KnownVectorSearchCompressionRescoreStorageMethod = {}));
731
+ /** Known values of {@link TokenFilterName} that the service accepts. */
732
+ var KnownTokenFilterName;
733
+ (function (KnownTokenFilterName) {
734
+ /** 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 */
735
+ KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
736
+ /** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
737
+ KnownTokenFilterName["Apostrophe"] = "apostrophe";
738
+ /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
739
+ KnownTokenFilterName["AsciiFolding"] = "asciifolding";
740
+ /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
741
+ KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
742
+ /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
743
+ KnownTokenFilterName["CjkWidth"] = "cjk_width";
744
+ /** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
745
+ KnownTokenFilterName["Classic"] = "classic";
746
+ /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
747
+ KnownTokenFilterName["CommonGram"] = "common_grams";
748
+ /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
749
+ KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
750
+ /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
751
+ KnownTokenFilterName["Elision"] = "elision";
752
+ /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
753
+ KnownTokenFilterName["GermanNormalization"] = "german_normalization";
754
+ /** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
755
+ KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
756
+ /** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
757
+ KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
758
+ /** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
759
+ KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
760
+ /** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
761
+ KnownTokenFilterName["KStem"] = "kstem";
762
+ /** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
763
+ KnownTokenFilterName["Length"] = "length";
764
+ /** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
765
+ KnownTokenFilterName["Limit"] = "limit";
766
+ /** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
767
+ KnownTokenFilterName["Lowercase"] = "lowercase";
768
+ /** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
769
+ KnownTokenFilterName["NGram"] = "nGram_v2";
770
+ /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
771
+ KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
772
+ /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
773
+ KnownTokenFilterName["Phonetic"] = "phonetic";
774
+ /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
775
+ KnownTokenFilterName["PorterStem"] = "porter_stem";
776
+ /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
777
+ KnownTokenFilterName["Reverse"] = "reverse";
778
+ /** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
779
+ KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
780
+ /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
781
+ KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
782
+ /** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
783
+ KnownTokenFilterName["Shingle"] = "shingle";
784
+ /** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
785
+ KnownTokenFilterName["Snowball"] = "snowball";
786
+ /** 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 */
787
+ KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
788
+ /** Language specific stemming filter. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
789
+ KnownTokenFilterName["Stemmer"] = "stemmer";
790
+ /** 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 */
791
+ KnownTokenFilterName["Stopwords"] = "stopwords";
792
+ /** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
793
+ KnownTokenFilterName["Trim"] = "trim";
794
+ /** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
795
+ KnownTokenFilterName["Truncate"] = "truncate";
796
+ /** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
797
+ KnownTokenFilterName["Unique"] = "unique";
798
+ /** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
799
+ KnownTokenFilterName["Uppercase"] = "uppercase";
800
+ /** Splits words into subwords and performs optional transformations on subword groups. */
801
+ KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
802
+ })(KnownTokenFilterName || (KnownTokenFilterName = {}));
803
+ /** Known values of {@link CharFilterName} that the service accepts. */
804
+ var KnownCharFilterName;
805
+ (function (KnownCharFilterName) {
806
+ /** 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 */
807
+ KnownCharFilterName["HtmlStrip"] = "html_strip";
808
+ })(KnownCharFilterName || (KnownCharFilterName = {}));
449
809
  /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
450
810
  exports.KnownVectorSearchAlgorithmMetric = void 0;
451
811
  (function (KnownVectorSearchAlgorithmMetric) {
@@ -474,6 +834,22 @@ exports.KnownAzureOpenAIModelName = void 0;
474
834
  /** TextEmbedding3Small */
475
835
  KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
476
836
  })(exports.KnownAzureOpenAIModelName || (exports.KnownAzureOpenAIModelName = {}));
837
+ /** Known values of {@link AIStudioModelCatalogName} that the service accepts. */
838
+ exports.KnownAIStudioModelCatalogName = void 0;
839
+ (function (KnownAIStudioModelCatalogName) {
840
+ /** OpenAIClipImageTextEmbeddingsVitBasePatch32 */
841
+ KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsVitBasePatch32"] = "OpenAI-CLIP-Image-Text-Embeddings-vit-base-patch32";
842
+ /** OpenAIClipImageTextEmbeddingsViTLargePatch14336 */
843
+ KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsViTLargePatch14336"] = "OpenAI-CLIP-Image-Text-Embeddings-ViT-Large-Patch14-336";
844
+ /** FacebookDinoV2ImageEmbeddingsViTBase */
845
+ KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTBase"] = "Facebook-DinoV2-Image-Embeddings-ViT-Base";
846
+ /** FacebookDinoV2ImageEmbeddingsViTGiant */
847
+ KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTGiant"] = "Facebook-DinoV2-Image-Embeddings-ViT-Giant";
848
+ /** CohereEmbedV3English */
849
+ KnownAIStudioModelCatalogName["CohereEmbedV3English"] = "Cohere-embed-v3-english";
850
+ /** CohereEmbedV3Multilingual */
851
+ KnownAIStudioModelCatalogName["CohereEmbedV3Multilingual"] = "Cohere-embed-v3-multilingual";
852
+ })(exports.KnownAIStudioModelCatalogName || (exports.KnownAIStudioModelCatalogName = {}));
477
853
  /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
478
854
  exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
479
855
  (function (KnownKeyPhraseExtractionSkillLanguage) {
@@ -1188,6 +1564,26 @@ exports.KnownTextSplitMode = void 0;
1188
1564
  /** Split the text into individual sentences. */
1189
1565
  KnownTextSplitMode["Sentences"] = "sentences";
1190
1566
  })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
1567
+ /** Known values of {@link SplitSkillUnit} that the service accepts. */
1568
+ exports.KnownSplitSkillUnit = void 0;
1569
+ (function (KnownSplitSkillUnit) {
1570
+ /** The length will be measured by character. */
1571
+ KnownSplitSkillUnit["Characters"] = "characters";
1572
+ /** The length will be measured by an AzureOpenAI tokenizer from the tiktoken library. */
1573
+ KnownSplitSkillUnit["AzureOpenAITokens"] = "azureOpenAITokens";
1574
+ })(exports.KnownSplitSkillUnit || (exports.KnownSplitSkillUnit = {}));
1575
+ /** Known values of {@link SplitSkillEncoderModelName} that the service accepts. */
1576
+ exports.KnownSplitSkillEncoderModelName = void 0;
1577
+ (function (KnownSplitSkillEncoderModelName) {
1578
+ /** Refers to a base model trained with a 50,000 token vocabulary, often used in general natural language processing tasks. */
1579
+ KnownSplitSkillEncoderModelName["R50KBase"] = "r50k_base";
1580
+ /** A base model with a 50,000 token vocabulary, optimized for prompt-based tasks. */
1581
+ KnownSplitSkillEncoderModelName["P50KBase"] = "p50k_base";
1582
+ /** Similar to p50k_base but fine-tuned for editing or rephrasing tasks with a 50,000 token vocabulary. */
1583
+ KnownSplitSkillEncoderModelName["P50KEdit"] = "p50k_edit";
1584
+ /** A base model with a 100,000 token vocabulary. */
1585
+ KnownSplitSkillEncoderModelName["CL100KBase"] = "cl100k_base";
1586
+ })(exports.KnownSplitSkillEncoderModelName || (exports.KnownSplitSkillEncoderModelName = {}));
1191
1587
  /** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
1192
1588
  exports.KnownCustomEntityLookupSkillLanguage = void 0;
1193
1589
  (function (KnownCustomEntityLookupSkillLanguage) {
@@ -1358,8 +1754,30 @@ exports.KnownTextTranslationSkillLanguage = void 0;
1358
1754
  /** Punjabi */
1359
1755
  KnownTextTranslationSkillLanguage["Pa"] = "pa";
1360
1756
  })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
1757
+ /** Known values of {@link DocumentIntelligenceLayoutSkillOutputMode} that the service accepts. */
1758
+ exports.KnownDocumentIntelligenceLayoutSkillOutputMode = void 0;
1759
+ (function (KnownDocumentIntelligenceLayoutSkillOutputMode) {
1760
+ /** Specify the deepest markdown header section to parse. */
1761
+ KnownDocumentIntelligenceLayoutSkillOutputMode["OneToMany"] = "oneToMany";
1762
+ })(exports.KnownDocumentIntelligenceLayoutSkillOutputMode || (exports.KnownDocumentIntelligenceLayoutSkillOutputMode = {}));
1763
+ /** Known values of {@link DocumentIntelligenceLayoutSkillMarkdownHeaderDepth} that the service accepts. */
1764
+ exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth = void 0;
1765
+ (function (KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth) {
1766
+ /** Header level 1. */
1767
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H1"] = "h1";
1768
+ /** Header level 2. */
1769
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H2"] = "h2";
1770
+ /** Header level 3. */
1771
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H3"] = "h3";
1772
+ /** Header level 4. */
1773
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H4"] = "h4";
1774
+ /** Header level 5. */
1775
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H5"] = "h5";
1776
+ /** Header level 6. */
1777
+ KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth["H6"] = "h6";
1778
+ })(exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth || (exports.KnownDocumentIntelligenceLayoutSkillMarkdownHeaderDepth = {}));
1361
1779
  /** Known values of {@link LexicalTokenizerName} that the service accepts. */
1362
- exports.KnownTokenizerNames = void 0;
1780
+ var KnownLexicalTokenizerName;
1363
1781
  (function (KnownLexicalTokenizerName) {
1364
1782
  /** 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 */
1365
1783
  KnownLexicalTokenizerName["Classic"] = "classic";
@@ -1387,85 +1805,7 @@ exports.KnownTokenizerNames = void 0;
1387
1805
  KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
1388
1806
  /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
1389
1807
  KnownLexicalTokenizerName["Whitespace"] = "whitespace";
1390
- })(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
1391
- /** Known values of {@link TokenFilterName} that the service accepts. */
1392
- exports.KnownTokenFilterNames = void 0;
1393
- (function (KnownTokenFilterName) {
1394
- /** 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 */
1395
- KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
1396
- /** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
1397
- KnownTokenFilterName["Apostrophe"] = "apostrophe";
1398
- /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
1399
- KnownTokenFilterName["AsciiFolding"] = "asciifolding";
1400
- /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
1401
- KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
1402
- /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
1403
- KnownTokenFilterName["CjkWidth"] = "cjk_width";
1404
- /** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
1405
- KnownTokenFilterName["Classic"] = "classic";
1406
- /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
1407
- KnownTokenFilterName["CommonGram"] = "common_grams";
1408
- /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
1409
- KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
1410
- /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
1411
- KnownTokenFilterName["Elision"] = "elision";
1412
- /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
1413
- KnownTokenFilterName["GermanNormalization"] = "german_normalization";
1414
- /** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
1415
- KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
1416
- /** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
1417
- KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
1418
- /** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
1419
- KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
1420
- /** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
1421
- KnownTokenFilterName["KStem"] = "kstem";
1422
- /** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
1423
- KnownTokenFilterName["Length"] = "length";
1424
- /** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
1425
- KnownTokenFilterName["Limit"] = "limit";
1426
- /** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
1427
- KnownTokenFilterName["Lowercase"] = "lowercase";
1428
- /** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
1429
- KnownTokenFilterName["NGram"] = "nGram_v2";
1430
- /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
1431
- KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
1432
- /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
1433
- KnownTokenFilterName["Phonetic"] = "phonetic";
1434
- /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
1435
- KnownTokenFilterName["PorterStem"] = "porter_stem";
1436
- /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
1437
- KnownTokenFilterName["Reverse"] = "reverse";
1438
- /** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
1439
- KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
1440
- /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
1441
- KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
1442
- /** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
1443
- KnownTokenFilterName["Shingle"] = "shingle";
1444
- /** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
1445
- KnownTokenFilterName["Snowball"] = "snowball";
1446
- /** 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 */
1447
- KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
1448
- /** Language specific stemming filter. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
1449
- KnownTokenFilterName["Stemmer"] = "stemmer";
1450
- /** 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 */
1451
- KnownTokenFilterName["Stopwords"] = "stopwords";
1452
- /** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
1453
- KnownTokenFilterName["Trim"] = "trim";
1454
- /** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
1455
- KnownTokenFilterName["Truncate"] = "truncate";
1456
- /** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
1457
- KnownTokenFilterName["Unique"] = "unique";
1458
- /** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
1459
- KnownTokenFilterName["Uppercase"] = "uppercase";
1460
- /** Splits words into subwords and performs optional transformations on subword groups. */
1461
- KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
1462
- })(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
1463
- /** Known values of {@link CharFilterName} that the service accepts. */
1464
- exports.KnownCharFilterNames = void 0;
1465
- (function (KnownCharFilterName) {
1466
- /** 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 */
1467
- KnownCharFilterName["HtmlStrip"] = "html_strip";
1468
- })(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
1808
+ })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
1469
1809
  /** Known values of {@link RegexFlags} that the service accepts. */
1470
1810
  exports.KnownRegexFlags = void 0;
1471
1811
  (function (KnownRegexFlags) {
@@ -1488,7 +1828,7 @@ exports.KnownRegexFlags = void 0;
1488
1828
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
1489
1829
 
1490
1830
  // Copyright (c) Microsoft Corporation.
1491
- // Licensed under the MIT license.
1831
+ // Licensed under the MIT License.
1492
1832
  const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
1493
1833
  /**
1494
1834
  * Represents a geographic point in global coordinates.
@@ -1516,7 +1856,7 @@ class GeographyPoint {
1516
1856
  }
1517
1857
 
1518
1858
  // Copyright (c) Microsoft Corporation.
1519
- // Licensed under the MIT license.
1859
+ // Licensed under the MIT License.
1520
1860
  /**
1521
1861
  * Class used to perform batch operations
1522
1862
  * with multiple documents to the index.
@@ -1579,7 +1919,7 @@ class IndexDocumentsBatch {
1579
1919
  }
1580
1920
 
1581
1921
  // Copyright (c) Microsoft Corporation.
1582
- // Licensed under the MIT license.
1922
+ // Licensed under the MIT License.
1583
1923
  function formatNullAndUndefined(input) {
1584
1924
  if (input === null || input === undefined) {
1585
1925
  return "null";
@@ -1626,7 +1966,7 @@ function odata(strings, ...values) {
1626
1966
  }
1627
1967
 
1628
1968
  // Copyright (c) Microsoft Corporation.
1629
- // Licensed under the MIT license.
1969
+ // Licensed under the MIT License.
1630
1970
  /**
1631
1971
  * Known values for Search Audience
1632
1972
  */
@@ -1647,7 +1987,7 @@ exports.KnownSearchAudience = void 0;
1647
1987
  })(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
1648
1988
 
1649
1989
  // Copyright (c) Microsoft Corporation.
1650
- // Licensed under the MIT license.
1990
+ // Licensed under the MIT License.
1651
1991
  /**
1652
1992
  * Encodes a string in base64 format.
1653
1993
  * @param value - The string to encode.
@@ -1853,6 +2193,20 @@ const SearchDocumentsResult = {
1853
2193
  name: "String",
1854
2194
  },
1855
2195
  },
2196
+ semanticQueryRewritesResultType: {
2197
+ serializedName: "@search\\.semanticQueryRewritesResultType",
2198
+ readOnly: true,
2199
+ type: {
2200
+ name: "String",
2201
+ },
2202
+ },
2203
+ debugInfo: {
2204
+ serializedName: "@search\\.debug",
2205
+ type: {
2206
+ name: "Composite",
2207
+ className: "DebugInfo",
2208
+ },
2209
+ },
1856
2210
  },
1857
2211
  },
1858
2212
  };
@@ -1869,6 +2223,21 @@ const FacetResult = {
1869
2223
  name: "Number",
1870
2224
  },
1871
2225
  },
2226
+ facets: {
2227
+ serializedName: "@search\\.facets",
2228
+ readOnly: true,
2229
+ type: {
2230
+ name: "Dictionary",
2231
+ value: {
2232
+ type: {
2233
+ name: "Sequence",
2234
+ element: {
2235
+ type: { name: "Composite", className: "FacetResult" },
2236
+ },
2237
+ },
2238
+ },
2239
+ },
2240
+ },
1872
2241
  },
1873
2242
  },
1874
2243
  };
@@ -2008,6 +2377,12 @@ const SearchRequest = {
2008
2377
  name: "String",
2009
2378
  },
2010
2379
  },
2380
+ debug: {
2381
+ serializedName: "debug",
2382
+ type: {
2383
+ name: "String",
2384
+ },
2385
+ },
2011
2386
  searchText: {
2012
2387
  serializedName: "search",
2013
2388
  type: {
@@ -2027,6 +2402,18 @@ const SearchRequest = {
2027
2402
  allowedValues: ["any", "all"],
2028
2403
  },
2029
2404
  },
2405
+ queryLanguage: {
2406
+ serializedName: "queryLanguage",
2407
+ type: {
2408
+ name: "String",
2409
+ },
2410
+ },
2411
+ speller: {
2412
+ serializedName: "speller",
2413
+ type: {
2414
+ name: "String",
2415
+ },
2416
+ },
2030
2417
  select: {
2031
2418
  serializedName: "select",
2032
2419
  type: {
@@ -2085,6 +2472,18 @@ const SearchRequest = {
2085
2472
  name: "String",
2086
2473
  },
2087
2474
  },
2475
+ queryRewrites: {
2476
+ serializedName: "queryRewrites",
2477
+ type: {
2478
+ name: "String",
2479
+ },
2480
+ },
2481
+ semanticFields: {
2482
+ serializedName: "semanticFields",
2483
+ type: {
2484
+ name: "String",
2485
+ },
2486
+ },
2088
2487
  vectorQueries: {
2089
2488
  serializedName: "vectorQueries",
2090
2489
  type: {
@@ -2103,6 +2502,13 @@ const SearchRequest = {
2103
2502
  name: "String",
2104
2503
  },
2105
2504
  },
2505
+ hybridSearch: {
2506
+ serializedName: "hybridSearch",
2507
+ type: {
2508
+ name: "Composite",
2509
+ className: "HybridSearch",
2510
+ },
2511
+ },
2106
2512
  },
2107
2513
  },
2108
2514
  };
@@ -2153,6 +2559,59 @@ const VectorQuery = {
2153
2559
  name: "Number",
2154
2560
  },
2155
2561
  },
2562
+ threshold: {
2563
+ serializedName: "threshold",
2564
+ type: {
2565
+ name: "Composite",
2566
+ className: "VectorThreshold",
2567
+ },
2568
+ },
2569
+ filterOverride: {
2570
+ serializedName: "filterOverride",
2571
+ type: {
2572
+ name: "String",
2573
+ },
2574
+ },
2575
+ },
2576
+ },
2577
+ };
2578
+ const VectorThreshold = {
2579
+ type: {
2580
+ name: "Composite",
2581
+ className: "VectorThreshold",
2582
+ uberParent: "VectorThreshold",
2583
+ polymorphicDiscriminator: {
2584
+ serializedName: "kind",
2585
+ clientName: "kind",
2586
+ },
2587
+ modelProperties: {
2588
+ kind: {
2589
+ serializedName: "kind",
2590
+ required: true,
2591
+ type: {
2592
+ name: "String",
2593
+ },
2594
+ },
2595
+ },
2596
+ },
2597
+ };
2598
+ const HybridSearch = {
2599
+ type: {
2600
+ name: "Composite",
2601
+ className: "HybridSearch",
2602
+ modelProperties: {
2603
+ maxTextRecallSize: {
2604
+ serializedName: "maxTextRecallSize",
2605
+ type: {
2606
+ name: "Number",
2607
+ },
2608
+ },
2609
+ countAndFacetMode: {
2610
+ serializedName: "countAndFacetMode",
2611
+ type: {
2612
+ name: "String",
2613
+ },
2614
+ },
2156
2615
  },
2157
2616
  },
2158
2617
  };
@@ -2202,6 +2661,13 @@ const SearchResult = {
2202
2661
  },
2203
2662
  },
2204
2663
  },
2664
+ documentDebugInfo: {
2665
+ serializedName: "@search\\.documentDebugInfo",
2666
+ type: {
2667
+ name: "Composite",
2668
+ className: "DocumentDebugInfo",
2669
+ },
2670
+ },
2205
2671
  },
2206
2672
  },
2207
2673
  };
@@ -2229,18 +2695,301 @@ const QueryCaptionResult = {
2229
2695
  },
2230
2696
  },
2231
2697
  };
2232
- const SuggestDocumentsResult = {
2698
+ const DocumentDebugInfo = {
2233
2699
  type: {
2234
2700
  name: "Composite",
2235
- className: "SuggestDocumentsResult",
2701
+ className: "DocumentDebugInfo",
2236
2702
  modelProperties: {
2237
- results: {
2238
- serializedName: "value",
2239
- required: true,
2240
- readOnly: true,
2703
+ semantic: {
2704
+ serializedName: "semantic",
2241
2705
  type: {
2242
- name: "Sequence",
2243
- element: {
2706
+ name: "Composite",
2707
+ className: "SemanticDebugInfo",
2708
+ },
2709
+ },
2710
+ vectors: {
2711
+ serializedName: "vectors",
2712
+ type: {
2713
+ name: "Composite",
2714
+ className: "VectorsDebugInfo",
2715
+ },
2716
+ },
2717
+ },
2718
+ },
2719
+ };
2720
+ const SemanticDebugInfo = {
2721
+ type: {
2722
+ name: "Composite",
2723
+ className: "SemanticDebugInfo",
2724
+ modelProperties: {
2725
+ titleField: {
2726
+ serializedName: "titleField",
2727
+ type: {
2728
+ name: "Composite",
2729
+ className: "QueryResultDocumentSemanticField",
2730
+ },
2731
+ },
2732
+ contentFields: {
2733
+ serializedName: "contentFields",
2734
+ readOnly: true,
2735
+ type: {
2736
+ name: "Sequence",
2737
+ element: {
2738
+ type: {
2739
+ name: "Composite",
2740
+ className: "QueryResultDocumentSemanticField",
2741
+ },
2742
+ },
2743
+ },
2744
+ },
2745
+ keywordFields: {
2746
+ serializedName: "keywordFields",
2747
+ readOnly: true,
2748
+ type: {
2749
+ name: "Sequence",
2750
+ element: {
2751
+ type: {
2752
+ name: "Composite",
2753
+ className: "QueryResultDocumentSemanticField",
2754
+ },
2755
+ },
2756
+ },
2757
+ },
2758
+ rerankerInput: {
2759
+ serializedName: "rerankerInput",
2760
+ type: {
2761
+ name: "Composite",
2762
+ className: "QueryResultDocumentRerankerInput",
2763
+ },
2764
+ },
2765
+ },
2766
+ },
2767
+ };
2768
+ const QueryResultDocumentSemanticField = {
2769
+ type: {
2770
+ name: "Composite",
2771
+ className: "QueryResultDocumentSemanticField",
2772
+ modelProperties: {
2773
+ name: {
2774
+ serializedName: "name",
2775
+ readOnly: true,
2776
+ type: {
2777
+ name: "String",
2778
+ },
2779
+ },
2780
+ state: {
2781
+ serializedName: "state",
2782
+ readOnly: true,
2783
+ type: {
2784
+ name: "String",
2785
+ },
2786
+ },
2787
+ },
2788
+ },
2789
+ };
2790
+ const QueryResultDocumentRerankerInput = {
2791
+ type: {
2792
+ name: "Composite",
2793
+ className: "QueryResultDocumentRerankerInput",
2794
+ modelProperties: {
2795
+ title: {
2796
+ serializedName: "title",
2797
+ readOnly: true,
2798
+ type: {
2799
+ name: "String",
2800
+ },
2801
+ },
2802
+ content: {
2803
+ serializedName: "content",
2804
+ readOnly: true,
2805
+ type: {
2806
+ name: "String",
2807
+ },
2808
+ },
2809
+ keywords: {
2810
+ serializedName: "keywords",
2811
+ readOnly: true,
2812
+ type: {
2813
+ name: "String",
2814
+ },
2815
+ },
2816
+ },
2817
+ },
2818
+ };
2819
+ const VectorsDebugInfo = {
2820
+ type: {
2821
+ name: "Composite",
2822
+ className: "VectorsDebugInfo",
2823
+ modelProperties: {
2824
+ subscores: {
2825
+ serializedName: "subscores",
2826
+ type: {
2827
+ name: "Composite",
2828
+ className: "QueryResultDocumentSubscores",
2829
+ },
2830
+ },
2831
+ },
2832
+ },
2833
+ };
2834
+ const QueryResultDocumentSubscores = {
2835
+ type: {
2836
+ name: "Composite",
2837
+ className: "QueryResultDocumentSubscores",
2838
+ modelProperties: {
2839
+ text: {
2840
+ serializedName: "text",
2841
+ type: {
2842
+ name: "Composite",
2843
+ className: "TextResult",
2844
+ },
2845
+ },
2846
+ vectors: {
2847
+ serializedName: "vectors",
2848
+ readOnly: true,
2849
+ type: {
2850
+ name: "Sequence",
2851
+ element: {
2852
+ type: {
2853
+ name: "Dictionary",
2854
+ value: {
2855
+ type: {
2856
+ name: "Composite",
2857
+ className: "SingleVectorFieldResult",
2858
+ },
2859
+ },
2860
+ },
2861
+ },
2862
+ },
2863
+ },
2864
+ documentBoost: {
2865
+ serializedName: "documentBoost",
2866
+ readOnly: true,
2867
+ type: {
2868
+ name: "Number",
2869
+ },
2870
+ },
2871
+ },
2872
+ },
2873
+ };
2874
+ const TextResult = {
2875
+ type: {
2876
+ name: "Composite",
2877
+ className: "TextResult",
2878
+ modelProperties: {
2879
+ searchScore: {
2880
+ serializedName: "searchScore",
2881
+ readOnly: true,
2882
+ type: {
2883
+ name: "Number",
2884
+ },
2885
+ },
2886
+ },
2887
+ },
2888
+ };
2889
+ const SingleVectorFieldResult = {
2890
+ type: {
2891
+ name: "Composite",
2892
+ className: "SingleVectorFieldResult",
2893
+ modelProperties: {
2894
+ searchScore: {
2895
+ serializedName: "searchScore",
2896
+ readOnly: true,
2897
+ type: {
2898
+ name: "Number",
2899
+ },
2900
+ },
2901
+ vectorSimilarity: {
2902
+ serializedName: "vectorSimilarity",
2903
+ readOnly: true,
2904
+ type: {
2905
+ name: "Number",
2906
+ },
2907
+ },
2908
+ },
2909
+ },
2910
+ };
2911
+ const DebugInfo = {
2912
+ type: {
2913
+ name: "Composite",
2914
+ className: "DebugInfo",
2915
+ modelProperties: {
2916
+ queryRewrites: {
2917
+ serializedName: "queryRewrites",
2918
+ type: {
2919
+ name: "Composite",
2920
+ className: "QueryRewritesDebugInfo",
2921
+ },
2922
+ },
2923
+ },
2924
+ },
2925
+ };
2926
+ const QueryRewritesDebugInfo = {
2927
+ type: {
2928
+ name: "Composite",
2929
+ className: "QueryRewritesDebugInfo",
2930
+ modelProperties: {
2931
+ text: {
2932
+ serializedName: "text",
2933
+ type: {
2934
+ name: "Composite",
2935
+ className: "QueryRewritesValuesDebugInfo",
2936
+ },
2937
+ },
2938
+ vectors: {
2939
+ serializedName: "vectors",
2940
+ readOnly: true,
2941
+ type: {
2942
+ name: "Sequence",
2943
+ element: {
2944
+ type: {
2945
+ name: "Composite",
2946
+ className: "QueryRewritesValuesDebugInfo",
2947
+ },
2948
+ },
2949
+ },
2950
+ },
2951
+ },
2952
+ },
2953
+ };
2954
+ const QueryRewritesValuesDebugInfo = {
2955
+ type: {
2956
+ name: "Composite",
2957
+ className: "QueryRewritesValuesDebugInfo",
2958
+ modelProperties: {
2959
+ inputQuery: {
2960
+ serializedName: "inputQuery",
2961
+ readOnly: true,
2962
+ type: {
2963
+ name: "String",
2964
+ },
2965
+ },
2966
+ rewrites: {
2967
+ serializedName: "rewrites",
2968
+ readOnly: true,
2969
+ type: {
2970
+ name: "Sequence",
2971
+ element: {
2972
+ type: {
2973
+ name: "String",
2974
+ },
2975
+ },
2976
+ },
2977
+ },
2978
+ },
2979
+ },
2980
+ };
2981
+ const SuggestDocumentsResult = {
2982
+ type: {
2983
+ name: "Composite",
2984
+ className: "SuggestDocumentsResult",
2985
+ modelProperties: {
2986
+ results: {
2987
+ serializedName: "value",
2988
+ required: true,
2989
+ readOnly: true,
2990
+ type: {
2991
+ name: "Sequence",
2992
+ element: {
2244
2993
  type: {
2245
2994
  name: "Composite",
2246
2995
  className: "SuggestResult",
@@ -2608,39 +3357,128 @@ const VectorizableTextQuery = {
2608
3357
  type: {
2609
3358
  name: "String",
2610
3359
  },
3360
+ }, queryRewrites: {
3361
+ serializedName: "queryRewrites",
3362
+ type: {
3363
+ name: "String",
3364
+ },
2611
3365
  } }),
2612
3366
  },
2613
3367
  };
2614
- let discriminators$1 = {
2615
- VectorQuery: VectorQuery,
2616
- "VectorQuery.vector": VectorizedQuery,
2617
- "VectorQuery.text": VectorizableTextQuery,
3368
+ const VectorizableImageUrlQuery = {
3369
+ serializedName: "imageUrl",
3370
+ type: {
3371
+ name: "Composite",
3372
+ className: "VectorizableImageUrlQuery",
3373
+ uberParent: "VectorQuery",
3374
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
3375
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { url: {
3376
+ serializedName: "url",
3377
+ type: {
3378
+ name: "String",
3379
+ },
3380
+ } }),
3381
+ },
2618
3382
  };
2619
-
2620
- var Mappers$1 = /*#__PURE__*/Object.freeze({
2621
- __proto__: null,
2622
- AutocompleteItem: AutocompleteItem,
2623
- AutocompleteRequest: AutocompleteRequest,
2624
- AutocompleteResult: AutocompleteResult,
2625
- ErrorAdditionalInfo: ErrorAdditionalInfo$1,
2626
- ErrorDetail: ErrorDetail$1,
2627
- ErrorResponse: ErrorResponse$1,
2628
- FacetResult: FacetResult,
2629
- IndexAction: IndexAction,
2630
- IndexBatch: IndexBatch,
2631
- IndexDocumentsResult: IndexDocumentsResult,
2632
- IndexingResult: IndexingResult,
2633
- QueryAnswerResult: QueryAnswerResult,
2634
- QueryCaptionResult: QueryCaptionResult,
2635
- SearchDocumentsResult: SearchDocumentsResult,
2636
- SearchRequest: SearchRequest,
2637
- SearchResult: SearchResult,
2638
- SuggestDocumentsResult: SuggestDocumentsResult,
2639
- SuggestRequest: SuggestRequest,
2640
- SuggestResult: SuggestResult,
2641
- VectorQuery: VectorQuery,
2642
- VectorizableTextQuery: VectorizableTextQuery,
3383
+ const VectorizableImageBinaryQuery = {
3384
+ serializedName: "imageBinary",
3385
+ type: {
3386
+ name: "Composite",
3387
+ className: "VectorizableImageBinaryQuery",
3388
+ uberParent: "VectorQuery",
3389
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
3390
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { base64Image: {
3391
+ serializedName: "base64Image",
3392
+ type: {
3393
+ name: "String",
3394
+ },
3395
+ } }),
3396
+ },
3397
+ };
3398
+ const VectorSimilarityThreshold = {
3399
+ serializedName: "vectorSimilarity",
3400
+ type: {
3401
+ name: "Composite",
3402
+ className: "VectorSimilarityThreshold",
3403
+ uberParent: "VectorThreshold",
3404
+ polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
3405
+ modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
3406
+ serializedName: "value",
3407
+ required: true,
3408
+ type: {
3409
+ name: "Number",
3410
+ },
3411
+ } }),
3412
+ },
3413
+ };
3414
+ const SearchScoreThreshold = {
3415
+ serializedName: "searchScore",
3416
+ type: {
3417
+ name: "Composite",
3418
+ className: "SearchScoreThreshold",
3419
+ uberParent: "VectorThreshold",
3420
+ polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
3421
+ modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
3422
+ serializedName: "value",
3423
+ required: true,
3424
+ type: {
3425
+ name: "Number",
3426
+ },
3427
+ } }),
3428
+ },
3429
+ };
3430
+ let discriminators$1 = {
3431
+ VectorQuery: VectorQuery,
3432
+ VectorThreshold: VectorThreshold,
3433
+ "VectorQuery.vector": VectorizedQuery,
3434
+ "VectorQuery.text": VectorizableTextQuery,
3435
+ "VectorQuery.imageUrl": VectorizableImageUrlQuery,
3436
+ "VectorQuery.imageBinary": VectorizableImageBinaryQuery,
3437
+ "VectorThreshold.vectorSimilarity": VectorSimilarityThreshold,
3438
+ "VectorThreshold.searchScore": SearchScoreThreshold,
3439
+ };
3440
+
3441
+ var Mappers$1 = /*#__PURE__*/Object.freeze({
3442
+ __proto__: null,
3443
+ AutocompleteItem: AutocompleteItem,
3444
+ AutocompleteRequest: AutocompleteRequest,
3445
+ AutocompleteResult: AutocompleteResult,
3446
+ DebugInfo: DebugInfo,
3447
+ DocumentDebugInfo: DocumentDebugInfo,
3448
+ ErrorAdditionalInfo: ErrorAdditionalInfo$1,
3449
+ ErrorDetail: ErrorDetail$1,
3450
+ ErrorResponse: ErrorResponse$1,
3451
+ FacetResult: FacetResult,
3452
+ HybridSearch: HybridSearch,
3453
+ IndexAction: IndexAction,
3454
+ IndexBatch: IndexBatch,
3455
+ IndexDocumentsResult: IndexDocumentsResult,
3456
+ IndexingResult: IndexingResult,
3457
+ QueryAnswerResult: QueryAnswerResult,
3458
+ QueryCaptionResult: QueryCaptionResult,
3459
+ QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
3460
+ QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
3461
+ QueryResultDocumentSubscores: QueryResultDocumentSubscores,
3462
+ QueryRewritesDebugInfo: QueryRewritesDebugInfo,
3463
+ QueryRewritesValuesDebugInfo: QueryRewritesValuesDebugInfo,
3464
+ SearchDocumentsResult: SearchDocumentsResult,
3465
+ SearchRequest: SearchRequest,
3466
+ SearchResult: SearchResult,
3467
+ SearchScoreThreshold: SearchScoreThreshold,
3468
+ SemanticDebugInfo: SemanticDebugInfo,
3469
+ SingleVectorFieldResult: SingleVectorFieldResult,
3470
+ SuggestDocumentsResult: SuggestDocumentsResult,
3471
+ SuggestRequest: SuggestRequest,
3472
+ SuggestResult: SuggestResult,
3473
+ TextResult: TextResult,
3474
+ VectorQuery: VectorQuery,
3475
+ VectorSimilarityThreshold: VectorSimilarityThreshold,
3476
+ VectorThreshold: VectorThreshold,
3477
+ VectorizableImageBinaryQuery: VectorizableImageBinaryQuery,
3478
+ VectorizableImageUrlQuery: VectorizableImageUrlQuery,
3479
+ VectorizableTextQuery: VectorizableTextQuery,
2643
3480
  VectorizedQuery: VectorizedQuery,
3481
+ VectorsDebugInfo: VectorsDebugInfo,
2644
3482
  discriminators: discriminators$1
2645
3483
  });
2646
3484
 
@@ -2960,6 +3798,57 @@ const semanticQuery = {
2960
3798
  },
2961
3799
  },
2962
3800
  };
3801
+ const queryRewrites = {
3802
+ parameterPath: ["options", "searchOptions", "queryRewrites"],
3803
+ mapper: {
3804
+ serializedName: "queryRewrites",
3805
+ type: {
3806
+ name: "String",
3807
+ },
3808
+ },
3809
+ };
3810
+ const debug = {
3811
+ parameterPath: ["options", "searchOptions", "debug"],
3812
+ mapper: {
3813
+ serializedName: "debug",
3814
+ type: {
3815
+ name: "String",
3816
+ },
3817
+ },
3818
+ };
3819
+ const queryLanguage = {
3820
+ parameterPath: ["options", "searchOptions", "queryLanguage"],
3821
+ mapper: {
3822
+ serializedName: "queryLanguage",
3823
+ type: {
3824
+ name: "String",
3825
+ },
3826
+ },
3827
+ };
3828
+ const speller = {
3829
+ parameterPath: ["options", "searchOptions", "speller"],
3830
+ mapper: {
3831
+ serializedName: "speller",
3832
+ type: {
3833
+ name: "String",
3834
+ },
3835
+ },
3836
+ };
3837
+ const semanticFields = {
3838
+ parameterPath: ["options", "searchOptions", "semanticFields"],
3839
+ mapper: {
3840
+ serializedName: "semanticFields",
3841
+ type: {
3842
+ name: "Sequence",
3843
+ element: {
3844
+ type: {
3845
+ name: "String",
3846
+ },
3847
+ },
3848
+ },
3849
+ },
3850
+ collectionFormat: "CSV",
3851
+ };
2963
3852
  const contentType$1 = {
2964
3853
  parameterPath: ["options", "contentType"],
2965
3854
  mapper: {
@@ -3255,7 +4144,7 @@ class DocumentsImpl {
3255
4144
  * @param options The options parameters.
3256
4145
  */
3257
4146
  get(key, options) {
3258
- return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
4147
+ return this.client.sendOperationRequest({ key, options }, getOperationSpec$6);
3259
4148
  }
3260
4149
  /**
3261
4150
  * Suggests documents in the index that match the given partial query text.
@@ -3304,7 +4193,7 @@ class DocumentsImpl {
3304
4193
  }
3305
4194
  }
3306
4195
  // Operation Specifications
3307
- const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
4196
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
3308
4197
  const countOperationSpec = {
3309
4198
  path: "/docs/$count",
3310
4199
  httpMethod: "GET",
@@ -3319,7 +4208,7 @@ const countOperationSpec = {
3319
4208
  queryParameters: [apiVersion$1],
3320
4209
  urlParameters: [endpoint$1, indexName$1],
3321
4210
  headerParameters: [accept$1],
3322
- serializer: serializer$6,
4211
+ serializer: serializer$7,
3323
4212
  };
3324
4213
  const searchGetOperationSpec = {
3325
4214
  path: "/docs",
@@ -3359,10 +4248,15 @@ const searchGetOperationSpec = {
3359
4248
  answers,
3360
4249
  captions,
3361
4250
  semanticQuery,
4251
+ queryRewrites,
4252
+ debug,
4253
+ queryLanguage,
4254
+ speller,
4255
+ semanticFields,
3362
4256
  ],
3363
4257
  urlParameters: [endpoint$1, indexName$1],
3364
4258
  headerParameters: [accept$1],
3365
- serializer: serializer$6,
4259
+ serializer: serializer$7,
3366
4260
  };
3367
4261
  const searchPostOperationSpec = {
3368
4262
  path: "/docs/search.post.search",
@@ -3380,9 +4274,9 @@ const searchPostOperationSpec = {
3380
4274
  urlParameters: [endpoint$1, indexName$1],
3381
4275
  headerParameters: [accept$1, contentType$1],
3382
4276
  mediaType: "json",
3383
- serializer: serializer$6,
4277
+ serializer: serializer$7,
3384
4278
  };
3385
- const getOperationSpec$5 = {
4279
+ const getOperationSpec$6 = {
3386
4280
  path: "/docs('{key}')",
3387
4281
  httpMethod: "GET",
3388
4282
  responses: {
@@ -3398,7 +4292,7 @@ const getOperationSpec$5 = {
3398
4292
  queryParameters: [apiVersion$1, selectedFields],
3399
4293
  urlParameters: [endpoint$1, indexName$1, key],
3400
4294
  headerParameters: [accept$1],
3401
- serializer: serializer$6,
4295
+ serializer: serializer$7,
3402
4296
  };
3403
4297
  const suggestGetOperationSpec = {
3404
4298
  path: "/docs/search.suggest",
@@ -3427,7 +4321,7 @@ const suggestGetOperationSpec = {
3427
4321
  ],
3428
4322
  urlParameters: [endpoint$1, indexName$1],
3429
4323
  headerParameters: [accept$1],
3430
- serializer: serializer$6,
4324
+ serializer: serializer$7,
3431
4325
  };
3432
4326
  const suggestPostOperationSpec = {
3433
4327
  path: "/docs/search.post.suggest",
@@ -3445,7 +4339,7 @@ const suggestPostOperationSpec = {
3445
4339
  urlParameters: [endpoint$1, indexName$1],
3446
4340
  headerParameters: [accept$1, contentType$1],
3447
4341
  mediaType: "json",
3448
- serializer: serializer$6,
4342
+ serializer: serializer$7,
3449
4343
  };
3450
4344
  const indexOperationSpec = {
3451
4345
  path: "/docs/search.index",
@@ -3466,7 +4360,7 @@ const indexOperationSpec = {
3466
4360
  urlParameters: [endpoint$1, indexName$1],
3467
4361
  headerParameters: [accept$1, contentType$1],
3468
4362
  mediaType: "json",
3469
- serializer: serializer$6,
4363
+ serializer: serializer$7,
3470
4364
  };
3471
4365
  const autocompleteGetOperationSpec = {
3472
4366
  path: "/docs/search.autocomplete",
@@ -3494,7 +4388,7 @@ const autocompleteGetOperationSpec = {
3494
4388
  ],
3495
4389
  urlParameters: [endpoint$1, indexName$1],
3496
4390
  headerParameters: [accept$1],
3497
- serializer: serializer$6,
4391
+ serializer: serializer$7,
3498
4392
  };
3499
4393
  const autocompletePostOperationSpec = {
3500
4394
  path: "/docs/search.post.autocomplete",
@@ -3512,7 +4406,7 @@ const autocompletePostOperationSpec = {
3512
4406
  urlParameters: [endpoint$1, indexName$1],
3513
4407
  headerParameters: [accept$1, contentType$1],
3514
4408
  mediaType: "json",
3515
- serializer: serializer$6,
4409
+ serializer: serializer$7,
3516
4410
  };
3517
4411
 
3518
4412
  /*
@@ -3549,7 +4443,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
3549
4443
  const defaults = {
3550
4444
  requestContentType: "application/json; charset=utf-8",
3551
4445
  };
3552
- const packageDetails = `azsdk-js-search-documents/12.1.0`;
4446
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.2`;
3553
4447
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3554
4448
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3555
4449
  : `${packageDetails}`;
@@ -3592,14 +4486,14 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
3592
4486
  };
3593
4487
 
3594
4488
  // Copyright (c) Microsoft Corporation.
3595
- // Licensed under the MIT license.
4489
+ // Licensed under the MIT License.
3596
4490
  /**
3597
4491
  * The `@azure/logger` configuration for this package.
3598
4492
  */
3599
4493
  const logger = logger$1.createClientLogger("search");
3600
4494
 
3601
4495
  // Copyright (c) Microsoft Corporation.
3602
- // Licensed under the MIT license.
4496
+ // Licensed under the MIT License.
3603
4497
  const AcceptHeaderName = "Accept";
3604
4498
  const odataMetadataPolicy = "OdataMetadataPolicy";
3605
4499
  /**
@@ -3617,7 +4511,7 @@ function createOdataMetadataPolicy(metadataLevel) {
3617
4511
  }
3618
4512
 
3619
4513
  // Copyright (c) Microsoft Corporation.
3620
- // Licensed under the MIT license.
4514
+ // Licensed under the MIT License.
3621
4515
  const API_KEY_HEADER_NAME = "api-key";
3622
4516
  const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
3623
4517
  /**
@@ -3637,7 +4531,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
3637
4531
  }
3638
4532
 
3639
4533
  // Copyright (c) Microsoft Corporation.
3640
- // Licensed under the MIT license.
4534
+ // Licensed under the MIT License.
3641
4535
  function walk(v, fn) {
3642
4536
  var _a;
3643
4537
  const seen = new Set();
@@ -3715,7 +4609,7 @@ function shallowCopy(value) {
3715
4609
  }
3716
4610
 
3717
4611
  // Copyright (c) Microsoft Corporation.
3718
- // Licensed under the MIT license.
4612
+ // Licensed under the MIT License.
3719
4613
  const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
3720
4614
  const GeoJSONPointTypeName = "Point";
3721
4615
  const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
@@ -3852,7 +4746,7 @@ function isValidObject(obj, options = {}) {
3852
4746
  }
3853
4747
 
3854
4748
  // Copyright (c) Microsoft Corporation.
3855
- // Licensed under the MIT license.
4749
+ // Licensed under the MIT License.
3856
4750
  function isComplexField(field) {
3857
4751
  return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
3858
4752
  }
@@ -3860,7 +4754,7 @@ function isComplexField(field) {
3860
4754
  * Defines values for TokenizerName.
3861
4755
  * @readonly
3862
4756
  */
3863
- var KnownTokenizerNames;
4757
+ exports.KnownTokenizerNames = void 0;
3864
4758
  (function (KnownTokenizerNames) {
3865
4759
  /**
3866
4760
  * Grammar-based tokenizer that is suitable for processing most European-language documents. See
@@ -3928,12 +4822,12 @@ var KnownTokenizerNames;
3928
4822
  * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
3929
4823
  */
3930
4824
  KnownTokenizerNames["Whitespace"] = "whitespace";
3931
- })(KnownTokenizerNames || (KnownTokenizerNames = {}));
4825
+ })(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
3932
4826
  /**
3933
4827
  * Defines values for TokenFilterName.
3934
4828
  * @readonly
3935
4829
  */
3936
- var KnownTokenFilterNames;
4830
+ exports.KnownTokenFilterNames = void 0;
3937
4831
  (function (KnownTokenFilterNames) {
3938
4832
  /**
3939
4833
  * A token filter that applies the Arabic normalizer to normalize the orthography. See
@@ -4111,19 +5005,19 @@ var KnownTokenFilterNames;
4111
5005
  * Splits words into subwords and performs optional transformations on subword groups.
4112
5006
  */
4113
5007
  KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
4114
- })(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
5008
+ })(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
4115
5009
  /**
4116
5010
  * Defines values for CharFilterName.
4117
5011
  * @readonly
4118
5012
  */
4119
- var KnownCharFilterNames;
5013
+ exports.KnownCharFilterNames = void 0;
4120
5014
  (function (KnownCharFilterNames) {
4121
5015
  /**
4122
5016
  * A character filter that attempts to strip out HTML constructs. See
4123
5017
  * https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
4124
5018
  */
4125
5019
  KnownCharFilterNames["HtmlStrip"] = "html_strip";
4126
- })(KnownCharFilterNames || (KnownCharFilterNames = {}));
5020
+ })(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
4127
5021
  /**
4128
5022
  * Defines values for AnalyzerName.
4129
5023
  * See https://docs.microsoft.com/rest/api/searchservice/Language-support
@@ -4506,8 +5400,8 @@ exports.KnownAnalyzerNames = void 0;
4506
5400
  // END manually modified generated interfaces
4507
5401
 
4508
5402
  // Copyright (c) Microsoft Corporation.
4509
- // Licensed under the MIT license.
4510
- const defaultServiceVersion = "2024-07-01";
5403
+ // Licensed under the MIT License.
5404
+ const defaultServiceVersion = "2024-09-01-Preview";
4511
5405
  const knownSkills = {
4512
5406
  "#Microsoft.Skills.Custom.WebApiSkill": true,
4513
5407
  "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": true,
@@ -4528,6 +5422,9 @@ const knownSkills = {
4528
5422
  "#Microsoft.Skills.Util.ShaperSkill": true,
4529
5423
  "#Microsoft.Skills.Vision.ImageAnalysisSkill": true,
4530
5424
  "#Microsoft.Skills.Vision.OcrSkill": true,
5425
+ "#Microsoft.Skills.Custom.AmlSkill": true,
5426
+ "#Microsoft.Skills.Vision.VectorizeSkill": true,
5427
+ "#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill": true,
4531
5428
  };
4532
5429
  function convertSkillsToPublic(skills) {
4533
5430
  if (!skills) {
@@ -4540,18 +5437,43 @@ function convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount) {
4540
5437
  if (!cognitiveServicesAccount) {
4541
5438
  return cognitiveServicesAccount;
4542
5439
  }
4543
- return cognitiveServicesAccount;
5440
+ switch (cognitiveServicesAccount.odatatype) {
5441
+ case "#Microsoft.Azure.Search.AIServicesByIdentity":
5442
+ case "#Microsoft.Azure.Search.DefaultCognitiveServices":
5443
+ case "#Microsoft.Azure.Search.CognitiveServicesByKey":
5444
+ case "#Microsoft.Azure.Search.AIServicesByKey":
5445
+ return cognitiveServicesAccount;
5446
+ default: {
5447
+ logger.warning(`Unsupported Cognitive Services account odatatype: ${cognitiveServicesAccount.odatatype}`);
5448
+ return cognitiveServicesAccount;
5449
+ }
5450
+ }
4544
5451
  }
4545
5452
  function convertCognitiveServicesAccountToPublic(cognitiveServicesAccount) {
5453
+ var _a;
4546
5454
  if (!cognitiveServicesAccount) {
4547
5455
  return cognitiveServicesAccount;
4548
5456
  }
4549
- if (cognitiveServicesAccount.odatatype === "#Microsoft.Azure.Search.DefaultCognitiveServices") {
4550
- return cognitiveServicesAccount;
4551
- }
4552
- else {
5457
+ const deserializers = {
5458
+ "#Microsoft.Azure.Search.DefaultCognitiveServices": () => {
5459
+ return cognitiveServicesAccount;
5460
+ },
5461
+ "#Microsoft.Azure.Search.CognitiveServicesByKey": () => {
5462
+ return cognitiveServicesAccount;
5463
+ },
5464
+ "#Microsoft.Azure.Search.AIServicesByKey": () => {
5465
+ return cognitiveServicesAccount;
5466
+ },
5467
+ "#Microsoft.Azure.Search.AIServicesByIdentity": () => {
5468
+ const _a = cognitiveServicesAccount, { identity } = _a, restParams = tslib.__rest(_a, ["identity"]);
5469
+ return Object.assign(Object.assign({}, restParams), { identity: convertSearchIndexerDataIdentityToPublic(identity !== null && identity !== void 0 ? identity : undefined) });
5470
+ },
5471
+ };
5472
+ const defaultDeserializer = () => {
5473
+ logger.warning(`Unsupported Cognitive Services account odatatype: ${cognitiveServicesAccount.odatatype}`);
4553
5474
  return cognitiveServicesAccount;
4554
- }
5475
+ };
5476
+ return ((_a = deserializers[cognitiveServicesAccount.odatatype]) !== null && _a !== void 0 ? _a : defaultDeserializer)();
4555
5477
  }
4556
5478
  function convertTokenFiltersToGenerated(tokenFilters) {
4557
5479
  if (!tokenFilters) {
@@ -4625,22 +5547,22 @@ function convertFieldsToPublic(fields) {
4625
5547
  else {
4626
5548
  const type = field.type;
4627
5549
  const synonymMapNames = field.synonymMaps;
4628
- const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
5550
+ const { retrievable, analyzer, searchAnalyzer, indexAnalyzer, normalizer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer", "normalizer"]);
4629
5551
  const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
4630
5552
  const result = Object.assign(Object.assign({}, restField), { type,
4631
- hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
5553
+ hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, normalizerName: normalizer, synonymMapNames });
4632
5554
  return result;
4633
5555
  }
4634
5556
  });
4635
5557
  }
4636
5558
  function convertFieldsToGenerated(fields) {
4637
- return fields.map((field) => {
5559
+ return fields === null || fields === void 0 ? void 0 : fields.map((field) => {
4638
5560
  var _a, _b, _c, _d;
4639
5561
  if (isComplexField(field)) {
4640
5562
  return {
4641
5563
  name: field.name,
4642
5564
  type: field.type,
4643
- fields: field.fields ? convertFieldsToGenerated(field.fields) : field.fields,
5565
+ fields: convertFieldsToGenerated(field.fields),
4644
5566
  };
4645
5567
  }
4646
5568
  else {
@@ -4648,7 +5570,7 @@ function convertFieldsToGenerated(fields) {
4648
5570
  const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
4649
5571
  return Object.assign(Object.assign({}, restField), { retrievable,
4650
5572
  // modify API defaults to use less storage for simple types
4651
- searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames });
5573
+ searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames, normalizer: field.normalizerName });
4652
5574
  }
4653
5575
  });
4654
5576
  }
@@ -4710,6 +5632,7 @@ function convertEncryptionKeyToPublic(encryptionKey) {
4710
5632
  keyName: encryptionKey.keyName,
4711
5633
  keyVersion: encryptionKey.keyVersion,
4712
5634
  vaultUrl: encryptionKey.vaultUri,
5635
+ identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
4713
5636
  };
4714
5637
  if (encryptionKey.accessCredentials) {
4715
5638
  result.applicationId = encryptionKey.accessCredentials.applicationId;
@@ -4725,6 +5648,7 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
4725
5648
  keyName: encryptionKey.keyName,
4726
5649
  keyVersion: encryptionKey.keyVersion,
4727
5650
  vaultUri: encryptionKey.vaultUrl,
5651
+ identity: encryptionKey.identity,
4728
5652
  };
4729
5653
  if (encryptionKey.applicationId) {
4730
5654
  result.accessCredentials = {
@@ -4746,6 +5670,7 @@ function generatedIndexToPublicIndex(generatedIndex) {
4746
5670
  tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
4747
5671
  tokenFilters: generatedIndex.tokenFilters,
4748
5672
  charFilters: generatedIndex.charFilters,
5673
+ normalizers: generatedIndex.normalizers,
4749
5674
  scoringProfiles: generatedIndex.scoringProfiles,
4750
5675
  fields: convertFieldsToPublic(generatedIndex.fields),
4751
5676
  similarity: convertSimilarityToPublic(generatedIndex.similarity),
@@ -4754,25 +5679,63 @@ function generatedIndexToPublicIndex(generatedIndex) {
4754
5679
  };
4755
5680
  }
4756
5681
  function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer) {
5682
+ var _a;
4757
5683
  if (!generatedVectorizer) {
4758
5684
  return generatedVectorizer;
4759
5685
  }
4760
- switch (generatedVectorizer.kind) {
4761
- case "azureOpenAI": {
5686
+ const knownVectorizerDeserializers = {
5687
+ azureOpenAI: () => {
4762
5688
  const { parameters } = generatedVectorizer;
4763
5689
  const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
4764
5690
  const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
4765
5691
  return vectorizer;
4766
- }
4767
- case "customWebApi": {
5692
+ },
5693
+ customWebApi: () => {
4768
5694
  const { parameters } = generatedVectorizer;
4769
5695
  const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
4770
5696
  const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
4771
5697
  return vectorizer;
5698
+ },
5699
+ aiServicesVision: () => {
5700
+ var _a;
5701
+ const generatedVisionVectorizer = generatedVectorizer;
5702
+ const { aIServicesVisionParameters: generatedParameters } = generatedVisionVectorizer;
5703
+ const parameters = generatedParameters
5704
+ ? Object.assign(Object.assign({}, generatedParameters), { modelVersion: (_a = generatedParameters.modelVersion) !== null && _a !== void 0 ? _a : undefined, resourceUri: generatedParameters.resourceUri, authIdentity: convertSearchIndexerDataIdentityToPublic(generatedParameters.authIdentity) }) : undefined;
5705
+ const vectorizer = Object.assign(Object.assign({}, generatedVisionVectorizer), { parameters });
5706
+ return vectorizer;
5707
+ },
5708
+ aml: () => {
5709
+ const generatedAMLVectorizer = generatedVectorizer;
5710
+ const vectorizer = Object.assign(Object.assign({}, generatedAMLVectorizer), { amlParameters: generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(generatedAMLVectorizer.aMLParameters) });
5711
+ return vectorizer;
5712
+ },
5713
+ };
5714
+ const defaultDeserializer = () => {
5715
+ logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
5716
+ return generatedVectorizer;
5717
+ };
5718
+ return ((_a = knownVectorizerDeserializers[generatedVectorizer.kind]) !== null && _a !== void 0 ? _a : defaultDeserializer)();
5719
+ }
5720
+ function generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(aMLParameters) {
5721
+ if (!aMLParameters) {
5722
+ return aMLParameters;
5723
+ }
5724
+ const { resourceId, authenticationKey, scoringUri } = aMLParameters;
5725
+ // Sensitive to case order
5726
+ switch (true) {
5727
+ case resourceId !== undefined && resourceId !== null: {
5728
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "token" });
5729
+ }
5730
+ case authenticationKey !== undefined && authenticationKey !== null: {
5731
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "key" });
5732
+ }
5733
+ case scoringUri !== undefined && scoringUri !== null: {
5734
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "none" });
4772
5735
  }
4773
5736
  }
4774
- logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
4775
- return generatedVectorizer;
5737
+ logger.warning("Unknown AML parameter kind");
5738
+ return aMLParameters;
4776
5739
  }
4777
5740
  function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
4778
5741
  var _a;
@@ -4795,12 +5758,13 @@ function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
4795
5758
  }
4796
5759
  function generatedSearchResultToPublicSearchResult(results) {
4797
5760
  const returnValues = results.map((result) => {
4798
- const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions"]);
5761
+ const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions, documentDebugInfo: documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions", "documentDebugInfo"]);
4799
5762
  const obj = {
4800
5763
  score,
4801
5764
  highlights,
4802
5765
  rerankerScore,
4803
5766
  captions,
5767
+ documentDebugInfo,
4804
5768
  document: restProps,
4805
5769
  };
4806
5770
  return obj;
@@ -4823,15 +5787,17 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
4823
5787
  return result;
4824
5788
  }
4825
5789
  function publicIndexToGeneratedIndex(index) {
5790
+ var _a;
4826
5791
  const { encryptionKey, tokenFilters, analyzers, tokenizers, fields, similarity } = index;
4827
- return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
5792
+ 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) });
4828
5793
  }
4829
5794
  function generatedSkillsetToPublicSkillset(generatedSkillset) {
4830
- const { skills, cognitiveServicesAccount, encryptionKey, indexProjection } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "encryptionKey", "indexProjection"]);
4831
- return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjection: indexProjection });
5795
+ const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey, indexProjection } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey", "indexProjection"]);
5796
+ return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjection: indexProjection });
4832
5797
  }
4833
5798
  function publicSkillsetToGeneratedSkillset(skillset) {
4834
- return Object.assign(Object.assign({}, skillset), { name: skillset.name, description: skillset.description, etag: skillset.etag, skills: skillset.skills, cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(skillset.cognitiveServicesAccount), knowledgeStore: skillset.knowledgeStore, encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey) });
5799
+ const { cognitiveServicesAccount, encryptionKey } = skillset;
5800
+ return Object.assign(Object.assign({}, skillset), { cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount), encryptionKey: convertEncryptionKeyToGenerated(encryptionKey) });
4835
5801
  }
4836
5802
  function generatedSynonymMapToPublicSynonymMap(synonymMap) {
4837
5803
  const result = {
@@ -4864,7 +5830,7 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
4864
5830
  const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
4865
5831
  const configuration = ((_c = indexer.parameters) === null || _c === void 0 ? void 0 : _c.configuration) && Object.assign(Object.assign({}, (_d = indexer.parameters) === null || _d === void 0 ? void 0 : _d.configuration), { parsingMode: parsingMode, dataToExtract: dataToExtract, imageAction: imageAction, pdfTextRotationAlgorithm: pdfTextRotationAlgorithm, executionEnvironment: executionEnvironment });
4866
5832
  const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
4867
- return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
5833
+ return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
4868
5834
  }
4869
5835
  function publicDataSourceToGeneratedDataSource(dataSource) {
4870
5836
  return {
@@ -4875,6 +5841,7 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
4875
5841
  connectionString: dataSource.connectionString,
4876
5842
  },
4877
5843
  container: dataSource.container,
5844
+ identity: dataSource.identity,
4878
5845
  etag: dataSource.etag,
4879
5846
  dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
4880
5847
  dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
@@ -4888,6 +5855,7 @@ function generatedDataSourceToPublicDataSource(dataSource) {
4888
5855
  type: dataSource.type,
4889
5856
  connectionString: dataSource.credentials.connectionString,
4890
5857
  container: dataSource.container,
5858
+ identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
4891
5859
  etag: dataSource.etag,
4892
5860
  dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
4893
5861
  dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
@@ -4933,9 +5901,21 @@ function getRandomIntegerInclusive(min, max) {
4933
5901
  const offset = Math.floor(Math.random() * (max - min + 1));
4934
5902
  return offset + min;
4935
5903
  }
5904
+ function convertKnowledgeStoreToPublic(knowledgeStore) {
5905
+ if (!knowledgeStore) {
5906
+ return knowledgeStore;
5907
+ }
5908
+ return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
5909
+ }
5910
+ function convertSearchIndexerCacheToPublic(cache) {
5911
+ if (!cache) {
5912
+ return cache;
5913
+ }
5914
+ return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
5915
+ }
4936
5916
 
4937
5917
  // Copyright (c) Microsoft Corporation.
4938
- // Licensed under the MIT license.
5918
+ // Licensed under the MIT License.
4939
5919
  /**
4940
5920
  * Creates a tracing client using the global tracer.
4941
5921
  * @internal
@@ -4947,7 +5927,7 @@ const tracingClient = coreTracing.createTracingClient({
4947
5927
  const createSpan = tracingClient.startSpan;
4948
5928
 
4949
5929
  // Copyright (c) Microsoft Corporation.
4950
- // Licensed under the MIT license.
5930
+ // Licensed under the MIT License.
4951
5931
  /**
4952
5932
  * Class used to perform operations against a search index,
4953
5933
  * including querying documents in the index as well as
@@ -5023,6 +6003,7 @@ class SearchClient {
5023
6003
  (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
5024
6004
  this.apiVersion = this.serviceVersion;
5025
6005
  this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
6006
+ this.pipeline = this.client.pipeline;
5026
6007
  if (coreAuth.isTokenCredential(credential)) {
5027
6008
  const scope = options.audience
5028
6009
  ? `${options.audience}/.default`
@@ -5038,6 +6019,7 @@ class SearchClient {
5038
6019
  * Retrieves the number of documents in the index.
5039
6020
  * @param options - Options to the count operation.
5040
6021
  */
6022
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
5041
6023
  async getDocumentsCount(options = {}) {
5042
6024
  const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
5043
6025
  try {
@@ -5121,10 +6103,10 @@ class SearchClient {
5121
6103
  }
5122
6104
  }
5123
6105
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
5124
- const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions"]);
5125
- const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { configurationName, errorMode, answers, captions } = _b, restSemanticOptions = tslib.__rest(_b, ["configurationName", "errorMode", "answers", "captions"]);
6106
+ const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions, hybridSearch } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions", "hybridSearch"]);
6107
+ const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { semanticFields, configurationName, errorMode, answers, captions, debugMode, queryRewrites } = _b, restSemanticOptions = tslib.__rest(_b, ["semanticFields", "configurationName", "errorMode", "answers", "captions", "debugMode", "queryRewrites"]);
5126
6108
  const _c = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _c, restVectorOptions = tslib.__rest(_c, ["queries", "filterMode"]);
5127
- const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertQueryCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, vectorFilterMode: filterMode });
6109
+ const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertQueryCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, debug: debugMode, queryRewrites: this.convertQueryRewrites(queryRewrites), vectorFilterMode: filterMode, hybridSearch: hybridSearch });
5128
6110
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
5129
6111
  try {
5130
6112
  const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
@@ -5510,6 +6492,12 @@ class SearchClient {
5510
6492
  }
5511
6493
  return searchFields;
5512
6494
  }
6495
+ convertSemanticFields(semanticFields) {
6496
+ if (semanticFields) {
6497
+ return semanticFields.join(",");
6498
+ }
6499
+ return semanticFields;
6500
+ }
5513
6501
  convertOrderBy(orderBy) {
5514
6502
  if (orderBy) {
5515
6503
  return orderBy.join(",");
@@ -5521,13 +6509,16 @@ class SearchClient {
5521
6509
  return answers;
5522
6510
  }
5523
6511
  const config = [];
5524
- const { answerType: output, count, threshold } = answers;
6512
+ const { answerType: output, count, threshold, maxAnswerLength } = answers;
5525
6513
  if (count) {
5526
6514
  config.push(`count-${count}`);
5527
6515
  }
5528
6516
  if (threshold) {
5529
6517
  config.push(`threshold-${threshold}`);
5530
6518
  }
6519
+ if (maxAnswerLength) {
6520
+ config.push(`maxcharlength-${maxAnswerLength}`);
6521
+ }
5531
6522
  if (config.length) {
5532
6523
  return output + `|${config.join(",")}`;
5533
6524
  }
@@ -5538,17 +6529,51 @@ class SearchClient {
5538
6529
  return captions;
5539
6530
  }
5540
6531
  const config = [];
5541
- const { captionType: output, highlight } = captions;
6532
+ const { captionType: output, highlight, maxCaptionLength } = captions;
5542
6533
  if (highlight !== undefined) {
5543
6534
  config.push(`highlight-${highlight}`);
5544
6535
  }
6536
+ if (maxCaptionLength) {
6537
+ config.push(`maxcharlength-${maxCaptionLength}`);
6538
+ }
5545
6539
  if (config.length) {
5546
6540
  return output + `|${config.join(",")}`;
5547
6541
  }
5548
6542
  return output;
5549
6543
  }
5550
6544
  convertVectorQuery(vectorQuery) {
5551
- return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
6545
+ switch (vectorQuery.kind) {
6546
+ case "text": {
6547
+ const { fields, queryRewrites } = vectorQuery, restFields = tslib.__rest(vectorQuery, ["fields", "queryRewrites"]);
6548
+ return Object.assign(Object.assign({}, restFields), { fields: this.convertVectorQueryFields(fields), queryRewrites: this.convertQueryRewrites(queryRewrites) });
6549
+ }
6550
+ case "vector":
6551
+ case "imageUrl":
6552
+ case "imageBinary": {
6553
+ return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
6554
+ }
6555
+ default: {
6556
+ logger.warning("Unknown vector query kind; sending without serialization");
6557
+ return vectorQuery;
6558
+ }
6559
+ }
6560
+ }
6561
+ convertQueryRewrites(queryRewrites) {
6562
+ if (!queryRewrites) {
6563
+ return queryRewrites;
6564
+ }
6565
+ const { rewritesType: baseOutput } = queryRewrites;
6566
+ switch (baseOutput) {
6567
+ case "generative": {
6568
+ const { count } = queryRewrites;
6569
+ const config = [...(count === undefined ? [] : [`count-${count}`])];
6570
+ if (config.length)
6571
+ return baseOutput + `|${config.join(",")}`;
6572
+ return baseOutput;
6573
+ }
6574
+ default:
6575
+ return baseOutput;
6576
+ }
5552
6577
  }
5553
6578
  }
5554
6579
 
@@ -5598,6 +6623,13 @@ const SearchIndexerDataSource = {
5598
6623
  className: "SearchIndexerDataContainer",
5599
6624
  },
5600
6625
  },
6626
+ identity: {
6627
+ serializedName: "identity",
6628
+ type: {
6629
+ name: "Composite",
6630
+ className: "SearchIndexerDataIdentity",
6631
+ },
6632
+ },
5601
6633
  dataChangeDetectionPolicy: {
5602
6634
  serializedName: "dataChangeDetectionPolicy",
5603
6635
  type: {
@@ -5663,6 +6695,26 @@ const SearchIndexerDataContainer = {
5663
6695
  },
5664
6696
  },
5665
6697
  };
6698
+ const SearchIndexerDataIdentity = {
6699
+ type: {
6700
+ name: "Composite",
6701
+ className: "SearchIndexerDataIdentity",
6702
+ uberParent: "SearchIndexerDataIdentity",
6703
+ polymorphicDiscriminator: {
6704
+ serializedName: "@odata\\.type",
6705
+ clientName: "odatatype",
6706
+ },
6707
+ modelProperties: {
6708
+ odatatype: {
6709
+ serializedName: "@odata\\.type",
6710
+ required: true,
6711
+ type: {
6712
+ name: "String",
6713
+ },
6714
+ },
6715
+ },
6716
+ },
6717
+ };
5666
6718
  const DataChangeDetectionPolicy = {
5667
6719
  type: {
5668
6720
  name: "Composite",
@@ -5736,6 +6788,13 @@ const SearchResourceEncryptionKey = {
5736
6788
  className: "AzureActiveDirectoryApplicationCredentials",
5737
6789
  },
5738
6790
  },
6791
+ identity: {
6792
+ serializedName: "identity",
6793
+ type: {
6794
+ name: "Composite",
6795
+ className: "SearchIndexerDataIdentity",
6796
+ },
6797
+ },
5739
6798
  },
5740
6799
  },
5741
6800
  };
@@ -5875,6 +6934,36 @@ const ListDataSourcesResult = {
5875
6934
  },
5876
6935
  },
5877
6936
  };
6937
+ const DocumentKeysOrIds = {
6938
+ type: {
6939
+ name: "Composite",
6940
+ className: "DocumentKeysOrIds",
6941
+ modelProperties: {
6942
+ documentKeys: {
6943
+ serializedName: "documentKeys",
6944
+ type: {
6945
+ name: "Sequence",
6946
+ element: {
6947
+ type: {
6948
+ name: "String",
6949
+ },
6950
+ },
6951
+ },
6952
+ },
6953
+ datasourceDocumentIds: {
6954
+ serializedName: "datasourceDocumentIds",
6955
+ type: {
6956
+ name: "Sequence",
6957
+ element: {
6958
+ type: {
6959
+ name: "String",
6960
+ },
6961
+ },
6962
+ },
6963
+ },
6964
+ },
6965
+ },
6966
+ };
5878
6967
  const SearchIndexer = {
5879
6968
  type: {
5880
6969
  name: "Composite",
@@ -5972,6 +7061,13 @@ const SearchIndexer = {
5972
7061
  className: "SearchResourceEncryptionKey",
5973
7062
  },
5974
7063
  },
7064
+ cache: {
7065
+ serializedName: "cache",
7066
+ type: {
7067
+ name: "Composite",
7068
+ className: "SearchIndexerCache",
7069
+ },
7070
+ },
5975
7071
  },
5976
7072
  },
5977
7073
  };
@@ -6101,6 +7197,22 @@ const IndexingParametersConfiguration = {
6101
7197
  name: "Boolean",
6102
7198
  },
6103
7199
  },
7200
+ markdownParsingSubmode: {
7201
+ defaultValue: "oneToMany",
7202
+ serializedName: "markdownParsingSubmode",
7203
+ nullable: true,
7204
+ type: {
7205
+ name: "String",
7206
+ },
7207
+ },
7208
+ markdownHeaderDepth: {
7209
+ defaultValue: "h6",
7210
+ serializedName: "markdownHeaderDepth",
7211
+ nullable: true,
7212
+ type: {
7213
+ name: "String",
7214
+ },
7215
+ },
6104
7216
  documentRoot: {
6105
7217
  serializedName: "documentRoot",
6106
7218
  type: {
@@ -6203,6 +7315,34 @@ const FieldMappingFunction = {
6203
7315
  },
6204
7316
  },
6205
7317
  };
7318
+ const SearchIndexerCache = {
7319
+ type: {
7320
+ name: "Composite",
7321
+ className: "SearchIndexerCache",
7322
+ modelProperties: {
7323
+ storageConnectionString: {
7324
+ serializedName: "storageConnectionString",
7325
+ type: {
7326
+ name: "String",
7327
+ },
7328
+ },
7329
+ enableReprocessing: {
7330
+ serializedName: "enableReprocessing",
7331
+ nullable: true,
7332
+ type: {
7333
+ name: "Boolean",
7334
+ },
7335
+ },
7336
+ identity: {
7337
+ serializedName: "identity",
7338
+ type: {
7339
+ name: "Composite",
7340
+ className: "SearchIndexerDataIdentity",
7341
+ },
7342
+ },
7343
+ },
7344
+ },
7345
+ };
6206
7346
  const ListIndexersResult = {
6207
7347
  type: {
6208
7348
  name: "Composite",
@@ -6284,21 +7424,35 @@ const IndexerExecutionResult = {
6284
7424
  allowedValues: ["transientFailure", "success", "inProgress", "reset"],
6285
7425
  },
6286
7426
  },
6287
- errorMessage: {
6288
- serializedName: "errorMessage",
7427
+ statusDetail: {
7428
+ serializedName: "statusDetail",
6289
7429
  readOnly: true,
6290
7430
  type: {
6291
7431
  name: "String",
6292
7432
  },
6293
7433
  },
6294
- startTime: {
6295
- serializedName: "startTime",
6296
- readOnly: true,
7434
+ currentState: {
7435
+ serializedName: "currentState",
6297
7436
  type: {
6298
- name: "DateTime",
7437
+ name: "Composite",
7438
+ className: "IndexerState",
6299
7439
  },
6300
7440
  },
6301
- endTime: {
7441
+ errorMessage: {
7442
+ serializedName: "errorMessage",
7443
+ readOnly: true,
7444
+ type: {
7445
+ name: "String",
7446
+ },
7447
+ },
7448
+ startTime: {
7449
+ serializedName: "startTime",
7450
+ readOnly: true,
7451
+ type: {
7452
+ name: "DateTime",
7453
+ },
7454
+ },
7455
+ endTime: {
6302
7456
  serializedName: "endTime",
6303
7457
  readOnly: true,
6304
7458
  nullable: true,
@@ -6367,6 +7521,73 @@ const IndexerExecutionResult = {
6367
7521
  },
6368
7522
  },
6369
7523
  };
7524
+ const IndexerState = {
7525
+ type: {
7526
+ name: "Composite",
7527
+ className: "IndexerState",
7528
+ modelProperties: {
7529
+ mode: {
7530
+ serializedName: "mode",
7531
+ readOnly: true,
7532
+ type: {
7533
+ name: "String",
7534
+ },
7535
+ },
7536
+ allDocumentsInitialChangeTrackingState: {
7537
+ serializedName: "allDocsInitialChangeTrackingState",
7538
+ readOnly: true,
7539
+ type: {
7540
+ name: "String",
7541
+ },
7542
+ },
7543
+ allDocumentsFinalChangeTrackingState: {
7544
+ serializedName: "allDocsFinalChangeTrackingState",
7545
+ readOnly: true,
7546
+ type: {
7547
+ name: "String",
7548
+ },
7549
+ },
7550
+ resetDocumentsInitialChangeTrackingState: {
7551
+ serializedName: "resetDocsInitialChangeTrackingState",
7552
+ readOnly: true,
7553
+ type: {
7554
+ name: "String",
7555
+ },
7556
+ },
7557
+ resetDocumentsFinalChangeTrackingState: {
7558
+ serializedName: "resetDocsFinalChangeTrackingState",
7559
+ readOnly: true,
7560
+ type: {
7561
+ name: "String",
7562
+ },
7563
+ },
7564
+ resetDocumentKeys: {
7565
+ serializedName: "resetDocumentKeys",
7566
+ readOnly: true,
7567
+ type: {
7568
+ name: "Sequence",
7569
+ element: {
7570
+ type: {
7571
+ name: "String",
7572
+ },
7573
+ },
7574
+ },
7575
+ },
7576
+ resetDatasourceDocumentIds: {
7577
+ serializedName: "resetDatasourceDocumentIds",
7578
+ readOnly: true,
7579
+ type: {
7580
+ name: "Sequence",
7581
+ element: {
7582
+ type: {
7583
+ name: "String",
7584
+ },
7585
+ },
7586
+ },
7587
+ },
7588
+ },
7589
+ },
7590
+ };
6370
7591
  const SearchIndexerError = {
6371
7592
  type: {
6372
7593
  name: "Composite",
@@ -6735,6 +7956,20 @@ const SearchIndexerKnowledgeStore = {
6735
7956
  },
6736
7957
  },
6737
7958
  },
7959
+ identity: {
7960
+ serializedName: "identity",
7961
+ type: {
7962
+ name: "Composite",
7963
+ className: "SearchIndexerDataIdentity",
7964
+ },
7965
+ },
7966
+ parameters: {
7967
+ serializedName: "parameters",
7968
+ type: {
7969
+ name: "Composite",
7970
+ className: "SearchIndexerKnowledgeStoreParameters",
7971
+ },
7972
+ },
6738
7973
  },
6739
7974
  },
6740
7975
  };
@@ -6826,6 +8061,22 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
6826
8061
  },
6827
8062
  },
6828
8063
  };
8064
+ const SearchIndexerKnowledgeStoreParameters = {
8065
+ type: {
8066
+ name: "Composite",
8067
+ className: "SearchIndexerKnowledgeStoreParameters",
8068
+ additionalProperties: { type: { name: "Object" } },
8069
+ modelProperties: {
8070
+ synthesizeGeneratedKeyName: {
8071
+ defaultValue: false,
8072
+ serializedName: "synthesizeGeneratedKeyName",
8073
+ type: {
8074
+ name: "Boolean",
8075
+ },
8076
+ },
8077
+ },
8078
+ },
8079
+ };
6829
8080
  const SearchIndexerIndexProjection = {
6830
8081
  type: {
6831
8082
  name: "Composite",
@@ -6933,6 +8184,25 @@ const ListSkillsetsResult = {
6933
8184
  },
6934
8185
  },
6935
8186
  };
8187
+ const SkillNames = {
8188
+ type: {
8189
+ name: "Composite",
8190
+ className: "SkillNames",
8191
+ modelProperties: {
8192
+ skillNames: {
8193
+ serializedName: "skillNames",
8194
+ type: {
8195
+ name: "Sequence",
8196
+ element: {
8197
+ type: {
8198
+ name: "String",
8199
+ },
8200
+ },
8201
+ },
8202
+ },
8203
+ },
8204
+ },
8205
+ };
6936
8206
  const SynonymMap = {
6937
8207
  type: {
6938
8208
  name: "Composite",
@@ -7108,6 +8378,18 @@ const SearchIndex = {
7108
8378
  },
7109
8379
  },
7110
8380
  },
8381
+ normalizers: {
8382
+ serializedName: "normalizers",
8383
+ type: {
8384
+ name: "Sequence",
8385
+ element: {
8386
+ type: {
8387
+ name: "Composite",
8388
+ className: "LexicalNormalizer",
8389
+ },
8390
+ },
8391
+ },
8392
+ },
7111
8393
  encryptionKey: {
7112
8394
  serializedName: "encryptionKey",
7113
8395
  type: {
@@ -7227,6 +8509,13 @@ const SearchField = {
7227
8509
  name: "String",
7228
8510
  },
7229
8511
  },
8512
+ normalizer: {
8513
+ serializedName: "normalizer",
8514
+ nullable: true,
8515
+ type: {
8516
+ name: "String",
8517
+ },
8518
+ },
7230
8519
  vectorSearchDimensions: {
7231
8520
  constraints: {
7232
8521
  InclusiveMaximum: 2048,
@@ -7552,6 +8841,33 @@ const CharFilter = {
7552
8841
  },
7553
8842
  },
7554
8843
  };
8844
+ const LexicalNormalizer = {
8845
+ type: {
8846
+ name: "Composite",
8847
+ className: "LexicalNormalizer",
8848
+ uberParent: "LexicalNormalizer",
8849
+ polymorphicDiscriminator: {
8850
+ serializedName: "@odata\\.type",
8851
+ clientName: "odatatype",
8852
+ },
8853
+ modelProperties: {
8854
+ odatatype: {
8855
+ serializedName: "@odata\\.type",
8856
+ required: true,
8857
+ type: {
8858
+ name: "String",
8859
+ },
8860
+ },
8861
+ name: {
8862
+ serializedName: "name",
8863
+ required: true,
8864
+ type: {
8865
+ name: "String",
8866
+ },
8867
+ },
8868
+ },
8869
+ },
8870
+ };
7555
8871
  const Similarity = {
7556
8872
  type: {
7557
8873
  name: "Composite",
@@ -7856,6 +9172,50 @@ const VectorSearchCompression = {
7856
9172
  name: "Number",
7857
9173
  },
7858
9174
  },
9175
+ rescoringOptions: {
9176
+ serializedName: "rescoringOptions",
9177
+ type: {
9178
+ name: "Composite",
9179
+ className: "RescoringOptions",
9180
+ },
9181
+ },
9182
+ truncationDimension: {
9183
+ serializedName: "truncationDimension",
9184
+ nullable: true,
9185
+ type: {
9186
+ name: "Number",
9187
+ },
9188
+ },
9189
+ },
9190
+ },
9191
+ };
9192
+ const RescoringOptions = {
9193
+ type: {
9194
+ name: "Composite",
9195
+ className: "RescoringOptions",
9196
+ modelProperties: {
9197
+ enableRescoring: {
9198
+ defaultValue: true,
9199
+ serializedName: "enableRescoring",
9200
+ nullable: true,
9201
+ type: {
9202
+ name: "Boolean",
9203
+ },
9204
+ },
9205
+ defaultOversampling: {
9206
+ serializedName: "defaultOversampling",
9207
+ nullable: true,
9208
+ type: {
9209
+ name: "Number",
9210
+ },
9211
+ },
9212
+ rescoreStorageMethod: {
9213
+ serializedName: "rescoreStorageMethod",
9214
+ nullable: true,
9215
+ type: {
9216
+ name: "String",
9217
+ },
9218
+ },
7859
9219
  },
7860
9220
  },
7861
9221
  };
@@ -7937,6 +9297,12 @@ const AnalyzeRequest = {
7937
9297
  name: "String",
7938
9298
  },
7939
9299
  },
9300
+ normalizer: {
9301
+ serializedName: "normalizer",
9302
+ type: {
9303
+ name: "String",
9304
+ },
9305
+ },
7940
9306
  tokenFilters: {
7941
9307
  serializedName: "tokenFilters",
7942
9308
  type: {
@@ -8023,6 +9389,61 @@ const AnalyzedTokenInfo = {
8023
9389
  },
8024
9390
  },
8025
9391
  };
9392
+ const SearchAlias = {
9393
+ type: {
9394
+ name: "Composite",
9395
+ className: "SearchAlias",
9396
+ modelProperties: {
9397
+ name: {
9398
+ serializedName: "name",
9399
+ required: true,
9400
+ type: {
9401
+ name: "String",
9402
+ },
9403
+ },
9404
+ indexes: {
9405
+ serializedName: "indexes",
9406
+ required: true,
9407
+ type: {
9408
+ name: "Sequence",
9409
+ element: {
9410
+ type: {
9411
+ name: "String",
9412
+ },
9413
+ },
9414
+ },
9415
+ },
9416
+ etag: {
9417
+ serializedName: "@odata\\.etag",
9418
+ type: {
9419
+ name: "String",
9420
+ },
9421
+ },
9422
+ },
9423
+ },
9424
+ };
9425
+ const ListAliasesResult = {
9426
+ type: {
9427
+ name: "Composite",
9428
+ className: "ListAliasesResult",
9429
+ modelProperties: {
9430
+ aliases: {
9431
+ serializedName: "value",
9432
+ required: true,
9433
+ readOnly: true,
9434
+ type: {
9435
+ name: "Sequence",
9436
+ element: {
9437
+ type: {
9438
+ name: "Composite",
9439
+ className: "SearchAlias",
9440
+ },
9441
+ },
9442
+ },
9443
+ },
9444
+ },
9445
+ },
9446
+ };
8026
9447
  const ServiceStatistics = {
8027
9448
  type: {
8028
9449
  name: "Composite",
@@ -8050,6 +9471,13 @@ const ServiceCounters = {
8050
9471
  name: "Composite",
8051
9472
  className: "ServiceCounters",
8052
9473
  modelProperties: {
9474
+ aliasCounter: {
9475
+ serializedName: "aliasesCount",
9476
+ type: {
9477
+ name: "Composite",
9478
+ className: "ResourceCounter",
9479
+ },
9480
+ },
8053
9481
  documentCounter: {
8054
9482
  serializedName: "documentCount",
8055
9483
  type: {
@@ -8294,33 +9722,13 @@ const AzureOpenAIParameters = {
8294
9722
  },
8295
9723
  },
8296
9724
  };
8297
- const SearchIndexerDataIdentity = {
9725
+ const WebApiParameters = {
8298
9726
  type: {
8299
9727
  name: "Composite",
8300
- className: "SearchIndexerDataIdentity",
8301
- uberParent: "SearchIndexerDataIdentity",
8302
- polymorphicDiscriminator: {
8303
- serializedName: "@odata\\.type",
8304
- clientName: "odatatype",
8305
- },
9728
+ className: "WebApiParameters",
8306
9729
  modelProperties: {
8307
- odatatype: {
8308
- serializedName: "@odata\\.type",
8309
- required: true,
8310
- type: {
8311
- name: "String",
8312
- },
8313
- },
8314
- },
8315
- },
8316
- };
8317
- const WebApiParameters = {
8318
- type: {
8319
- name: "Composite",
8320
- className: "WebApiParameters",
8321
- modelProperties: {
8322
- uri: {
8323
- serializedName: "uri",
9730
+ uri: {
9731
+ serializedName: "uri",
8324
9732
  type: {
8325
9733
  name: "String",
8326
9734
  },
@@ -8361,6 +9769,92 @@ const WebApiParameters = {
8361
9769
  },
8362
9770
  },
8363
9771
  };
9772
+ const AIServicesVisionParameters = {
9773
+ type: {
9774
+ name: "Composite",
9775
+ className: "AIServicesVisionParameters",
9776
+ modelProperties: {
9777
+ modelVersion: {
9778
+ serializedName: "modelVersion",
9779
+ required: true,
9780
+ nullable: true,
9781
+ type: {
9782
+ name: "String",
9783
+ },
9784
+ },
9785
+ resourceUri: {
9786
+ serializedName: "resourceUri",
9787
+ required: true,
9788
+ type: {
9789
+ name: "String",
9790
+ },
9791
+ },
9792
+ apiKey: {
9793
+ serializedName: "apiKey",
9794
+ type: {
9795
+ name: "String",
9796
+ },
9797
+ },
9798
+ authIdentity: {
9799
+ serializedName: "authIdentity",
9800
+ type: {
9801
+ name: "Composite",
9802
+ className: "SearchIndexerDataIdentity",
9803
+ },
9804
+ },
9805
+ },
9806
+ },
9807
+ };
9808
+ const AMLParameters = {
9809
+ type: {
9810
+ name: "Composite",
9811
+ className: "AMLParameters",
9812
+ modelProperties: {
9813
+ scoringUri: {
9814
+ serializedName: "uri",
9815
+ required: true,
9816
+ nullable: true,
9817
+ type: {
9818
+ name: "String",
9819
+ },
9820
+ },
9821
+ authenticationKey: {
9822
+ serializedName: "key",
9823
+ nullable: true,
9824
+ type: {
9825
+ name: "String",
9826
+ },
9827
+ },
9828
+ resourceId: {
9829
+ serializedName: "resourceId",
9830
+ nullable: true,
9831
+ type: {
9832
+ name: "String",
9833
+ },
9834
+ },
9835
+ timeout: {
9836
+ serializedName: "timeout",
9837
+ nullable: true,
9838
+ type: {
9839
+ name: "TimeSpan",
9840
+ },
9841
+ },
9842
+ region: {
9843
+ serializedName: "region",
9844
+ nullable: true,
9845
+ type: {
9846
+ name: "String",
9847
+ },
9848
+ },
9849
+ modelName: {
9850
+ serializedName: "modelName",
9851
+ type: {
9852
+ name: "String",
9853
+ },
9854
+ },
9855
+ },
9856
+ },
9857
+ };
8364
9858
  const DistanceScoringParameters = {
8365
9859
  type: {
8366
9860
  name: "Composite",
@@ -8441,22 +9935,6 @@ const TagScoringParameters = {
8441
9935
  },
8442
9936
  },
8443
9937
  };
8444
- const SearchIndexerKnowledgeStoreParameters = {
8445
- type: {
8446
- name: "Composite",
8447
- className: "SearchIndexerKnowledgeStoreParameters",
8448
- additionalProperties: { type: { name: "Object" } },
8449
- modelProperties: {
8450
- synthesizeGeneratedKeyName: {
8451
- defaultValue: false,
8452
- serializedName: "synthesizeGeneratedKeyName",
8453
- type: {
8454
- name: "Boolean",
8455
- },
8456
- },
8457
- },
8458
- },
8459
- };
8460
9938
  const CustomEntity = {
8461
9939
  type: {
8462
9940
  name: "Composite",
@@ -8591,6 +10069,58 @@ const CustomEntityAlias = {
8591
10069
  },
8592
10070
  },
8593
10071
  };
10072
+ const AzureOpenAITokenizerParameters = {
10073
+ type: {
10074
+ name: "Composite",
10075
+ className: "AzureOpenAITokenizerParameters",
10076
+ modelProperties: {
10077
+ encoderModelName: {
10078
+ serializedName: "encoderModelName",
10079
+ nullable: true,
10080
+ type: {
10081
+ name: "String",
10082
+ },
10083
+ },
10084
+ allowedSpecialTokens: {
10085
+ serializedName: "allowedSpecialTokens",
10086
+ type: {
10087
+ name: "Sequence",
10088
+ element: {
10089
+ type: {
10090
+ name: "String",
10091
+ },
10092
+ },
10093
+ },
10094
+ },
10095
+ },
10096
+ },
10097
+ };
10098
+ const SearchIndexerDataNoneIdentity = {
10099
+ serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
10100
+ type: {
10101
+ name: "Composite",
10102
+ className: "SearchIndexerDataNoneIdentity",
10103
+ uberParent: "SearchIndexerDataIdentity",
10104
+ polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
10105
+ modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
10106
+ },
10107
+ };
10108
+ const SearchIndexerDataUserAssignedIdentity = {
10109
+ serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
10110
+ type: {
10111
+ name: "Composite",
10112
+ className: "SearchIndexerDataUserAssignedIdentity",
10113
+ uberParent: "SearchIndexerDataIdentity",
10114
+ polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
10115
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { resourceId: {
10116
+ serializedName: "userAssignedIdentity",
10117
+ required: true,
10118
+ type: {
10119
+ name: "String",
10120
+ },
10121
+ } }),
10122
+ },
10123
+ };
8594
10124
  const HighWaterMarkChangeDetectionPolicy = {
8595
10125
  serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
8596
10126
  type: {
@@ -8637,6 +10167,16 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
8637
10167
  } }),
8638
10168
  },
8639
10169
  };
10170
+ const NativeBlobSoftDeleteDeletionDetectionPolicy = {
10171
+ serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
10172
+ type: {
10173
+ name: "Composite",
10174
+ className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
10175
+ uberParent: "DataDeletionDetectionPolicy",
10176
+ polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
10177
+ modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties),
10178
+ },
10179
+ };
8640
10180
  const ConditionalSkill = {
8641
10181
  serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
8642
10182
  type: {
@@ -9040,6 +10580,18 @@ const SplitSkill = {
9040
10580
  type: {
9041
10581
  name: "Number",
9042
10582
  },
10583
+ }, unit: {
10584
+ serializedName: "unit",
10585
+ nullable: true,
10586
+ type: {
10587
+ name: "String",
10588
+ },
10589
+ }, azureOpenAITokenizerParameters: {
10590
+ serializedName: "azureOpenAITokenizerParameters",
10591
+ type: {
10592
+ name: "Composite",
10593
+ className: "AzureOpenAITokenizerParameters",
10594
+ },
9043
10595
  } }),
9044
10596
  },
9045
10597
  };
@@ -9151,6 +10703,30 @@ const DocumentExtractionSkill = {
9151
10703
  } }),
9152
10704
  },
9153
10705
  };
10706
+ const DocumentIntelligenceLayoutSkill = {
10707
+ serializedName: "#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill",
10708
+ type: {
10709
+ name: "Composite",
10710
+ className: "DocumentIntelligenceLayoutSkill",
10711
+ uberParent: "SearchIndexerSkill",
10712
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
10713
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { outputMode: {
10714
+ defaultValue: "oneToMany",
10715
+ serializedName: "outputMode",
10716
+ nullable: true,
10717
+ type: {
10718
+ name: "String",
10719
+ },
10720
+ }, markdownHeaderDepth: {
10721
+ defaultValue: "h6",
10722
+ serializedName: "markdownHeaderDepth",
10723
+ nullable: true,
10724
+ type: {
10725
+ name: "String",
10726
+ },
10727
+ } }),
10728
+ },
10729
+ };
9154
10730
  const WebApiSkill = {
9155
10731
  serializedName: "#Microsoft.Skills.Custom.WebApiSkill",
9156
10732
  type: {
@@ -9158,7 +10734,29 @@ const WebApiSkill = {
9158
10734
  className: "WebApiSkill",
9159
10735
  uberParent: "SearchIndexerSkill",
9160
10736
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
9161
- modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), WebApiParameters.type.modelProperties), { batchSize: {
10737
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { uri: {
10738
+ serializedName: "uri",
10739
+ required: true,
10740
+ type: {
10741
+ name: "String",
10742
+ },
10743
+ }, httpHeaders: {
10744
+ serializedName: "httpHeaders",
10745
+ type: {
10746
+ name: "Dictionary",
10747
+ value: { type: { name: "String" } },
10748
+ },
10749
+ }, httpMethod: {
10750
+ serializedName: "httpMethod",
10751
+ type: {
10752
+ name: "String",
10753
+ },
10754
+ }, timeout: {
10755
+ serializedName: "timeout",
10756
+ type: {
10757
+ name: "TimeSpan",
10758
+ },
10759
+ }, batchSize: {
9162
10760
  serializedName: "batchSize",
9163
10761
  nullable: true,
9164
10762
  type: {
@@ -9170,6 +10768,64 @@ const WebApiSkill = {
9170
10768
  type: {
9171
10769
  name: "Number",
9172
10770
  },
10771
+ }, authResourceId: {
10772
+ serializedName: "authResourceId",
10773
+ nullable: true,
10774
+ type: {
10775
+ name: "String",
10776
+ },
10777
+ }, authIdentity: {
10778
+ serializedName: "authIdentity",
10779
+ type: {
10780
+ name: "Composite",
10781
+ className: "SearchIndexerDataIdentity",
10782
+ },
10783
+ } }),
10784
+ },
10785
+ };
10786
+ const AzureMachineLearningSkill = {
10787
+ serializedName: "#Microsoft.Skills.Custom.AmlSkill",
10788
+ type: {
10789
+ name: "Composite",
10790
+ className: "AzureMachineLearningSkill",
10791
+ uberParent: "SearchIndexerSkill",
10792
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
10793
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
10794
+ serializedName: "uri",
10795
+ nullable: true,
10796
+ type: {
10797
+ name: "String",
10798
+ },
10799
+ }, authenticationKey: {
10800
+ serializedName: "key",
10801
+ nullable: true,
10802
+ type: {
10803
+ name: "String",
10804
+ },
10805
+ }, resourceId: {
10806
+ serializedName: "resourceId",
10807
+ nullable: true,
10808
+ type: {
10809
+ name: "String",
10810
+ },
10811
+ }, timeout: {
10812
+ serializedName: "timeout",
10813
+ nullable: true,
10814
+ type: {
10815
+ name: "TimeSpan",
10816
+ },
10817
+ }, region: {
10818
+ serializedName: "region",
10819
+ nullable: true,
10820
+ type: {
10821
+ name: "String",
10822
+ },
10823
+ }, degreeOfParallelism: {
10824
+ serializedName: "degreeOfParallelism",
10825
+ nullable: true,
10826
+ type: {
10827
+ name: "Number",
10828
+ },
9173
10829
  } }),
9174
10830
  },
9175
10831
  };
@@ -9189,6 +10845,23 @@ const AzureOpenAIEmbeddingSkill = {
9189
10845
  } }),
9190
10846
  },
9191
10847
  };
10848
+ const VisionVectorizeSkill = {
10849
+ serializedName: "#Microsoft.Skills.Vision.VectorizeSkill",
10850
+ type: {
10851
+ name: "Composite",
10852
+ className: "VisionVectorizeSkill",
10853
+ uberParent: "SearchIndexerSkill",
10854
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
10855
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { modelVersion: {
10856
+ serializedName: "modelVersion",
10857
+ required: true,
10858
+ nullable: true,
10859
+ type: {
10860
+ name: "String",
10861
+ },
10862
+ } }),
10863
+ },
10864
+ };
9192
10865
  const DefaultCognitiveServicesAccount = {
9193
10866
  serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
9194
10867
  type: {
@@ -9215,14 +10888,58 @@ const CognitiveServicesAccountKey = {
9215
10888
  } }),
9216
10889
  },
9217
10890
  };
9218
- const SearchIndexerKnowledgeStoreTableProjectionSelector = {
10891
+ const AIServicesAccountKey = {
10892
+ serializedName: "#Microsoft.Azure.Search.AIServicesByKey",
9219
10893
  type: {
9220
10894
  name: "Composite",
9221
- className: "SearchIndexerKnowledgeStoreTableProjectionSelector",
9222
- modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { tableName: {
9223
- serializedName: "tableName",
9224
- required: true,
9225
- type: {
10895
+ className: "AIServicesAccountKey",
10896
+ uberParent: "CognitiveServicesAccount",
10897
+ polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
10898
+ modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { key: {
10899
+ serializedName: "key",
10900
+ required: true,
10901
+ type: {
10902
+ name: "String",
10903
+ },
10904
+ }, subdomainUrl: {
10905
+ serializedName: "subdomainUrl",
10906
+ required: true,
10907
+ type: {
10908
+ name: "String",
10909
+ },
10910
+ } }),
10911
+ },
10912
+ };
10913
+ const AIServicesAccountIdentity = {
10914
+ serializedName: "#Microsoft.Azure.Search.AIServicesByIdentity",
10915
+ type: {
10916
+ name: "Composite",
10917
+ className: "AIServicesAccountIdentity",
10918
+ uberParent: "CognitiveServicesAccount",
10919
+ polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
10920
+ modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { identity: {
10921
+ serializedName: "identity",
10922
+ type: {
10923
+ name: "Composite",
10924
+ className: "SearchIndexerDataIdentity",
10925
+ },
10926
+ }, subdomainUrl: {
10927
+ serializedName: "subdomainUrl",
10928
+ required: true,
10929
+ type: {
10930
+ name: "String",
10931
+ },
10932
+ } }),
10933
+ },
10934
+ };
10935
+ const SearchIndexerKnowledgeStoreTableProjectionSelector = {
10936
+ type: {
10937
+ name: "Composite",
10938
+ className: "SearchIndexerKnowledgeStoreTableProjectionSelector",
10939
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { tableName: {
10940
+ serializedName: "tableName",
10941
+ required: true,
10942
+ type: {
9226
10943
  name: "String",
9227
10944
  },
9228
10945
  } }),
@@ -10735,6 +12452,36 @@ const PatternReplaceCharFilter = {
10735
12452
  } }),
10736
12453
  },
10737
12454
  };
12455
+ const CustomNormalizer = {
12456
+ serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
12457
+ type: {
12458
+ name: "Composite",
12459
+ className: "CustomNormalizer",
12460
+ uberParent: "LexicalNormalizer",
12461
+ polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
12462
+ modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
12463
+ serializedName: "tokenFilters",
12464
+ type: {
12465
+ name: "Sequence",
12466
+ element: {
12467
+ type: {
12468
+ name: "String",
12469
+ },
12470
+ },
12471
+ },
12472
+ }, charFilters: {
12473
+ serializedName: "charFilters",
12474
+ type: {
12475
+ name: "Sequence",
12476
+ element: {
12477
+ type: {
12478
+ name: "String",
12479
+ },
12480
+ },
12481
+ },
12482
+ } }),
12483
+ },
12484
+ };
10738
12485
  const ClassicSimilarity = {
10739
12486
  serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
10740
12487
  type: {
@@ -10831,6 +12578,38 @@ const WebApiVectorizer = {
10831
12578
  } }),
10832
12579
  },
10833
12580
  };
12581
+ const AIServicesVisionVectorizer = {
12582
+ serializedName: "aiServicesVision",
12583
+ type: {
12584
+ name: "Composite",
12585
+ className: "AIServicesVisionVectorizer",
12586
+ uberParent: "VectorSearchVectorizer",
12587
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12588
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { aIServicesVisionParameters: {
12589
+ serializedName: "aiServicesVisionParameters",
12590
+ type: {
12591
+ name: "Composite",
12592
+ className: "AIServicesVisionParameters",
12593
+ },
12594
+ } }),
12595
+ },
12596
+ };
12597
+ const AMLVectorizer = {
12598
+ serializedName: "aml",
12599
+ type: {
12600
+ name: "Composite",
12601
+ className: "AMLVectorizer",
12602
+ uberParent: "VectorSearchVectorizer",
12603
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12604
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { aMLParameters: {
12605
+ serializedName: "amlParameters",
12606
+ type: {
12607
+ name: "Composite",
12608
+ className: "AMLParameters",
12609
+ },
12610
+ } }),
12611
+ },
12612
+ };
10834
12613
  const ScalarQuantizationCompression = {
10835
12614
  serializedName: "scalarQuantization",
10836
12615
  type: {
@@ -10857,32 +12636,6 @@ const BinaryQuantizationCompression = {
10857
12636
  modelProperties: Object.assign({}, VectorSearchCompression.type.modelProperties),
10858
12637
  },
10859
12638
  };
10860
- const SearchIndexerDataNoneIdentity = {
10861
- serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
10862
- type: {
10863
- name: "Composite",
10864
- className: "SearchIndexerDataNoneIdentity",
10865
- uberParent: "SearchIndexerDataIdentity",
10866
- polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
10867
- modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
10868
- },
10869
- };
10870
- const SearchIndexerDataUserAssignedIdentity = {
10871
- serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
10872
- type: {
10873
- name: "Composite",
10874
- className: "SearchIndexerDataUserAssignedIdentity",
10875
- uberParent: "SearchIndexerDataIdentity",
10876
- polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
10877
- modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { resourceId: {
10878
- serializedName: "userAssignedIdentity",
10879
- required: true,
10880
- type: {
10881
- name: "String",
10882
- },
10883
- } }),
10884
- },
10885
- };
10886
12639
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
10887
12640
  type: {
10888
12641
  name: "Composite",
@@ -10900,6 +12653,7 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
10900
12653
  },
10901
12654
  };
10902
12655
  let discriminators = {
12656
+ SearchIndexerDataIdentity: SearchIndexerDataIdentity,
10903
12657
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10904
12658
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10905
12659
  SearchIndexerSkill: SearchIndexerSkill,
@@ -10909,14 +12663,17 @@ let discriminators = {
10909
12663
  LexicalTokenizer: LexicalTokenizer,
10910
12664
  TokenFilter: TokenFilter,
10911
12665
  CharFilter: CharFilter,
12666
+ LexicalNormalizer: LexicalNormalizer,
10912
12667
  Similarity: Similarity,
10913
12668
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10914
12669
  VectorSearchVectorizer: VectorSearchVectorizer,
10915
12670
  VectorSearchCompression: VectorSearchCompression,
10916
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
12671
+ "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
12672
+ "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
10917
12673
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
10918
12674
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
10919
12675
  "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
12676
+ "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
10920
12677
  "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
10921
12678
  "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
10922
12679
  "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
@@ -10934,10 +12691,15 @@ let discriminators = {
10934
12691
  "SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": CustomEntityLookupSkill,
10935
12692
  "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
10936
12693
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
12694
+ "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill": DocumentIntelligenceLayoutSkill,
10937
12695
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
12696
+ "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
10938
12697
  "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
12698
+ "SearchIndexerSkill.#Microsoft.Skills.Vision.VectorizeSkill": VisionVectorizeSkill,
10939
12699
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
10940
12700
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
12701
+ "CognitiveServicesAccount.#Microsoft.Azure.Search.AIServicesByKey": AIServicesAccountKey,
12702
+ "CognitiveServicesAccount.#Microsoft.Azure.Search.AIServicesByIdentity": AIServicesAccountIdentity,
10941
12703
  "ScoringFunction.distance": DistanceScoringFunction,
10942
12704
  "ScoringFunction.freshness": FreshnessScoringFunction,
10943
12705
  "ScoringFunction.magnitude": MagnitudeScoringFunction,
@@ -10985,27 +12747,36 @@ let discriminators = {
10985
12747
  "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
10986
12748
  "CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
10987
12749
  "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
12750
+ "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
10988
12751
  "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
10989
12752
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
10990
12753
  "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
10991
12754
  "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration,
10992
12755
  "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
10993
12756
  "VectorSearchVectorizer.customWebApi": WebApiVectorizer,
12757
+ "VectorSearchVectorizer.aiServicesVision": AIServicesVisionVectorizer,
12758
+ "VectorSearchVectorizer.aml": AMLVectorizer,
10994
12759
  "VectorSearchCompression.scalarQuantization": ScalarQuantizationCompression,
10995
12760
  "VectorSearchCompression.binaryQuantization": BinaryQuantizationCompression,
10996
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
10997
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
10998
12761
  };
10999
12762
 
11000
12763
  var Mappers = /*#__PURE__*/Object.freeze({
11001
12764
  __proto__: null,
12765
+ AIServicesAccountIdentity: AIServicesAccountIdentity,
12766
+ AIServicesAccountKey: AIServicesAccountKey,
12767
+ AIServicesVisionParameters: AIServicesVisionParameters,
12768
+ AIServicesVisionVectorizer: AIServicesVisionVectorizer,
12769
+ AMLParameters: AMLParameters,
12770
+ AMLVectorizer: AMLVectorizer,
11002
12771
  AnalyzeRequest: AnalyzeRequest,
11003
12772
  AnalyzeResult: AnalyzeResult,
11004
12773
  AnalyzedTokenInfo: AnalyzedTokenInfo,
11005
12774
  AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
11006
12775
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
12776
+ AzureMachineLearningSkill: AzureMachineLearningSkill,
11007
12777
  AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
11008
12778
  AzureOpenAIParameters: AzureOpenAIParameters,
12779
+ AzureOpenAITokenizerParameters: AzureOpenAITokenizerParameters,
11009
12780
  AzureOpenAIVectorizer: AzureOpenAIVectorizer,
11010
12781
  BM25Similarity: BM25Similarity,
11011
12782
  BinaryQuantizationCompression: BinaryQuantizationCompression,
@@ -11022,6 +12793,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11022
12793
  CustomEntity: CustomEntity,
11023
12794
  CustomEntityAlias: CustomEntityAlias,
11024
12795
  CustomEntityLookupSkill: CustomEntityLookupSkill,
12796
+ CustomNormalizer: CustomNormalizer,
11025
12797
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
11026
12798
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
11027
12799
  DataSourceCredentials: DataSourceCredentials,
@@ -11030,6 +12802,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
11030
12802
  DistanceScoringFunction: DistanceScoringFunction,
11031
12803
  DistanceScoringParameters: DistanceScoringParameters,
11032
12804
  DocumentExtractionSkill: DocumentExtractionSkill,
12805
+ DocumentIntelligenceLayoutSkill: DocumentIntelligenceLayoutSkill,
12806
+ DocumentKeysOrIds: DocumentKeysOrIds,
11033
12807
  EdgeNGramTokenFilter: EdgeNGramTokenFilter,
11034
12808
  EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
11035
12809
  EdgeNGramTokenizer: EdgeNGramTokenizer,
@@ -11052,6 +12826,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11052
12826
  HnswParameters: HnswParameters,
11053
12827
  ImageAnalysisSkill: ImageAnalysisSkill,
11054
12828
  IndexerExecutionResult: IndexerExecutionResult,
12829
+ IndexerState: IndexerState,
11055
12830
  IndexingParameters: IndexingParameters,
11056
12831
  IndexingParametersConfiguration: IndexingParametersConfiguration,
11057
12832
  IndexingSchedule: IndexingSchedule,
@@ -11064,8 +12839,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
11064
12839
  LanguageDetectionSkill: LanguageDetectionSkill,
11065
12840
  LengthTokenFilter: LengthTokenFilter,
11066
12841
  LexicalAnalyzer: LexicalAnalyzer,
12842
+ LexicalNormalizer: LexicalNormalizer,
11067
12843
  LexicalTokenizer: LexicalTokenizer,
11068
12844
  LimitTokenFilter: LimitTokenFilter,
12845
+ ListAliasesResult: ListAliasesResult,
11069
12846
  ListDataSourcesResult: ListDataSourcesResult,
11070
12847
  ListIndexersResult: ListIndexersResult,
11071
12848
  ListIndexesResult: ListIndexesResult,
@@ -11083,6 +12860,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11083
12860
  NGramTokenFilter: NGramTokenFilter,
11084
12861
  NGramTokenFilterV2: NGramTokenFilterV2,
11085
12862
  NGramTokenizer: NGramTokenizer,
12863
+ NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
11086
12864
  OcrSkill: OcrSkill,
11087
12865
  OutputFieldMappingEntry: OutputFieldMappingEntry,
11088
12866
  PIIDetectionSkill: PIIDetectionSkill,
@@ -11093,14 +12871,17 @@ var Mappers = /*#__PURE__*/Object.freeze({
11093
12871
  PatternReplaceTokenFilter: PatternReplaceTokenFilter,
11094
12872
  PatternTokenizer: PatternTokenizer,
11095
12873
  PhoneticTokenFilter: PhoneticTokenFilter,
12874
+ RescoringOptions: RescoringOptions,
11096
12875
  ResourceCounter: ResourceCounter,
11097
12876
  ScalarQuantizationCompression: ScalarQuantizationCompression,
11098
12877
  ScalarQuantizationParameters: ScalarQuantizationParameters,
11099
12878
  ScoringFunction: ScoringFunction,
11100
12879
  ScoringProfile: ScoringProfile,
12880
+ SearchAlias: SearchAlias,
11101
12881
  SearchField: SearchField,
11102
12882
  SearchIndex: SearchIndex,
11103
12883
  SearchIndexer: SearchIndexer,
12884
+ SearchIndexerCache: SearchIndexerCache,
11104
12885
  SearchIndexerDataContainer: SearchIndexerDataContainer,
11105
12886
  SearchIndexerDataIdentity: SearchIndexerDataIdentity,
11106
12887
  SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
@@ -11136,6 +12917,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11136
12917
  ShaperSkill: ShaperSkill,
11137
12918
  ShingleTokenFilter: ShingleTokenFilter,
11138
12919
  Similarity: Similarity,
12920
+ SkillNames: SkillNames,
11139
12921
  SnowballTokenFilter: SnowballTokenFilter,
11140
12922
  SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
11141
12923
  SplitSkill: SplitSkill,
@@ -11160,6 +12942,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11160
12942
  VectorSearchCompression: VectorSearchCompression,
11161
12943
  VectorSearchProfile: VectorSearchProfile,
11162
12944
  VectorSearchVectorizer: VectorSearchVectorizer,
12945
+ VisionVectorizeSkill: VisionVectorizeSkill,
11163
12946
  WebApiParameters: WebApiParameters,
11164
12947
  WebApiSkill: WebApiSkill,
11165
12948
  WebApiVectorizer: WebApiVectorizer,
@@ -11260,6 +13043,15 @@ const apiVersion = {
11260
13043
  },
11261
13044
  },
11262
13045
  };
13046
+ const skipIndexerResetRequirementForCache = {
13047
+ parameterPath: ["options", "skipIndexerResetRequirementForCache"],
13048
+ mapper: {
13049
+ serializedName: "ignoreResetRequirements",
13050
+ type: {
13051
+ name: "Boolean",
13052
+ },
13053
+ },
13054
+ };
11263
13055
  const select = {
11264
13056
  parameterPath: ["options", "select"],
11265
13057
  mapper: {
@@ -11279,10 +13071,33 @@ const indexerName = {
11279
13071
  },
11280
13072
  },
11281
13073
  };
13074
+ const keysOrIds = {
13075
+ parameterPath: ["options", "keysOrIds"],
13076
+ mapper: DocumentKeysOrIds,
13077
+ };
13078
+ const overwrite = {
13079
+ parameterPath: ["options", "overwrite"],
13080
+ mapper: {
13081
+ defaultValue: false,
13082
+ serializedName: "overwrite",
13083
+ type: {
13084
+ name: "Boolean",
13085
+ },
13086
+ },
13087
+ };
11282
13088
  const indexer = {
11283
13089
  parameterPath: "indexer",
11284
13090
  mapper: SearchIndexer,
11285
13091
  };
13092
+ const disableCacheReprocessingChangeDetection = {
13093
+ parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
13094
+ mapper: {
13095
+ serializedName: "disableCacheReprocessingChangeDetection",
13096
+ type: {
13097
+ name: "Boolean",
13098
+ },
13099
+ },
13100
+ };
11286
13101
  const skillset = {
11287
13102
  parameterPath: "skillset",
11288
13103
  mapper: SearchIndexerSkillset,
@@ -11297,6 +13112,10 @@ const skillsetName = {
11297
13112
  },
11298
13113
  },
11299
13114
  };
13115
+ const skillNames = {
13116
+ parameterPath: "skillNames",
13117
+ mapper: SkillNames,
13118
+ };
11300
13119
  const synonymMap = {
11301
13120
  parameterPath: "synonymMap",
11302
13121
  mapper: SynonymMap,
@@ -11338,6 +13157,20 @@ const request = {
11338
13157
  parameterPath: "request",
11339
13158
  mapper: AnalyzeRequest,
11340
13159
  };
13160
+ const alias = {
13161
+ parameterPath: "alias",
13162
+ mapper: SearchAlias,
13163
+ };
13164
+ const aliasName = {
13165
+ parameterPath: "aliasName",
13166
+ mapper: {
13167
+ serializedName: "aliasName",
13168
+ required: true,
13169
+ type: {
13170
+ name: "String",
13171
+ },
13172
+ },
13173
+ };
11341
13174
 
11342
13175
  /*
11343
13176
  * Copyright (c) Microsoft Corporation.
@@ -11362,7 +13195,7 @@ class DataSourcesImpl {
11362
13195
  * @param options The options parameters.
11363
13196
  */
11364
13197
  createOrUpdate(dataSourceName, dataSource, options) {
11365
- return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
13198
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$5);
11366
13199
  }
11367
13200
  /**
11368
13201
  * Deletes a datasource.
@@ -11370,7 +13203,7 @@ class DataSourcesImpl {
11370
13203
  * @param options The options parameters.
11371
13204
  */
11372
13205
  delete(dataSourceName, options) {
11373
- return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
13206
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$5);
11374
13207
  }
11375
13208
  /**
11376
13209
  * Retrieves a datasource definition.
@@ -11378,14 +13211,14 @@ class DataSourcesImpl {
11378
13211
  * @param options The options parameters.
11379
13212
  */
11380
13213
  get(dataSourceName, options) {
11381
- return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
13214
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$5);
11382
13215
  }
11383
13216
  /**
11384
13217
  * Lists all datasources available for a search service.
11385
13218
  * @param options The options parameters.
11386
13219
  */
11387
13220
  list(options) {
11388
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
13221
+ return this.client.sendOperationRequest({ options }, listOperationSpec$5);
11389
13222
  }
11390
13223
  /**
11391
13224
  * Creates a new datasource.
@@ -11393,12 +13226,12 @@ class DataSourcesImpl {
11393
13226
  * @param options The options parameters.
11394
13227
  */
11395
13228
  create(dataSource, options) {
11396
- return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
13229
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$5);
11397
13230
  }
11398
13231
  }
11399
13232
  // Operation Specifications
11400
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11401
- const createOrUpdateOperationSpec$4 = {
13233
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13234
+ const createOrUpdateOperationSpec$5 = {
11402
13235
  path: "/datasources('{dataSourceName}')",
11403
13236
  httpMethod: "PUT",
11404
13237
  responses: {
@@ -11413,7 +13246,10 @@ const createOrUpdateOperationSpec$4 = {
11413
13246
  },
11414
13247
  },
11415
13248
  requestBody: dataSource,
11416
- queryParameters: [apiVersion],
13249
+ queryParameters: [
13250
+ apiVersion,
13251
+ skipIndexerResetRequirementForCache,
13252
+ ],
11417
13253
  urlParameters: [endpoint, dataSourceName],
11418
13254
  headerParameters: [
11419
13255
  contentType,
@@ -11423,9 +13259,9 @@ const createOrUpdateOperationSpec$4 = {
11423
13259
  prefer,
11424
13260
  ],
11425
13261
  mediaType: "json",
11426
- serializer: serializer$5,
13262
+ serializer: serializer$6,
11427
13263
  };
11428
- const deleteOperationSpec$4 = {
13264
+ const deleteOperationSpec$5 = {
11429
13265
  path: "/datasources('{dataSourceName}')",
11430
13266
  httpMethod: "DELETE",
11431
13267
  responses: {
@@ -11442,9 +13278,9 @@ const deleteOperationSpec$4 = {
11442
13278
  ifMatch,
11443
13279
  ifNoneMatch,
11444
13280
  ],
11445
- serializer: serializer$5,
13281
+ serializer: serializer$6,
11446
13282
  };
11447
- const getOperationSpec$4 = {
13283
+ const getOperationSpec$5 = {
11448
13284
  path: "/datasources('{dataSourceName}')",
11449
13285
  httpMethod: "GET",
11450
13286
  responses: {
@@ -11458,9 +13294,9 @@ const getOperationSpec$4 = {
11458
13294
  queryParameters: [apiVersion],
11459
13295
  urlParameters: [endpoint, dataSourceName],
11460
13296
  headerParameters: [accept],
11461
- serializer: serializer$5,
13297
+ serializer: serializer$6,
11462
13298
  };
11463
- const listOperationSpec$4 = {
13299
+ const listOperationSpec$5 = {
11464
13300
  path: "/datasources",
11465
13301
  httpMethod: "GET",
11466
13302
  responses: {
@@ -11474,9 +13310,9 @@ const listOperationSpec$4 = {
11474
13310
  queryParameters: [apiVersion, select],
11475
13311
  urlParameters: [endpoint],
11476
13312
  headerParameters: [accept],
11477
- serializer: serializer$5,
13313
+ serializer: serializer$6,
11478
13314
  };
11479
- const createOperationSpec$4 = {
13315
+ const createOperationSpec$5 = {
11480
13316
  path: "/datasources",
11481
13317
  httpMethod: "POST",
11482
13318
  responses: {
@@ -11492,7 +13328,7 @@ const createOperationSpec$4 = {
11492
13328
  urlParameters: [endpoint],
11493
13329
  headerParameters: [contentType, accept],
11494
13330
  mediaType: "json",
11495
- serializer: serializer$5,
13331
+ serializer: serializer$6,
11496
13332
  };
11497
13333
 
11498
13334
  /*
@@ -11519,6 +13355,14 @@ class IndexersImpl {
11519
13355
  reset(indexerName, options) {
11520
13356
  return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
11521
13357
  }
13358
+ /**
13359
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
13360
+ * @param indexerName The name of the indexer to reset documents for.
13361
+ * @param options The options parameters.
13362
+ */
13363
+ resetDocs(indexerName, options) {
13364
+ return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
13365
+ }
11522
13366
  /**
11523
13367
  * Runs an indexer on-demand.
11524
13368
  * @param indexerName The name of the indexer to run.
@@ -11534,7 +13378,7 @@ class IndexersImpl {
11534
13378
  * @param options The options parameters.
11535
13379
  */
11536
13380
  createOrUpdate(indexerName, indexer, options) {
11537
- return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
13381
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$4);
11538
13382
  }
11539
13383
  /**
11540
13384
  * Deletes an indexer.
@@ -11542,7 +13386,7 @@ class IndexersImpl {
11542
13386
  * @param options The options parameters.
11543
13387
  */
11544
13388
  delete(indexerName, options) {
11545
- return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
13389
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$4);
11546
13390
  }
11547
13391
  /**
11548
13392
  * Retrieves an indexer definition.
@@ -11550,14 +13394,14 @@ class IndexersImpl {
11550
13394
  * @param options The options parameters.
11551
13395
  */
11552
13396
  get(indexerName, options) {
11553
- return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
13397
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$4);
11554
13398
  }
11555
13399
  /**
11556
13400
  * Lists all indexers available for a search service.
11557
13401
  * @param options The options parameters.
11558
13402
  */
11559
13403
  list(options) {
11560
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
13404
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
11561
13405
  }
11562
13406
  /**
11563
13407
  * Creates a new indexer.
@@ -11565,7 +13409,7 @@ class IndexersImpl {
11565
13409
  * @param options The options parameters.
11566
13410
  */
11567
13411
  create(indexer, options) {
11568
- return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
13412
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$4);
11569
13413
  }
11570
13414
  /**
11571
13415
  * Returns the current status and execution history of an indexer.
@@ -11577,7 +13421,7 @@ class IndexersImpl {
11577
13421
  }
11578
13422
  }
11579
13423
  // Operation Specifications
11580
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13424
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11581
13425
  const resetOperationSpec = {
11582
13426
  path: "/indexers('{indexerName}')/search.reset",
11583
13427
  httpMethod: "POST",
@@ -11590,7 +13434,23 @@ const resetOperationSpec = {
11590
13434
  queryParameters: [apiVersion],
11591
13435
  urlParameters: [endpoint, indexerName],
11592
13436
  headerParameters: [accept],
11593
- serializer: serializer$4,
13437
+ serializer: serializer$5,
13438
+ };
13439
+ const resetDocsOperationSpec = {
13440
+ path: "/indexers('{indexerName}')/search.resetdocs",
13441
+ httpMethod: "POST",
13442
+ responses: {
13443
+ 204: {},
13444
+ default: {
13445
+ bodyMapper: ErrorResponse,
13446
+ },
13447
+ },
13448
+ requestBody: keysOrIds,
13449
+ queryParameters: [apiVersion, overwrite],
13450
+ urlParameters: [endpoint, indexerName],
13451
+ headerParameters: [contentType, accept],
13452
+ mediaType: "json",
13453
+ serializer: serializer$5,
11594
13454
  };
11595
13455
  const runOperationSpec = {
11596
13456
  path: "/indexers('{indexerName}')/search.run",
@@ -11604,9 +13464,9 @@ const runOperationSpec = {
11604
13464
  queryParameters: [apiVersion],
11605
13465
  urlParameters: [endpoint, indexerName],
11606
13466
  headerParameters: [accept],
11607
- serializer: serializer$4,
13467
+ serializer: serializer$5,
11608
13468
  };
11609
- const createOrUpdateOperationSpec$3 = {
13469
+ const createOrUpdateOperationSpec$4 = {
11610
13470
  path: "/indexers('{indexerName}')",
11611
13471
  httpMethod: "PUT",
11612
13472
  responses: {
@@ -11621,7 +13481,11 @@ const createOrUpdateOperationSpec$3 = {
11621
13481
  },
11622
13482
  },
11623
13483
  requestBody: indexer,
11624
- queryParameters: [apiVersion],
13484
+ queryParameters: [
13485
+ apiVersion,
13486
+ skipIndexerResetRequirementForCache,
13487
+ disableCacheReprocessingChangeDetection,
13488
+ ],
11625
13489
  urlParameters: [endpoint, indexerName],
11626
13490
  headerParameters: [
11627
13491
  contentType,
@@ -11631,9 +13495,9 @@ const createOrUpdateOperationSpec$3 = {
11631
13495
  prefer,
11632
13496
  ],
11633
13497
  mediaType: "json",
11634
- serializer: serializer$4,
13498
+ serializer: serializer$5,
11635
13499
  };
11636
- const deleteOperationSpec$3 = {
13500
+ const deleteOperationSpec$4 = {
11637
13501
  path: "/indexers('{indexerName}')",
11638
13502
  httpMethod: "DELETE",
11639
13503
  responses: {
@@ -11650,9 +13514,9 @@ const deleteOperationSpec$3 = {
11650
13514
  ifMatch,
11651
13515
  ifNoneMatch,
11652
13516
  ],
11653
- serializer: serializer$4,
13517
+ serializer: serializer$5,
11654
13518
  };
11655
- const getOperationSpec$3 = {
13519
+ const getOperationSpec$4 = {
11656
13520
  path: "/indexers('{indexerName}')",
11657
13521
  httpMethod: "GET",
11658
13522
  responses: {
@@ -11666,9 +13530,9 @@ const getOperationSpec$3 = {
11666
13530
  queryParameters: [apiVersion],
11667
13531
  urlParameters: [endpoint, indexerName],
11668
13532
  headerParameters: [accept],
11669
- serializer: serializer$4,
13533
+ serializer: serializer$5,
11670
13534
  };
11671
- const listOperationSpec$3 = {
13535
+ const listOperationSpec$4 = {
11672
13536
  path: "/indexers",
11673
13537
  httpMethod: "GET",
11674
13538
  responses: {
@@ -11682,9 +13546,9 @@ const listOperationSpec$3 = {
11682
13546
  queryParameters: [apiVersion, select],
11683
13547
  urlParameters: [endpoint],
11684
13548
  headerParameters: [accept],
11685
- serializer: serializer$4,
13549
+ serializer: serializer$5,
11686
13550
  };
11687
- const createOperationSpec$3 = {
13551
+ const createOperationSpec$4 = {
11688
13552
  path: "/indexers",
11689
13553
  httpMethod: "POST",
11690
13554
  responses: {
@@ -11700,7 +13564,7 @@ const createOperationSpec$3 = {
11700
13564
  urlParameters: [endpoint],
11701
13565
  headerParameters: [contentType, accept],
11702
13566
  mediaType: "json",
11703
- serializer: serializer$4,
13567
+ serializer: serializer$5,
11704
13568
  };
11705
13569
  const getStatusOperationSpec = {
11706
13570
  path: "/indexers('{indexerName}')/search.status",
@@ -11716,7 +13580,7 @@ const getStatusOperationSpec = {
11716
13580
  queryParameters: [apiVersion],
11717
13581
  urlParameters: [endpoint, indexerName],
11718
13582
  headerParameters: [accept],
11719
- serializer: serializer$4,
13583
+ serializer: serializer$5,
11720
13584
  };
11721
13585
 
11722
13586
  /*
@@ -11742,7 +13606,7 @@ class SkillsetsImpl {
11742
13606
  * @param options The options parameters.
11743
13607
  */
11744
13608
  createOrUpdate(skillsetName, skillset, options) {
11745
- return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
13609
+ return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$3);
11746
13610
  }
11747
13611
  /**
11748
13612
  * Deletes a skillset in a search service.
@@ -11750,7 +13614,7 @@ class SkillsetsImpl {
11750
13614
  * @param options The options parameters.
11751
13615
  */
11752
13616
  delete(skillsetName, options) {
11753
- return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
13617
+ return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$3);
11754
13618
  }
11755
13619
  /**
11756
13620
  * Retrieves a skillset in a search service.
@@ -11758,14 +13622,14 @@ class SkillsetsImpl {
11758
13622
  * @param options The options parameters.
11759
13623
  */
11760
13624
  get(skillsetName, options) {
11761
- return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
13625
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
11762
13626
  }
11763
13627
  /**
11764
13628
  * List all skillsets in a search service.
11765
13629
  * @param options The options parameters.
11766
13630
  */
11767
13631
  list(options) {
11768
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
13632
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
11769
13633
  }
11770
13634
  /**
11771
13635
  * Creates a new skillset in a search service.
@@ -11773,12 +13637,21 @@ class SkillsetsImpl {
11773
13637
  * @param options The options parameters.
11774
13638
  */
11775
13639
  create(skillset, options) {
11776
- return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
13640
+ return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$3);
13641
+ }
13642
+ /**
13643
+ * Reset an existing skillset in a search service.
13644
+ * @param skillsetName The name of the skillset to reset.
13645
+ * @param skillNames The names of skills to reset.
13646
+ * @param options The options parameters.
13647
+ */
13648
+ resetSkills(skillsetName, skillNames, options) {
13649
+ return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
11777
13650
  }
11778
13651
  }
11779
13652
  // Operation Specifications
11780
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11781
- const createOrUpdateOperationSpec$2 = {
13653
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13654
+ const createOrUpdateOperationSpec$3 = {
11782
13655
  path: "/skillsets('{skillsetName}')",
11783
13656
  httpMethod: "PUT",
11784
13657
  responses: {
@@ -11793,7 +13666,11 @@ const createOrUpdateOperationSpec$2 = {
11793
13666
  },
11794
13667
  },
11795
13668
  requestBody: skillset,
11796
- queryParameters: [apiVersion],
13669
+ queryParameters: [
13670
+ apiVersion,
13671
+ skipIndexerResetRequirementForCache,
13672
+ disableCacheReprocessingChangeDetection,
13673
+ ],
11797
13674
  urlParameters: [endpoint, skillsetName],
11798
13675
  headerParameters: [
11799
13676
  contentType,
@@ -11803,9 +13680,9 @@ const createOrUpdateOperationSpec$2 = {
11803
13680
  prefer,
11804
13681
  ],
11805
13682
  mediaType: "json",
11806
- serializer: serializer$3,
13683
+ serializer: serializer$4,
11807
13684
  };
11808
- const deleteOperationSpec$2 = {
13685
+ const deleteOperationSpec$3 = {
11809
13686
  path: "/skillsets('{skillsetName}')",
11810
13687
  httpMethod: "DELETE",
11811
13688
  responses: {
@@ -11822,9 +13699,9 @@ const deleteOperationSpec$2 = {
11822
13699
  ifMatch,
11823
13700
  ifNoneMatch,
11824
13701
  ],
11825
- serializer: serializer$3,
13702
+ serializer: serializer$4,
11826
13703
  };
11827
- const getOperationSpec$2 = {
13704
+ const getOperationSpec$3 = {
11828
13705
  path: "/skillsets('{skillsetName}')",
11829
13706
  httpMethod: "GET",
11830
13707
  responses: {
@@ -11838,9 +13715,9 @@ const getOperationSpec$2 = {
11838
13715
  queryParameters: [apiVersion],
11839
13716
  urlParameters: [endpoint, skillsetName],
11840
13717
  headerParameters: [accept],
11841
- serializer: serializer$3,
13718
+ serializer: serializer$4,
11842
13719
  };
11843
- const listOperationSpec$2 = {
13720
+ const listOperationSpec$3 = {
11844
13721
  path: "/skillsets",
11845
13722
  httpMethod: "GET",
11846
13723
  responses: {
@@ -11854,9 +13731,9 @@ const listOperationSpec$2 = {
11854
13731
  queryParameters: [apiVersion, select],
11855
13732
  urlParameters: [endpoint],
11856
13733
  headerParameters: [accept],
11857
- serializer: serializer$3,
13734
+ serializer: serializer$4,
11858
13735
  };
11859
- const createOperationSpec$2 = {
13736
+ const createOperationSpec$3 = {
11860
13737
  path: "/skillsets",
11861
13738
  httpMethod: "POST",
11862
13739
  responses: {
@@ -11872,7 +13749,23 @@ const createOperationSpec$2 = {
11872
13749
  urlParameters: [endpoint],
11873
13750
  headerParameters: [contentType, accept],
11874
13751
  mediaType: "json",
11875
- serializer: serializer$3,
13752
+ serializer: serializer$4,
13753
+ };
13754
+ const resetSkillsOperationSpec = {
13755
+ path: "/skillsets('{skillsetName}')/search.resetskills",
13756
+ httpMethod: "POST",
13757
+ responses: {
13758
+ 204: {},
13759
+ default: {
13760
+ bodyMapper: ErrorResponse,
13761
+ },
13762
+ },
13763
+ requestBody: skillNames,
13764
+ queryParameters: [apiVersion],
13765
+ urlParameters: [endpoint, skillsetName],
13766
+ headerParameters: [contentType, accept],
13767
+ mediaType: "json",
13768
+ serializer: serializer$4,
11876
13769
  };
11877
13770
 
11878
13771
  /*
@@ -11898,7 +13791,7 @@ class SynonymMapsImpl {
11898
13791
  * @param options The options parameters.
11899
13792
  */
11900
13793
  createOrUpdate(synonymMapName, synonymMap, options) {
11901
- return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
13794
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$2);
11902
13795
  }
11903
13796
  /**
11904
13797
  * Deletes a synonym map.
@@ -11906,7 +13799,7 @@ class SynonymMapsImpl {
11906
13799
  * @param options The options parameters.
11907
13800
  */
11908
13801
  delete(synonymMapName, options) {
11909
- return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
13802
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$2);
11910
13803
  }
11911
13804
  /**
11912
13805
  * Retrieves a synonym map definition.
@@ -11914,14 +13807,14 @@ class SynonymMapsImpl {
11914
13807
  * @param options The options parameters.
11915
13808
  */
11916
13809
  get(synonymMapName, options) {
11917
- return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
13810
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$2);
11918
13811
  }
11919
13812
  /**
11920
13813
  * Lists all synonym maps available for a search service.
11921
13814
  * @param options The options parameters.
11922
13815
  */
11923
13816
  list(options) {
11924
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
13817
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
11925
13818
  }
11926
13819
  /**
11927
13820
  * Creates a new synonym map.
@@ -11929,12 +13822,12 @@ class SynonymMapsImpl {
11929
13822
  * @param options The options parameters.
11930
13823
  */
11931
13824
  create(synonymMap, options) {
11932
- return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
13825
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$2);
11933
13826
  }
11934
13827
  }
11935
13828
  // Operation Specifications
11936
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11937
- const createOrUpdateOperationSpec$1 = {
13829
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13830
+ const createOrUpdateOperationSpec$2 = {
11938
13831
  path: "/synonymmaps('{synonymMapName}')",
11939
13832
  httpMethod: "PUT",
11940
13833
  responses: {
@@ -11959,9 +13852,9 @@ const createOrUpdateOperationSpec$1 = {
11959
13852
  prefer,
11960
13853
  ],
11961
13854
  mediaType: "json",
11962
- serializer: serializer$2,
13855
+ serializer: serializer$3,
11963
13856
  };
11964
- const deleteOperationSpec$1 = {
13857
+ const deleteOperationSpec$2 = {
11965
13858
  path: "/synonymmaps('{synonymMapName}')",
11966
13859
  httpMethod: "DELETE",
11967
13860
  responses: {
@@ -11978,9 +13871,9 @@ const deleteOperationSpec$1 = {
11978
13871
  ifMatch,
11979
13872
  ifNoneMatch,
11980
13873
  ],
11981
- serializer: serializer$2,
13874
+ serializer: serializer$3,
11982
13875
  };
11983
- const getOperationSpec$1 = {
13876
+ const getOperationSpec$2 = {
11984
13877
  path: "/synonymmaps('{synonymMapName}')",
11985
13878
  httpMethod: "GET",
11986
13879
  responses: {
@@ -11992,40 +13885,249 @@ const getOperationSpec$1 = {
11992
13885
  },
11993
13886
  },
11994
13887
  queryParameters: [apiVersion],
11995
- urlParameters: [endpoint, synonymMapName],
13888
+ urlParameters: [endpoint, synonymMapName],
13889
+ headerParameters: [accept],
13890
+ serializer: serializer$3,
13891
+ };
13892
+ const listOperationSpec$2 = {
13893
+ path: "/synonymmaps",
13894
+ httpMethod: "GET",
13895
+ responses: {
13896
+ 200: {
13897
+ bodyMapper: ListSynonymMapsResult,
13898
+ },
13899
+ default: {
13900
+ bodyMapper: ErrorResponse,
13901
+ },
13902
+ },
13903
+ queryParameters: [apiVersion, select],
13904
+ urlParameters: [endpoint],
13905
+ headerParameters: [accept],
13906
+ serializer: serializer$3,
13907
+ };
13908
+ const createOperationSpec$2 = {
13909
+ path: "/synonymmaps",
13910
+ httpMethod: "POST",
13911
+ responses: {
13912
+ 201: {
13913
+ bodyMapper: SynonymMap,
13914
+ },
13915
+ default: {
13916
+ bodyMapper: ErrorResponse,
13917
+ },
13918
+ },
13919
+ requestBody: synonymMap,
13920
+ queryParameters: [apiVersion],
13921
+ urlParameters: [endpoint],
13922
+ headerParameters: [contentType, accept],
13923
+ mediaType: "json",
13924
+ serializer: serializer$3,
13925
+ };
13926
+
13927
+ /*
13928
+ * Copyright (c) Microsoft Corporation.
13929
+ * Licensed under the MIT License.
13930
+ *
13931
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13932
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
13933
+ */
13934
+ /** Class containing Indexes operations. */
13935
+ class IndexesImpl {
13936
+ /**
13937
+ * Initialize a new instance of the class Indexes class.
13938
+ * @param client Reference to the service client
13939
+ */
13940
+ constructor(client) {
13941
+ this.client = client;
13942
+ }
13943
+ /**
13944
+ * Creates a new search index.
13945
+ * @param index The definition of the index to create.
13946
+ * @param options The options parameters.
13947
+ */
13948
+ create(index, options) {
13949
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec$1);
13950
+ }
13951
+ /**
13952
+ * Lists all indexes available for a search service.
13953
+ * @param options The options parameters.
13954
+ */
13955
+ list(options) {
13956
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
13957
+ }
13958
+ /**
13959
+ * Creates a new search index or updates an index if it already exists.
13960
+ * @param indexName The definition of the index to create or update.
13961
+ * @param index The definition of the index to create or update.
13962
+ * @param options The options parameters.
13963
+ */
13964
+ createOrUpdate(indexName, index, options) {
13965
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$1);
13966
+ }
13967
+ /**
13968
+ * Deletes a search index and all the documents it contains. This operation is permanent, with no
13969
+ * recovery option. Make sure you have a master copy of your index definition, data ingestion code, and
13970
+ * a backup of the primary data source in case you need to re-build the index.
13971
+ * @param indexName The name of the index to delete.
13972
+ * @param options The options parameters.
13973
+ */
13974
+ delete(indexName, options) {
13975
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$1);
13976
+ }
13977
+ /**
13978
+ * Retrieves an index definition.
13979
+ * @param indexName The name of the index to retrieve.
13980
+ * @param options The options parameters.
13981
+ */
13982
+ get(indexName, options) {
13983
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$1);
13984
+ }
13985
+ /**
13986
+ * Returns statistics for the given index, including a document count and storage usage.
13987
+ * @param indexName The name of the index for which to retrieve statistics.
13988
+ * @param options The options parameters.
13989
+ */
13990
+ getStatistics(indexName, options) {
13991
+ return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
13992
+ }
13993
+ /**
13994
+ * Shows how an analyzer breaks text into tokens.
13995
+ * @param indexName The name of the index for which to test an analyzer.
13996
+ * @param request The text and analyzer or analysis components to test.
13997
+ * @param options The options parameters.
13998
+ */
13999
+ analyze(indexName, request, options) {
14000
+ return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
14001
+ }
14002
+ }
14003
+ // Operation Specifications
14004
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
14005
+ const createOperationSpec$1 = {
14006
+ path: "/indexes",
14007
+ httpMethod: "POST",
14008
+ responses: {
14009
+ 201: {
14010
+ bodyMapper: SearchIndex,
14011
+ },
14012
+ default: {
14013
+ bodyMapper: ErrorResponse,
14014
+ },
14015
+ },
14016
+ requestBody: index,
14017
+ queryParameters: [apiVersion],
14018
+ urlParameters: [endpoint],
14019
+ headerParameters: [contentType, accept],
14020
+ mediaType: "json",
14021
+ serializer: serializer$2,
14022
+ };
14023
+ const listOperationSpec$1 = {
14024
+ path: "/indexes",
14025
+ httpMethod: "GET",
14026
+ responses: {
14027
+ 200: {
14028
+ bodyMapper: ListIndexesResult,
14029
+ },
14030
+ default: {
14031
+ bodyMapper: ErrorResponse,
14032
+ },
14033
+ },
14034
+ queryParameters: [apiVersion, select],
14035
+ urlParameters: [endpoint],
14036
+ headerParameters: [accept],
14037
+ serializer: serializer$2,
14038
+ };
14039
+ const createOrUpdateOperationSpec$1 = {
14040
+ path: "/indexes('{indexName}')",
14041
+ httpMethod: "PUT",
14042
+ responses: {
14043
+ 200: {
14044
+ bodyMapper: SearchIndex,
14045
+ },
14046
+ 201: {
14047
+ bodyMapper: SearchIndex,
14048
+ },
14049
+ default: {
14050
+ bodyMapper: ErrorResponse,
14051
+ },
14052
+ },
14053
+ requestBody: index,
14054
+ queryParameters: [apiVersion, allowIndexDowntime],
14055
+ urlParameters: [endpoint, indexName],
14056
+ headerParameters: [
14057
+ contentType,
14058
+ accept,
14059
+ ifMatch,
14060
+ ifNoneMatch,
14061
+ prefer,
14062
+ ],
14063
+ mediaType: "json",
14064
+ serializer: serializer$2,
14065
+ };
14066
+ const deleteOperationSpec$1 = {
14067
+ path: "/indexes('{indexName}')",
14068
+ httpMethod: "DELETE",
14069
+ responses: {
14070
+ 204: {},
14071
+ 404: {},
14072
+ default: {
14073
+ bodyMapper: ErrorResponse,
14074
+ },
14075
+ },
14076
+ queryParameters: [apiVersion],
14077
+ urlParameters: [endpoint, indexName],
14078
+ headerParameters: [
14079
+ accept,
14080
+ ifMatch,
14081
+ ifNoneMatch,
14082
+ ],
14083
+ serializer: serializer$2,
14084
+ };
14085
+ const getOperationSpec$1 = {
14086
+ path: "/indexes('{indexName}')",
14087
+ httpMethod: "GET",
14088
+ responses: {
14089
+ 200: {
14090
+ bodyMapper: SearchIndex,
14091
+ },
14092
+ default: {
14093
+ bodyMapper: ErrorResponse,
14094
+ },
14095
+ },
14096
+ queryParameters: [apiVersion],
14097
+ urlParameters: [endpoint, indexName],
11996
14098
  headerParameters: [accept],
11997
14099
  serializer: serializer$2,
11998
14100
  };
11999
- const listOperationSpec$1 = {
12000
- path: "/synonymmaps",
14101
+ const getStatisticsOperationSpec = {
14102
+ path: "/indexes('{indexName}')/search.stats",
12001
14103
  httpMethod: "GET",
12002
14104
  responses: {
12003
14105
  200: {
12004
- bodyMapper: ListSynonymMapsResult,
14106
+ bodyMapper: GetIndexStatisticsResult,
12005
14107
  },
12006
14108
  default: {
12007
14109
  bodyMapper: ErrorResponse,
12008
14110
  },
12009
14111
  },
12010
- queryParameters: [apiVersion, select],
12011
- urlParameters: [endpoint],
14112
+ queryParameters: [apiVersion],
14113
+ urlParameters: [endpoint, indexName],
12012
14114
  headerParameters: [accept],
12013
14115
  serializer: serializer$2,
12014
14116
  };
12015
- const createOperationSpec$1 = {
12016
- path: "/synonymmaps",
14117
+ const analyzeOperationSpec = {
14118
+ path: "/indexes('{indexName}')/search.analyze",
12017
14119
  httpMethod: "POST",
12018
14120
  responses: {
12019
- 201: {
12020
- bodyMapper: SynonymMap,
14121
+ 200: {
14122
+ bodyMapper: AnalyzeResult,
12021
14123
  },
12022
14124
  default: {
12023
14125
  bodyMapper: ErrorResponse,
12024
14126
  },
12025
14127
  },
12026
- requestBody: synonymMap,
14128
+ requestBody: request,
12027
14129
  queryParameters: [apiVersion],
12028
- urlParameters: [endpoint],
14130
+ urlParameters: [endpoint, indexName],
12029
14131
  headerParameters: [contentType, accept],
12030
14132
  mediaType: "json",
12031
14133
  serializer: serializer$2,
@@ -12038,89 +14140,71 @@ const createOperationSpec$1 = {
12038
14140
  * Code generated by Microsoft (R) AutoRest Code Generator.
12039
14141
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12040
14142
  */
12041
- /** Class containing Indexes operations. */
12042
- class IndexesImpl {
14143
+ /** Class containing Aliases operations. */
14144
+ class AliasesImpl {
12043
14145
  /**
12044
- * Initialize a new instance of the class Indexes class.
14146
+ * Initialize a new instance of the class Aliases class.
12045
14147
  * @param client Reference to the service client
12046
14148
  */
12047
14149
  constructor(client) {
12048
14150
  this.client = client;
12049
14151
  }
12050
14152
  /**
12051
- * Creates a new search index.
12052
- * @param index The definition of the index to create.
14153
+ * Creates a new search alias.
14154
+ * @param alias The definition of the alias to create.
12053
14155
  * @param options The options parameters.
12054
14156
  */
12055
- create(index, options) {
12056
- return this.client.sendOperationRequest({ index, options }, createOperationSpec);
14157
+ create(alias, options) {
14158
+ return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
12057
14159
  }
12058
14160
  /**
12059
- * Lists all indexes available for a search service.
14161
+ * Lists all aliases available for a search service.
12060
14162
  * @param options The options parameters.
12061
14163
  */
12062
14164
  list(options) {
12063
14165
  return this.client.sendOperationRequest({ options }, listOperationSpec);
12064
14166
  }
12065
14167
  /**
12066
- * Creates a new search index or updates an index if it already exists.
12067
- * @param indexName The definition of the index to create or update.
12068
- * @param index The definition of the index to create or update.
12069
- * @param options The options parameters.
12070
- */
12071
- createOrUpdate(indexName, index, options) {
12072
- return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
12073
- }
12074
- /**
12075
- * Deletes a search index and all the documents it contains. This operation is permanent, with no
12076
- * recovery option. Make sure you have a master copy of your index definition, data ingestion code, and
12077
- * a backup of the primary data source in case you need to re-build the index.
12078
- * @param indexName The name of the index to delete.
12079
- * @param options The options parameters.
12080
- */
12081
- delete(indexName, options) {
12082
- return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
12083
- }
12084
- /**
12085
- * Retrieves an index definition.
12086
- * @param indexName The name of the index to retrieve.
14168
+ * Creates a new search alias or updates an alias if it already exists.
14169
+ * @param aliasName The definition of the alias to create or update.
14170
+ * @param alias The definition of the alias to create or update.
12087
14171
  * @param options The options parameters.
12088
14172
  */
12089
- get(indexName, options) {
12090
- return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
14173
+ createOrUpdate(aliasName, alias, options) {
14174
+ return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
12091
14175
  }
12092
14176
  /**
12093
- * Returns statistics for the given index, including a document count and storage usage.
12094
- * @param indexName The name of the index for which to retrieve statistics.
14177
+ * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
14178
+ * recovery option. The mapped index is untouched by this operation.
14179
+ * @param aliasName The name of the alias to delete.
12095
14180
  * @param options The options parameters.
12096
14181
  */
12097
- getStatistics(indexName, options) {
12098
- return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
14182
+ delete(aliasName, options) {
14183
+ return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
12099
14184
  }
12100
14185
  /**
12101
- * Shows how an analyzer breaks text into tokens.
12102
- * @param indexName The name of the index for which to test an analyzer.
12103
- * @param request The text and analyzer or analysis components to test.
14186
+ * Retrieves an alias definition.
14187
+ * @param aliasName The name of the alias to retrieve.
12104
14188
  * @param options The options parameters.
12105
14189
  */
12106
- analyze(indexName, request, options) {
12107
- return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
14190
+ get(aliasName, options) {
14191
+ return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
12108
14192
  }
12109
14193
  }
12110
14194
  // Operation Specifications
12111
14195
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12112
14196
  const createOperationSpec = {
12113
- path: "/indexes",
14197
+ path: "/aliases",
12114
14198
  httpMethod: "POST",
12115
14199
  responses: {
12116
14200
  201: {
12117
- bodyMapper: SearchIndex,
14201
+ bodyMapper: SearchAlias,
12118
14202
  },
12119
14203
  default: {
12120
14204
  bodyMapper: ErrorResponse,
12121
14205
  },
12122
14206
  },
12123
- requestBody: index,
14207
+ requestBody: alias,
12124
14208
  queryParameters: [apiVersion],
12125
14209
  urlParameters: [endpoint],
12126
14210
  headerParameters: [contentType, accept],
@@ -12128,38 +14212,38 @@ const createOperationSpec = {
12128
14212
  serializer: serializer$1,
12129
14213
  };
12130
14214
  const listOperationSpec = {
12131
- path: "/indexes",
14215
+ path: "/aliases",
12132
14216
  httpMethod: "GET",
12133
14217
  responses: {
12134
14218
  200: {
12135
- bodyMapper: ListIndexesResult,
14219
+ bodyMapper: ListAliasesResult,
12136
14220
  },
12137
14221
  default: {
12138
14222
  bodyMapper: ErrorResponse,
12139
14223
  },
12140
14224
  },
12141
- queryParameters: [apiVersion, select],
14225
+ queryParameters: [apiVersion],
12142
14226
  urlParameters: [endpoint],
12143
14227
  headerParameters: [accept],
12144
14228
  serializer: serializer$1,
12145
14229
  };
12146
14230
  const createOrUpdateOperationSpec = {
12147
- path: "/indexes('{indexName}')",
14231
+ path: "/aliases('{aliasName}')",
12148
14232
  httpMethod: "PUT",
12149
14233
  responses: {
12150
14234
  200: {
12151
- bodyMapper: SearchIndex,
14235
+ bodyMapper: SearchAlias,
12152
14236
  },
12153
14237
  201: {
12154
- bodyMapper: SearchIndex,
14238
+ bodyMapper: SearchAlias,
12155
14239
  },
12156
14240
  default: {
12157
14241
  bodyMapper: ErrorResponse,
12158
14242
  },
12159
14243
  },
12160
- requestBody: index,
12161
- queryParameters: [apiVersion, allowIndexDowntime],
12162
- urlParameters: [endpoint, indexName],
14244
+ requestBody: alias,
14245
+ queryParameters: [apiVersion],
14246
+ urlParameters: [endpoint, aliasName],
12163
14247
  headerParameters: [
12164
14248
  contentType,
12165
14249
  accept,
@@ -12171,7 +14255,7 @@ const createOrUpdateOperationSpec = {
12171
14255
  serializer: serializer$1,
12172
14256
  };
12173
14257
  const deleteOperationSpec = {
12174
- path: "/indexes('{indexName}')",
14258
+ path: "/aliases('{aliasName}')",
12175
14259
  httpMethod: "DELETE",
12176
14260
  responses: {
12177
14261
  204: {},
@@ -12181,7 +14265,7 @@ const deleteOperationSpec = {
12181
14265
  },
12182
14266
  },
12183
14267
  queryParameters: [apiVersion],
12184
- urlParameters: [endpoint, indexName],
14268
+ urlParameters: [endpoint, aliasName],
12185
14269
  headerParameters: [
12186
14270
  accept,
12187
14271
  ifMatch,
@@ -12190,55 +14274,21 @@ const deleteOperationSpec = {
12190
14274
  serializer: serializer$1,
12191
14275
  };
12192
14276
  const getOperationSpec = {
12193
- path: "/indexes('{indexName}')",
12194
- httpMethod: "GET",
12195
- responses: {
12196
- 200: {
12197
- bodyMapper: SearchIndex,
12198
- },
12199
- default: {
12200
- bodyMapper: ErrorResponse,
12201
- },
12202
- },
12203
- queryParameters: [apiVersion],
12204
- urlParameters: [endpoint, indexName],
12205
- headerParameters: [accept],
12206
- serializer: serializer$1,
12207
- };
12208
- const getStatisticsOperationSpec = {
12209
- path: "/indexes('{indexName}')/search.stats",
14277
+ path: "/aliases('{aliasName}')",
12210
14278
  httpMethod: "GET",
12211
14279
  responses: {
12212
14280
  200: {
12213
- bodyMapper: GetIndexStatisticsResult,
14281
+ bodyMapper: SearchAlias,
12214
14282
  },
12215
14283
  default: {
12216
14284
  bodyMapper: ErrorResponse,
12217
14285
  },
12218
14286
  },
12219
14287
  queryParameters: [apiVersion],
12220
- urlParameters: [endpoint, indexName],
14288
+ urlParameters: [endpoint, aliasName],
12221
14289
  headerParameters: [accept],
12222
14290
  serializer: serializer$1,
12223
14291
  };
12224
- const analyzeOperationSpec = {
12225
- path: "/indexes('{indexName}')/search.analyze",
12226
- httpMethod: "POST",
12227
- responses: {
12228
- 200: {
12229
- bodyMapper: AnalyzeResult,
12230
- },
12231
- default: {
12232
- bodyMapper: ErrorResponse,
12233
- },
12234
- },
12235
- requestBody: request,
12236
- queryParameters: [apiVersion],
12237
- urlParameters: [endpoint, indexName],
12238
- headerParameters: [contentType, accept],
12239
- mediaType: "json",
12240
- serializer: serializer$1,
12241
- };
12242
14292
 
12243
14293
  /*
12244
14294
  * Copyright (c) Microsoft Corporation.
@@ -12270,7 +14320,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
12270
14320
  const defaults = {
12271
14321
  requestContentType: "application/json; charset=utf-8",
12272
14322
  };
12273
- const packageDetails = `azsdk-js-search-documents/12.1.0`;
14323
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.2`;
12274
14324
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
12275
14325
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
12276
14326
  : `${packageDetails}`;
@@ -12286,6 +14336,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
12286
14336
  this.skillsets = new SkillsetsImpl(this);
12287
14337
  this.synonymMaps = new SynonymMapsImpl(this);
12288
14338
  this.indexes = new IndexesImpl(this);
14339
+ this.aliases = new AliasesImpl(this);
12289
14340
  this.addCustomApiVersionPolicy(apiVersion);
12290
14341
  }
12291
14342
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -12341,7 +14392,7 @@ const getServiceStatisticsOperationSpec = {
12341
14392
  };
12342
14393
 
12343
14394
  // Copyright (c) Microsoft Corporation.
12344
- // Licensed under the MIT license.
14395
+ // Licensed under the MIT License.
12345
14396
  /**
12346
14397
  * Class to perform operations to manage
12347
14398
  * (create, update, list/delete)
@@ -12395,6 +14446,7 @@ class SearchIndexClient {
12395
14446
  (_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12396
14447
  this.apiVersion = this.serviceVersion;
12397
14448
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
14449
+ this.pipeline = this.client.pipeline;
12398
14450
  if (coreAuth.isTokenCredential(credential)) {
12399
14451
  const scope = this.options.audience
12400
14452
  ? `${this.options.audience}/.default`
@@ -12464,6 +14516,63 @@ class SearchIndexClient {
12464
14516
  },
12465
14517
  };
12466
14518
  }
14519
+ listAliasesPage(options = {}) {
14520
+ return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
14521
+ const { span, updatedOptions } = createSpan("SearchIndexClient-listAliases", options);
14522
+ try {
14523
+ const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
14524
+ yield yield tslib.__await(result.aliases);
14525
+ }
14526
+ catch (e) {
14527
+ span.setStatus({
14528
+ status: "error",
14529
+ error: e.message,
14530
+ });
14531
+ throw e;
14532
+ }
14533
+ finally {
14534
+ span.end();
14535
+ }
14536
+ });
14537
+ }
14538
+ listAliasesAll(options = {}) {
14539
+ return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
14540
+ var _a, e_2, _b, _c;
14541
+ try {
14542
+ for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
14543
+ _c = _f.value;
14544
+ _d = false;
14545
+ const page = _c;
14546
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
14547
+ }
14548
+ }
14549
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
14550
+ finally {
14551
+ try {
14552
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
14553
+ }
14554
+ finally { if (e_2) throw e_2.error; }
14555
+ }
14556
+ });
14557
+ }
14558
+ /**
14559
+ * Lists all aliases available for a search service.
14560
+ * @param options - The options parameters.
14561
+ */
14562
+ listAliases(options = {}) {
14563
+ const iter = this.listAliasesAll(options);
14564
+ return {
14565
+ next() {
14566
+ return iter.next();
14567
+ },
14568
+ [Symbol.asyncIterator]() {
14569
+ return this;
14570
+ },
14571
+ byPage: () => {
14572
+ return this.listAliasesPage(options);
14573
+ },
14574
+ };
14575
+ }
12467
14576
  listIndexesNamesPage(options = {}) {
12468
14577
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
12469
14578
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
@@ -12486,7 +14595,7 @@ class SearchIndexClient {
12486
14595
  }
12487
14596
  listIndexesNamesAll(options = {}) {
12488
14597
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
12489
- var _a, e_2, _b, _c;
14598
+ var _a, e_3, _b, _c;
12490
14599
  try {
12491
14600
  for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
12492
14601
  _c = _f.value;
@@ -12495,12 +14604,12 @@ class SearchIndexClient {
12495
14604
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
12496
14605
  }
12497
14606
  }
12498
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
14607
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
12499
14608
  finally {
12500
14609
  try {
12501
14610
  if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
12502
14611
  }
12503
- finally { if (e_2) throw e_2.error; }
14612
+ finally { if (e_3) throw e_3.error; }
12504
14613
  }
12505
14614
  });
12506
14615
  }
@@ -12508,6 +14617,7 @@ class SearchIndexClient {
12508
14617
  * Retrieves a list of names of existing indexes in the service.
12509
14618
  * @param options - Options to the list index operation.
12510
14619
  */
14620
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
12511
14621
  listIndexesNames(options = {}) {
12512
14622
  const iter = this.listIndexesNamesAll(options);
12513
14623
  return {
@@ -12547,6 +14657,7 @@ class SearchIndexClient {
12547
14657
  * Retrieves a list of names of existing SynonymMaps in the service.
12548
14658
  * @param options - Options to the list SynonymMaps operation.
12549
14659
  */
14660
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
12550
14661
  async listSynonymMapsNames(options = {}) {
12551
14662
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
12552
14663
  try {
@@ -12591,7 +14702,9 @@ class SearchIndexClient {
12591
14702
  * @param synonymMapName - The name of the SynonymMap.
12592
14703
  * @param options - Additional optional arguments.
12593
14704
  */
12594
- async getSynonymMap(synonymMapName, options = {}) {
14705
+ async getSynonymMap(synonymMapName,
14706
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
14707
+ options = {}) {
12595
14708
  const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options);
12596
14709
  try {
12597
14710
  const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);
@@ -12748,6 +14861,97 @@ class SearchIndexClient {
12748
14861
  span.end();
12749
14862
  }
12750
14863
  }
14864
+ /**
14865
+ * Creates a new search alias or updates an alias if it already exists.
14866
+ * @param alias - The definition of the alias to create or update.
14867
+ * @param options - The options parameters.
14868
+ */
14869
+ async createOrUpdateAlias(alias, options = {}) {
14870
+ const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateAlias", options);
14871
+ try {
14872
+ const etag = options.onlyIfUnchanged ? alias.etag : undefined;
14873
+ const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
14874
+ return result;
14875
+ }
14876
+ catch (e) {
14877
+ span.setStatus({
14878
+ status: "error",
14879
+ error: e.message,
14880
+ });
14881
+ throw e;
14882
+ }
14883
+ finally {
14884
+ span.end();
14885
+ }
14886
+ }
14887
+ /**
14888
+ * Creates a new search alias.
14889
+ * @param alias - The definition of the alias to create.
14890
+ * @param options - The options parameters.
14891
+ */
14892
+ async createAlias(alias, options = {}) {
14893
+ const { span, updatedOptions } = createSpan("SearchIndexClient-createAlias", options);
14894
+ try {
14895
+ const result = await this.client.aliases.create(alias, updatedOptions);
14896
+ return result;
14897
+ }
14898
+ catch (e) {
14899
+ span.setStatus({
14900
+ status: "error",
14901
+ error: e.message,
14902
+ });
14903
+ throw e;
14904
+ }
14905
+ finally {
14906
+ span.end();
14907
+ }
14908
+ }
14909
+ /**
14910
+ * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
14911
+ * recovery option. The mapped index is untouched by this operation.
14912
+ * @param alias - Alias/Name name of the alias to delete.
14913
+ * @param options - The options parameters.
14914
+ */
14915
+ async deleteAlias(alias, options = {}) {
14916
+ const { span, updatedOptions } = createSpan("SearchIndexClient-deleteAlias", options);
14917
+ try {
14918
+ const aliasName = typeof alias === "string" ? alias : alias.name;
14919
+ const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
14920
+ await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
14921
+ }
14922
+ catch (e) {
14923
+ span.setStatus({
14924
+ status: "error",
14925
+ error: e.message,
14926
+ });
14927
+ throw e;
14928
+ }
14929
+ finally {
14930
+ span.end();
14931
+ }
14932
+ }
14933
+ /**
14934
+ * Retrieves an alias definition.
14935
+ * @param aliasName - The name of the alias to retrieve.
14936
+ * @param options - The options parameters.
14937
+ */
14938
+ async getAlias(aliasName, options = {}) {
14939
+ const { span, updatedOptions } = createSpan("SearchIndexClient-getAlias", options);
14940
+ try {
14941
+ const result = await this.client.aliases.get(aliasName, updatedOptions);
14942
+ return result;
14943
+ }
14944
+ catch (e) {
14945
+ span.setStatus({
14946
+ status: "error",
14947
+ error: e.message,
14948
+ });
14949
+ throw e;
14950
+ }
14951
+ finally {
14952
+ span.end();
14953
+ }
14954
+ }
12751
14955
  /**
12752
14956
  * Retrieves statistics about an index, such as the count of documents and the size
12753
14957
  * of index storage.
@@ -12836,7 +15040,7 @@ class SearchIndexClient {
12836
15040
  }
12837
15041
 
12838
15042
  // Copyright (c) Microsoft Corporation.
12839
- // Licensed under the MIT license.
15043
+ // Licensed under the MIT License.
12840
15044
  /**
12841
15045
  * Class to perform operations to manage
12842
15046
  * (create, update, list/delete)
@@ -12888,6 +15092,7 @@ class SearchIndexerClient {
12888
15092
  (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12889
15093
  this.apiVersion = this.serviceVersion;
12890
15094
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
15095
+ this.pipeline = this.client.pipeline;
12891
15096
  if (coreAuth.isTokenCredential(credential)) {
12892
15097
  const scope = options.audience
12893
15098
  ? `${options.audience}/.default`
@@ -12924,6 +15129,7 @@ class SearchIndexerClient {
12924
15129
  * Retrieves a list of names of existing indexers in the service.
12925
15130
  * @param options - Options to the list indexers operation.
12926
15131
  */
15132
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
12927
15133
  async listIndexersNames(options = {}) {
12928
15134
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
12929
15135
  try {
@@ -12966,7 +15172,9 @@ class SearchIndexerClient {
12966
15172
  * Retrieves a list of names of existing data sources in the service.
12967
15173
  * @param options - Options to the list indexers operation.
12968
15174
  */
12969
- async listDataSourceConnectionsNames(options = {}) {
15175
+ async listDataSourceConnectionsNames(
15176
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
15177
+ options = {}) {
12970
15178
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
12971
15179
  try {
12972
15180
  const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
@@ -13008,6 +15216,7 @@ class SearchIndexerClient {
13008
15216
  * Retrieves a list of names of existing Skillsets in the service.
13009
15217
  * @param options - Options to the list Skillsets operation.
13010
15218
  */
15219
+ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options
13011
15220
  async listSkillsetsNames(options = {}) {
13012
15221
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
13013
15222
  try {
@@ -13372,10 +15581,56 @@ class SearchIndexerClient {
13372
15581
  span.end();
13373
15582
  }
13374
15583
  }
15584
+ /**
15585
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
15586
+ * @param indexerName - The name of the indexer to reset documents for.
15587
+ * @param options - Additional optional arguments.
15588
+ */
15589
+ async resetDocuments(indexerName, options = {}) {
15590
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
15591
+ try {
15592
+ await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
15593
+ documentKeys: updatedOptions.documentKeys,
15594
+ datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
15595
+ } }));
15596
+ }
15597
+ catch (e) {
15598
+ span.setStatus({
15599
+ status: "error",
15600
+ error: e.message,
15601
+ });
15602
+ throw e;
15603
+ }
15604
+ finally {
15605
+ span.end();
15606
+ }
15607
+ }
15608
+ /**
15609
+ * Reset an existing skillset in a search service.
15610
+ * @param skillsetName - The name of the skillset to reset.
15611
+ * @param skillNames - The names of skills to reset.
15612
+ * @param options - The options parameters.
15613
+ */
15614
+ async resetSkills(skillsetName, options = {}) {
15615
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
15616
+ try {
15617
+ await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
15618
+ }
15619
+ catch (e) {
15620
+ span.setStatus({
15621
+ status: "error",
15622
+ error: e.message,
15623
+ });
15624
+ throw e;
15625
+ }
15626
+ finally {
15627
+ span.end();
15628
+ }
15629
+ }
13375
15630
  }
13376
15631
 
13377
15632
  // Copyright (c) Microsoft Corporation.
13378
- // Licensed under the MIT license.
15633
+ // Licensed under the MIT License.
13379
15634
  /**
13380
15635
  * Default Batch Size
13381
15636
  */
@@ -13653,7 +15908,7 @@ class SearchIndexingBufferedSender {
13653
15908
  }
13654
15909
 
13655
15910
  // Copyright (c) Microsoft Corporation.
13656
- // Licensed under the MIT license.
15911
+ // Licensed under the MIT License.
13657
15912
  const readFileAsync = util.promisify(fs__namespace.readFile);
13658
15913
  /**
13659
15914
  * Helper method to create a SynonymMap object. This is a NodeJS only method.
@@ -13683,6 +15938,7 @@ exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
13683
15938
  exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
13684
15939
  exports.GeographyPoint = GeographyPoint;
13685
15940
  exports.IndexDocumentsBatch = IndexDocumentsBatch;
15941
+ exports.KnownLexicalNormalizerName = exports.KnownNormalizerNames;
13686
15942
  exports.SearchClient = SearchClient;
13687
15943
  exports.SearchIndexClient = SearchIndexClient;
13688
15944
  exports.SearchIndexerClient = SearchIndexerClient;