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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +2298 -426
  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 +208 -6
  11. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  12. package/dist-esm/src/generated/data/models/mappers.js +378 -0
  13. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  14. package/dist-esm/src/generated/data/models/parameters.js +42 -0
  15. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  16. package/dist-esm/src/generated/data/operations/documents.js +4 -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 +154 -84
  21. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  22. package/dist-esm/src/generated/service/models/mappers.js +684 -70
  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 +11 -4
  63. package/dist-esm/src/searchClient.js.map +1 -1
  64. package/dist-esm/src/searchIndexClient.js +153 -4
  65. package/dist-esm/src/searchIndexClient.js.map +1 -1
  66. package/dist-esm/src/searchIndexerClient.js +48 -1
  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 +79 -19
  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 +6 -6
  85. package/types/search-documents.d.ts +1515 -98
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 ApiVersion20240901Preview} that the service accepts. */
46
+ var KnownApiVersion20240901Preview$1;
47
+ (function (KnownApiVersion20240901Preview) {
48
+ /** Api Version '2024-09-01-preview' */
49
+ KnownApiVersion20240901Preview["TwoThousandTwentyFour0901Preview"] = "2024-09-01-preview";
50
+ })(KnownApiVersion20240901Preview$1 || (KnownApiVersion20240901Preview$1 = {}));
51
51
  /** Known values of {@link SemanticErrorMode} that the service accepts. */
52
52
  exports.KnownSemanticErrorMode = void 0;
53
53
  (function (KnownSemanticErrorMode) {
@@ -72,6 +72,178 @@ 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 QueryDebugMode} that the service accepts. */
76
+ exports.KnownQueryDebugMode = void 0;
77
+ (function (KnownQueryDebugMode) {
78
+ /** No query debugging information will be returned. */
79
+ KnownQueryDebugMode["Disabled"] = "disabled";
80
+ /** Allows the user to further explore their reranked results. */
81
+ KnownQueryDebugMode["Semantic"] = "semantic";
82
+ })(exports.KnownQueryDebugMode || (exports.KnownQueryDebugMode = {}));
83
+ /** Known values of {@link QueryLanguage} that the service accepts. */
84
+ exports.KnownQueryLanguage = void 0;
85
+ (function (KnownQueryLanguage) {
86
+ /** Query language not specified. */
87
+ KnownQueryLanguage["None"] = "none";
88
+ /** Query language value for English (United States). */
89
+ KnownQueryLanguage["EnUs"] = "en-us";
90
+ /** Query language value for English (Great Britain). */
91
+ KnownQueryLanguage["EnGb"] = "en-gb";
92
+ /** Query language value for English (India). */
93
+ KnownQueryLanguage["EnIn"] = "en-in";
94
+ /** Query language value for English (Canada). */
95
+ KnownQueryLanguage["EnCa"] = "en-ca";
96
+ /** Query language value for English (Australia). */
97
+ KnownQueryLanguage["EnAu"] = "en-au";
98
+ /** Query language value for French (France). */
99
+ KnownQueryLanguage["FrFr"] = "fr-fr";
100
+ /** Query language value for French (Canada). */
101
+ KnownQueryLanguage["FrCa"] = "fr-ca";
102
+ /** Query language value for German (Germany). */
103
+ KnownQueryLanguage["DeDe"] = "de-de";
104
+ /** Query language value for Spanish (Spain). */
105
+ KnownQueryLanguage["EsEs"] = "es-es";
106
+ /** Query language value for Spanish (Mexico). */
107
+ KnownQueryLanguage["EsMx"] = "es-mx";
108
+ /** Query language value for Chinese (China). */
109
+ KnownQueryLanguage["ZhCn"] = "zh-cn";
110
+ /** Query language value for Chinese (Taiwan). */
111
+ KnownQueryLanguage["ZhTw"] = "zh-tw";
112
+ /** Query language value for Portuguese (Brazil). */
113
+ KnownQueryLanguage["PtBr"] = "pt-br";
114
+ /** Query language value for Portuguese (Portugal). */
115
+ KnownQueryLanguage["PtPt"] = "pt-pt";
116
+ /** Query language value for Italian (Italy). */
117
+ KnownQueryLanguage["ItIt"] = "it-it";
118
+ /** Query language value for Japanese (Japan). */
119
+ KnownQueryLanguage["JaJp"] = "ja-jp";
120
+ /** Query language value for Korean (Korea). */
121
+ KnownQueryLanguage["KoKr"] = "ko-kr";
122
+ /** Query language value for Russian (Russia). */
123
+ KnownQueryLanguage["RuRu"] = "ru-ru";
124
+ /** Query language value for Czech (Czech Republic). */
125
+ KnownQueryLanguage["CsCz"] = "cs-cz";
126
+ /** Query language value for Dutch (Belgium). */
127
+ KnownQueryLanguage["NlBe"] = "nl-be";
128
+ /** Query language value for Dutch (Netherlands). */
129
+ KnownQueryLanguage["NlNl"] = "nl-nl";
130
+ /** Query language value for Hungarian (Hungary). */
131
+ KnownQueryLanguage["HuHu"] = "hu-hu";
132
+ /** Query language value for Polish (Poland). */
133
+ KnownQueryLanguage["PlPl"] = "pl-pl";
134
+ /** Query language value for Swedish (Sweden). */
135
+ KnownQueryLanguage["SvSe"] = "sv-se";
136
+ /** Query language value for Turkish (Turkey). */
137
+ KnownQueryLanguage["TrTr"] = "tr-tr";
138
+ /** Query language value for Hindi (India). */
139
+ KnownQueryLanguage["HiIn"] = "hi-in";
140
+ /** Query language value for Arabic (Saudi Arabia). */
141
+ KnownQueryLanguage["ArSa"] = "ar-sa";
142
+ /** Query language value for Arabic (Egypt). */
143
+ KnownQueryLanguage["ArEg"] = "ar-eg";
144
+ /** Query language value for Arabic (Morocco). */
145
+ KnownQueryLanguage["ArMa"] = "ar-ma";
146
+ /** Query language value for Arabic (Kuwait). */
147
+ KnownQueryLanguage["ArKw"] = "ar-kw";
148
+ /** Query language value for Arabic (Jordan). */
149
+ KnownQueryLanguage["ArJo"] = "ar-jo";
150
+ /** Query language value for Danish (Denmark). */
151
+ KnownQueryLanguage["DaDk"] = "da-dk";
152
+ /** Query language value for Norwegian (Norway). */
153
+ KnownQueryLanguage["NoNo"] = "no-no";
154
+ /** Query language value for Bulgarian (Bulgaria). */
155
+ KnownQueryLanguage["BgBg"] = "bg-bg";
156
+ /** Query language value for Croatian (Croatia). */
157
+ KnownQueryLanguage["HrHr"] = "hr-hr";
158
+ /** Query language value for Croatian (Bosnia and Herzegovina). */
159
+ KnownQueryLanguage["HrBa"] = "hr-ba";
160
+ /** Query language value for Malay (Malaysia). */
161
+ KnownQueryLanguage["MsMy"] = "ms-my";
162
+ /** Query language value for Malay (Brunei Darussalam). */
163
+ KnownQueryLanguage["MsBn"] = "ms-bn";
164
+ /** Query language value for Slovenian (Slovenia). */
165
+ KnownQueryLanguage["SlSl"] = "sl-sl";
166
+ /** Query language value for Tamil (India). */
167
+ KnownQueryLanguage["TaIn"] = "ta-in";
168
+ /** Query language value for Vietnamese (Viet Nam). */
169
+ KnownQueryLanguage["ViVn"] = "vi-vn";
170
+ /** Query language value for Greek (Greece). */
171
+ KnownQueryLanguage["ElGr"] = "el-gr";
172
+ /** Query language value for Romanian (Romania). */
173
+ KnownQueryLanguage["RoRo"] = "ro-ro";
174
+ /** Query language value for Icelandic (Iceland). */
175
+ KnownQueryLanguage["IsIs"] = "is-is";
176
+ /** Query language value for Indonesian (Indonesia). */
177
+ KnownQueryLanguage["IdId"] = "id-id";
178
+ /** Query language value for Thai (Thailand). */
179
+ KnownQueryLanguage["ThTh"] = "th-th";
180
+ /** Query language value for Lithuanian (Lithuania). */
181
+ KnownQueryLanguage["LtLt"] = "lt-lt";
182
+ /** Query language value for Ukrainian (Ukraine). */
183
+ KnownQueryLanguage["UkUa"] = "uk-ua";
184
+ /** Query language value for Latvian (Latvia). */
185
+ KnownQueryLanguage["LvLv"] = "lv-lv";
186
+ /** Query language value for Estonian (Estonia). */
187
+ KnownQueryLanguage["EtEe"] = "et-ee";
188
+ /** Query language value for Catalan. */
189
+ KnownQueryLanguage["CaEs"] = "ca-es";
190
+ /** Query language value for Finnish (Finland). */
191
+ KnownQueryLanguage["FiFi"] = "fi-fi";
192
+ /** Query language value for Serbian (Bosnia and Herzegovina). */
193
+ KnownQueryLanguage["SrBa"] = "sr-ba";
194
+ /** Query language value for Serbian (Montenegro). */
195
+ KnownQueryLanguage["SrMe"] = "sr-me";
196
+ /** Query language value for Serbian (Serbia). */
197
+ KnownQueryLanguage["SrRs"] = "sr-rs";
198
+ /** Query language value for Slovak (Slovakia). */
199
+ KnownQueryLanguage["SkSk"] = "sk-sk";
200
+ /** Query language value for Norwegian (Norway). */
201
+ KnownQueryLanguage["NbNo"] = "nb-no";
202
+ /** Query language value for Armenian (Armenia). */
203
+ KnownQueryLanguage["HyAm"] = "hy-am";
204
+ /** Query language value for Bengali (India). */
205
+ KnownQueryLanguage["BnIn"] = "bn-in";
206
+ /** Query language value for Basque. */
207
+ KnownQueryLanguage["EuEs"] = "eu-es";
208
+ /** Query language value for Galician. */
209
+ KnownQueryLanguage["GlEs"] = "gl-es";
210
+ /** Query language value for Gujarati (India). */
211
+ KnownQueryLanguage["GuIn"] = "gu-in";
212
+ /** Query language value for Hebrew (Israel). */
213
+ KnownQueryLanguage["HeIl"] = "he-il";
214
+ /** Query language value for Irish (Ireland). */
215
+ KnownQueryLanguage["GaIe"] = "ga-ie";
216
+ /** Query language value for Kannada (India). */
217
+ KnownQueryLanguage["KnIn"] = "kn-in";
218
+ /** Query language value for Malayalam (India). */
219
+ KnownQueryLanguage["MlIn"] = "ml-in";
220
+ /** Query language value for Marathi (India). */
221
+ KnownQueryLanguage["MrIn"] = "mr-in";
222
+ /** Query language value for Persian (U.A.E.). */
223
+ KnownQueryLanguage["FaAe"] = "fa-ae";
224
+ /** Query language value for Punjabi (India). */
225
+ KnownQueryLanguage["PaIn"] = "pa-in";
226
+ /** Query language value for Telugu (India). */
227
+ KnownQueryLanguage["TeIn"] = "te-in";
228
+ /** Query language value for Urdu (Pakistan). */
229
+ KnownQueryLanguage["UrPk"] = "ur-pk";
230
+ })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
231
+ /** Known values of {@link Speller} that the service accepts. */
232
+ exports.KnownSpeller = void 0;
233
+ (function (KnownSpeller) {
234
+ /** Speller not enabled. */
235
+ KnownSpeller["None"] = "none";
236
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
237
+ KnownSpeller["Lexicon"] = "lexicon";
238
+ })(exports.KnownSpeller || (exports.KnownSpeller = {}));
239
+ /** Known values of {@link QuerySpellerType} that the service accepts. */
240
+ exports.KnownQuerySpellerType = void 0;
241
+ (function (KnownQuerySpellerType) {
242
+ /** Speller not enabled. */
243
+ KnownQuerySpellerType["None"] = "none";
244
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
245
+ KnownQuerySpellerType["Lexicon"] = "lexicon";
246
+ })(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
75
247
  /** Known values of {@link VectorQueryKind} that the service accepts. */
76
248
  exports.KnownVectorQueryKind = void 0;
77
249
  (function (KnownVectorQueryKind) {
@@ -79,7 +251,19 @@ exports.KnownVectorQueryKind = void 0;
79
251
  KnownVectorQueryKind["Vector"] = "vector";
80
252
  /** Vector query where a text value that needs to be vectorized is provided. */
81
253
  KnownVectorQueryKind["Text"] = "text";
254
+ /** Vector query where an url that represents an image value that needs to be vectorized is provided. */
255
+ KnownVectorQueryKind["ImageUrl"] = "imageUrl";
256
+ /** Vector query where a base 64 encoded binary of an image that needs to be vectorized is provided. */
257
+ KnownVectorQueryKind["ImageBinary"] = "imageBinary";
82
258
  })(exports.KnownVectorQueryKind || (exports.KnownVectorQueryKind = {}));
259
+ /** Known values of {@link VectorThresholdKind} that the service accepts. */
260
+ exports.KnownVectorThresholdKind = void 0;
261
+ (function (KnownVectorThresholdKind) {
262
+ /** 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. */
263
+ KnownVectorThresholdKind["VectorSimilarity"] = "vectorSimilarity";
264
+ /** 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. */
265
+ KnownVectorThresholdKind["SearchScore"] = "searchScore";
266
+ })(exports.KnownVectorThresholdKind || (exports.KnownVectorThresholdKind = {}));
83
267
  /** Known values of {@link VectorFilterMode} that the service accepts. */
84
268
  exports.KnownVectorFilterMode = void 0;
85
269
  (function (KnownVectorFilterMode) {
@@ -88,6 +272,24 @@ exports.KnownVectorFilterMode = void 0;
88
272
  /** The filter will be applied before the search query. */
89
273
  KnownVectorFilterMode["PreFilter"] = "preFilter";
90
274
  })(exports.KnownVectorFilterMode || (exports.KnownVectorFilterMode = {}));
275
+ /** Known values of {@link HybridCountAndFacetMode} that the service accepts. */
276
+ exports.KnownHybridCountAndFacetMode = void 0;
277
+ (function (KnownHybridCountAndFacetMode) {
278
+ /** Only include documents that were matched within the 'maxTextRecallSize' retrieval window when computing 'count' and 'facets'. */
279
+ KnownHybridCountAndFacetMode["CountRetrievableResults"] = "countRetrievableResults";
280
+ /** Include all documents that were matched by the search query when computing 'count' and 'facets', regardless of whether or not those documents are within the 'maxTextRecallSize' retrieval window. */
281
+ KnownHybridCountAndFacetMode["CountAllResults"] = "countAllResults";
282
+ })(exports.KnownHybridCountAndFacetMode || (exports.KnownHybridCountAndFacetMode = {}));
283
+ /** Known values of {@link SemanticFieldState} that the service accepts. */
284
+ exports.KnownSemanticFieldState = void 0;
285
+ (function (KnownSemanticFieldState) {
286
+ /** The field was fully used for semantic enrichment. */
287
+ KnownSemanticFieldState["Used"] = "used";
288
+ /** The field was not used for semantic enrichment. */
289
+ KnownSemanticFieldState["Unused"] = "unused";
290
+ /** The field was partially used for semantic enrichment. */
291
+ KnownSemanticFieldState["Partial"] = "partial";
292
+ })(exports.KnownSemanticFieldState || (exports.KnownSemanticFieldState = {}));
91
293
  /** Known values of {@link SemanticErrorReason} that the service accepts. */
92
294
  exports.KnownSemanticErrorReason = void 0;
93
295
  (function (KnownSemanticErrorReason) {
@@ -114,12 +316,12 @@ exports.KnownSemanticSearchResultsType = void 0;
114
316
  * Code generated by Microsoft (R) AutoRest Code Generator.
115
317
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
116
318
  */
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 = {}));
319
+ /** Known values of {@link ApiVersion20240901Preview} that the service accepts. */
320
+ var KnownApiVersion20240901Preview;
321
+ (function (KnownApiVersion20240901Preview) {
322
+ /** Api Version '2024-09-01-preview' */
323
+ KnownApiVersion20240901Preview["TwoThousandTwentyFour0901Preview"] = "2024-09-01-preview";
324
+ })(KnownApiVersion20240901Preview || (KnownApiVersion20240901Preview = {}));
123
325
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
124
326
  exports.KnownSearchIndexerDataSourceType = void 0;
125
327
  (function (KnownSearchIndexerDataSourceType) {
@@ -135,6 +337,8 @@ exports.KnownSearchIndexerDataSourceType = void 0;
135
337
  KnownSearchIndexerDataSourceType["MySql"] = "mysql";
136
338
  /** Indicates an ADLS Gen2 datasource. */
137
339
  KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
340
+ /** Indicates a Microsoft Fabric OneLake datasource. */
341
+ KnownSearchIndexerDataSourceType["OneLake"] = "onelake";
138
342
  })(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
139
343
  /** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
140
344
  exports.KnownBlobIndexerParsingMode = void 0;
@@ -188,6 +392,20 @@ exports.KnownIndexerExecutionEnvironment = void 0;
188
392
  /** 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
393
  KnownIndexerExecutionEnvironment["Private"] = "private";
190
394
  })(exports.KnownIndexerExecutionEnvironment || (exports.KnownIndexerExecutionEnvironment = {}));
395
+ /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
396
+ exports.KnownIndexerExecutionStatusDetail = void 0;
397
+ (function (KnownIndexerExecutionStatusDetail) {
398
+ /** Indicates that the reset that occurred was for a call to ResetDocs. */
399
+ KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
400
+ })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
401
+ /** Known values of {@link IndexingMode} that the service accepts. */
402
+ exports.KnownIndexingMode = void 0;
403
+ (function (KnownIndexingMode) {
404
+ /** The indexer is indexing all documents in the datasource. */
405
+ KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
406
+ /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
407
+ KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
408
+ })(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
191
409
  /** Known values of {@link IndexProjectionMode} that the service accepts. */
192
410
  exports.KnownIndexProjectionMode = void 0;
193
411
  (function (KnownIndexProjectionMode) {
@@ -227,7 +445,7 @@ exports.KnownSearchFieldDataType = void 0;
227
445
  KnownSearchFieldDataType["Byte"] = "Edm.Byte";
228
446
  })(exports.KnownSearchFieldDataType || (exports.KnownSearchFieldDataType = {}));
229
447
  /** Known values of {@link LexicalAnalyzerName} that the service accepts. */
230
- var KnownLexicalAnalyzerName;
448
+ exports.KnownLexicalAnalyzerName = void 0;
231
449
  (function (KnownLexicalAnalyzerName) {
232
450
  /** Microsoft analyzer for Arabic. */
233
451
  KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
@@ -415,7 +633,21 @@ var KnownLexicalAnalyzerName;
415
633
  KnownLexicalAnalyzerName["Stop"] = "stop";
416
634
  /** 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
635
  KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
418
- })(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
636
+ })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
637
+ /** Known values of {@link LexicalNormalizerName} that the service accepts. */
638
+ exports.KnownNormalizerNames = void 0;
639
+ (function (KnownLexicalNormalizerName) {
640
+ /** 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 */
641
+ KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
642
+ /** 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 */
643
+ KnownLexicalNormalizerName["Elision"] = "elision";
644
+ /** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
645
+ KnownLexicalNormalizerName["Lowercase"] = "lowercase";
646
+ /** 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 */
647
+ KnownLexicalNormalizerName["Standard"] = "standard";
648
+ /** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
649
+ KnownLexicalNormalizerName["Uppercase"] = "uppercase";
650
+ })(exports.KnownNormalizerNames || (exports.KnownNormalizerNames = {}));
419
651
  /** Known values of {@link VectorEncodingFormat} that the service accepts. */
420
652
  exports.KnownVectorEncodingFormat = void 0;
421
653
  (function (KnownVectorEncodingFormat) {
@@ -437,6 +669,10 @@ exports.KnownVectorSearchVectorizerKind = void 0;
437
669
  KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
438
670
  /** Generate embeddings using a custom web endpoint at query time. */
439
671
  KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
672
+ /** Generate embeddings for an image or text input at query time using the Azure AI Services Vision Vectorize API. */
673
+ KnownVectorSearchVectorizerKind["AIServicesVision"] = "aiServicesVision";
674
+ /** Generate embeddings using an Azure Machine Learning endpoint deployed via the Azure AI Studio Model Catalog at query time. */
675
+ KnownVectorSearchVectorizerKind["AML"] = "aml";
440
676
  })(exports.KnownVectorSearchVectorizerKind || (exports.KnownVectorSearchVectorizerKind = {}));
441
677
  /** Known values of {@link VectorSearchCompressionKind} that the service accepts. */
442
678
  exports.KnownVectorSearchCompressionKind = void 0;
@@ -446,6 +682,84 @@ exports.KnownVectorSearchCompressionKind = void 0;
446
682
  /** Binary Quantization, a type of compression method. In binary quantization, the original vectors values are compressed to the narrower binary type by discretizing and representing each component of a vector using binary values, thereby reducing the overall data size. */
447
683
  KnownVectorSearchCompressionKind["BinaryQuantization"] = "binaryQuantization";
448
684
  })(exports.KnownVectorSearchCompressionKind || (exports.KnownVectorSearchCompressionKind = {}));
685
+ /** Known values of {@link TokenFilterName} that the service accepts. */
686
+ var KnownTokenFilterName;
687
+ (function (KnownTokenFilterName) {
688
+ /** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
689
+ KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
690
+ /** 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 */
691
+ KnownTokenFilterName["Apostrophe"] = "apostrophe";
692
+ /** 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 */
693
+ KnownTokenFilterName["AsciiFolding"] = "asciifolding";
694
+ /** 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 */
695
+ KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
696
+ /** 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 */
697
+ KnownTokenFilterName["CjkWidth"] = "cjk_width";
698
+ /** 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 */
699
+ KnownTokenFilterName["Classic"] = "classic";
700
+ /** 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 */
701
+ KnownTokenFilterName["CommonGram"] = "common_grams";
702
+ /** 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 */
703
+ KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
704
+ /** 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 */
705
+ KnownTokenFilterName["Elision"] = "elision";
706
+ /** 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 */
707
+ KnownTokenFilterName["GermanNormalization"] = "german_normalization";
708
+ /** 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 */
709
+ KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
710
+ /** 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 */
711
+ KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
712
+ /** 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 */
713
+ KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
714
+ /** 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 */
715
+ KnownTokenFilterName["KStem"] = "kstem";
716
+ /** 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 */
717
+ KnownTokenFilterName["Length"] = "length";
718
+ /** 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 */
719
+ KnownTokenFilterName["Limit"] = "limit";
720
+ /** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */
721
+ KnownTokenFilterName["Lowercase"] = "lowercase";
722
+ /** 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 */
723
+ KnownTokenFilterName["NGram"] = "nGram_v2";
724
+ /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
725
+ KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
726
+ /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
727
+ KnownTokenFilterName["Phonetic"] = "phonetic";
728
+ /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
729
+ KnownTokenFilterName["PorterStem"] = "porter_stem";
730
+ /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
731
+ KnownTokenFilterName["Reverse"] = "reverse";
732
+ /** 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 */
733
+ KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
734
+ /** 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 */
735
+ KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
736
+ /** 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 */
737
+ KnownTokenFilterName["Shingle"] = "shingle";
738
+ /** 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 */
739
+ KnownTokenFilterName["Snowball"] = "snowball";
740
+ /** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
741
+ KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
742
+ /** Language specific stemming filter. See https:\//learn.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
743
+ KnownTokenFilterName["Stemmer"] = "stemmer";
744
+ /** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
745
+ KnownTokenFilterName["Stopwords"] = "stopwords";
746
+ /** 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 */
747
+ KnownTokenFilterName["Trim"] = "trim";
748
+ /** 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 */
749
+ KnownTokenFilterName["Truncate"] = "truncate";
750
+ /** 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 */
751
+ KnownTokenFilterName["Unique"] = "unique";
752
+ /** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
753
+ KnownTokenFilterName["Uppercase"] = "uppercase";
754
+ /** Splits words into subwords and performs optional transformations on subword groups. */
755
+ KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
756
+ })(KnownTokenFilterName || (KnownTokenFilterName = {}));
757
+ /** Known values of {@link CharFilterName} that the service accepts. */
758
+ var KnownCharFilterName;
759
+ (function (KnownCharFilterName) {
760
+ /** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
761
+ KnownCharFilterName["HtmlStrip"] = "html_strip";
762
+ })(KnownCharFilterName || (KnownCharFilterName = {}));
449
763
  /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
450
764
  exports.KnownVectorSearchAlgorithmMetric = void 0;
451
765
  (function (KnownVectorSearchAlgorithmMetric) {
@@ -474,6 +788,22 @@ exports.KnownAzureOpenAIModelName = void 0;
474
788
  /** TextEmbedding3Small */
475
789
  KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
476
790
  })(exports.KnownAzureOpenAIModelName || (exports.KnownAzureOpenAIModelName = {}));
791
+ /** Known values of {@link AIStudioModelCatalogName} that the service accepts. */
792
+ exports.KnownAIStudioModelCatalogName = void 0;
793
+ (function (KnownAIStudioModelCatalogName) {
794
+ /** OpenAIClipImageTextEmbeddingsVitBasePatch32 */
795
+ KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsVitBasePatch32"] = "OpenAI-CLIP-Image-Text-Embeddings-vit-base-patch32";
796
+ /** OpenAIClipImageTextEmbeddingsViTLargePatch14336 */
797
+ KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsViTLargePatch14336"] = "OpenAI-CLIP-Image-Text-Embeddings-ViT-Large-Patch14-336";
798
+ /** FacebookDinoV2ImageEmbeddingsViTBase */
799
+ KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTBase"] = "Facebook-DinoV2-Image-Embeddings-ViT-Base";
800
+ /** FacebookDinoV2ImageEmbeddingsViTGiant */
801
+ KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTGiant"] = "Facebook-DinoV2-Image-Embeddings-ViT-Giant";
802
+ /** CohereEmbedV3English */
803
+ KnownAIStudioModelCatalogName["CohereEmbedV3English"] = "Cohere-embed-v3-english";
804
+ /** CohereEmbedV3Multilingual */
805
+ KnownAIStudioModelCatalogName["CohereEmbedV3Multilingual"] = "Cohere-embed-v3-multilingual";
806
+ })(exports.KnownAIStudioModelCatalogName || (exports.KnownAIStudioModelCatalogName = {}));
477
807
  /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
478
808
  exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
479
809
  (function (KnownKeyPhraseExtractionSkillLanguage) {
@@ -1188,6 +1518,26 @@ exports.KnownTextSplitMode = void 0;
1188
1518
  /** Split the text into individual sentences. */
1189
1519
  KnownTextSplitMode["Sentences"] = "sentences";
1190
1520
  })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
1521
+ /** Known values of {@link SplitSkillUnit} that the service accepts. */
1522
+ exports.KnownSplitSkillUnit = void 0;
1523
+ (function (KnownSplitSkillUnit) {
1524
+ /** The length will be measured by character. */
1525
+ KnownSplitSkillUnit["Characters"] = "characters";
1526
+ /** The length will be measured by an AzureOpenAI tokenizer from the tiktoken library. */
1527
+ KnownSplitSkillUnit["AzureOpenAITokens"] = "azureOpenAITokens";
1528
+ })(exports.KnownSplitSkillUnit || (exports.KnownSplitSkillUnit = {}));
1529
+ /** Known values of {@link SplitSkillEncoderModelName} that the service accepts. */
1530
+ exports.KnownSplitSkillEncoderModelName = void 0;
1531
+ (function (KnownSplitSkillEncoderModelName) {
1532
+ /** Refers to a base model trained with a 50,000 token vocabulary, often used in general natural language processing tasks. */
1533
+ KnownSplitSkillEncoderModelName["R50KBase"] = "r50k_base";
1534
+ /** A base model with a 50,000 token vocabulary, optimized for prompt-based tasks. */
1535
+ KnownSplitSkillEncoderModelName["P50KBase"] = "p50k_base";
1536
+ /** Similar to p50k_base but fine-tuned for editing or rephrasing tasks with a 50,000 token vocabulary. */
1537
+ KnownSplitSkillEncoderModelName["P50KEdit"] = "p50k_edit";
1538
+ /** A base model with a 100,000 token vocabulary. */
1539
+ KnownSplitSkillEncoderModelName["CL100KBase"] = "cl100k_base";
1540
+ })(exports.KnownSplitSkillEncoderModelName || (exports.KnownSplitSkillEncoderModelName = {}));
1191
1541
  /** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
1192
1542
  exports.KnownCustomEntityLookupSkillLanguage = void 0;
1193
1543
  (function (KnownCustomEntityLookupSkillLanguage) {
@@ -1359,7 +1709,7 @@ exports.KnownTextTranslationSkillLanguage = void 0;
1359
1709
  KnownTextTranslationSkillLanguage["Pa"] = "pa";
1360
1710
  })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
1361
1711
  /** Known values of {@link LexicalTokenizerName} that the service accepts. */
1362
- exports.KnownTokenizerNames = void 0;
1712
+ var KnownLexicalTokenizerName;
1363
1713
  (function (KnownLexicalTokenizerName) {
1364
1714
  /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */
1365
1715
  KnownLexicalTokenizerName["Classic"] = "classic";
@@ -1387,85 +1737,7 @@ exports.KnownTokenizerNames = void 0;
1387
1737
  KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
1388
1738
  /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
1389
1739
  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 = {}));
1740
+ })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
1469
1741
  /** Known values of {@link RegexFlags} that the service accepts. */
1470
1742
  exports.KnownRegexFlags = void 0;
1471
1743
  (function (KnownRegexFlags) {
@@ -1488,7 +1760,7 @@ exports.KnownRegexFlags = void 0;
1488
1760
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
1489
1761
 
1490
1762
  // Copyright (c) Microsoft Corporation.
1491
- // Licensed under the MIT license.
1763
+ // Licensed under the MIT License.
1492
1764
  const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
1493
1765
  /**
1494
1766
  * Represents a geographic point in global coordinates.
@@ -1516,7 +1788,7 @@ class GeographyPoint {
1516
1788
  }
1517
1789
 
1518
1790
  // Copyright (c) Microsoft Corporation.
1519
- // Licensed under the MIT license.
1791
+ // Licensed under the MIT License.
1520
1792
  /**
1521
1793
  * Class used to perform batch operations
1522
1794
  * with multiple documents to the index.
@@ -1579,7 +1851,7 @@ class IndexDocumentsBatch {
1579
1851
  }
1580
1852
 
1581
1853
  // Copyright (c) Microsoft Corporation.
1582
- // Licensed under the MIT license.
1854
+ // Licensed under the MIT License.
1583
1855
  function formatNullAndUndefined(input) {
1584
1856
  if (input === null || input === undefined) {
1585
1857
  return "null";
@@ -1626,7 +1898,7 @@ function odata(strings, ...values) {
1626
1898
  }
1627
1899
 
1628
1900
  // Copyright (c) Microsoft Corporation.
1629
- // Licensed under the MIT license.
1901
+ // Licensed under the MIT License.
1630
1902
  /**
1631
1903
  * Known values for Search Audience
1632
1904
  */
@@ -1647,7 +1919,7 @@ exports.KnownSearchAudience = void 0;
1647
1919
  })(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
1648
1920
 
1649
1921
  // Copyright (c) Microsoft Corporation.
1650
- // Licensed under the MIT license.
1922
+ // Licensed under the MIT License.
1651
1923
  /**
1652
1924
  * Encodes a string in base64 format.
1653
1925
  * @param value - The string to encode.
@@ -2008,6 +2280,12 @@ const SearchRequest = {
2008
2280
  name: "String",
2009
2281
  },
2010
2282
  },
2283
+ debug: {
2284
+ serializedName: "debug",
2285
+ type: {
2286
+ name: "String",
2287
+ },
2288
+ },
2011
2289
  searchText: {
2012
2290
  serializedName: "search",
2013
2291
  type: {
@@ -2027,6 +2305,18 @@ const SearchRequest = {
2027
2305
  allowedValues: ["any", "all"],
2028
2306
  },
2029
2307
  },
2308
+ queryLanguage: {
2309
+ serializedName: "queryLanguage",
2310
+ type: {
2311
+ name: "String",
2312
+ },
2313
+ },
2314
+ speller: {
2315
+ serializedName: "speller",
2316
+ type: {
2317
+ name: "String",
2318
+ },
2319
+ },
2030
2320
  select: {
2031
2321
  serializedName: "select",
2032
2322
  type: {
@@ -2085,6 +2375,12 @@ const SearchRequest = {
2085
2375
  name: "String",
2086
2376
  },
2087
2377
  },
2378
+ semanticFields: {
2379
+ serializedName: "semanticFields",
2380
+ type: {
2381
+ name: "String",
2382
+ },
2383
+ },
2088
2384
  vectorQueries: {
2089
2385
  serializedName: "vectorQueries",
2090
2386
  type: {
@@ -2103,6 +2399,13 @@ const SearchRequest = {
2103
2399
  name: "String",
2104
2400
  },
2105
2401
  },
2402
+ hybridSearch: {
2403
+ serializedName: "hybridSearch",
2404
+ type: {
2405
+ name: "Composite",
2406
+ className: "HybridSearch",
2407
+ },
2408
+ },
2106
2409
  },
2107
2410
  },
2108
2411
  };
@@ -2153,6 +2456,59 @@ const VectorQuery = {
2153
2456
  name: "Number",
2154
2457
  },
2155
2458
  },
2459
+ threshold: {
2460
+ serializedName: "threshold",
2461
+ type: {
2462
+ name: "Composite",
2463
+ className: "VectorThreshold",
2464
+ },
2465
+ },
2466
+ filterOverride: {
2467
+ serializedName: "filterOverride",
2468
+ type: {
2469
+ name: "String",
2470
+ },
2471
+ },
2472
+ },
2473
+ },
2474
+ };
2475
+ const VectorThreshold = {
2476
+ type: {
2477
+ name: "Composite",
2478
+ className: "VectorThreshold",
2479
+ uberParent: "VectorThreshold",
2480
+ polymorphicDiscriminator: {
2481
+ serializedName: "kind",
2482
+ clientName: "kind",
2483
+ },
2484
+ modelProperties: {
2485
+ kind: {
2486
+ serializedName: "kind",
2487
+ required: true,
2488
+ type: {
2489
+ name: "String",
2490
+ },
2491
+ },
2492
+ },
2493
+ },
2494
+ };
2495
+ const HybridSearch = {
2496
+ type: {
2497
+ name: "Composite",
2498
+ className: "HybridSearch",
2499
+ modelProperties: {
2500
+ maxTextRecallSize: {
2501
+ serializedName: "maxTextRecallSize",
2502
+ type: {
2503
+ name: "Number",
2504
+ },
2505
+ },
2506
+ countAndFacetMode: {
2507
+ serializedName: "countAndFacetMode",
2508
+ type: {
2509
+ name: "String",
2510
+ },
2511
+ },
2156
2512
  },
2157
2513
  },
2158
2514
  };
@@ -2202,6 +2558,20 @@ const SearchResult = {
2202
2558
  },
2203
2559
  },
2204
2560
  },
2561
+ documentDebugInfo: {
2562
+ serializedName: "@search\\.documentDebugInfo",
2563
+ readOnly: true,
2564
+ nullable: true,
2565
+ type: {
2566
+ name: "Sequence",
2567
+ element: {
2568
+ type: {
2569
+ name: "Composite",
2570
+ className: "DocumentDebugInfo",
2571
+ },
2572
+ },
2573
+ },
2574
+ },
2205
2575
  },
2206
2576
  },
2207
2577
  };
@@ -2229,47 +2599,260 @@ const QueryCaptionResult = {
2229
2599
  },
2230
2600
  },
2231
2601
  };
2232
- const SuggestDocumentsResult = {
2602
+ const DocumentDebugInfo = {
2233
2603
  type: {
2234
2604
  name: "Composite",
2235
- className: "SuggestDocumentsResult",
2605
+ className: "DocumentDebugInfo",
2236
2606
  modelProperties: {
2237
- results: {
2238
- serializedName: "value",
2239
- required: true,
2240
- readOnly: true,
2607
+ semantic: {
2608
+ serializedName: "semantic",
2241
2609
  type: {
2242
- name: "Sequence",
2243
- element: {
2244
- type: {
2245
- name: "Composite",
2246
- className: "SuggestResult",
2247
- },
2248
- },
2610
+ name: "Composite",
2611
+ className: "SemanticDebugInfo",
2249
2612
  },
2250
2613
  },
2251
- coverage: {
2252
- serializedName: "@search\\.coverage",
2253
- readOnly: true,
2614
+ vectors: {
2615
+ serializedName: "vectors",
2254
2616
  type: {
2255
- name: "Number",
2617
+ name: "Composite",
2618
+ className: "VectorsDebugInfo",
2256
2619
  },
2257
2620
  },
2258
2621
  },
2259
2622
  },
2260
2623
  };
2261
- const SuggestResult = {
2624
+ const SemanticDebugInfo = {
2262
2625
  type: {
2263
2626
  name: "Composite",
2264
- className: "SuggestResult",
2265
- additionalProperties: { type: { name: "Object" } },
2627
+ className: "SemanticDebugInfo",
2266
2628
  modelProperties: {
2267
- _text: {
2268
- serializedName: "@search\\.text",
2269
- required: true,
2270
- readOnly: true,
2629
+ titleField: {
2630
+ serializedName: "titleField",
2271
2631
  type: {
2272
- name: "String",
2632
+ name: "Composite",
2633
+ className: "QueryResultDocumentSemanticField",
2634
+ },
2635
+ },
2636
+ contentFields: {
2637
+ serializedName: "contentFields",
2638
+ readOnly: true,
2639
+ type: {
2640
+ name: "Sequence",
2641
+ element: {
2642
+ type: {
2643
+ name: "Composite",
2644
+ className: "QueryResultDocumentSemanticField",
2645
+ },
2646
+ },
2647
+ },
2648
+ },
2649
+ keywordFields: {
2650
+ serializedName: "keywordFields",
2651
+ readOnly: true,
2652
+ type: {
2653
+ name: "Sequence",
2654
+ element: {
2655
+ type: {
2656
+ name: "Composite",
2657
+ className: "QueryResultDocumentSemanticField",
2658
+ },
2659
+ },
2660
+ },
2661
+ },
2662
+ rerankerInput: {
2663
+ serializedName: "rerankerInput",
2664
+ type: {
2665
+ name: "Composite",
2666
+ className: "QueryResultDocumentRerankerInput",
2667
+ },
2668
+ },
2669
+ },
2670
+ },
2671
+ };
2672
+ const QueryResultDocumentSemanticField = {
2673
+ type: {
2674
+ name: "Composite",
2675
+ className: "QueryResultDocumentSemanticField",
2676
+ modelProperties: {
2677
+ name: {
2678
+ serializedName: "name",
2679
+ readOnly: true,
2680
+ type: {
2681
+ name: "String",
2682
+ },
2683
+ },
2684
+ state: {
2685
+ serializedName: "state",
2686
+ readOnly: true,
2687
+ type: {
2688
+ name: "String",
2689
+ },
2690
+ },
2691
+ },
2692
+ },
2693
+ };
2694
+ const QueryResultDocumentRerankerInput = {
2695
+ type: {
2696
+ name: "Composite",
2697
+ className: "QueryResultDocumentRerankerInput",
2698
+ modelProperties: {
2699
+ title: {
2700
+ serializedName: "title",
2701
+ readOnly: true,
2702
+ type: {
2703
+ name: "String",
2704
+ },
2705
+ },
2706
+ content: {
2707
+ serializedName: "content",
2708
+ readOnly: true,
2709
+ type: {
2710
+ name: "String",
2711
+ },
2712
+ },
2713
+ keywords: {
2714
+ serializedName: "keywords",
2715
+ readOnly: true,
2716
+ type: {
2717
+ name: "String",
2718
+ },
2719
+ },
2720
+ },
2721
+ },
2722
+ };
2723
+ const VectorsDebugInfo = {
2724
+ type: {
2725
+ name: "Composite",
2726
+ className: "VectorsDebugInfo",
2727
+ modelProperties: {
2728
+ subscores: {
2729
+ serializedName: "subscores",
2730
+ type: {
2731
+ name: "Composite",
2732
+ className: "QueryResultDocumentSubscores",
2733
+ },
2734
+ },
2735
+ },
2736
+ },
2737
+ };
2738
+ const QueryResultDocumentSubscores = {
2739
+ type: {
2740
+ name: "Composite",
2741
+ className: "QueryResultDocumentSubscores",
2742
+ modelProperties: {
2743
+ text: {
2744
+ serializedName: "text",
2745
+ type: {
2746
+ name: "Composite",
2747
+ className: "TextResult",
2748
+ },
2749
+ },
2750
+ vectors: {
2751
+ serializedName: "vectors",
2752
+ readOnly: true,
2753
+ type: {
2754
+ name: "Sequence",
2755
+ element: {
2756
+ type: {
2757
+ name: "Dictionary",
2758
+ value: {
2759
+ type: {
2760
+ name: "Composite",
2761
+ className: "SingleVectorFieldResult",
2762
+ },
2763
+ },
2764
+ },
2765
+ },
2766
+ },
2767
+ },
2768
+ documentBoost: {
2769
+ serializedName: "documentBoost",
2770
+ readOnly: true,
2771
+ type: {
2772
+ name: "Number",
2773
+ },
2774
+ },
2775
+ },
2776
+ },
2777
+ };
2778
+ const TextResult = {
2779
+ type: {
2780
+ name: "Composite",
2781
+ className: "TextResult",
2782
+ modelProperties: {
2783
+ searchScore: {
2784
+ serializedName: "searchScore",
2785
+ readOnly: true,
2786
+ type: {
2787
+ name: "Number",
2788
+ },
2789
+ },
2790
+ },
2791
+ },
2792
+ };
2793
+ const SingleVectorFieldResult = {
2794
+ type: {
2795
+ name: "Composite",
2796
+ className: "SingleVectorFieldResult",
2797
+ modelProperties: {
2798
+ searchScore: {
2799
+ serializedName: "searchScore",
2800
+ readOnly: true,
2801
+ type: {
2802
+ name: "Number",
2803
+ },
2804
+ },
2805
+ vectorSimilarity: {
2806
+ serializedName: "vectorSimilarity",
2807
+ readOnly: true,
2808
+ type: {
2809
+ name: "Number",
2810
+ },
2811
+ },
2812
+ },
2813
+ },
2814
+ };
2815
+ const SuggestDocumentsResult = {
2816
+ type: {
2817
+ name: "Composite",
2818
+ className: "SuggestDocumentsResult",
2819
+ modelProperties: {
2820
+ results: {
2821
+ serializedName: "value",
2822
+ required: true,
2823
+ readOnly: true,
2824
+ type: {
2825
+ name: "Sequence",
2826
+ element: {
2827
+ type: {
2828
+ name: "Composite",
2829
+ className: "SuggestResult",
2830
+ },
2831
+ },
2832
+ },
2833
+ },
2834
+ coverage: {
2835
+ serializedName: "@search\\.coverage",
2836
+ readOnly: true,
2837
+ type: {
2838
+ name: "Number",
2839
+ },
2840
+ },
2841
+ },
2842
+ },
2843
+ };
2844
+ const SuggestResult = {
2845
+ type: {
2846
+ name: "Composite",
2847
+ className: "SuggestResult",
2848
+ additionalProperties: { type: { name: "Object" } },
2849
+ modelProperties: {
2850
+ _text: {
2851
+ serializedName: "@search\\.text",
2852
+ required: true,
2853
+ readOnly: true,
2854
+ type: {
2855
+ name: "String",
2273
2856
  },
2274
2857
  },
2275
2858
  },
@@ -2611,10 +3194,77 @@ const VectorizableTextQuery = {
2611
3194
  } }),
2612
3195
  },
2613
3196
  };
3197
+ const VectorizableImageUrlQuery = {
3198
+ serializedName: "imageUrl",
3199
+ type: {
3200
+ name: "Composite",
3201
+ className: "VectorizableImageUrlQuery",
3202
+ uberParent: "VectorQuery",
3203
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
3204
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { url: {
3205
+ serializedName: "url",
3206
+ type: {
3207
+ name: "String",
3208
+ },
3209
+ } }),
3210
+ },
3211
+ };
3212
+ const VectorizableImageBinaryQuery = {
3213
+ serializedName: "imageBinary",
3214
+ type: {
3215
+ name: "Composite",
3216
+ className: "VectorizableImageBinaryQuery",
3217
+ uberParent: "VectorQuery",
3218
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
3219
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { base64Image: {
3220
+ serializedName: "base64Image",
3221
+ type: {
3222
+ name: "String",
3223
+ },
3224
+ } }),
3225
+ },
3226
+ };
3227
+ const VectorSimilarityThreshold = {
3228
+ serializedName: "vectorSimilarity",
3229
+ type: {
3230
+ name: "Composite",
3231
+ className: "VectorSimilarityThreshold",
3232
+ uberParent: "VectorThreshold",
3233
+ polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
3234
+ modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
3235
+ serializedName: "value",
3236
+ required: true,
3237
+ type: {
3238
+ name: "Number",
3239
+ },
3240
+ } }),
3241
+ },
3242
+ };
3243
+ const SearchScoreThreshold = {
3244
+ serializedName: "searchScore",
3245
+ type: {
3246
+ name: "Composite",
3247
+ className: "SearchScoreThreshold",
3248
+ uberParent: "VectorThreshold",
3249
+ polymorphicDiscriminator: VectorThreshold.type.polymorphicDiscriminator,
3250
+ modelProperties: Object.assign(Object.assign({}, VectorThreshold.type.modelProperties), { value: {
3251
+ serializedName: "value",
3252
+ required: true,
3253
+ type: {
3254
+ name: "Number",
3255
+ },
3256
+ } }),
3257
+ },
3258
+ };
2614
3259
  let discriminators$1 = {
2615
3260
  VectorQuery: VectorQuery,
3261
+ VectorThreshold: VectorThreshold,
2616
3262
  "VectorQuery.vector": VectorizedQuery,
2617
3263
  "VectorQuery.text": VectorizableTextQuery,
3264
+ "VectorQuery.imageUrl": VectorizableImageUrlQuery,
3265
+ "VectorQuery.imageBinary": VectorizableImageBinaryQuery,
3266
+ "VectorThreshold.vectorSimilarity": VectorSimilarityThreshold,
3267
+ "VectorThreshold.searchScore": SearchScoreThreshold,
2618
3268
  };
2619
3269
 
2620
3270
  var Mappers$1 = /*#__PURE__*/Object.freeze({
@@ -2622,25 +3272,39 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
2622
3272
  AutocompleteItem: AutocompleteItem,
2623
3273
  AutocompleteRequest: AutocompleteRequest,
2624
3274
  AutocompleteResult: AutocompleteResult,
3275
+ DocumentDebugInfo: DocumentDebugInfo,
2625
3276
  ErrorAdditionalInfo: ErrorAdditionalInfo$1,
2626
3277
  ErrorDetail: ErrorDetail$1,
2627
3278
  ErrorResponse: ErrorResponse$1,
2628
3279
  FacetResult: FacetResult,
3280
+ HybridSearch: HybridSearch,
2629
3281
  IndexAction: IndexAction,
2630
3282
  IndexBatch: IndexBatch,
2631
3283
  IndexDocumentsResult: IndexDocumentsResult,
2632
3284
  IndexingResult: IndexingResult,
2633
3285
  QueryAnswerResult: QueryAnswerResult,
2634
3286
  QueryCaptionResult: QueryCaptionResult,
3287
+ QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
3288
+ QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
3289
+ QueryResultDocumentSubscores: QueryResultDocumentSubscores,
2635
3290
  SearchDocumentsResult: SearchDocumentsResult,
2636
3291
  SearchRequest: SearchRequest,
2637
3292
  SearchResult: SearchResult,
3293
+ SearchScoreThreshold: SearchScoreThreshold,
3294
+ SemanticDebugInfo: SemanticDebugInfo,
3295
+ SingleVectorFieldResult: SingleVectorFieldResult,
2638
3296
  SuggestDocumentsResult: SuggestDocumentsResult,
2639
3297
  SuggestRequest: SuggestRequest,
2640
3298
  SuggestResult: SuggestResult,
3299
+ TextResult: TextResult,
2641
3300
  VectorQuery: VectorQuery,
3301
+ VectorSimilarityThreshold: VectorSimilarityThreshold,
3302
+ VectorThreshold: VectorThreshold,
3303
+ VectorizableImageBinaryQuery: VectorizableImageBinaryQuery,
3304
+ VectorizableImageUrlQuery: VectorizableImageUrlQuery,
2642
3305
  VectorizableTextQuery: VectorizableTextQuery,
2643
3306
  VectorizedQuery: VectorizedQuery,
3307
+ VectorsDebugInfo: VectorsDebugInfo,
2644
3308
  discriminators: discriminators$1
2645
3309
  });
2646
3310
 
@@ -2960,6 +3624,48 @@ const semanticQuery = {
2960
3624
  },
2961
3625
  },
2962
3626
  };
3627
+ const debug = {
3628
+ parameterPath: ["options", "searchOptions", "debug"],
3629
+ mapper: {
3630
+ serializedName: "debug",
3631
+ type: {
3632
+ name: "String",
3633
+ },
3634
+ },
3635
+ };
3636
+ const queryLanguage = {
3637
+ parameterPath: ["options", "searchOptions", "queryLanguage"],
3638
+ mapper: {
3639
+ serializedName: "queryLanguage",
3640
+ type: {
3641
+ name: "String",
3642
+ },
3643
+ },
3644
+ };
3645
+ const speller = {
3646
+ parameterPath: ["options", "searchOptions", "speller"],
3647
+ mapper: {
3648
+ serializedName: "speller",
3649
+ type: {
3650
+ name: "String",
3651
+ },
3652
+ },
3653
+ };
3654
+ const semanticFields = {
3655
+ parameterPath: ["options", "searchOptions", "semanticFields"],
3656
+ mapper: {
3657
+ serializedName: "semanticFields",
3658
+ type: {
3659
+ name: "Sequence",
3660
+ element: {
3661
+ type: {
3662
+ name: "String",
3663
+ },
3664
+ },
3665
+ },
3666
+ },
3667
+ collectionFormat: "CSV",
3668
+ };
2963
3669
  const contentType$1 = {
2964
3670
  parameterPath: ["options", "contentType"],
2965
3671
  mapper: {
@@ -3255,7 +3961,7 @@ class DocumentsImpl {
3255
3961
  * @param options The options parameters.
3256
3962
  */
3257
3963
  get(key, options) {
3258
- return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
3964
+ return this.client.sendOperationRequest({ key, options }, getOperationSpec$6);
3259
3965
  }
3260
3966
  /**
3261
3967
  * Suggests documents in the index that match the given partial query text.
@@ -3304,7 +4010,7 @@ class DocumentsImpl {
3304
4010
  }
3305
4011
  }
3306
4012
  // Operation Specifications
3307
- const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
4013
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
3308
4014
  const countOperationSpec = {
3309
4015
  path: "/docs/$count",
3310
4016
  httpMethod: "GET",
@@ -3319,7 +4025,7 @@ const countOperationSpec = {
3319
4025
  queryParameters: [apiVersion$1],
3320
4026
  urlParameters: [endpoint$1, indexName$1],
3321
4027
  headerParameters: [accept$1],
3322
- serializer: serializer$6,
4028
+ serializer: serializer$7,
3323
4029
  };
3324
4030
  const searchGetOperationSpec = {
3325
4031
  path: "/docs",
@@ -3359,10 +4065,14 @@ const searchGetOperationSpec = {
3359
4065
  answers,
3360
4066
  captions,
3361
4067
  semanticQuery,
4068
+ debug,
4069
+ queryLanguage,
4070
+ speller,
4071
+ semanticFields,
3362
4072
  ],
3363
4073
  urlParameters: [endpoint$1, indexName$1],
3364
4074
  headerParameters: [accept$1],
3365
- serializer: serializer$6,
4075
+ serializer: serializer$7,
3366
4076
  };
3367
4077
  const searchPostOperationSpec = {
3368
4078
  path: "/docs/search.post.search",
@@ -3380,9 +4090,9 @@ const searchPostOperationSpec = {
3380
4090
  urlParameters: [endpoint$1, indexName$1],
3381
4091
  headerParameters: [accept$1, contentType$1],
3382
4092
  mediaType: "json",
3383
- serializer: serializer$6,
4093
+ serializer: serializer$7,
3384
4094
  };
3385
- const getOperationSpec$5 = {
4095
+ const getOperationSpec$6 = {
3386
4096
  path: "/docs('{key}')",
3387
4097
  httpMethod: "GET",
3388
4098
  responses: {
@@ -3398,7 +4108,7 @@ const getOperationSpec$5 = {
3398
4108
  queryParameters: [apiVersion$1, selectedFields],
3399
4109
  urlParameters: [endpoint$1, indexName$1, key],
3400
4110
  headerParameters: [accept$1],
3401
- serializer: serializer$6,
4111
+ serializer: serializer$7,
3402
4112
  };
3403
4113
  const suggestGetOperationSpec = {
3404
4114
  path: "/docs/search.suggest",
@@ -3427,7 +4137,7 @@ const suggestGetOperationSpec = {
3427
4137
  ],
3428
4138
  urlParameters: [endpoint$1, indexName$1],
3429
4139
  headerParameters: [accept$1],
3430
- serializer: serializer$6,
4140
+ serializer: serializer$7,
3431
4141
  };
3432
4142
  const suggestPostOperationSpec = {
3433
4143
  path: "/docs/search.post.suggest",
@@ -3445,7 +4155,7 @@ const suggestPostOperationSpec = {
3445
4155
  urlParameters: [endpoint$1, indexName$1],
3446
4156
  headerParameters: [accept$1, contentType$1],
3447
4157
  mediaType: "json",
3448
- serializer: serializer$6,
4158
+ serializer: serializer$7,
3449
4159
  };
3450
4160
  const indexOperationSpec = {
3451
4161
  path: "/docs/search.index",
@@ -3466,7 +4176,7 @@ const indexOperationSpec = {
3466
4176
  urlParameters: [endpoint$1, indexName$1],
3467
4177
  headerParameters: [accept$1, contentType$1],
3468
4178
  mediaType: "json",
3469
- serializer: serializer$6,
4179
+ serializer: serializer$7,
3470
4180
  };
3471
4181
  const autocompleteGetOperationSpec = {
3472
4182
  path: "/docs/search.autocomplete",
@@ -3494,7 +4204,7 @@ const autocompleteGetOperationSpec = {
3494
4204
  ],
3495
4205
  urlParameters: [endpoint$1, indexName$1],
3496
4206
  headerParameters: [accept$1],
3497
- serializer: serializer$6,
4207
+ serializer: serializer$7,
3498
4208
  };
3499
4209
  const autocompletePostOperationSpec = {
3500
4210
  path: "/docs/search.post.autocomplete",
@@ -3512,7 +4222,7 @@ const autocompletePostOperationSpec = {
3512
4222
  urlParameters: [endpoint$1, indexName$1],
3513
4223
  headerParameters: [accept$1, contentType$1],
3514
4224
  mediaType: "json",
3515
- serializer: serializer$6,
4225
+ serializer: serializer$7,
3516
4226
  };
3517
4227
 
3518
4228
  /*
@@ -3549,7 +4259,7 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
3549
4259
  const defaults = {
3550
4260
  requestContentType: "application/json; charset=utf-8",
3551
4261
  };
3552
- const packageDetails = `azsdk-js-search-documents/12.1.0`;
4262
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.1`;
3553
4263
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3554
4264
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3555
4265
  : `${packageDetails}`;
@@ -3592,14 +4302,14 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
3592
4302
  };
3593
4303
 
3594
4304
  // Copyright (c) Microsoft Corporation.
3595
- // Licensed under the MIT license.
4305
+ // Licensed under the MIT License.
3596
4306
  /**
3597
4307
  * The `@azure/logger` configuration for this package.
3598
4308
  */
3599
4309
  const logger = logger$1.createClientLogger("search");
3600
4310
 
3601
4311
  // Copyright (c) Microsoft Corporation.
3602
- // Licensed under the MIT license.
4312
+ // Licensed under the MIT License.
3603
4313
  const AcceptHeaderName = "Accept";
3604
4314
  const odataMetadataPolicy = "OdataMetadataPolicy";
3605
4315
  /**
@@ -3617,7 +4327,7 @@ function createOdataMetadataPolicy(metadataLevel) {
3617
4327
  }
3618
4328
 
3619
4329
  // Copyright (c) Microsoft Corporation.
3620
- // Licensed under the MIT license.
4330
+ // Licensed under the MIT License.
3621
4331
  const API_KEY_HEADER_NAME = "api-key";
3622
4332
  const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
3623
4333
  /**
@@ -3637,7 +4347,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
3637
4347
  }
3638
4348
 
3639
4349
  // Copyright (c) Microsoft Corporation.
3640
- // Licensed under the MIT license.
4350
+ // Licensed under the MIT License.
3641
4351
  function walk(v, fn) {
3642
4352
  var _a;
3643
4353
  const seen = new Set();
@@ -3715,7 +4425,7 @@ function shallowCopy(value) {
3715
4425
  }
3716
4426
 
3717
4427
  // Copyright (c) Microsoft Corporation.
3718
- // Licensed under the MIT license.
4428
+ // Licensed under the MIT License.
3719
4429
  const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
3720
4430
  const GeoJSONPointTypeName = "Point";
3721
4431
  const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
@@ -3852,7 +4562,7 @@ function isValidObject(obj, options = {}) {
3852
4562
  }
3853
4563
 
3854
4564
  // Copyright (c) Microsoft Corporation.
3855
- // Licensed under the MIT license.
4565
+ // Licensed under the MIT License.
3856
4566
  function isComplexField(field) {
3857
4567
  return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
3858
4568
  }
@@ -3860,7 +4570,7 @@ function isComplexField(field) {
3860
4570
  * Defines values for TokenizerName.
3861
4571
  * @readonly
3862
4572
  */
3863
- var KnownTokenizerNames;
4573
+ exports.KnownTokenizerNames = void 0;
3864
4574
  (function (KnownTokenizerNames) {
3865
4575
  /**
3866
4576
  * Grammar-based tokenizer that is suitable for processing most European-language documents. See
@@ -3928,12 +4638,12 @@ var KnownTokenizerNames;
3928
4638
  * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
3929
4639
  */
3930
4640
  KnownTokenizerNames["Whitespace"] = "whitespace";
3931
- })(KnownTokenizerNames || (KnownTokenizerNames = {}));
4641
+ })(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
3932
4642
  /**
3933
4643
  * Defines values for TokenFilterName.
3934
4644
  * @readonly
3935
4645
  */
3936
- var KnownTokenFilterNames;
4646
+ exports.KnownTokenFilterNames = void 0;
3937
4647
  (function (KnownTokenFilterNames) {
3938
4648
  /**
3939
4649
  * A token filter that applies the Arabic normalizer to normalize the orthography. See
@@ -4111,19 +4821,19 @@ var KnownTokenFilterNames;
4111
4821
  * Splits words into subwords and performs optional transformations on subword groups.
4112
4822
  */
4113
4823
  KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
4114
- })(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
4824
+ })(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
4115
4825
  /**
4116
4826
  * Defines values for CharFilterName.
4117
4827
  * @readonly
4118
4828
  */
4119
- var KnownCharFilterNames;
4829
+ exports.KnownCharFilterNames = void 0;
4120
4830
  (function (KnownCharFilterNames) {
4121
4831
  /**
4122
4832
  * A character filter that attempts to strip out HTML constructs. See
4123
4833
  * https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
4124
4834
  */
4125
4835
  KnownCharFilterNames["HtmlStrip"] = "html_strip";
4126
- })(KnownCharFilterNames || (KnownCharFilterNames = {}));
4836
+ })(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
4127
4837
  /**
4128
4838
  * Defines values for AnalyzerName.
4129
4839
  * See https://docs.microsoft.com/rest/api/searchservice/Language-support
@@ -4506,8 +5216,8 @@ exports.KnownAnalyzerNames = void 0;
4506
5216
  // END manually modified generated interfaces
4507
5217
 
4508
5218
  // Copyright (c) Microsoft Corporation.
4509
- // Licensed under the MIT license.
4510
- const defaultServiceVersion = "2024-07-01";
5219
+ // Licensed under the MIT License.
5220
+ const defaultServiceVersion = "2024-09-01-Preview";
4511
5221
  const knownSkills = {
4512
5222
  "#Microsoft.Skills.Custom.WebApiSkill": true,
4513
5223
  "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": true,
@@ -4528,6 +5238,8 @@ const knownSkills = {
4528
5238
  "#Microsoft.Skills.Util.ShaperSkill": true,
4529
5239
  "#Microsoft.Skills.Vision.ImageAnalysisSkill": true,
4530
5240
  "#Microsoft.Skills.Vision.OcrSkill": true,
5241
+ "#Microsoft.Skills.Custom.AmlSkill": true,
5242
+ "#Microsoft.Skills.Vision.VectorizeSkill": true,
4531
5243
  };
4532
5244
  function convertSkillsToPublic(skills) {
4533
5245
  if (!skills) {
@@ -4625,22 +5337,22 @@ function convertFieldsToPublic(fields) {
4625
5337
  else {
4626
5338
  const type = field.type;
4627
5339
  const synonymMapNames = field.synonymMaps;
4628
- const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
5340
+ const { retrievable, analyzer, searchAnalyzer, indexAnalyzer, normalizer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer", "normalizer"]);
4629
5341
  const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
4630
5342
  const result = Object.assign(Object.assign({}, restField), { type,
4631
- hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
5343
+ hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, normalizerName: normalizer, synonymMapNames });
4632
5344
  return result;
4633
5345
  }
4634
5346
  });
4635
5347
  }
4636
5348
  function convertFieldsToGenerated(fields) {
4637
- return fields.map((field) => {
5349
+ return fields === null || fields === void 0 ? void 0 : fields.map((field) => {
4638
5350
  var _a, _b, _c, _d;
4639
5351
  if (isComplexField(field)) {
4640
5352
  return {
4641
5353
  name: field.name,
4642
5354
  type: field.type,
4643
- fields: field.fields ? convertFieldsToGenerated(field.fields) : field.fields,
5355
+ fields: convertFieldsToGenerated(field.fields),
4644
5356
  };
4645
5357
  }
4646
5358
  else {
@@ -4648,7 +5360,7 @@ function convertFieldsToGenerated(fields) {
4648
5360
  const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
4649
5361
  return Object.assign(Object.assign({}, restField), { retrievable,
4650
5362
  // 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 });
5363
+ 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
5364
  }
4653
5365
  });
4654
5366
  }
@@ -4710,6 +5422,7 @@ function convertEncryptionKeyToPublic(encryptionKey) {
4710
5422
  keyName: encryptionKey.keyName,
4711
5423
  keyVersion: encryptionKey.keyVersion,
4712
5424
  vaultUrl: encryptionKey.vaultUri,
5425
+ identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
4713
5426
  };
4714
5427
  if (encryptionKey.accessCredentials) {
4715
5428
  result.applicationId = encryptionKey.accessCredentials.applicationId;
@@ -4725,6 +5438,7 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
4725
5438
  keyName: encryptionKey.keyName,
4726
5439
  keyVersion: encryptionKey.keyVersion,
4727
5440
  vaultUri: encryptionKey.vaultUrl,
5441
+ identity: encryptionKey.identity,
4728
5442
  };
4729
5443
  if (encryptionKey.applicationId) {
4730
5444
  result.accessCredentials = {
@@ -4746,6 +5460,7 @@ function generatedIndexToPublicIndex(generatedIndex) {
4746
5460
  tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
4747
5461
  tokenFilters: generatedIndex.tokenFilters,
4748
5462
  charFilters: generatedIndex.charFilters,
5463
+ normalizers: generatedIndex.normalizers,
4749
5464
  scoringProfiles: generatedIndex.scoringProfiles,
4750
5465
  fields: convertFieldsToPublic(generatedIndex.fields),
4751
5466
  similarity: convertSimilarityToPublic(generatedIndex.similarity),
@@ -4754,25 +5469,63 @@ function generatedIndexToPublicIndex(generatedIndex) {
4754
5469
  };
4755
5470
  }
4756
5471
  function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer) {
5472
+ var _a;
4757
5473
  if (!generatedVectorizer) {
4758
5474
  return generatedVectorizer;
4759
5475
  }
4760
- switch (generatedVectorizer.kind) {
4761
- case "azureOpenAI": {
5476
+ const knownVectorizerDeserializers = {
5477
+ azureOpenAI: () => {
4762
5478
  const { parameters } = generatedVectorizer;
4763
5479
  const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
4764
5480
  const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
4765
5481
  return vectorizer;
4766
- }
4767
- case "customWebApi": {
5482
+ },
5483
+ customWebApi: () => {
4768
5484
  const { parameters } = generatedVectorizer;
4769
5485
  const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters === null || parameters === void 0 ? void 0 : parameters.authIdentity);
4770
5486
  const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { parameters: Object.assign(Object.assign({}, parameters), { authIdentity }) });
4771
5487
  return vectorizer;
5488
+ },
5489
+ aiServicesVision: () => {
5490
+ var _a;
5491
+ const generatedVisionVectorizer = generatedVectorizer;
5492
+ const { aIServicesVisionParameters: generatedParameters } = generatedVisionVectorizer;
5493
+ const parameters = generatedParameters
5494
+ ? Object.assign(Object.assign({}, generatedParameters), { modelVersion: (_a = generatedParameters.modelVersion) !== null && _a !== void 0 ? _a : undefined, resourceUri: generatedParameters.resourceUri, authIdentity: convertSearchIndexerDataIdentityToPublic(generatedParameters.authIdentity) }) : undefined;
5495
+ const vectorizer = Object.assign(Object.assign({}, generatedVisionVectorizer), { parameters });
5496
+ return vectorizer;
5497
+ },
5498
+ aml: () => {
5499
+ const generatedAMLVectorizer = generatedVectorizer;
5500
+ const vectorizer = Object.assign(Object.assign({}, generatedAMLVectorizer), { amlParameters: generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(generatedAMLVectorizer.aMLParameters) });
5501
+ return vectorizer;
5502
+ },
5503
+ };
5504
+ const defaultDeserializer = () => {
5505
+ logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
5506
+ return generatedVectorizer;
5507
+ };
5508
+ return ((_a = knownVectorizerDeserializers[generatedVectorizer.kind]) !== null && _a !== void 0 ? _a : defaultDeserializer)();
5509
+ }
5510
+ function generatedAzureMachineLearningVectorizerParametersToPublicAzureMachineLearningVectorizerParameters(aMLParameters) {
5511
+ if (!aMLParameters) {
5512
+ return aMLParameters;
5513
+ }
5514
+ const { resourceId, authenticationKey, scoringUri } = aMLParameters;
5515
+ // Sensitive to case order
5516
+ switch (true) {
5517
+ case resourceId !== undefined && resourceId !== null: {
5518
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "token" });
5519
+ }
5520
+ case authenticationKey !== undefined && authenticationKey !== null: {
5521
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "key" });
5522
+ }
5523
+ case scoringUri !== undefined && scoringUri !== null: {
5524
+ return Object.assign(Object.assign({}, aMLParameters), { authKind: "none" });
4772
5525
  }
4773
5526
  }
4774
- logger.warning(`Unsupported vectorizer kind: ${generatedVectorizer.kind}`);
4775
- return generatedVectorizer;
5527
+ logger.warning("Unknown AML parameter kind");
5528
+ return aMLParameters;
4776
5529
  }
4777
5530
  function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
4778
5531
  var _a;
@@ -4795,12 +5548,13 @@ function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
4795
5548
  }
4796
5549
  function generatedSearchResultToPublicSearchResult(results) {
4797
5550
  const returnValues = results.map((result) => {
4798
- const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions"]);
5551
+ const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions, documentDebugInfo: documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions", "documentDebugInfo"]);
4799
5552
  const obj = {
4800
5553
  score,
4801
5554
  highlights,
4802
5555
  rerankerScore,
4803
5556
  captions,
5557
+ documentDebugInfo,
4804
5558
  document: restProps,
4805
5559
  };
4806
5560
  return obj;
@@ -4823,15 +5577,17 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
4823
5577
  return result;
4824
5578
  }
4825
5579
  function publicIndexToGeneratedIndex(index) {
5580
+ var _a;
4826
5581
  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) });
5582
+ return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: (_a = convertFieldsToGenerated(fields)) !== null && _a !== void 0 ? _a : [], similarity: convertSimilarityToGenerated(similarity) });
4828
5583
  }
4829
5584
  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 });
5585
+ const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey, indexProjection } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey", "indexProjection"]);
5586
+ return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey), indexProjection: indexProjection });
4832
5587
  }
4833
5588
  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) });
5589
+ const { cognitiveServicesAccount, encryptionKey } = skillset;
5590
+ return Object.assign(Object.assign({}, skillset), { cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(cognitiveServicesAccount), encryptionKey: convertEncryptionKeyToGenerated(encryptionKey) });
4835
5591
  }
4836
5592
  function generatedSynonymMapToPublicSynonymMap(synonymMap) {
4837
5593
  const result = {
@@ -4864,7 +5620,7 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
4864
5620
  const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
4865
5621
  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
5622
  const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
4867
- return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
5623
+ return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
4868
5624
  }
4869
5625
  function publicDataSourceToGeneratedDataSource(dataSource) {
4870
5626
  return {
@@ -4875,6 +5631,7 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
4875
5631
  connectionString: dataSource.connectionString,
4876
5632
  },
4877
5633
  container: dataSource.container,
5634
+ identity: dataSource.identity,
4878
5635
  etag: dataSource.etag,
4879
5636
  dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
4880
5637
  dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
@@ -4888,6 +5645,7 @@ function generatedDataSourceToPublicDataSource(dataSource) {
4888
5645
  type: dataSource.type,
4889
5646
  connectionString: dataSource.credentials.connectionString,
4890
5647
  container: dataSource.container,
5648
+ identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
4891
5649
  etag: dataSource.etag,
4892
5650
  dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
4893
5651
  dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
@@ -4933,9 +5691,21 @@ function getRandomIntegerInclusive(min, max) {
4933
5691
  const offset = Math.floor(Math.random() * (max - min + 1));
4934
5692
  return offset + min;
4935
5693
  }
5694
+ function convertKnowledgeStoreToPublic(knowledgeStore) {
5695
+ if (!knowledgeStore) {
5696
+ return knowledgeStore;
5697
+ }
5698
+ return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
5699
+ }
5700
+ function convertSearchIndexerCacheToPublic(cache) {
5701
+ if (!cache) {
5702
+ return cache;
5703
+ }
5704
+ return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
5705
+ }
4936
5706
 
4937
5707
  // Copyright (c) Microsoft Corporation.
4938
- // Licensed under the MIT license.
5708
+ // Licensed under the MIT License.
4939
5709
  /**
4940
5710
  * Creates a tracing client using the global tracer.
4941
5711
  * @internal
@@ -4947,7 +5717,7 @@ const tracingClient = coreTracing.createTracingClient({
4947
5717
  const createSpan = tracingClient.startSpan;
4948
5718
 
4949
5719
  // Copyright (c) Microsoft Corporation.
4950
- // Licensed under the MIT license.
5720
+ // Licensed under the MIT License.
4951
5721
  /**
4952
5722
  * Class used to perform operations against a search index,
4953
5723
  * including querying documents in the index as well as
@@ -5023,6 +5793,7 @@ class SearchClient {
5023
5793
  (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
5024
5794
  this.apiVersion = this.serviceVersion;
5025
5795
  this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
5796
+ this.pipeline = this.client.pipeline;
5026
5797
  if (coreAuth.isTokenCredential(credential)) {
5027
5798
  const scope = options.audience
5028
5799
  ? `${options.audience}/.default`
@@ -5121,10 +5892,10 @@ class SearchClient {
5121
5892
  }
5122
5893
  }
5123
5894
  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"]);
5895
+ const _a = options, { includeTotalCount, orderBy, searchFields, select, vectorSearchOptions, semanticSearchOptions, hybridSearch } = _a, restOptions = tslib.__rest(_a, ["includeTotalCount", "orderBy", "searchFields", "select", "vectorSearchOptions", "semanticSearchOptions", "hybridSearch"]);
5896
+ const _b = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { semanticFields, configurationName, errorMode, answers, captions, debugMode } = _b, restSemanticOptions = tslib.__rest(_b, ["semanticFields", "configurationName", "errorMode", "answers", "captions", "debugMode"]);
5126
5897
  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 });
5898
+ 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, vectorFilterMode: filterMode, hybridSearch: hybridSearch });
5128
5899
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
5129
5900
  try {
5130
5901
  const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
@@ -5510,6 +6281,12 @@ class SearchClient {
5510
6281
  }
5511
6282
  return searchFields;
5512
6283
  }
6284
+ convertSemanticFields(semanticFields) {
6285
+ if (semanticFields) {
6286
+ return semanticFields.join(",");
6287
+ }
6288
+ return semanticFields;
6289
+ }
5513
6290
  convertOrderBy(orderBy) {
5514
6291
  if (orderBy) {
5515
6292
  return orderBy.join(",");
@@ -5598,6 +6375,13 @@ const SearchIndexerDataSource = {
5598
6375
  className: "SearchIndexerDataContainer",
5599
6376
  },
5600
6377
  },
6378
+ identity: {
6379
+ serializedName: "identity",
6380
+ type: {
6381
+ name: "Composite",
6382
+ className: "SearchIndexerDataIdentity",
6383
+ },
6384
+ },
5601
6385
  dataChangeDetectionPolicy: {
5602
6386
  serializedName: "dataChangeDetectionPolicy",
5603
6387
  type: {
@@ -5663,6 +6447,26 @@ const SearchIndexerDataContainer = {
5663
6447
  },
5664
6448
  },
5665
6449
  };
6450
+ const SearchIndexerDataIdentity = {
6451
+ type: {
6452
+ name: "Composite",
6453
+ className: "SearchIndexerDataIdentity",
6454
+ uberParent: "SearchIndexerDataIdentity",
6455
+ polymorphicDiscriminator: {
6456
+ serializedName: "@odata\\.type",
6457
+ clientName: "odatatype",
6458
+ },
6459
+ modelProperties: {
6460
+ odatatype: {
6461
+ serializedName: "@odata\\.type",
6462
+ required: true,
6463
+ type: {
6464
+ name: "String",
6465
+ },
6466
+ },
6467
+ },
6468
+ },
6469
+ };
5666
6470
  const DataChangeDetectionPolicy = {
5667
6471
  type: {
5668
6472
  name: "Composite",
@@ -5736,6 +6540,13 @@ const SearchResourceEncryptionKey = {
5736
6540
  className: "AzureActiveDirectoryApplicationCredentials",
5737
6541
  },
5738
6542
  },
6543
+ identity: {
6544
+ serializedName: "identity",
6545
+ type: {
6546
+ name: "Composite",
6547
+ className: "SearchIndexerDataIdentity",
6548
+ },
6549
+ },
5739
6550
  },
5740
6551
  },
5741
6552
  };
@@ -5875,6 +6686,36 @@ const ListDataSourcesResult = {
5875
6686
  },
5876
6687
  },
5877
6688
  };
6689
+ const DocumentKeysOrIds = {
6690
+ type: {
6691
+ name: "Composite",
6692
+ className: "DocumentKeysOrIds",
6693
+ modelProperties: {
6694
+ documentKeys: {
6695
+ serializedName: "documentKeys",
6696
+ type: {
6697
+ name: "Sequence",
6698
+ element: {
6699
+ type: {
6700
+ name: "String",
6701
+ },
6702
+ },
6703
+ },
6704
+ },
6705
+ datasourceDocumentIds: {
6706
+ serializedName: "datasourceDocumentIds",
6707
+ type: {
6708
+ name: "Sequence",
6709
+ element: {
6710
+ type: {
6711
+ name: "String",
6712
+ },
6713
+ },
6714
+ },
6715
+ },
6716
+ },
6717
+ },
6718
+ };
5878
6719
  const SearchIndexer = {
5879
6720
  type: {
5880
6721
  name: "Composite",
@@ -5972,6 +6813,13 @@ const SearchIndexer = {
5972
6813
  className: "SearchResourceEncryptionKey",
5973
6814
  },
5974
6815
  },
6816
+ cache: {
6817
+ serializedName: "cache",
6818
+ type: {
6819
+ name: "Composite",
6820
+ className: "SearchIndexerCache",
6821
+ },
6822
+ },
5975
6823
  },
5976
6824
  },
5977
6825
  };
@@ -6203,6 +7051,34 @@ const FieldMappingFunction = {
6203
7051
  },
6204
7052
  },
6205
7053
  };
7054
+ const SearchIndexerCache = {
7055
+ type: {
7056
+ name: "Composite",
7057
+ className: "SearchIndexerCache",
7058
+ modelProperties: {
7059
+ storageConnectionString: {
7060
+ serializedName: "storageConnectionString",
7061
+ type: {
7062
+ name: "String",
7063
+ },
7064
+ },
7065
+ enableReprocessing: {
7066
+ serializedName: "enableReprocessing",
7067
+ nullable: true,
7068
+ type: {
7069
+ name: "Boolean",
7070
+ },
7071
+ },
7072
+ identity: {
7073
+ serializedName: "identity",
7074
+ type: {
7075
+ name: "Composite",
7076
+ className: "SearchIndexerDataIdentity",
7077
+ },
7078
+ },
7079
+ },
7080
+ },
7081
+ };
6206
7082
  const ListIndexersResult = {
6207
7083
  type: {
6208
7084
  name: "Composite",
@@ -6284,6 +7160,20 @@ const IndexerExecutionResult = {
6284
7160
  allowedValues: ["transientFailure", "success", "inProgress", "reset"],
6285
7161
  },
6286
7162
  },
7163
+ statusDetail: {
7164
+ serializedName: "statusDetail",
7165
+ readOnly: true,
7166
+ type: {
7167
+ name: "String",
7168
+ },
7169
+ },
7170
+ currentState: {
7171
+ serializedName: "currentState",
7172
+ type: {
7173
+ name: "Composite",
7174
+ className: "IndexerState",
7175
+ },
7176
+ },
6287
7177
  errorMessage: {
6288
7178
  serializedName: "errorMessage",
6289
7179
  readOnly: true,
@@ -6367,6 +7257,73 @@ const IndexerExecutionResult = {
6367
7257
  },
6368
7258
  },
6369
7259
  };
7260
+ const IndexerState = {
7261
+ type: {
7262
+ name: "Composite",
7263
+ className: "IndexerState",
7264
+ modelProperties: {
7265
+ mode: {
7266
+ serializedName: "mode",
7267
+ readOnly: true,
7268
+ type: {
7269
+ name: "String",
7270
+ },
7271
+ },
7272
+ allDocumentsInitialChangeTrackingState: {
7273
+ serializedName: "allDocsInitialChangeTrackingState",
7274
+ readOnly: true,
7275
+ type: {
7276
+ name: "String",
7277
+ },
7278
+ },
7279
+ allDocumentsFinalChangeTrackingState: {
7280
+ serializedName: "allDocsFinalChangeTrackingState",
7281
+ readOnly: true,
7282
+ type: {
7283
+ name: "String",
7284
+ },
7285
+ },
7286
+ resetDocumentsInitialChangeTrackingState: {
7287
+ serializedName: "resetDocsInitialChangeTrackingState",
7288
+ readOnly: true,
7289
+ type: {
7290
+ name: "String",
7291
+ },
7292
+ },
7293
+ resetDocumentsFinalChangeTrackingState: {
7294
+ serializedName: "resetDocsFinalChangeTrackingState",
7295
+ readOnly: true,
7296
+ type: {
7297
+ name: "String",
7298
+ },
7299
+ },
7300
+ resetDocumentKeys: {
7301
+ serializedName: "resetDocumentKeys",
7302
+ readOnly: true,
7303
+ type: {
7304
+ name: "Sequence",
7305
+ element: {
7306
+ type: {
7307
+ name: "String",
7308
+ },
7309
+ },
7310
+ },
7311
+ },
7312
+ resetDatasourceDocumentIds: {
7313
+ serializedName: "resetDatasourceDocumentIds",
7314
+ readOnly: true,
7315
+ type: {
7316
+ name: "Sequence",
7317
+ element: {
7318
+ type: {
7319
+ name: "String",
7320
+ },
7321
+ },
7322
+ },
7323
+ },
7324
+ },
7325
+ },
7326
+ };
6370
7327
  const SearchIndexerError = {
6371
7328
  type: {
6372
7329
  name: "Composite",
@@ -6735,6 +7692,20 @@ const SearchIndexerKnowledgeStore = {
6735
7692
  },
6736
7693
  },
6737
7694
  },
7695
+ identity: {
7696
+ serializedName: "identity",
7697
+ type: {
7698
+ name: "Composite",
7699
+ className: "SearchIndexerDataIdentity",
7700
+ },
7701
+ },
7702
+ parameters: {
7703
+ serializedName: "parameters",
7704
+ type: {
7705
+ name: "Composite",
7706
+ className: "SearchIndexerKnowledgeStoreParameters",
7707
+ },
7708
+ },
6738
7709
  },
6739
7710
  },
6740
7711
  };
@@ -6826,6 +7797,22 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
6826
7797
  },
6827
7798
  },
6828
7799
  };
7800
+ const SearchIndexerKnowledgeStoreParameters = {
7801
+ type: {
7802
+ name: "Composite",
7803
+ className: "SearchIndexerKnowledgeStoreParameters",
7804
+ additionalProperties: { type: { name: "Object" } },
7805
+ modelProperties: {
7806
+ synthesizeGeneratedKeyName: {
7807
+ defaultValue: false,
7808
+ serializedName: "synthesizeGeneratedKeyName",
7809
+ type: {
7810
+ name: "Boolean",
7811
+ },
7812
+ },
7813
+ },
7814
+ },
7815
+ };
6829
7816
  const SearchIndexerIndexProjection = {
6830
7817
  type: {
6831
7818
  name: "Composite",
@@ -6933,6 +7920,25 @@ const ListSkillsetsResult = {
6933
7920
  },
6934
7921
  },
6935
7922
  };
7923
+ const SkillNames = {
7924
+ type: {
7925
+ name: "Composite",
7926
+ className: "SkillNames",
7927
+ modelProperties: {
7928
+ skillNames: {
7929
+ serializedName: "skillNames",
7930
+ type: {
7931
+ name: "Sequence",
7932
+ element: {
7933
+ type: {
7934
+ name: "String",
7935
+ },
7936
+ },
7937
+ },
7938
+ },
7939
+ },
7940
+ },
7941
+ };
6936
7942
  const SynonymMap = {
6937
7943
  type: {
6938
7944
  name: "Composite",
@@ -7108,6 +8114,18 @@ const SearchIndex = {
7108
8114
  },
7109
8115
  },
7110
8116
  },
8117
+ normalizers: {
8118
+ serializedName: "normalizers",
8119
+ type: {
8120
+ name: "Sequence",
8121
+ element: {
8122
+ type: {
8123
+ name: "Composite",
8124
+ className: "LexicalNormalizer",
8125
+ },
8126
+ },
8127
+ },
8128
+ },
7111
8129
  encryptionKey: {
7112
8130
  serializedName: "encryptionKey",
7113
8131
  type: {
@@ -7227,6 +8245,13 @@ const SearchField = {
7227
8245
  name: "String",
7228
8246
  },
7229
8247
  },
8248
+ normalizer: {
8249
+ serializedName: "normalizer",
8250
+ nullable: true,
8251
+ type: {
8252
+ name: "String",
8253
+ },
8254
+ },
7230
8255
  vectorSearchDimensions: {
7231
8256
  constraints: {
7232
8257
  InclusiveMaximum: 2048,
@@ -7552,6 +8577,33 @@ const CharFilter = {
7552
8577
  },
7553
8578
  },
7554
8579
  };
8580
+ const LexicalNormalizer = {
8581
+ type: {
8582
+ name: "Composite",
8583
+ className: "LexicalNormalizer",
8584
+ uberParent: "LexicalNormalizer",
8585
+ polymorphicDiscriminator: {
8586
+ serializedName: "@odata\\.type",
8587
+ clientName: "odatatype",
8588
+ },
8589
+ modelProperties: {
8590
+ odatatype: {
8591
+ serializedName: "@odata\\.type",
8592
+ required: true,
8593
+ type: {
8594
+ name: "String",
8595
+ },
8596
+ },
8597
+ name: {
8598
+ serializedName: "name",
8599
+ required: true,
8600
+ type: {
8601
+ name: "String",
8602
+ },
8603
+ },
8604
+ },
8605
+ },
8606
+ };
7555
8607
  const Similarity = {
7556
8608
  type: {
7557
8609
  name: "Composite",
@@ -7856,6 +8908,13 @@ const VectorSearchCompression = {
7856
8908
  name: "Number",
7857
8909
  },
7858
8910
  },
8911
+ truncationDimension: {
8912
+ serializedName: "truncationDimension",
8913
+ nullable: true,
8914
+ type: {
8915
+ name: "Number",
8916
+ },
8917
+ },
7859
8918
  },
7860
8919
  },
7861
8920
  };
@@ -7937,8 +8996,14 @@ const AnalyzeRequest = {
7937
8996
  name: "String",
7938
8997
  },
7939
8998
  },
7940
- tokenFilters: {
7941
- serializedName: "tokenFilters",
8999
+ normalizer: {
9000
+ serializedName: "normalizer",
9001
+ type: {
9002
+ name: "String",
9003
+ },
9004
+ },
9005
+ tokenFilters: {
9006
+ serializedName: "tokenFilters",
7942
9007
  type: {
7943
9008
  name: "Sequence",
7944
9009
  element: {
@@ -8023,6 +9088,61 @@ const AnalyzedTokenInfo = {
8023
9088
  },
8024
9089
  },
8025
9090
  };
9091
+ const SearchAlias = {
9092
+ type: {
9093
+ name: "Composite",
9094
+ className: "SearchAlias",
9095
+ modelProperties: {
9096
+ name: {
9097
+ serializedName: "name",
9098
+ required: true,
9099
+ type: {
9100
+ name: "String",
9101
+ },
9102
+ },
9103
+ indexes: {
9104
+ serializedName: "indexes",
9105
+ required: true,
9106
+ type: {
9107
+ name: "Sequence",
9108
+ element: {
9109
+ type: {
9110
+ name: "String",
9111
+ },
9112
+ },
9113
+ },
9114
+ },
9115
+ etag: {
9116
+ serializedName: "@odata\\.etag",
9117
+ type: {
9118
+ name: "String",
9119
+ },
9120
+ },
9121
+ },
9122
+ },
9123
+ };
9124
+ const ListAliasesResult = {
9125
+ type: {
9126
+ name: "Composite",
9127
+ className: "ListAliasesResult",
9128
+ modelProperties: {
9129
+ aliases: {
9130
+ serializedName: "value",
9131
+ required: true,
9132
+ readOnly: true,
9133
+ type: {
9134
+ name: "Sequence",
9135
+ element: {
9136
+ type: {
9137
+ name: "Composite",
9138
+ className: "SearchAlias",
9139
+ },
9140
+ },
9141
+ },
9142
+ },
9143
+ },
9144
+ },
9145
+ };
8026
9146
  const ServiceStatistics = {
8027
9147
  type: {
8028
9148
  name: "Composite",
@@ -8050,6 +9170,13 @@ const ServiceCounters = {
8050
9170
  name: "Composite",
8051
9171
  className: "ServiceCounters",
8052
9172
  modelProperties: {
9173
+ aliasCounter: {
9174
+ serializedName: "aliasesCount",
9175
+ type: {
9176
+ name: "Composite",
9177
+ className: "ResourceCounter",
9178
+ },
9179
+ },
8053
9180
  documentCounter: {
8054
9181
  serializedName: "documentCount",
8055
9182
  type: {
@@ -8294,26 +9421,6 @@ const AzureOpenAIParameters = {
8294
9421
  },
8295
9422
  },
8296
9423
  };
8297
- const SearchIndexerDataIdentity = {
8298
- type: {
8299
- name: "Composite",
8300
- className: "SearchIndexerDataIdentity",
8301
- uberParent: "SearchIndexerDataIdentity",
8302
- polymorphicDiscriminator: {
8303
- serializedName: "@odata\\.type",
8304
- clientName: "odatatype",
8305
- },
8306
- modelProperties: {
8307
- odatatype: {
8308
- serializedName: "@odata\\.type",
8309
- required: true,
8310
- type: {
8311
- name: "String",
8312
- },
8313
- },
8314
- },
8315
- },
8316
- };
8317
9424
  const WebApiParameters = {
8318
9425
  type: {
8319
9426
  name: "Composite",
@@ -8361,6 +9468,92 @@ const WebApiParameters = {
8361
9468
  },
8362
9469
  },
8363
9470
  };
9471
+ const AIServicesVisionParameters = {
9472
+ type: {
9473
+ name: "Composite",
9474
+ className: "AIServicesVisionParameters",
9475
+ modelProperties: {
9476
+ modelVersion: {
9477
+ serializedName: "modelVersion",
9478
+ required: true,
9479
+ nullable: true,
9480
+ type: {
9481
+ name: "String",
9482
+ },
9483
+ },
9484
+ resourceUri: {
9485
+ serializedName: "resourceUri",
9486
+ required: true,
9487
+ type: {
9488
+ name: "String",
9489
+ },
9490
+ },
9491
+ apiKey: {
9492
+ serializedName: "apiKey",
9493
+ type: {
9494
+ name: "String",
9495
+ },
9496
+ },
9497
+ authIdentity: {
9498
+ serializedName: "authIdentity",
9499
+ type: {
9500
+ name: "Composite",
9501
+ className: "SearchIndexerDataIdentity",
9502
+ },
9503
+ },
9504
+ },
9505
+ },
9506
+ };
9507
+ const AMLParameters = {
9508
+ type: {
9509
+ name: "Composite",
9510
+ className: "AMLParameters",
9511
+ modelProperties: {
9512
+ scoringUri: {
9513
+ serializedName: "uri",
9514
+ required: true,
9515
+ nullable: true,
9516
+ type: {
9517
+ name: "String",
9518
+ },
9519
+ },
9520
+ authenticationKey: {
9521
+ serializedName: "key",
9522
+ nullable: true,
9523
+ type: {
9524
+ name: "String",
9525
+ },
9526
+ },
9527
+ resourceId: {
9528
+ serializedName: "resourceId",
9529
+ nullable: true,
9530
+ type: {
9531
+ name: "String",
9532
+ },
9533
+ },
9534
+ timeout: {
9535
+ serializedName: "timeout",
9536
+ nullable: true,
9537
+ type: {
9538
+ name: "TimeSpan",
9539
+ },
9540
+ },
9541
+ region: {
9542
+ serializedName: "region",
9543
+ nullable: true,
9544
+ type: {
9545
+ name: "String",
9546
+ },
9547
+ },
9548
+ modelName: {
9549
+ serializedName: "modelName",
9550
+ type: {
9551
+ name: "String",
9552
+ },
9553
+ },
9554
+ },
9555
+ },
9556
+ };
8364
9557
  const DistanceScoringParameters = {
8365
9558
  type: {
8366
9559
  name: "Composite",
@@ -8441,22 +9634,6 @@ const TagScoringParameters = {
8441
9634
  },
8442
9635
  },
8443
9636
  };
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
9637
  const CustomEntity = {
8461
9638
  type: {
8462
9639
  name: "Composite",
@@ -8591,6 +9768,58 @@ const CustomEntityAlias = {
8591
9768
  },
8592
9769
  },
8593
9770
  };
9771
+ const AzureOpenAITokenizerParameters = {
9772
+ type: {
9773
+ name: "Composite",
9774
+ className: "AzureOpenAITokenizerParameters",
9775
+ modelProperties: {
9776
+ encoderModelName: {
9777
+ serializedName: "encoderModelName",
9778
+ nullable: true,
9779
+ type: {
9780
+ name: "String",
9781
+ },
9782
+ },
9783
+ allowedSpecialTokens: {
9784
+ serializedName: "allowedSpecialTokens",
9785
+ type: {
9786
+ name: "Sequence",
9787
+ element: {
9788
+ type: {
9789
+ name: "String",
9790
+ },
9791
+ },
9792
+ },
9793
+ },
9794
+ },
9795
+ },
9796
+ };
9797
+ const SearchIndexerDataNoneIdentity = {
9798
+ serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
9799
+ type: {
9800
+ name: "Composite",
9801
+ className: "SearchIndexerDataNoneIdentity",
9802
+ uberParent: "SearchIndexerDataIdentity",
9803
+ polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
9804
+ modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties),
9805
+ },
9806
+ };
9807
+ const SearchIndexerDataUserAssignedIdentity = {
9808
+ serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
9809
+ type: {
9810
+ name: "Composite",
9811
+ className: "SearchIndexerDataUserAssignedIdentity",
9812
+ uberParent: "SearchIndexerDataIdentity",
9813
+ polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
9814
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { resourceId: {
9815
+ serializedName: "userAssignedIdentity",
9816
+ required: true,
9817
+ type: {
9818
+ name: "String",
9819
+ },
9820
+ } }),
9821
+ },
9822
+ };
8594
9823
  const HighWaterMarkChangeDetectionPolicy = {
8595
9824
  serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
8596
9825
  type: {
@@ -8637,6 +9866,16 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
8637
9866
  } }),
8638
9867
  },
8639
9868
  };
9869
+ const NativeBlobSoftDeleteDeletionDetectionPolicy = {
9870
+ serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
9871
+ type: {
9872
+ name: "Composite",
9873
+ className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
9874
+ uberParent: "DataDeletionDetectionPolicy",
9875
+ polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
9876
+ modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties),
9877
+ },
9878
+ };
8640
9879
  const ConditionalSkill = {
8641
9880
  serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
8642
9881
  type: {
@@ -9040,6 +10279,18 @@ const SplitSkill = {
9040
10279
  type: {
9041
10280
  name: "Number",
9042
10281
  },
10282
+ }, unit: {
10283
+ serializedName: "unit",
10284
+ nullable: true,
10285
+ type: {
10286
+ name: "String",
10287
+ },
10288
+ }, azureOpenAITokenizerParameters: {
10289
+ serializedName: "azureOpenAITokenizerParameters",
10290
+ type: {
10291
+ name: "Composite",
10292
+ className: "AzureOpenAITokenizerParameters",
10293
+ },
9043
10294
  } }),
9044
10295
  },
9045
10296
  };
@@ -9158,7 +10409,29 @@ const WebApiSkill = {
9158
10409
  className: "WebApiSkill",
9159
10410
  uberParent: "SearchIndexerSkill",
9160
10411
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
9161
- modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), WebApiParameters.type.modelProperties), { batchSize: {
10412
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { uri: {
10413
+ serializedName: "uri",
10414
+ required: true,
10415
+ type: {
10416
+ name: "String",
10417
+ },
10418
+ }, httpHeaders: {
10419
+ serializedName: "httpHeaders",
10420
+ type: {
10421
+ name: "Dictionary",
10422
+ value: { type: { name: "String" } },
10423
+ },
10424
+ }, httpMethod: {
10425
+ serializedName: "httpMethod",
10426
+ type: {
10427
+ name: "String",
10428
+ },
10429
+ }, timeout: {
10430
+ serializedName: "timeout",
10431
+ type: {
10432
+ name: "TimeSpan",
10433
+ },
10434
+ }, batchSize: {
9162
10435
  serializedName: "batchSize",
9163
10436
  nullable: true,
9164
10437
  type: {
@@ -9170,15 +10443,73 @@ const WebApiSkill = {
9170
10443
  type: {
9171
10444
  name: "Number",
9172
10445
  },
9173
- } }),
9174
- },
9175
- };
9176
- const AzureOpenAIEmbeddingSkill = {
9177
- serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
9178
- type: {
9179
- name: "Composite",
9180
- className: "AzureOpenAIEmbeddingSkill",
9181
- uberParent: "SearchIndexerSkill",
10446
+ }, authResourceId: {
10447
+ serializedName: "authResourceId",
10448
+ nullable: true,
10449
+ type: {
10450
+ name: "String",
10451
+ },
10452
+ }, authIdentity: {
10453
+ serializedName: "authIdentity",
10454
+ type: {
10455
+ name: "Composite",
10456
+ className: "SearchIndexerDataIdentity",
10457
+ },
10458
+ } }),
10459
+ },
10460
+ };
10461
+ const AzureMachineLearningSkill = {
10462
+ serializedName: "#Microsoft.Skills.Custom.AmlSkill",
10463
+ type: {
10464
+ name: "Composite",
10465
+ className: "AzureMachineLearningSkill",
10466
+ uberParent: "SearchIndexerSkill",
10467
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
10468
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
10469
+ serializedName: "uri",
10470
+ nullable: true,
10471
+ type: {
10472
+ name: "String",
10473
+ },
10474
+ }, authenticationKey: {
10475
+ serializedName: "key",
10476
+ nullable: true,
10477
+ type: {
10478
+ name: "String",
10479
+ },
10480
+ }, resourceId: {
10481
+ serializedName: "resourceId",
10482
+ nullable: true,
10483
+ type: {
10484
+ name: "String",
10485
+ },
10486
+ }, timeout: {
10487
+ serializedName: "timeout",
10488
+ nullable: true,
10489
+ type: {
10490
+ name: "TimeSpan",
10491
+ },
10492
+ }, region: {
10493
+ serializedName: "region",
10494
+ nullable: true,
10495
+ type: {
10496
+ name: "String",
10497
+ },
10498
+ }, degreeOfParallelism: {
10499
+ serializedName: "degreeOfParallelism",
10500
+ nullable: true,
10501
+ type: {
10502
+ name: "Number",
10503
+ },
10504
+ } }),
10505
+ },
10506
+ };
10507
+ const AzureOpenAIEmbeddingSkill = {
10508
+ serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
10509
+ type: {
10510
+ name: "Composite",
10511
+ className: "AzureOpenAIEmbeddingSkill",
10512
+ uberParent: "SearchIndexerSkill",
9182
10513
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
9183
10514
  modelProperties: Object.assign(Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), AzureOpenAIParameters.type.modelProperties), { dimensions: {
9184
10515
  serializedName: "dimensions",
@@ -9189,6 +10520,23 @@ const AzureOpenAIEmbeddingSkill = {
9189
10520
  } }),
9190
10521
  },
9191
10522
  };
10523
+ const VisionVectorizeSkill = {
10524
+ serializedName: "#Microsoft.Skills.Vision.VectorizeSkill",
10525
+ type: {
10526
+ name: "Composite",
10527
+ className: "VisionVectorizeSkill",
10528
+ uberParent: "SearchIndexerSkill",
10529
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
10530
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { modelVersion: {
10531
+ serializedName: "modelVersion",
10532
+ required: true,
10533
+ nullable: true,
10534
+ type: {
10535
+ name: "String",
10536
+ },
10537
+ } }),
10538
+ },
10539
+ };
9192
10540
  const DefaultCognitiveServicesAccount = {
9193
10541
  serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
9194
10542
  type: {
@@ -10735,6 +12083,36 @@ const PatternReplaceCharFilter = {
10735
12083
  } }),
10736
12084
  },
10737
12085
  };
12086
+ const CustomNormalizer = {
12087
+ serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
12088
+ type: {
12089
+ name: "Composite",
12090
+ className: "CustomNormalizer",
12091
+ uberParent: "LexicalNormalizer",
12092
+ polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
12093
+ modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
12094
+ serializedName: "tokenFilters",
12095
+ type: {
12096
+ name: "Sequence",
12097
+ element: {
12098
+ type: {
12099
+ name: "String",
12100
+ },
12101
+ },
12102
+ },
12103
+ }, charFilters: {
12104
+ serializedName: "charFilters",
12105
+ type: {
12106
+ name: "Sequence",
12107
+ element: {
12108
+ type: {
12109
+ name: "String",
12110
+ },
12111
+ },
12112
+ },
12113
+ } }),
12114
+ },
12115
+ };
10738
12116
  const ClassicSimilarity = {
10739
12117
  serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
10740
12118
  type: {
@@ -10831,6 +12209,38 @@ const WebApiVectorizer = {
10831
12209
  } }),
10832
12210
  },
10833
12211
  };
12212
+ const AIServicesVisionVectorizer = {
12213
+ serializedName: "aiServicesVision",
12214
+ type: {
12215
+ name: "Composite",
12216
+ className: "AIServicesVisionVectorizer",
12217
+ uberParent: "VectorSearchVectorizer",
12218
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12219
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { aIServicesVisionParameters: {
12220
+ serializedName: "aiServicesVisionParameters",
12221
+ type: {
12222
+ name: "Composite",
12223
+ className: "AIServicesVisionParameters",
12224
+ },
12225
+ } }),
12226
+ },
12227
+ };
12228
+ const AMLVectorizer = {
12229
+ serializedName: "aml",
12230
+ type: {
12231
+ name: "Composite",
12232
+ className: "AMLVectorizer",
12233
+ uberParent: "VectorSearchVectorizer",
12234
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
12235
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { aMLParameters: {
12236
+ serializedName: "amlParameters",
12237
+ type: {
12238
+ name: "Composite",
12239
+ className: "AMLParameters",
12240
+ },
12241
+ } }),
12242
+ },
12243
+ };
10834
12244
  const ScalarQuantizationCompression = {
10835
12245
  serializedName: "scalarQuantization",
10836
12246
  type: {
@@ -10857,32 +12267,6 @@ const BinaryQuantizationCompression = {
10857
12267
  modelProperties: Object.assign({}, VectorSearchCompression.type.modelProperties),
10858
12268
  },
10859
12269
  };
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
12270
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
10887
12271
  type: {
10888
12272
  name: "Composite",
@@ -10900,6 +12284,7 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
10900
12284
  },
10901
12285
  };
10902
12286
  let discriminators = {
12287
+ SearchIndexerDataIdentity: SearchIndexerDataIdentity,
10903
12288
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10904
12289
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10905
12290
  SearchIndexerSkill: SearchIndexerSkill,
@@ -10909,14 +12294,17 @@ let discriminators = {
10909
12294
  LexicalTokenizer: LexicalTokenizer,
10910
12295
  TokenFilter: TokenFilter,
10911
12296
  CharFilter: CharFilter,
12297
+ LexicalNormalizer: LexicalNormalizer,
10912
12298
  Similarity: Similarity,
10913
12299
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10914
12300
  VectorSearchVectorizer: VectorSearchVectorizer,
10915
12301
  VectorSearchCompression: VectorSearchCompression,
10916
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
12302
+ "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
12303
+ "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
10917
12304
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
10918
12305
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
10919
12306
  "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
12307
+ "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
10920
12308
  "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
10921
12309
  "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
10922
12310
  "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
@@ -10935,7 +12323,9 @@ let discriminators = {
10935
12323
  "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
10936
12324
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
10937
12325
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
12326
+ "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
10938
12327
  "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
12328
+ "SearchIndexerSkill.#Microsoft.Skills.Vision.VectorizeSkill": VisionVectorizeSkill,
10939
12329
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
10940
12330
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
10941
12331
  "ScoringFunction.distance": DistanceScoringFunction,
@@ -10985,27 +12375,34 @@ let discriminators = {
10985
12375
  "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
10986
12376
  "CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
10987
12377
  "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
12378
+ "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
10988
12379
  "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
10989
12380
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
10990
12381
  "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
10991
12382
  "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration,
10992
12383
  "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
10993
12384
  "VectorSearchVectorizer.customWebApi": WebApiVectorizer,
12385
+ "VectorSearchVectorizer.aiServicesVision": AIServicesVisionVectorizer,
12386
+ "VectorSearchVectorizer.aml": AMLVectorizer,
10994
12387
  "VectorSearchCompression.scalarQuantization": ScalarQuantizationCompression,
10995
12388
  "VectorSearchCompression.binaryQuantization": BinaryQuantizationCompression,
10996
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
10997
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
10998
12389
  };
10999
12390
 
11000
12391
  var Mappers = /*#__PURE__*/Object.freeze({
11001
12392
  __proto__: null,
12393
+ AIServicesVisionParameters: AIServicesVisionParameters,
12394
+ AIServicesVisionVectorizer: AIServicesVisionVectorizer,
12395
+ AMLParameters: AMLParameters,
12396
+ AMLVectorizer: AMLVectorizer,
11002
12397
  AnalyzeRequest: AnalyzeRequest,
11003
12398
  AnalyzeResult: AnalyzeResult,
11004
12399
  AnalyzedTokenInfo: AnalyzedTokenInfo,
11005
12400
  AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
11006
12401
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
12402
+ AzureMachineLearningSkill: AzureMachineLearningSkill,
11007
12403
  AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
11008
12404
  AzureOpenAIParameters: AzureOpenAIParameters,
12405
+ AzureOpenAITokenizerParameters: AzureOpenAITokenizerParameters,
11009
12406
  AzureOpenAIVectorizer: AzureOpenAIVectorizer,
11010
12407
  BM25Similarity: BM25Similarity,
11011
12408
  BinaryQuantizationCompression: BinaryQuantizationCompression,
@@ -11022,6 +12419,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11022
12419
  CustomEntity: CustomEntity,
11023
12420
  CustomEntityAlias: CustomEntityAlias,
11024
12421
  CustomEntityLookupSkill: CustomEntityLookupSkill,
12422
+ CustomNormalizer: CustomNormalizer,
11025
12423
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
11026
12424
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
11027
12425
  DataSourceCredentials: DataSourceCredentials,
@@ -11030,6 +12428,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11030
12428
  DistanceScoringFunction: DistanceScoringFunction,
11031
12429
  DistanceScoringParameters: DistanceScoringParameters,
11032
12430
  DocumentExtractionSkill: DocumentExtractionSkill,
12431
+ DocumentKeysOrIds: DocumentKeysOrIds,
11033
12432
  EdgeNGramTokenFilter: EdgeNGramTokenFilter,
11034
12433
  EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
11035
12434
  EdgeNGramTokenizer: EdgeNGramTokenizer,
@@ -11052,6 +12451,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11052
12451
  HnswParameters: HnswParameters,
11053
12452
  ImageAnalysisSkill: ImageAnalysisSkill,
11054
12453
  IndexerExecutionResult: IndexerExecutionResult,
12454
+ IndexerState: IndexerState,
11055
12455
  IndexingParameters: IndexingParameters,
11056
12456
  IndexingParametersConfiguration: IndexingParametersConfiguration,
11057
12457
  IndexingSchedule: IndexingSchedule,
@@ -11064,8 +12464,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
11064
12464
  LanguageDetectionSkill: LanguageDetectionSkill,
11065
12465
  LengthTokenFilter: LengthTokenFilter,
11066
12466
  LexicalAnalyzer: LexicalAnalyzer,
12467
+ LexicalNormalizer: LexicalNormalizer,
11067
12468
  LexicalTokenizer: LexicalTokenizer,
11068
12469
  LimitTokenFilter: LimitTokenFilter,
12470
+ ListAliasesResult: ListAliasesResult,
11069
12471
  ListDataSourcesResult: ListDataSourcesResult,
11070
12472
  ListIndexersResult: ListIndexersResult,
11071
12473
  ListIndexesResult: ListIndexesResult,
@@ -11083,6 +12485,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11083
12485
  NGramTokenFilter: NGramTokenFilter,
11084
12486
  NGramTokenFilterV2: NGramTokenFilterV2,
11085
12487
  NGramTokenizer: NGramTokenizer,
12488
+ NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
11086
12489
  OcrSkill: OcrSkill,
11087
12490
  OutputFieldMappingEntry: OutputFieldMappingEntry,
11088
12491
  PIIDetectionSkill: PIIDetectionSkill,
@@ -11098,9 +12501,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
11098
12501
  ScalarQuantizationParameters: ScalarQuantizationParameters,
11099
12502
  ScoringFunction: ScoringFunction,
11100
12503
  ScoringProfile: ScoringProfile,
12504
+ SearchAlias: SearchAlias,
11101
12505
  SearchField: SearchField,
11102
12506
  SearchIndex: SearchIndex,
11103
12507
  SearchIndexer: SearchIndexer,
12508
+ SearchIndexerCache: SearchIndexerCache,
11104
12509
  SearchIndexerDataContainer: SearchIndexerDataContainer,
11105
12510
  SearchIndexerDataIdentity: SearchIndexerDataIdentity,
11106
12511
  SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
@@ -11136,6 +12541,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11136
12541
  ShaperSkill: ShaperSkill,
11137
12542
  ShingleTokenFilter: ShingleTokenFilter,
11138
12543
  Similarity: Similarity,
12544
+ SkillNames: SkillNames,
11139
12545
  SnowballTokenFilter: SnowballTokenFilter,
11140
12546
  SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
11141
12547
  SplitSkill: SplitSkill,
@@ -11160,6 +12566,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
11160
12566
  VectorSearchCompression: VectorSearchCompression,
11161
12567
  VectorSearchProfile: VectorSearchProfile,
11162
12568
  VectorSearchVectorizer: VectorSearchVectorizer,
12569
+ VisionVectorizeSkill: VisionVectorizeSkill,
11163
12570
  WebApiParameters: WebApiParameters,
11164
12571
  WebApiSkill: WebApiSkill,
11165
12572
  WebApiVectorizer: WebApiVectorizer,
@@ -11260,6 +12667,15 @@ const apiVersion = {
11260
12667
  },
11261
12668
  },
11262
12669
  };
12670
+ const skipIndexerResetRequirementForCache = {
12671
+ parameterPath: ["options", "skipIndexerResetRequirementForCache"],
12672
+ mapper: {
12673
+ serializedName: "ignoreResetRequirements",
12674
+ type: {
12675
+ name: "Boolean",
12676
+ },
12677
+ },
12678
+ };
11263
12679
  const select = {
11264
12680
  parameterPath: ["options", "select"],
11265
12681
  mapper: {
@@ -11279,10 +12695,33 @@ const indexerName = {
11279
12695
  },
11280
12696
  },
11281
12697
  };
12698
+ const keysOrIds = {
12699
+ parameterPath: ["options", "keysOrIds"],
12700
+ mapper: DocumentKeysOrIds,
12701
+ };
12702
+ const overwrite = {
12703
+ parameterPath: ["options", "overwrite"],
12704
+ mapper: {
12705
+ defaultValue: false,
12706
+ serializedName: "overwrite",
12707
+ type: {
12708
+ name: "Boolean",
12709
+ },
12710
+ },
12711
+ };
11282
12712
  const indexer = {
11283
12713
  parameterPath: "indexer",
11284
12714
  mapper: SearchIndexer,
11285
12715
  };
12716
+ const disableCacheReprocessingChangeDetection = {
12717
+ parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
12718
+ mapper: {
12719
+ serializedName: "disableCacheReprocessingChangeDetection",
12720
+ type: {
12721
+ name: "Boolean",
12722
+ },
12723
+ },
12724
+ };
11286
12725
  const skillset = {
11287
12726
  parameterPath: "skillset",
11288
12727
  mapper: SearchIndexerSkillset,
@@ -11297,6 +12736,10 @@ const skillsetName = {
11297
12736
  },
11298
12737
  },
11299
12738
  };
12739
+ const skillNames = {
12740
+ parameterPath: "skillNames",
12741
+ mapper: SkillNames,
12742
+ };
11300
12743
  const synonymMap = {
11301
12744
  parameterPath: "synonymMap",
11302
12745
  mapper: SynonymMap,
@@ -11338,6 +12781,20 @@ const request = {
11338
12781
  parameterPath: "request",
11339
12782
  mapper: AnalyzeRequest,
11340
12783
  };
12784
+ const alias = {
12785
+ parameterPath: "alias",
12786
+ mapper: SearchAlias,
12787
+ };
12788
+ const aliasName = {
12789
+ parameterPath: "aliasName",
12790
+ mapper: {
12791
+ serializedName: "aliasName",
12792
+ required: true,
12793
+ type: {
12794
+ name: "String",
12795
+ },
12796
+ },
12797
+ };
11341
12798
 
11342
12799
  /*
11343
12800
  * Copyright (c) Microsoft Corporation.
@@ -11362,7 +12819,7 @@ class DataSourcesImpl {
11362
12819
  * @param options The options parameters.
11363
12820
  */
11364
12821
  createOrUpdate(dataSourceName, dataSource, options) {
11365
- return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
12822
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$5);
11366
12823
  }
11367
12824
  /**
11368
12825
  * Deletes a datasource.
@@ -11370,7 +12827,7 @@ class DataSourcesImpl {
11370
12827
  * @param options The options parameters.
11371
12828
  */
11372
12829
  delete(dataSourceName, options) {
11373
- return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
12830
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$5);
11374
12831
  }
11375
12832
  /**
11376
12833
  * Retrieves a datasource definition.
@@ -11378,14 +12835,14 @@ class DataSourcesImpl {
11378
12835
  * @param options The options parameters.
11379
12836
  */
11380
12837
  get(dataSourceName, options) {
11381
- return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
12838
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$5);
11382
12839
  }
11383
12840
  /**
11384
12841
  * Lists all datasources available for a search service.
11385
12842
  * @param options The options parameters.
11386
12843
  */
11387
12844
  list(options) {
11388
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
12845
+ return this.client.sendOperationRequest({ options }, listOperationSpec$5);
11389
12846
  }
11390
12847
  /**
11391
12848
  * Creates a new datasource.
@@ -11393,12 +12850,12 @@ class DataSourcesImpl {
11393
12850
  * @param options The options parameters.
11394
12851
  */
11395
12852
  create(dataSource, options) {
11396
- return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
12853
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$5);
11397
12854
  }
11398
12855
  }
11399
12856
  // Operation Specifications
11400
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11401
- const createOrUpdateOperationSpec$4 = {
12857
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12858
+ const createOrUpdateOperationSpec$5 = {
11402
12859
  path: "/datasources('{dataSourceName}')",
11403
12860
  httpMethod: "PUT",
11404
12861
  responses: {
@@ -11413,7 +12870,10 @@ const createOrUpdateOperationSpec$4 = {
11413
12870
  },
11414
12871
  },
11415
12872
  requestBody: dataSource,
11416
- queryParameters: [apiVersion],
12873
+ queryParameters: [
12874
+ apiVersion,
12875
+ skipIndexerResetRequirementForCache,
12876
+ ],
11417
12877
  urlParameters: [endpoint, dataSourceName],
11418
12878
  headerParameters: [
11419
12879
  contentType,
@@ -11423,9 +12883,9 @@ const createOrUpdateOperationSpec$4 = {
11423
12883
  prefer,
11424
12884
  ],
11425
12885
  mediaType: "json",
11426
- serializer: serializer$5,
12886
+ serializer: serializer$6,
11427
12887
  };
11428
- const deleteOperationSpec$4 = {
12888
+ const deleteOperationSpec$5 = {
11429
12889
  path: "/datasources('{dataSourceName}')",
11430
12890
  httpMethod: "DELETE",
11431
12891
  responses: {
@@ -11442,9 +12902,9 @@ const deleteOperationSpec$4 = {
11442
12902
  ifMatch,
11443
12903
  ifNoneMatch,
11444
12904
  ],
11445
- serializer: serializer$5,
12905
+ serializer: serializer$6,
11446
12906
  };
11447
- const getOperationSpec$4 = {
12907
+ const getOperationSpec$5 = {
11448
12908
  path: "/datasources('{dataSourceName}')",
11449
12909
  httpMethod: "GET",
11450
12910
  responses: {
@@ -11458,9 +12918,9 @@ const getOperationSpec$4 = {
11458
12918
  queryParameters: [apiVersion],
11459
12919
  urlParameters: [endpoint, dataSourceName],
11460
12920
  headerParameters: [accept],
11461
- serializer: serializer$5,
12921
+ serializer: serializer$6,
11462
12922
  };
11463
- const listOperationSpec$4 = {
12923
+ const listOperationSpec$5 = {
11464
12924
  path: "/datasources",
11465
12925
  httpMethod: "GET",
11466
12926
  responses: {
@@ -11474,9 +12934,9 @@ const listOperationSpec$4 = {
11474
12934
  queryParameters: [apiVersion, select],
11475
12935
  urlParameters: [endpoint],
11476
12936
  headerParameters: [accept],
11477
- serializer: serializer$5,
12937
+ serializer: serializer$6,
11478
12938
  };
11479
- const createOperationSpec$4 = {
12939
+ const createOperationSpec$5 = {
11480
12940
  path: "/datasources",
11481
12941
  httpMethod: "POST",
11482
12942
  responses: {
@@ -11492,7 +12952,7 @@ const createOperationSpec$4 = {
11492
12952
  urlParameters: [endpoint],
11493
12953
  headerParameters: [contentType, accept],
11494
12954
  mediaType: "json",
11495
- serializer: serializer$5,
12955
+ serializer: serializer$6,
11496
12956
  };
11497
12957
 
11498
12958
  /*
@@ -11519,6 +12979,14 @@ class IndexersImpl {
11519
12979
  reset(indexerName, options) {
11520
12980
  return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
11521
12981
  }
12982
+ /**
12983
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
12984
+ * @param indexerName The name of the indexer to reset documents for.
12985
+ * @param options The options parameters.
12986
+ */
12987
+ resetDocs(indexerName, options) {
12988
+ return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
12989
+ }
11522
12990
  /**
11523
12991
  * Runs an indexer on-demand.
11524
12992
  * @param indexerName The name of the indexer to run.
@@ -11534,7 +13002,7 @@ class IndexersImpl {
11534
13002
  * @param options The options parameters.
11535
13003
  */
11536
13004
  createOrUpdate(indexerName, indexer, options) {
11537
- return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
13005
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$4);
11538
13006
  }
11539
13007
  /**
11540
13008
  * Deletes an indexer.
@@ -11542,7 +13010,7 @@ class IndexersImpl {
11542
13010
  * @param options The options parameters.
11543
13011
  */
11544
13012
  delete(indexerName, options) {
11545
- return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
13013
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$4);
11546
13014
  }
11547
13015
  /**
11548
13016
  * Retrieves an indexer definition.
@@ -11550,14 +13018,14 @@ class IndexersImpl {
11550
13018
  * @param options The options parameters.
11551
13019
  */
11552
13020
  get(indexerName, options) {
11553
- return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
13021
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$4);
11554
13022
  }
11555
13023
  /**
11556
13024
  * Lists all indexers available for a search service.
11557
13025
  * @param options The options parameters.
11558
13026
  */
11559
13027
  list(options) {
11560
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
13028
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
11561
13029
  }
11562
13030
  /**
11563
13031
  * Creates a new indexer.
@@ -11565,7 +13033,7 @@ class IndexersImpl {
11565
13033
  * @param options The options parameters.
11566
13034
  */
11567
13035
  create(indexer, options) {
11568
- return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
13036
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$4);
11569
13037
  }
11570
13038
  /**
11571
13039
  * Returns the current status and execution history of an indexer.
@@ -11577,7 +13045,7 @@ class IndexersImpl {
11577
13045
  }
11578
13046
  }
11579
13047
  // Operation Specifications
11580
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13048
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11581
13049
  const resetOperationSpec = {
11582
13050
  path: "/indexers('{indexerName}')/search.reset",
11583
13051
  httpMethod: "POST",
@@ -11590,7 +13058,23 @@ const resetOperationSpec = {
11590
13058
  queryParameters: [apiVersion],
11591
13059
  urlParameters: [endpoint, indexerName],
11592
13060
  headerParameters: [accept],
11593
- serializer: serializer$4,
13061
+ serializer: serializer$5,
13062
+ };
13063
+ const resetDocsOperationSpec = {
13064
+ path: "/indexers('{indexerName}')/search.resetdocs",
13065
+ httpMethod: "POST",
13066
+ responses: {
13067
+ 204: {},
13068
+ default: {
13069
+ bodyMapper: ErrorResponse,
13070
+ },
13071
+ },
13072
+ requestBody: keysOrIds,
13073
+ queryParameters: [apiVersion, overwrite],
13074
+ urlParameters: [endpoint, indexerName],
13075
+ headerParameters: [contentType, accept],
13076
+ mediaType: "json",
13077
+ serializer: serializer$5,
11594
13078
  };
11595
13079
  const runOperationSpec = {
11596
13080
  path: "/indexers('{indexerName}')/search.run",
@@ -11604,9 +13088,9 @@ const runOperationSpec = {
11604
13088
  queryParameters: [apiVersion],
11605
13089
  urlParameters: [endpoint, indexerName],
11606
13090
  headerParameters: [accept],
11607
- serializer: serializer$4,
13091
+ serializer: serializer$5,
11608
13092
  };
11609
- const createOrUpdateOperationSpec$3 = {
13093
+ const createOrUpdateOperationSpec$4 = {
11610
13094
  path: "/indexers('{indexerName}')",
11611
13095
  httpMethod: "PUT",
11612
13096
  responses: {
@@ -11621,7 +13105,11 @@ const createOrUpdateOperationSpec$3 = {
11621
13105
  },
11622
13106
  },
11623
13107
  requestBody: indexer,
11624
- queryParameters: [apiVersion],
13108
+ queryParameters: [
13109
+ apiVersion,
13110
+ skipIndexerResetRequirementForCache,
13111
+ disableCacheReprocessingChangeDetection,
13112
+ ],
11625
13113
  urlParameters: [endpoint, indexerName],
11626
13114
  headerParameters: [
11627
13115
  contentType,
@@ -11631,9 +13119,9 @@ const createOrUpdateOperationSpec$3 = {
11631
13119
  prefer,
11632
13120
  ],
11633
13121
  mediaType: "json",
11634
- serializer: serializer$4,
13122
+ serializer: serializer$5,
11635
13123
  };
11636
- const deleteOperationSpec$3 = {
13124
+ const deleteOperationSpec$4 = {
11637
13125
  path: "/indexers('{indexerName}')",
11638
13126
  httpMethod: "DELETE",
11639
13127
  responses: {
@@ -11650,9 +13138,9 @@ const deleteOperationSpec$3 = {
11650
13138
  ifMatch,
11651
13139
  ifNoneMatch,
11652
13140
  ],
11653
- serializer: serializer$4,
13141
+ serializer: serializer$5,
11654
13142
  };
11655
- const getOperationSpec$3 = {
13143
+ const getOperationSpec$4 = {
11656
13144
  path: "/indexers('{indexerName}')",
11657
13145
  httpMethod: "GET",
11658
13146
  responses: {
@@ -11666,9 +13154,9 @@ const getOperationSpec$3 = {
11666
13154
  queryParameters: [apiVersion],
11667
13155
  urlParameters: [endpoint, indexerName],
11668
13156
  headerParameters: [accept],
11669
- serializer: serializer$4,
13157
+ serializer: serializer$5,
11670
13158
  };
11671
- const listOperationSpec$3 = {
13159
+ const listOperationSpec$4 = {
11672
13160
  path: "/indexers",
11673
13161
  httpMethod: "GET",
11674
13162
  responses: {
@@ -11682,9 +13170,9 @@ const listOperationSpec$3 = {
11682
13170
  queryParameters: [apiVersion, select],
11683
13171
  urlParameters: [endpoint],
11684
13172
  headerParameters: [accept],
11685
- serializer: serializer$4,
13173
+ serializer: serializer$5,
11686
13174
  };
11687
- const createOperationSpec$3 = {
13175
+ const createOperationSpec$4 = {
11688
13176
  path: "/indexers",
11689
13177
  httpMethod: "POST",
11690
13178
  responses: {
@@ -11700,7 +13188,7 @@ const createOperationSpec$3 = {
11700
13188
  urlParameters: [endpoint],
11701
13189
  headerParameters: [contentType, accept],
11702
13190
  mediaType: "json",
11703
- serializer: serializer$4,
13191
+ serializer: serializer$5,
11704
13192
  };
11705
13193
  const getStatusOperationSpec = {
11706
13194
  path: "/indexers('{indexerName}')/search.status",
@@ -11716,7 +13204,7 @@ const getStatusOperationSpec = {
11716
13204
  queryParameters: [apiVersion],
11717
13205
  urlParameters: [endpoint, indexerName],
11718
13206
  headerParameters: [accept],
11719
- serializer: serializer$4,
13207
+ serializer: serializer$5,
11720
13208
  };
11721
13209
 
11722
13210
  /*
@@ -11742,7 +13230,7 @@ class SkillsetsImpl {
11742
13230
  * @param options The options parameters.
11743
13231
  */
11744
13232
  createOrUpdate(skillsetName, skillset, options) {
11745
- return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
13233
+ return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$3);
11746
13234
  }
11747
13235
  /**
11748
13236
  * Deletes a skillset in a search service.
@@ -11750,7 +13238,7 @@ class SkillsetsImpl {
11750
13238
  * @param options The options parameters.
11751
13239
  */
11752
13240
  delete(skillsetName, options) {
11753
- return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
13241
+ return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$3);
11754
13242
  }
11755
13243
  /**
11756
13244
  * Retrieves a skillset in a search service.
@@ -11758,14 +13246,14 @@ class SkillsetsImpl {
11758
13246
  * @param options The options parameters.
11759
13247
  */
11760
13248
  get(skillsetName, options) {
11761
- return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
13249
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
11762
13250
  }
11763
13251
  /**
11764
13252
  * List all skillsets in a search service.
11765
13253
  * @param options The options parameters.
11766
13254
  */
11767
13255
  list(options) {
11768
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
13256
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
11769
13257
  }
11770
13258
  /**
11771
13259
  * Creates a new skillset in a search service.
@@ -11773,12 +13261,21 @@ class SkillsetsImpl {
11773
13261
  * @param options The options parameters.
11774
13262
  */
11775
13263
  create(skillset, options) {
11776
- return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
13264
+ return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$3);
13265
+ }
13266
+ /**
13267
+ * Reset an existing skillset in a search service.
13268
+ * @param skillsetName The name of the skillset to reset.
13269
+ * @param skillNames The names of skills to reset.
13270
+ * @param options The options parameters.
13271
+ */
13272
+ resetSkills(skillsetName, skillNames, options) {
13273
+ return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
11777
13274
  }
11778
13275
  }
11779
13276
  // Operation Specifications
11780
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11781
- const createOrUpdateOperationSpec$2 = {
13277
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13278
+ const createOrUpdateOperationSpec$3 = {
11782
13279
  path: "/skillsets('{skillsetName}')",
11783
13280
  httpMethod: "PUT",
11784
13281
  responses: {
@@ -11793,7 +13290,11 @@ const createOrUpdateOperationSpec$2 = {
11793
13290
  },
11794
13291
  },
11795
13292
  requestBody: skillset,
11796
- queryParameters: [apiVersion],
13293
+ queryParameters: [
13294
+ apiVersion,
13295
+ skipIndexerResetRequirementForCache,
13296
+ disableCacheReprocessingChangeDetection,
13297
+ ],
11797
13298
  urlParameters: [endpoint, skillsetName],
11798
13299
  headerParameters: [
11799
13300
  contentType,
@@ -11803,9 +13304,9 @@ const createOrUpdateOperationSpec$2 = {
11803
13304
  prefer,
11804
13305
  ],
11805
13306
  mediaType: "json",
11806
- serializer: serializer$3,
13307
+ serializer: serializer$4,
11807
13308
  };
11808
- const deleteOperationSpec$2 = {
13309
+ const deleteOperationSpec$3 = {
11809
13310
  path: "/skillsets('{skillsetName}')",
11810
13311
  httpMethod: "DELETE",
11811
13312
  responses: {
@@ -11822,9 +13323,9 @@ const deleteOperationSpec$2 = {
11822
13323
  ifMatch,
11823
13324
  ifNoneMatch,
11824
13325
  ],
11825
- serializer: serializer$3,
13326
+ serializer: serializer$4,
11826
13327
  };
11827
- const getOperationSpec$2 = {
13328
+ const getOperationSpec$3 = {
11828
13329
  path: "/skillsets('{skillsetName}')",
11829
13330
  httpMethod: "GET",
11830
13331
  responses: {
@@ -11838,9 +13339,9 @@ const getOperationSpec$2 = {
11838
13339
  queryParameters: [apiVersion],
11839
13340
  urlParameters: [endpoint, skillsetName],
11840
13341
  headerParameters: [accept],
11841
- serializer: serializer$3,
13342
+ serializer: serializer$4,
11842
13343
  };
11843
- const listOperationSpec$2 = {
13344
+ const listOperationSpec$3 = {
11844
13345
  path: "/skillsets",
11845
13346
  httpMethod: "GET",
11846
13347
  responses: {
@@ -11854,9 +13355,9 @@ const listOperationSpec$2 = {
11854
13355
  queryParameters: [apiVersion, select],
11855
13356
  urlParameters: [endpoint],
11856
13357
  headerParameters: [accept],
11857
- serializer: serializer$3,
13358
+ serializer: serializer$4,
11858
13359
  };
11859
- const createOperationSpec$2 = {
13360
+ const createOperationSpec$3 = {
11860
13361
  path: "/skillsets",
11861
13362
  httpMethod: "POST",
11862
13363
  responses: {
@@ -11872,7 +13373,23 @@ const createOperationSpec$2 = {
11872
13373
  urlParameters: [endpoint],
11873
13374
  headerParameters: [contentType, accept],
11874
13375
  mediaType: "json",
11875
- serializer: serializer$3,
13376
+ serializer: serializer$4,
13377
+ };
13378
+ const resetSkillsOperationSpec = {
13379
+ path: "/skillsets('{skillsetName}')/search.resetskills",
13380
+ httpMethod: "POST",
13381
+ responses: {
13382
+ 204: {},
13383
+ default: {
13384
+ bodyMapper: ErrorResponse,
13385
+ },
13386
+ },
13387
+ requestBody: skillNames,
13388
+ queryParameters: [apiVersion],
13389
+ urlParameters: [endpoint, skillsetName],
13390
+ headerParameters: [contentType, accept],
13391
+ mediaType: "json",
13392
+ serializer: serializer$4,
11876
13393
  };
11877
13394
 
11878
13395
  /*
@@ -11898,7 +13415,7 @@ class SynonymMapsImpl {
11898
13415
  * @param options The options parameters.
11899
13416
  */
11900
13417
  createOrUpdate(synonymMapName, synonymMap, options) {
11901
- return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
13418
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$2);
11902
13419
  }
11903
13420
  /**
11904
13421
  * Deletes a synonym map.
@@ -11906,7 +13423,7 @@ class SynonymMapsImpl {
11906
13423
  * @param options The options parameters.
11907
13424
  */
11908
13425
  delete(synonymMapName, options) {
11909
- return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
13426
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$2);
11910
13427
  }
11911
13428
  /**
11912
13429
  * Retrieves a synonym map definition.
@@ -11914,14 +13431,14 @@ class SynonymMapsImpl {
11914
13431
  * @param options The options parameters.
11915
13432
  */
11916
13433
  get(synonymMapName, options) {
11917
- return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
13434
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$2);
11918
13435
  }
11919
13436
  /**
11920
13437
  * Lists all synonym maps available for a search service.
11921
13438
  * @param options The options parameters.
11922
13439
  */
11923
13440
  list(options) {
11924
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
13441
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
11925
13442
  }
11926
13443
  /**
11927
13444
  * Creates a new synonym map.
@@ -11929,12 +13446,12 @@ class SynonymMapsImpl {
11929
13446
  * @param options The options parameters.
11930
13447
  */
11931
13448
  create(synonymMap, options) {
11932
- return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
13449
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$2);
11933
13450
  }
11934
13451
  }
11935
13452
  // Operation Specifications
11936
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11937
- const createOrUpdateOperationSpec$1 = {
13453
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13454
+ const createOrUpdateOperationSpec$2 = {
11938
13455
  path: "/synonymmaps('{synonymMapName}')",
11939
13456
  httpMethod: "PUT",
11940
13457
  responses: {
@@ -11959,9 +13476,9 @@ const createOrUpdateOperationSpec$1 = {
11959
13476
  prefer,
11960
13477
  ],
11961
13478
  mediaType: "json",
11962
- serializer: serializer$2,
13479
+ serializer: serializer$3,
11963
13480
  };
11964
- const deleteOperationSpec$1 = {
13481
+ const deleteOperationSpec$2 = {
11965
13482
  path: "/synonymmaps('{synonymMapName}')",
11966
13483
  httpMethod: "DELETE",
11967
13484
  responses: {
@@ -11978,9 +13495,9 @@ const deleteOperationSpec$1 = {
11978
13495
  ifMatch,
11979
13496
  ifNoneMatch,
11980
13497
  ],
11981
- serializer: serializer$2,
13498
+ serializer: serializer$3,
11982
13499
  };
11983
- const getOperationSpec$1 = {
13500
+ const getOperationSpec$2 = {
11984
13501
  path: "/synonymmaps('{synonymMapName}')",
11985
13502
  httpMethod: "GET",
11986
13503
  responses: {
@@ -11992,40 +13509,249 @@ const getOperationSpec$1 = {
11992
13509
  },
11993
13510
  },
11994
13511
  queryParameters: [apiVersion],
11995
- urlParameters: [endpoint, synonymMapName],
13512
+ urlParameters: [endpoint, synonymMapName],
13513
+ headerParameters: [accept],
13514
+ serializer: serializer$3,
13515
+ };
13516
+ const listOperationSpec$2 = {
13517
+ path: "/synonymmaps",
13518
+ httpMethod: "GET",
13519
+ responses: {
13520
+ 200: {
13521
+ bodyMapper: ListSynonymMapsResult,
13522
+ },
13523
+ default: {
13524
+ bodyMapper: ErrorResponse,
13525
+ },
13526
+ },
13527
+ queryParameters: [apiVersion, select],
13528
+ urlParameters: [endpoint],
13529
+ headerParameters: [accept],
13530
+ serializer: serializer$3,
13531
+ };
13532
+ const createOperationSpec$2 = {
13533
+ path: "/synonymmaps",
13534
+ httpMethod: "POST",
13535
+ responses: {
13536
+ 201: {
13537
+ bodyMapper: SynonymMap,
13538
+ },
13539
+ default: {
13540
+ bodyMapper: ErrorResponse,
13541
+ },
13542
+ },
13543
+ requestBody: synonymMap,
13544
+ queryParameters: [apiVersion],
13545
+ urlParameters: [endpoint],
13546
+ headerParameters: [contentType, accept],
13547
+ mediaType: "json",
13548
+ serializer: serializer$3,
13549
+ };
13550
+
13551
+ /*
13552
+ * Copyright (c) Microsoft Corporation.
13553
+ * Licensed under the MIT License.
13554
+ *
13555
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13556
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
13557
+ */
13558
+ /** Class containing Indexes operations. */
13559
+ class IndexesImpl {
13560
+ /**
13561
+ * Initialize a new instance of the class Indexes class.
13562
+ * @param client Reference to the service client
13563
+ */
13564
+ constructor(client) {
13565
+ this.client = client;
13566
+ }
13567
+ /**
13568
+ * Creates a new search index.
13569
+ * @param index The definition of the index to create.
13570
+ * @param options The options parameters.
13571
+ */
13572
+ create(index, options) {
13573
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec$1);
13574
+ }
13575
+ /**
13576
+ * Lists all indexes available for a search service.
13577
+ * @param options The options parameters.
13578
+ */
13579
+ list(options) {
13580
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
13581
+ }
13582
+ /**
13583
+ * Creates a new search index or updates an index if it already exists.
13584
+ * @param indexName The definition of the index to create or update.
13585
+ * @param index The definition of the index to create or update.
13586
+ * @param options The options parameters.
13587
+ */
13588
+ createOrUpdate(indexName, index, options) {
13589
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$1);
13590
+ }
13591
+ /**
13592
+ * Deletes a search index and all the documents it contains. This operation is permanent, with no
13593
+ * recovery option. Make sure you have a master copy of your index definition, data ingestion code, and
13594
+ * a backup of the primary data source in case you need to re-build the index.
13595
+ * @param indexName The name of the index to delete.
13596
+ * @param options The options parameters.
13597
+ */
13598
+ delete(indexName, options) {
13599
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$1);
13600
+ }
13601
+ /**
13602
+ * Retrieves an index definition.
13603
+ * @param indexName The name of the index to retrieve.
13604
+ * @param options The options parameters.
13605
+ */
13606
+ get(indexName, options) {
13607
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$1);
13608
+ }
13609
+ /**
13610
+ * Returns statistics for the given index, including a document count and storage usage.
13611
+ * @param indexName The name of the index for which to retrieve statistics.
13612
+ * @param options The options parameters.
13613
+ */
13614
+ getStatistics(indexName, options) {
13615
+ return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
13616
+ }
13617
+ /**
13618
+ * Shows how an analyzer breaks text into tokens.
13619
+ * @param indexName The name of the index for which to test an analyzer.
13620
+ * @param request The text and analyzer or analysis components to test.
13621
+ * @param options The options parameters.
13622
+ */
13623
+ analyze(indexName, request, options) {
13624
+ return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
13625
+ }
13626
+ }
13627
+ // Operation Specifications
13628
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
13629
+ const createOperationSpec$1 = {
13630
+ path: "/indexes",
13631
+ httpMethod: "POST",
13632
+ responses: {
13633
+ 201: {
13634
+ bodyMapper: SearchIndex,
13635
+ },
13636
+ default: {
13637
+ bodyMapper: ErrorResponse,
13638
+ },
13639
+ },
13640
+ requestBody: index,
13641
+ queryParameters: [apiVersion],
13642
+ urlParameters: [endpoint],
13643
+ headerParameters: [contentType, accept],
13644
+ mediaType: "json",
13645
+ serializer: serializer$2,
13646
+ };
13647
+ const listOperationSpec$1 = {
13648
+ path: "/indexes",
13649
+ httpMethod: "GET",
13650
+ responses: {
13651
+ 200: {
13652
+ bodyMapper: ListIndexesResult,
13653
+ },
13654
+ default: {
13655
+ bodyMapper: ErrorResponse,
13656
+ },
13657
+ },
13658
+ queryParameters: [apiVersion, select],
13659
+ urlParameters: [endpoint],
13660
+ headerParameters: [accept],
13661
+ serializer: serializer$2,
13662
+ };
13663
+ const createOrUpdateOperationSpec$1 = {
13664
+ path: "/indexes('{indexName}')",
13665
+ httpMethod: "PUT",
13666
+ responses: {
13667
+ 200: {
13668
+ bodyMapper: SearchIndex,
13669
+ },
13670
+ 201: {
13671
+ bodyMapper: SearchIndex,
13672
+ },
13673
+ default: {
13674
+ bodyMapper: ErrorResponse,
13675
+ },
13676
+ },
13677
+ requestBody: index,
13678
+ queryParameters: [apiVersion, allowIndexDowntime],
13679
+ urlParameters: [endpoint, indexName],
13680
+ headerParameters: [
13681
+ contentType,
13682
+ accept,
13683
+ ifMatch,
13684
+ ifNoneMatch,
13685
+ prefer,
13686
+ ],
13687
+ mediaType: "json",
13688
+ serializer: serializer$2,
13689
+ };
13690
+ const deleteOperationSpec$1 = {
13691
+ path: "/indexes('{indexName}')",
13692
+ httpMethod: "DELETE",
13693
+ responses: {
13694
+ 204: {},
13695
+ 404: {},
13696
+ default: {
13697
+ bodyMapper: ErrorResponse,
13698
+ },
13699
+ },
13700
+ queryParameters: [apiVersion],
13701
+ urlParameters: [endpoint, indexName],
13702
+ headerParameters: [
13703
+ accept,
13704
+ ifMatch,
13705
+ ifNoneMatch,
13706
+ ],
13707
+ serializer: serializer$2,
13708
+ };
13709
+ const getOperationSpec$1 = {
13710
+ path: "/indexes('{indexName}')",
13711
+ httpMethod: "GET",
13712
+ responses: {
13713
+ 200: {
13714
+ bodyMapper: SearchIndex,
13715
+ },
13716
+ default: {
13717
+ bodyMapper: ErrorResponse,
13718
+ },
13719
+ },
13720
+ queryParameters: [apiVersion],
13721
+ urlParameters: [endpoint, indexName],
11996
13722
  headerParameters: [accept],
11997
13723
  serializer: serializer$2,
11998
13724
  };
11999
- const listOperationSpec$1 = {
12000
- path: "/synonymmaps",
13725
+ const getStatisticsOperationSpec = {
13726
+ path: "/indexes('{indexName}')/search.stats",
12001
13727
  httpMethod: "GET",
12002
13728
  responses: {
12003
13729
  200: {
12004
- bodyMapper: ListSynonymMapsResult,
13730
+ bodyMapper: GetIndexStatisticsResult,
12005
13731
  },
12006
13732
  default: {
12007
13733
  bodyMapper: ErrorResponse,
12008
13734
  },
12009
13735
  },
12010
- queryParameters: [apiVersion, select],
12011
- urlParameters: [endpoint],
13736
+ queryParameters: [apiVersion],
13737
+ urlParameters: [endpoint, indexName],
12012
13738
  headerParameters: [accept],
12013
13739
  serializer: serializer$2,
12014
13740
  };
12015
- const createOperationSpec$1 = {
12016
- path: "/synonymmaps",
13741
+ const analyzeOperationSpec = {
13742
+ path: "/indexes('{indexName}')/search.analyze",
12017
13743
  httpMethod: "POST",
12018
13744
  responses: {
12019
- 201: {
12020
- bodyMapper: SynonymMap,
13745
+ 200: {
13746
+ bodyMapper: AnalyzeResult,
12021
13747
  },
12022
13748
  default: {
12023
13749
  bodyMapper: ErrorResponse,
12024
13750
  },
12025
13751
  },
12026
- requestBody: synonymMap,
13752
+ requestBody: request,
12027
13753
  queryParameters: [apiVersion],
12028
- urlParameters: [endpoint],
13754
+ urlParameters: [endpoint, indexName],
12029
13755
  headerParameters: [contentType, accept],
12030
13756
  mediaType: "json",
12031
13757
  serializer: serializer$2,
@@ -12038,89 +13764,71 @@ const createOperationSpec$1 = {
12038
13764
  * Code generated by Microsoft (R) AutoRest Code Generator.
12039
13765
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12040
13766
  */
12041
- /** Class containing Indexes operations. */
12042
- class IndexesImpl {
13767
+ /** Class containing Aliases operations. */
13768
+ class AliasesImpl {
12043
13769
  /**
12044
- * Initialize a new instance of the class Indexes class.
13770
+ * Initialize a new instance of the class Aliases class.
12045
13771
  * @param client Reference to the service client
12046
13772
  */
12047
13773
  constructor(client) {
12048
13774
  this.client = client;
12049
13775
  }
12050
13776
  /**
12051
- * Creates a new search index.
12052
- * @param index The definition of the index to create.
13777
+ * Creates a new search alias.
13778
+ * @param alias The definition of the alias to create.
12053
13779
  * @param options The options parameters.
12054
13780
  */
12055
- create(index, options) {
12056
- return this.client.sendOperationRequest({ index, options }, createOperationSpec);
13781
+ create(alias, options) {
13782
+ return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
12057
13783
  }
12058
13784
  /**
12059
- * Lists all indexes available for a search service.
13785
+ * Lists all aliases available for a search service.
12060
13786
  * @param options The options parameters.
12061
13787
  */
12062
13788
  list(options) {
12063
13789
  return this.client.sendOperationRequest({ options }, listOperationSpec);
12064
13790
  }
12065
13791
  /**
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.
13792
+ * Creates a new search alias or updates an alias if it already exists.
13793
+ * @param aliasName The definition of the alias to create or update.
13794
+ * @param alias The definition of the alias to create or update.
12087
13795
  * @param options The options parameters.
12088
13796
  */
12089
- get(indexName, options) {
12090
- return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
13797
+ createOrUpdate(aliasName, alias, options) {
13798
+ return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
12091
13799
  }
12092
13800
  /**
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.
13801
+ * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
13802
+ * recovery option. The mapped index is untouched by this operation.
13803
+ * @param aliasName The name of the alias to delete.
12095
13804
  * @param options The options parameters.
12096
13805
  */
12097
- getStatistics(indexName, options) {
12098
- return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
13806
+ delete(aliasName, options) {
13807
+ return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
12099
13808
  }
12100
13809
  /**
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.
13810
+ * Retrieves an alias definition.
13811
+ * @param aliasName The name of the alias to retrieve.
12104
13812
  * @param options The options parameters.
12105
13813
  */
12106
- analyze(indexName, request, options) {
12107
- return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
13814
+ get(aliasName, options) {
13815
+ return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
12108
13816
  }
12109
13817
  }
12110
13818
  // Operation Specifications
12111
13819
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
12112
13820
  const createOperationSpec = {
12113
- path: "/indexes",
13821
+ path: "/aliases",
12114
13822
  httpMethod: "POST",
12115
13823
  responses: {
12116
13824
  201: {
12117
- bodyMapper: SearchIndex,
13825
+ bodyMapper: SearchAlias,
12118
13826
  },
12119
13827
  default: {
12120
13828
  bodyMapper: ErrorResponse,
12121
13829
  },
12122
13830
  },
12123
- requestBody: index,
13831
+ requestBody: alias,
12124
13832
  queryParameters: [apiVersion],
12125
13833
  urlParameters: [endpoint],
12126
13834
  headerParameters: [contentType, accept],
@@ -12128,38 +13836,38 @@ const createOperationSpec = {
12128
13836
  serializer: serializer$1,
12129
13837
  };
12130
13838
  const listOperationSpec = {
12131
- path: "/indexes",
13839
+ path: "/aliases",
12132
13840
  httpMethod: "GET",
12133
13841
  responses: {
12134
13842
  200: {
12135
- bodyMapper: ListIndexesResult,
13843
+ bodyMapper: ListAliasesResult,
12136
13844
  },
12137
13845
  default: {
12138
13846
  bodyMapper: ErrorResponse,
12139
13847
  },
12140
13848
  },
12141
- queryParameters: [apiVersion, select],
13849
+ queryParameters: [apiVersion],
12142
13850
  urlParameters: [endpoint],
12143
13851
  headerParameters: [accept],
12144
13852
  serializer: serializer$1,
12145
13853
  };
12146
13854
  const createOrUpdateOperationSpec = {
12147
- path: "/indexes('{indexName}')",
13855
+ path: "/aliases('{aliasName}')",
12148
13856
  httpMethod: "PUT",
12149
13857
  responses: {
12150
13858
  200: {
12151
- bodyMapper: SearchIndex,
13859
+ bodyMapper: SearchAlias,
12152
13860
  },
12153
13861
  201: {
12154
- bodyMapper: SearchIndex,
13862
+ bodyMapper: SearchAlias,
12155
13863
  },
12156
13864
  default: {
12157
13865
  bodyMapper: ErrorResponse,
12158
13866
  },
12159
13867
  },
12160
- requestBody: index,
12161
- queryParameters: [apiVersion, allowIndexDowntime],
12162
- urlParameters: [endpoint, indexName],
13868
+ requestBody: alias,
13869
+ queryParameters: [apiVersion],
13870
+ urlParameters: [endpoint, aliasName],
12163
13871
  headerParameters: [
12164
13872
  contentType,
12165
13873
  accept,
@@ -12171,7 +13879,7 @@ const createOrUpdateOperationSpec = {
12171
13879
  serializer: serializer$1,
12172
13880
  };
12173
13881
  const deleteOperationSpec = {
12174
- path: "/indexes('{indexName}')",
13882
+ path: "/aliases('{aliasName}')",
12175
13883
  httpMethod: "DELETE",
12176
13884
  responses: {
12177
13885
  204: {},
@@ -12181,7 +13889,7 @@ const deleteOperationSpec = {
12181
13889
  },
12182
13890
  },
12183
13891
  queryParameters: [apiVersion],
12184
- urlParameters: [endpoint, indexName],
13892
+ urlParameters: [endpoint, aliasName],
12185
13893
  headerParameters: [
12186
13894
  accept,
12187
13895
  ifMatch,
@@ -12190,55 +13898,21 @@ const deleteOperationSpec = {
12190
13898
  serializer: serializer$1,
12191
13899
  };
12192
13900
  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",
13901
+ path: "/aliases('{aliasName}')",
12210
13902
  httpMethod: "GET",
12211
13903
  responses: {
12212
13904
  200: {
12213
- bodyMapper: GetIndexStatisticsResult,
13905
+ bodyMapper: SearchAlias,
12214
13906
  },
12215
13907
  default: {
12216
13908
  bodyMapper: ErrorResponse,
12217
13909
  },
12218
13910
  },
12219
13911
  queryParameters: [apiVersion],
12220
- urlParameters: [endpoint, indexName],
13912
+ urlParameters: [endpoint, aliasName],
12221
13913
  headerParameters: [accept],
12222
13914
  serializer: serializer$1,
12223
13915
  };
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
13916
 
12243
13917
  /*
12244
13918
  * Copyright (c) Microsoft Corporation.
@@ -12270,7 +13944,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
12270
13944
  const defaults = {
12271
13945
  requestContentType: "application/json; charset=utf-8",
12272
13946
  };
12273
- const packageDetails = `azsdk-js-search-documents/12.1.0`;
13947
+ const packageDetails = `azsdk-js-search-documents/12.2.0-beta.1`;
12274
13948
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
12275
13949
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
12276
13950
  : `${packageDetails}`;
@@ -12286,6 +13960,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
12286
13960
  this.skillsets = new SkillsetsImpl(this);
12287
13961
  this.synonymMaps = new SynonymMapsImpl(this);
12288
13962
  this.indexes = new IndexesImpl(this);
13963
+ this.aliases = new AliasesImpl(this);
12289
13964
  this.addCustomApiVersionPolicy(apiVersion);
12290
13965
  }
12291
13966
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -12341,7 +14016,7 @@ const getServiceStatisticsOperationSpec = {
12341
14016
  };
12342
14017
 
12343
14018
  // Copyright (c) Microsoft Corporation.
12344
- // Licensed under the MIT license.
14019
+ // Licensed under the MIT License.
12345
14020
  /**
12346
14021
  * Class to perform operations to manage
12347
14022
  * (create, update, list/delete)
@@ -12395,6 +14070,7 @@ class SearchIndexClient {
12395
14070
  (_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12396
14071
  this.apiVersion = this.serviceVersion;
12397
14072
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
14073
+ this.pipeline = this.client.pipeline;
12398
14074
  if (coreAuth.isTokenCredential(credential)) {
12399
14075
  const scope = this.options.audience
12400
14076
  ? `${this.options.audience}/.default`
@@ -12464,6 +14140,63 @@ class SearchIndexClient {
12464
14140
  },
12465
14141
  };
12466
14142
  }
14143
+ listAliasesPage(options = {}) {
14144
+ return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
14145
+ const { span, updatedOptions } = createSpan("SearchIndexClient-listAliases", options);
14146
+ try {
14147
+ const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
14148
+ yield yield tslib.__await(result.aliases);
14149
+ }
14150
+ catch (e) {
14151
+ span.setStatus({
14152
+ status: "error",
14153
+ error: e.message,
14154
+ });
14155
+ throw e;
14156
+ }
14157
+ finally {
14158
+ span.end();
14159
+ }
14160
+ });
14161
+ }
14162
+ listAliasesAll(options = {}) {
14163
+ return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
14164
+ var _a, e_2, _b, _c;
14165
+ try {
14166
+ for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
14167
+ _c = _f.value;
14168
+ _d = false;
14169
+ const page = _c;
14170
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
14171
+ }
14172
+ }
14173
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
14174
+ finally {
14175
+ try {
14176
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
14177
+ }
14178
+ finally { if (e_2) throw e_2.error; }
14179
+ }
14180
+ });
14181
+ }
14182
+ /**
14183
+ * Lists all aliases available for a search service.
14184
+ * @param options - The options parameters.
14185
+ */
14186
+ listAliases(options = {}) {
14187
+ const iter = this.listAliasesAll(options);
14188
+ return {
14189
+ next() {
14190
+ return iter.next();
14191
+ },
14192
+ [Symbol.asyncIterator]() {
14193
+ return this;
14194
+ },
14195
+ byPage: () => {
14196
+ return this.listAliasesPage(options);
14197
+ },
14198
+ };
14199
+ }
12467
14200
  listIndexesNamesPage(options = {}) {
12468
14201
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
12469
14202
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
@@ -12486,7 +14219,7 @@ class SearchIndexClient {
12486
14219
  }
12487
14220
  listIndexesNamesAll(options = {}) {
12488
14221
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
12489
- var _a, e_2, _b, _c;
14222
+ var _a, e_3, _b, _c;
12490
14223
  try {
12491
14224
  for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
12492
14225
  _c = _f.value;
@@ -12495,12 +14228,12 @@ class SearchIndexClient {
12495
14228
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
12496
14229
  }
12497
14230
  }
12498
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
14231
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
12499
14232
  finally {
12500
14233
  try {
12501
14234
  if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
12502
14235
  }
12503
- finally { if (e_2) throw e_2.error; }
14236
+ finally { if (e_3) throw e_3.error; }
12504
14237
  }
12505
14238
  });
12506
14239
  }
@@ -12748,6 +14481,97 @@ class SearchIndexClient {
12748
14481
  span.end();
12749
14482
  }
12750
14483
  }
14484
+ /**
14485
+ * Creates a new search alias or updates an alias if it already exists.
14486
+ * @param alias - The definition of the alias to create or update.
14487
+ * @param options - The options parameters.
14488
+ */
14489
+ async createOrUpdateAlias(alias, options = {}) {
14490
+ const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateAlias", options);
14491
+ try {
14492
+ const etag = options.onlyIfUnchanged ? alias.etag : undefined;
14493
+ const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
14494
+ return result;
14495
+ }
14496
+ catch (e) {
14497
+ span.setStatus({
14498
+ status: "error",
14499
+ error: e.message,
14500
+ });
14501
+ throw e;
14502
+ }
14503
+ finally {
14504
+ span.end();
14505
+ }
14506
+ }
14507
+ /**
14508
+ * Creates a new search alias.
14509
+ * @param alias - The definition of the alias to create.
14510
+ * @param options - The options parameters.
14511
+ */
14512
+ async createAlias(alias, options = {}) {
14513
+ const { span, updatedOptions } = createSpan("SearchIndexClient-createAlias", options);
14514
+ try {
14515
+ const result = await this.client.aliases.create(alias, updatedOptions);
14516
+ return result;
14517
+ }
14518
+ catch (e) {
14519
+ span.setStatus({
14520
+ status: "error",
14521
+ error: e.message,
14522
+ });
14523
+ throw e;
14524
+ }
14525
+ finally {
14526
+ span.end();
14527
+ }
14528
+ }
14529
+ /**
14530
+ * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
14531
+ * recovery option. The mapped index is untouched by this operation.
14532
+ * @param alias - Alias/Name name of the alias to delete.
14533
+ * @param options - The options parameters.
14534
+ */
14535
+ async deleteAlias(alias, options = {}) {
14536
+ const { span, updatedOptions } = createSpan("SearchIndexClient-deleteAlias", options);
14537
+ try {
14538
+ const aliasName = typeof alias === "string" ? alias : alias.name;
14539
+ const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
14540
+ await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
14541
+ }
14542
+ catch (e) {
14543
+ span.setStatus({
14544
+ status: "error",
14545
+ error: e.message,
14546
+ });
14547
+ throw e;
14548
+ }
14549
+ finally {
14550
+ span.end();
14551
+ }
14552
+ }
14553
+ /**
14554
+ * Retrieves an alias definition.
14555
+ * @param aliasName - The name of the alias to retrieve.
14556
+ * @param options - The options parameters.
14557
+ */
14558
+ async getAlias(aliasName, options = {}) {
14559
+ const { span, updatedOptions } = createSpan("SearchIndexClient-getAlias", options);
14560
+ try {
14561
+ const result = await this.client.aliases.get(aliasName, updatedOptions);
14562
+ return result;
14563
+ }
14564
+ catch (e) {
14565
+ span.setStatus({
14566
+ status: "error",
14567
+ error: e.message,
14568
+ });
14569
+ throw e;
14570
+ }
14571
+ finally {
14572
+ span.end();
14573
+ }
14574
+ }
12751
14575
  /**
12752
14576
  * Retrieves statistics about an index, such as the count of documents and the size
12753
14577
  * of index storage.
@@ -12836,7 +14660,7 @@ class SearchIndexClient {
12836
14660
  }
12837
14661
 
12838
14662
  // Copyright (c) Microsoft Corporation.
12839
- // Licensed under the MIT license.
14663
+ // Licensed under the MIT License.
12840
14664
  /**
12841
14665
  * Class to perform operations to manage
12842
14666
  * (create, update, list/delete)
@@ -12888,6 +14712,7 @@ class SearchIndexerClient {
12888
14712
  (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12889
14713
  this.apiVersion = this.serviceVersion;
12890
14714
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
14715
+ this.pipeline = this.client.pipeline;
12891
14716
  if (coreAuth.isTokenCredential(credential)) {
12892
14717
  const scope = options.audience
12893
14718
  ? `${options.audience}/.default`
@@ -13372,10 +15197,56 @@ class SearchIndexerClient {
13372
15197
  span.end();
13373
15198
  }
13374
15199
  }
15200
+ /**
15201
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
15202
+ * @param indexerName - The name of the indexer to reset documents for.
15203
+ * @param options - Additional optional arguments.
15204
+ */
15205
+ async resetDocuments(indexerName, options = {}) {
15206
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
15207
+ try {
15208
+ await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
15209
+ documentKeys: updatedOptions.documentKeys,
15210
+ datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
15211
+ } }));
15212
+ }
15213
+ catch (e) {
15214
+ span.setStatus({
15215
+ status: "error",
15216
+ error: e.message,
15217
+ });
15218
+ throw e;
15219
+ }
15220
+ finally {
15221
+ span.end();
15222
+ }
15223
+ }
15224
+ /**
15225
+ * Reset an existing skillset in a search service.
15226
+ * @param skillsetName - The name of the skillset to reset.
15227
+ * @param skillNames - The names of skills to reset.
15228
+ * @param options - The options parameters.
15229
+ */
15230
+ async resetSkills(skillsetName, options = {}) {
15231
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
15232
+ try {
15233
+ await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
15234
+ }
15235
+ catch (e) {
15236
+ span.setStatus({
15237
+ status: "error",
15238
+ error: e.message,
15239
+ });
15240
+ throw e;
15241
+ }
15242
+ finally {
15243
+ span.end();
15244
+ }
15245
+ }
13375
15246
  }
13376
15247
 
13377
15248
  // Copyright (c) Microsoft Corporation.
13378
- // Licensed under the MIT license.
15249
+ // Licensed under the MIT License.
13379
15250
  /**
13380
15251
  * Default Batch Size
13381
15252
  */
@@ -13653,7 +15524,7 @@ class SearchIndexingBufferedSender {
13653
15524
  }
13654
15525
 
13655
15526
  // Copyright (c) Microsoft Corporation.
13656
- // Licensed under the MIT license.
15527
+ // Licensed under the MIT License.
13657
15528
  const readFileAsync = util.promisify(fs__namespace.readFile);
13658
15529
  /**
13659
15530
  * Helper method to create a SynonymMap object. This is a NodeJS only method.
@@ -13683,6 +15554,7 @@ exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
13683
15554
  exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
13684
15555
  exports.GeographyPoint = GeographyPoint;
13685
15556
  exports.IndexDocumentsBatch = IndexDocumentsBatch;
15557
+ exports.KnownLexicalNormalizerName = exports.KnownNormalizerNames;
13686
15558
  exports.SearchClient = SearchClient;
13687
15559
  exports.SearchIndexClient = SearchIndexClient;
13688
15560
  exports.SearchIndexerClient = SearchIndexerClient;