@azure/search-documents 12.0.0-beta.2 → 12.0.0-beta.4

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 (30) hide show
  1. package/README.md +4 -4
  2. package/dist/index.js +779 -210
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +1 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/generated/data/models/index.js +22 -6
  7. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  8. package/dist-esm/src/generated/data/models/mappers.js +78 -14
  9. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  10. package/dist-esm/src/generated/data/models/parameters.js +9 -0
  11. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  12. package/dist-esm/src/generated/data/operations/documents.js +1 -0
  13. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  14. package/dist-esm/src/generated/data/searchClient.js +1 -1
  15. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  16. package/dist-esm/src/generated/service/models/index.js +30 -6
  17. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  18. package/dist-esm/src/generated/service/models/mappers.js +402 -5
  19. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  20. package/dist-esm/src/generated/service/searchServiceClient.js +1 -1
  21. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  22. package/dist-esm/src/index.js.map +1 -1
  23. package/dist-esm/src/indexModels.js.map +1 -1
  24. package/dist-esm/src/searchClient.js +7 -7
  25. package/dist-esm/src/searchClient.js.map +1 -1
  26. package/dist-esm/src/serviceModels.js.map +1 -1
  27. package/dist-esm/src/serviceUtils.js +44 -6
  28. package/dist-esm/src/serviceUtils.js.map +1 -1
  29. package/package.json +12 -10
  30. package/types/search-documents.d.ts +236 -31
package/dist/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var tslib = require('tslib');
6
4
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
5
  var coreHttpCompat = require('@azure/core-http-compat');
@@ -13,10 +11,7 @@ var EventEmitter = require('events');
13
11
  var util = require('util');
14
12
  var fs = require('fs');
15
13
 
16
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
-
18
- function _interopNamespace(e) {
19
- if (e && e.__esModule) return e;
14
+ function _interopNamespaceDefault(e) {
20
15
  var n = Object.create(null);
21
16
  if (e) {
22
17
  Object.keys(e).forEach(function (k) {
@@ -29,14 +24,13 @@ function _interopNamespace(e) {
29
24
  }
30
25
  });
31
26
  }
32
- n["default"] = e;
27
+ n.default = e;
33
28
  return Object.freeze(n);
34
29
  }
35
30
 
36
- var coreHttpCompat__namespace = /*#__PURE__*/_interopNamespace(coreHttpCompat);
37
- var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
38
- var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
39
- var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
31
+ var coreHttpCompat__namespace = /*#__PURE__*/_interopNamespaceDefault(coreHttpCompat);
32
+ var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
33
+ var fs__namespace = /*#__PURE__*/_interopNamespaceDefault(fs);
40
34
 
41
35
  /*
42
36
  * Copyright (c) Microsoft Corporation.
@@ -324,6 +318,12 @@ const SearchRequest = {
324
318
  name: "String"
325
319
  }
326
320
  },
321
+ semanticQuery: {
322
+ serializedName: "semanticQuery",
323
+ type: {
324
+ name: "String"
325
+ }
326
+ },
327
327
  semanticConfiguration: {
328
328
  serializedName: "semanticConfiguration",
329
329
  type: {
@@ -419,30 +419,42 @@ const SearchRequest = {
419
419
  name: "String"
420
420
  }
421
421
  },
422
- vector: {
423
- serializedName: "vector",
422
+ vectorQueries: {
423
+ serializedName: "vectorQueries",
424
424
  type: {
425
- name: "Composite",
426
- className: "Vector"
425
+ name: "Sequence",
426
+ element: {
427
+ type: {
428
+ name: "Composite",
429
+ className: "VectorQuery"
430
+ }
431
+ }
432
+ }
433
+ },
434
+ vectorFilterMode: {
435
+ serializedName: "vectorFilterMode",
436
+ type: {
437
+ name: "String"
427
438
  }
428
439
  }
429
440
  }
430
441
  }
431
442
  };
432
- const Vector = {
443
+ const VectorQuery = {
433
444
  type: {
434
445
  name: "Composite",
435
- className: "Vector",
446
+ className: "VectorQuery",
447
+ uberParent: "VectorQuery",
448
+ polymorphicDiscriminator: {
449
+ serializedName: "kind",
450
+ clientName: "kind"
451
+ },
436
452
  modelProperties: {
437
- value: {
438
- serializedName: "value",
453
+ kind: {
454
+ serializedName: "kind",
455
+ required: true,
439
456
  type: {
440
- name: "Sequence",
441
- element: {
442
- type: {
443
- name: "Number"
444
- }
445
- }
457
+ name: "String"
446
458
  }
447
459
  },
448
460
  kNearestNeighborsCount: {
@@ -456,6 +468,12 @@ const Vector = {
456
468
  type: {
457
469
  name: "String"
458
470
  }
471
+ },
472
+ exhaustive: {
473
+ serializedName: "exhaustive",
474
+ type: {
475
+ name: "Boolean"
476
+ }
459
477
  }
460
478
  }
461
479
  }
@@ -1006,31 +1024,74 @@ const AutocompleteRequest = {
1006
1024
  }
1007
1025
  }
1008
1026
  };
1027
+ const RawVectorQuery = {
1028
+ serializedName: "vector",
1029
+ type: {
1030
+ name: "Composite",
1031
+ className: "RawVectorQuery",
1032
+ uberParent: "VectorQuery",
1033
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
1034
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
1035
+ serializedName: "vector",
1036
+ type: {
1037
+ name: "Sequence",
1038
+ element: {
1039
+ type: {
1040
+ name: "Number"
1041
+ }
1042
+ }
1043
+ }
1044
+ } })
1045
+ }
1046
+ };
1047
+ const VectorizableTextQuery = {
1048
+ serializedName: "text",
1049
+ type: {
1050
+ name: "Composite",
1051
+ className: "VectorizableTextQuery",
1052
+ uberParent: "VectorQuery",
1053
+ polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
1054
+ modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { text: {
1055
+ serializedName: "text",
1056
+ type: {
1057
+ name: "String"
1058
+ }
1059
+ } })
1060
+ }
1061
+ };
1062
+ let discriminators$1 = {
1063
+ VectorQuery: VectorQuery,
1064
+ "VectorQuery.vector": RawVectorQuery,
1065
+ "VectorQuery.text": VectorizableTextQuery
1066
+ };
1009
1067
 
1010
1068
  var Mappers$1 = /*#__PURE__*/Object.freeze({
1011
1069
  __proto__: null,
1012
- SearchError: SearchError$1,
1013
- SearchDocumentsResult: SearchDocumentsResult,
1014
- FacetResult: FacetResult,
1015
1070
  AnswerResult: AnswerResult,
1016
- SearchRequest: SearchRequest,
1017
- Vector: Vector,
1018
- SearchResult: SearchResult,
1071
+ AutocompleteItem: AutocompleteItem,
1072
+ AutocompleteRequest: AutocompleteRequest,
1073
+ AutocompleteResult: AutocompleteResult,
1019
1074
  CaptionResult: CaptionResult,
1020
1075
  DocumentDebugInfo: DocumentDebugInfo,
1021
- SemanticDebugInfo: SemanticDebugInfo,
1022
- QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
1023
- QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
1024
- SuggestDocumentsResult: SuggestDocumentsResult,
1025
- SuggestResult: SuggestResult,
1026
- SuggestRequest: SuggestRequest,
1027
- IndexBatch: IndexBatch,
1076
+ FacetResult: FacetResult,
1028
1077
  IndexAction: IndexAction,
1078
+ IndexBatch: IndexBatch,
1029
1079
  IndexDocumentsResult: IndexDocumentsResult,
1030
1080
  IndexingResult: IndexingResult,
1031
- AutocompleteResult: AutocompleteResult,
1032
- AutocompleteItem: AutocompleteItem,
1033
- AutocompleteRequest: AutocompleteRequest
1081
+ QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
1082
+ QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
1083
+ RawVectorQuery: RawVectorQuery,
1084
+ SearchDocumentsResult: SearchDocumentsResult,
1085
+ SearchError: SearchError$1,
1086
+ SearchRequest: SearchRequest,
1087
+ SearchResult: SearchResult,
1088
+ SemanticDebugInfo: SemanticDebugInfo,
1089
+ SuggestDocumentsResult: SuggestDocumentsResult,
1090
+ SuggestRequest: SuggestRequest,
1091
+ SuggestResult: SuggestResult,
1092
+ VectorQuery: VectorQuery,
1093
+ VectorizableTextQuery: VectorizableTextQuery,
1094
+ discriminators: discriminators$1
1034
1095
  });
1035
1096
 
1036
1097
  /*
@@ -1215,6 +1276,15 @@ const scoringProfile = {
1215
1276
  }
1216
1277
  }
1217
1278
  };
1279
+ const semanticQuery = {
1280
+ parameterPath: ["options", "searchOptions", "semanticQuery"],
1281
+ mapper: {
1282
+ serializedName: "semanticQuery",
1283
+ type: {
1284
+ name: "String"
1285
+ }
1286
+ }
1287
+ };
1218
1288
  const semanticConfiguration = {
1219
1289
  parameterPath: ["options", "searchOptions", "semanticConfiguration"],
1220
1290
  mapper: {
@@ -1768,6 +1838,7 @@ const searchGetOperationSpec = {
1768
1838
  queryType,
1769
1839
  scoringParameters,
1770
1840
  scoringProfile,
1841
+ semanticQuery,
1771
1842
  semanticConfiguration,
1772
1843
  semanticErrorHandling,
1773
1844
  semanticMaxWaitInMilliseconds,
@@ -1948,7 +2019,7 @@ const autocompletePostOperationSpec = {
1948
2019
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1949
2020
  */
1950
2021
  /** @internal */
1951
- class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
2022
+ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.ExtendedServiceClient {
1952
2023
  /**
1953
2024
  * Initializes a new instance of the SearchClient class.
1954
2025
  * @param endpoint The endpoint URL of the search service.
@@ -1974,7 +2045,7 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
1974
2045
  const defaults = {
1975
2046
  requestContentType: "application/json; charset=utf-8"
1976
2047
  };
1977
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.2`;
2048
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
1978
2049
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1979
2050
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1980
2051
  : `${packageDetails}`;
@@ -1988,7 +2059,7 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
1988
2059
  this.apiVersion = apiVersion;
1989
2060
  this.documents = new DocumentsImpl(this);
1990
2061
  }
1991
- }
2062
+ };
1992
2063
 
1993
2064
  // Copyright (c) Microsoft Corporation.
1994
2065
  // Licensed under the MIT license.
@@ -2011,12 +2082,14 @@ function createSearchApiKeyCredentialPolicy(credential) {
2011
2082
  }
2012
2083
 
2013
2084
  // Copyright (c) Microsoft Corporation.
2085
+ // Licensed under the MIT license.
2014
2086
  /**
2015
2087
  * The `@azure/logger` configuration for this package.
2016
2088
  */
2017
2089
  const logger = logger$1.createClientLogger("search");
2018
2090
 
2019
2091
  // Copyright (c) Microsoft Corporation.
2092
+ // Licensed under the MIT license.
2020
2093
  /**
2021
2094
  * Creates a tracing client using the global tracer.
2022
2095
  * @internal
@@ -2056,6 +2129,7 @@ class GeographyPoint {
2056
2129
  }
2057
2130
 
2058
2131
  // Copyright (c) Microsoft Corporation.
2132
+ // Licensed under the MIT license.
2059
2133
  const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
2060
2134
  const GeoJSONPointTypeName = "Point";
2061
2135
  const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
@@ -2981,6 +3055,7 @@ exports.KnownAnalyzerNames = void 0;
2981
3055
  // END manually modified generated interfaces
2982
3056
 
2983
3057
  // Copyright (c) Microsoft Corporation.
3058
+ // Licensed under the MIT license.
2984
3059
  function convertSkillsToPublic(skills) {
2985
3060
  if (!skills) {
2986
3061
  return skills;
@@ -3274,9 +3349,46 @@ function generatedIndexToPublicIndex(generatedIndex) {
3274
3349
  fields: convertFieldsToPublic(generatedIndex.fields),
3275
3350
  similarity: convertSimilarityToPublic(generatedIndex.similarity),
3276
3351
  semanticSettings: generatedIndex.semanticSettings,
3277
- vectorSearch: generatedIndex.vectorSearch,
3352
+ vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),
3278
3353
  };
3279
3354
  }
3355
+ function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer) {
3356
+ if (!generatedVectorizer) {
3357
+ return generatedVectorizer;
3358
+ }
3359
+ if (generatedVectorizer.kind === "azureOpenAI") {
3360
+ const { azureOpenAIParameters } = generatedVectorizer;
3361
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters === null || azureOpenAIParameters === void 0 ? void 0 : azureOpenAIParameters.authIdentity);
3362
+ const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { azureOpenAIParameters: Object.assign(Object.assign({}, azureOpenAIParameters), { authIdentity }) });
3363
+ return vectorizer;
3364
+ }
3365
+ if (generatedVectorizer.kind === "customWebApi") {
3366
+ const { customVectorizerParameters } = generatedVectorizer;
3367
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters === null || customVectorizerParameters === void 0 ? void 0 : customVectorizerParameters.authIdentity);
3368
+ const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { customVectorizerParameters: Object.assign(Object.assign({}, customVectorizerParameters), { authIdentity }) });
3369
+ return vectorizer;
3370
+ }
3371
+ throw Error("Unsupported vectorizer");
3372
+ }
3373
+ function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
3374
+ var _a;
3375
+ if (!generatedAlgorithmConfiguration) {
3376
+ return generatedAlgorithmConfiguration;
3377
+ }
3378
+ if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
3379
+ const algorithmConfiguration = generatedAlgorithmConfiguration;
3380
+ const metric = (_a = algorithmConfiguration.parameters) === null || _a === void 0 ? void 0 : _a.metric;
3381
+ return Object.assign(Object.assign({}, algorithmConfiguration), { parameters: Object.assign(Object.assign({}, algorithmConfiguration.parameters), { metric }) });
3382
+ }
3383
+ throw Error("Unsupported algorithm configuration");
3384
+ }
3385
+ function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
3386
+ var _a, _b;
3387
+ if (!vectorSearch) {
3388
+ return vectorSearch;
3389
+ }
3390
+ return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration), vectorizers: (_b = vectorSearch.vectorizers) === null || _b === void 0 ? void 0 : _b.map(generatedVectorSearchVectorizerToPublicVectorizer) });
3391
+ }
3280
3392
  function generatedSearchResultToPublicSearchResult(results) {
3281
3393
  const returnValues = results.map((result) => {
3282
3394
  const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
@@ -3365,8 +3477,9 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
3365
3477
  return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
3366
3478
  }
3367
3479
  function generatedSearchRequestToPublicSearchRequest(request) {
3368
- const { semanticErrorHandling, debug, vector } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vector"]);
3369
- return Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vector: convertVectorToPublic(vector) }, props);
3480
+ const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vectorQueries", "vectorFilterMode"]);
3481
+ const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vectorFilterMode: vectorFilterMode, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map((convertVectorQueryToPublic)).filter((v) => v !== undefined) }, props);
3482
+ return publicRequest;
3370
3483
  }
3371
3484
  function publicDataSourceToGeneratedDataSource(dataSource) {
3372
3485
  return {
@@ -3427,7 +3540,7 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
3427
3540
  }
3428
3541
  return dataDeletionDetectionPolicy;
3429
3542
  }
3430
- function convertVectorToPublic(vector) {
3543
+ function convertVectorQueryToPublic(vector) {
3431
3544
  var _a;
3432
3545
  if (!vector) {
3433
3546
  return vector;
@@ -3453,7 +3566,7 @@ function getRandomIntegerInclusive(min, max) {
3453
3566
  function delay(timeInMs) {
3454
3567
  return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
3455
3568
  }
3456
- const defaultServiceVersion = "2023-07-01-Preview";
3569
+ const defaultServiceVersion = "2023-10-01-Preview";
3457
3570
  function convertKnowledgeStoreToPublic(knowledgeStore) {
3458
3571
  if (!knowledgeStore) {
3459
3572
  return knowledgeStore;
@@ -3489,6 +3602,7 @@ exports.KnownSearchAudience = void 0;
3489
3602
  })(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
3490
3603
 
3491
3604
  // Copyright (c) Microsoft Corporation.
3605
+ // Licensed under the MIT license.
3492
3606
  /**
3493
3607
  * Class used to perform operations against a search index,
3494
3608
  * including querying documents in the index as well as
@@ -3662,8 +3776,8 @@ class SearchClient {
3662
3776
  }
3663
3777
  }
3664
3778
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
3665
- const { searchFields, semanticFields, select, orderBy, includeTotalCount, vector, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vector", "answers", "semanticErrorHandlingMode", "debugMode"]);
3666
- const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vector: this.convertVector(vector), answers: this.convertAnswers(answers), semanticErrorHandling: semanticErrorHandlingMode, debug: debugMode });
3779
+ const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vectorQueries", "answers", "semanticErrorHandlingMode", "debugMode"]);
3780
+ const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map(this.convertVectorQuery.bind(this)), answers: this.convertAnswers(answers), semanticErrorHandling: semanticErrorHandlingMode, debug: debugMode });
3667
3781
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
3668
3782
  try {
3669
3783
  const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
@@ -4043,7 +4157,7 @@ class SearchClient {
4043
4157
  }
4044
4158
  return select;
4045
4159
  }
4046
- convertVectorFields(fields) {
4160
+ convertVectorQueryFields(fields) {
4047
4161
  if (fields) {
4048
4162
  return fields.join(",");
4049
4163
  }
@@ -4087,15 +4201,16 @@ class SearchClient {
4087
4201
  }
4088
4202
  return output;
4089
4203
  }
4090
- convertVector(vector) {
4091
- if (!vector) {
4092
- return vector;
4204
+ convertVectorQuery(vectorQuery) {
4205
+ if (!vectorQuery) {
4206
+ return vectorQuery;
4093
4207
  }
4094
- return Object.assign(Object.assign({}, vector), { fields: this.convertVectorFields(vector === null || vector === void 0 ? void 0 : vector.fields) });
4208
+ return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
4095
4209
  }
4096
4210
  }
4097
4211
 
4098
4212
  // Copyright (c) Microsoft Corporation.
4213
+ // Licensed under the MIT license.
4099
4214
  /**
4100
4215
  * Default Batch Size
4101
4216
  */
@@ -4129,7 +4244,7 @@ class SearchIndexingBufferedSender {
4129
4244
  /**
4130
4245
  * Event emitter/publisher used in the Buffered Sender
4131
4246
  */
4132
- this.emitter = new EventEmitter__default["default"]();
4247
+ this.emitter = new EventEmitter();
4133
4248
  this.client = client;
4134
4249
  this.documentKeyRetriever = documentKeyRetriever;
4135
4250
  // General Configuration properties
@@ -5480,6 +5595,13 @@ const SearchIndexerSkillset = {
5480
5595
  className: "SearchIndexerKnowledgeStore"
5481
5596
  }
5482
5597
  },
5598
+ indexProjections: {
5599
+ serializedName: "indexProjections",
5600
+ type: {
5601
+ name: "Composite",
5602
+ className: "SearchIndexerIndexProjections"
5603
+ }
5604
+ },
5483
5605
  etag: {
5484
5606
  serializedName: "@odata\\.etag",
5485
5607
  type: {
@@ -5677,6 +5799,13 @@ const SearchIndexerKnowledgeStore = {
5677
5799
  name: "Composite",
5678
5800
  className: "SearchIndexerDataIdentity"
5679
5801
  }
5802
+ },
5803
+ parameters: {
5804
+ serializedName: "parameters",
5805
+ type: {
5806
+ name: "Composite",
5807
+ className: "SearchIndexerKnowledgeStoreParameters"
5808
+ }
5680
5809
  }
5681
5810
  }
5682
5811
  }
@@ -5769,6 +5898,107 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
5769
5898
  }
5770
5899
  }
5771
5900
  };
5901
+ const SearchIndexerKnowledgeStoreParameters = {
5902
+ type: {
5903
+ name: "Composite",
5904
+ className: "SearchIndexerKnowledgeStoreParameters",
5905
+ additionalProperties: { type: { name: "Object" } },
5906
+ modelProperties: {
5907
+ synthesizeGeneratedKeyName: {
5908
+ defaultValue: false,
5909
+ serializedName: "synthesizeGeneratedKeyName",
5910
+ type: {
5911
+ name: "Boolean"
5912
+ }
5913
+ }
5914
+ }
5915
+ }
5916
+ };
5917
+ const SearchIndexerIndexProjections = {
5918
+ type: {
5919
+ name: "Composite",
5920
+ className: "SearchIndexerIndexProjections",
5921
+ modelProperties: {
5922
+ selectors: {
5923
+ serializedName: "selectors",
5924
+ required: true,
5925
+ type: {
5926
+ name: "Sequence",
5927
+ element: {
5928
+ type: {
5929
+ name: "Composite",
5930
+ className: "SearchIndexerIndexProjectionSelector"
5931
+ }
5932
+ }
5933
+ }
5934
+ },
5935
+ parameters: {
5936
+ serializedName: "parameters",
5937
+ type: {
5938
+ name: "Composite",
5939
+ className: "SearchIndexerIndexProjectionsParameters"
5940
+ }
5941
+ }
5942
+ }
5943
+ }
5944
+ };
5945
+ const SearchIndexerIndexProjectionSelector = {
5946
+ type: {
5947
+ name: "Composite",
5948
+ className: "SearchIndexerIndexProjectionSelector",
5949
+ modelProperties: {
5950
+ targetIndexName: {
5951
+ serializedName: "targetIndexName",
5952
+ required: true,
5953
+ type: {
5954
+ name: "String"
5955
+ }
5956
+ },
5957
+ parentKeyFieldName: {
5958
+ serializedName: "parentKeyFieldName",
5959
+ required: true,
5960
+ type: {
5961
+ name: "String"
5962
+ }
5963
+ },
5964
+ sourceContext: {
5965
+ serializedName: "sourceContext",
5966
+ required: true,
5967
+ type: {
5968
+ name: "String"
5969
+ }
5970
+ },
5971
+ mappings: {
5972
+ serializedName: "mappings",
5973
+ required: true,
5974
+ type: {
5975
+ name: "Sequence",
5976
+ element: {
5977
+ type: {
5978
+ name: "Composite",
5979
+ className: "InputFieldMappingEntry"
5980
+ }
5981
+ }
5982
+ }
5983
+ }
5984
+ }
5985
+ }
5986
+ };
5987
+ const SearchIndexerIndexProjectionsParameters = {
5988
+ type: {
5989
+ name: "Composite",
5990
+ className: "SearchIndexerIndexProjectionsParameters",
5991
+ additionalProperties: { type: { name: "Object" } },
5992
+ modelProperties: {
5993
+ projectionMode: {
5994
+ serializedName: "projectionMode",
5995
+ type: {
5996
+ name: "String"
5997
+ }
5998
+ }
5999
+ }
6000
+ }
6001
+ };
5772
6002
  const ListSkillsetsResult = {
5773
6003
  type: {
5774
6004
  name: "Composite",
@@ -6128,8 +6358,8 @@ const SearchField = {
6128
6358
  name: "Number"
6129
6359
  }
6130
6360
  },
6131
- vectorSearchConfiguration: {
6132
- serializedName: "vectorSearchConfiguration",
6361
+ vectorSearchProfile: {
6362
+ serializedName: "vectorSearchProfile",
6133
6363
  nullable: true,
6134
6364
  type: {
6135
6365
  name: "String"
@@ -6588,8 +6818,20 @@ const VectorSearch = {
6588
6818
  name: "Composite",
6589
6819
  className: "VectorSearch",
6590
6820
  modelProperties: {
6591
- algorithmConfigurations: {
6592
- serializedName: "algorithmConfigurations",
6821
+ profiles: {
6822
+ serializedName: "profiles",
6823
+ type: {
6824
+ name: "Sequence",
6825
+ element: {
6826
+ type: {
6827
+ name: "Composite",
6828
+ className: "VectorSearchProfile"
6829
+ }
6830
+ }
6831
+ }
6832
+ },
6833
+ algorithms: {
6834
+ serializedName: "algorithms",
6593
6835
  type: {
6594
6836
  name: "Sequence",
6595
6837
  element: {
@@ -6599,6 +6841,46 @@ const VectorSearch = {
6599
6841
  }
6600
6842
  }
6601
6843
  }
6844
+ },
6845
+ vectorizers: {
6846
+ serializedName: "vectorizers",
6847
+ type: {
6848
+ name: "Sequence",
6849
+ element: {
6850
+ type: {
6851
+ name: "Composite",
6852
+ className: "VectorSearchVectorizer"
6853
+ }
6854
+ }
6855
+ }
6856
+ }
6857
+ }
6858
+ }
6859
+ };
6860
+ const VectorSearchProfile = {
6861
+ type: {
6862
+ name: "Composite",
6863
+ className: "VectorSearchProfile",
6864
+ modelProperties: {
6865
+ name: {
6866
+ serializedName: "name",
6867
+ required: true,
6868
+ type: {
6869
+ name: "String"
6870
+ }
6871
+ },
6872
+ algorithm: {
6873
+ serializedName: "algorithm",
6874
+ required: true,
6875
+ type: {
6876
+ name: "String"
6877
+ }
6878
+ },
6879
+ vectorizer: {
6880
+ serializedName: "vectorizer",
6881
+ type: {
6882
+ name: "String"
6883
+ }
6602
6884
  }
6603
6885
  }
6604
6886
  }
@@ -6630,19 +6912,46 @@ const VectorSearchAlgorithmConfiguration = {
6630
6912
  }
6631
6913
  }
6632
6914
  };
6633
- const ListIndexesResult = {
6915
+ const VectorSearchVectorizer = {
6634
6916
  type: {
6635
6917
  name: "Composite",
6636
- className: "ListIndexesResult",
6918
+ className: "VectorSearchVectorizer",
6919
+ uberParent: "VectorSearchVectorizer",
6920
+ polymorphicDiscriminator: {
6921
+ serializedName: "kind",
6922
+ clientName: "kind"
6923
+ },
6637
6924
  modelProperties: {
6638
- indexes: {
6639
- serializedName: "value",
6925
+ name: {
6926
+ serializedName: "name",
6640
6927
  required: true,
6641
- readOnly: true,
6642
6928
  type: {
6643
- name: "Sequence",
6644
- element: {
6645
- type: {
6929
+ name: "String"
6930
+ }
6931
+ },
6932
+ kind: {
6933
+ serializedName: "kind",
6934
+ required: true,
6935
+ type: {
6936
+ name: "String"
6937
+ }
6938
+ }
6939
+ }
6940
+ }
6941
+ };
6942
+ const ListIndexesResult = {
6943
+ type: {
6944
+ name: "Composite",
6945
+ className: "ListIndexesResult",
6946
+ modelProperties: {
6947
+ indexes: {
6948
+ serializedName: "value",
6949
+ required: true,
6950
+ readOnly: true,
6951
+ type: {
6952
+ name: "Sequence",
6953
+ element: {
6954
+ type: {
6646
6955
  name: "Composite",
6647
6956
  className: "SearchIndex"
6648
6957
  }
@@ -6675,6 +6984,7 @@ const GetIndexStatisticsResult = {
6675
6984
  },
6676
6985
  vectorIndexSize: {
6677
6986
  serializedName: "vectorIndexSize",
6987
+ required: true,
6678
6988
  readOnly: true,
6679
6989
  type: {
6680
6990
  name: "Number"
@@ -7056,6 +7366,101 @@ const HnswParameters = {
7056
7366
  }
7057
7367
  }
7058
7368
  };
7369
+ const ExhaustiveKnnParameters = {
7370
+ type: {
7371
+ name: "Composite",
7372
+ className: "ExhaustiveKnnParameters",
7373
+ modelProperties: {
7374
+ metric: {
7375
+ serializedName: "metric",
7376
+ nullable: true,
7377
+ type: {
7378
+ name: "String"
7379
+ }
7380
+ }
7381
+ }
7382
+ }
7383
+ };
7384
+ const AzureOpenAIParameters = {
7385
+ type: {
7386
+ name: "Composite",
7387
+ className: "AzureOpenAIParameters",
7388
+ modelProperties: {
7389
+ resourceUri: {
7390
+ serializedName: "resourceUri",
7391
+ type: {
7392
+ name: "String"
7393
+ }
7394
+ },
7395
+ deploymentId: {
7396
+ serializedName: "deploymentId",
7397
+ type: {
7398
+ name: "String"
7399
+ }
7400
+ },
7401
+ apiKey: {
7402
+ serializedName: "apiKey",
7403
+ type: {
7404
+ name: "String"
7405
+ }
7406
+ },
7407
+ authIdentity: {
7408
+ serializedName: "authIdentity",
7409
+ type: {
7410
+ name: "Composite",
7411
+ className: "SearchIndexerDataIdentity"
7412
+ }
7413
+ }
7414
+ }
7415
+ }
7416
+ };
7417
+ const CustomVectorizerParameters = {
7418
+ type: {
7419
+ name: "Composite",
7420
+ className: "CustomVectorizerParameters",
7421
+ modelProperties: {
7422
+ uri: {
7423
+ serializedName: "uri",
7424
+ type: {
7425
+ name: "String"
7426
+ }
7427
+ },
7428
+ httpHeaders: {
7429
+ serializedName: "httpHeaders",
7430
+ type: {
7431
+ name: "Dictionary",
7432
+ value: { type: { name: "String" } }
7433
+ }
7434
+ },
7435
+ httpMethod: {
7436
+ serializedName: "httpMethod",
7437
+ type: {
7438
+ name: "String"
7439
+ }
7440
+ },
7441
+ timeout: {
7442
+ serializedName: "timeout",
7443
+ type: {
7444
+ name: "TimeSpan"
7445
+ }
7446
+ },
7447
+ authResourceId: {
7448
+ serializedName: "authResourceId",
7449
+ nullable: true,
7450
+ type: {
7451
+ name: "String"
7452
+ }
7453
+ },
7454
+ authIdentity: {
7455
+ serializedName: "authIdentity",
7456
+ type: {
7457
+ name: "Composite",
7458
+ className: "SearchIndexerDataIdentity"
7459
+ }
7460
+ }
7461
+ }
7462
+ }
7463
+ };
7059
7464
  const DistanceScoringParameters = {
7060
7465
  type: {
7061
7466
  name: "Composite",
@@ -7342,6 +7747,16 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
7342
7747
  } })
7343
7748
  }
7344
7749
  };
7750
+ const NativeBlobSoftDeleteDeletionDetectionPolicy = {
7751
+ serializedName: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy",
7752
+ type: {
7753
+ name: "Composite",
7754
+ className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
7755
+ uberParent: "DataDeletionDetectionPolicy",
7756
+ polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
7757
+ modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties)
7758
+ }
7759
+ };
7345
7760
  const ConditionalSkill = {
7346
7761
  serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
7347
7762
  type: {
@@ -7733,6 +8148,18 @@ const SplitSkill = {
7733
8148
  type: {
7734
8149
  name: "Number"
7735
8150
  }
8151
+ }, pageOverlapLength: {
8152
+ serializedName: "pageOverlapLength",
8153
+ nullable: true,
8154
+ type: {
8155
+ name: "Number"
8156
+ }
8157
+ }, maximumPagesToTake: {
8158
+ serializedName: "maximumPagesToTake",
8159
+ nullable: true,
8160
+ type: {
8161
+ name: "Number"
8162
+ }
7736
8163
  } })
7737
8164
  }
7738
8165
  };
@@ -7946,6 +8373,37 @@ const AzureMachineLearningSkill = {
7946
8373
  } })
7947
8374
  }
7948
8375
  };
8376
+ const AzureOpenAIEmbeddingSkill = {
8377
+ serializedName: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
8378
+ type: {
8379
+ name: "Composite",
8380
+ className: "AzureOpenAIEmbeddingSkill",
8381
+ uberParent: "SearchIndexerSkill",
8382
+ polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8383
+ modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { resourceUri: {
8384
+ serializedName: "resourceUri",
8385
+ type: {
8386
+ name: "String"
8387
+ }
8388
+ }, deploymentId: {
8389
+ serializedName: "deploymentId",
8390
+ type: {
8391
+ name: "String"
8392
+ }
8393
+ }, apiKey: {
8394
+ serializedName: "apiKey",
8395
+ type: {
8396
+ name: "String"
8397
+ }
8398
+ }, authIdentity: {
8399
+ serializedName: "authIdentity",
8400
+ type: {
8401
+ name: "Composite",
8402
+ className: "SearchIndexerDataIdentity"
8403
+ }
8404
+ } })
8405
+ }
8406
+ };
7949
8407
  const DefaultCognitiveServicesAccount = {
7950
8408
  serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
7951
8409
  type: {
@@ -9570,6 +10028,54 @@ const HnswVectorSearchAlgorithmConfiguration = {
9570
10028
  } })
9571
10029
  }
9572
10030
  };
10031
+ const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
10032
+ serializedName: "exhaustiveKnn",
10033
+ type: {
10034
+ name: "Composite",
10035
+ className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration",
10036
+ uberParent: "VectorSearchAlgorithmConfiguration",
10037
+ polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
10038
+ modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
10039
+ serializedName: "exhaustiveKnnParameters",
10040
+ type: {
10041
+ name: "Composite",
10042
+ className: "ExhaustiveKnnParameters"
10043
+ }
10044
+ } })
10045
+ }
10046
+ };
10047
+ const AzureOpenAIVectorizer = {
10048
+ serializedName: "azureOpenAI",
10049
+ type: {
10050
+ name: "Composite",
10051
+ className: "AzureOpenAIVectorizer",
10052
+ uberParent: "VectorSearchVectorizer",
10053
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
10054
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { azureOpenAIParameters: {
10055
+ serializedName: "azureOpenAIParameters",
10056
+ type: {
10057
+ name: "Composite",
10058
+ className: "AzureOpenAIParameters"
10059
+ }
10060
+ } })
10061
+ }
10062
+ };
10063
+ const CustomVectorizer = {
10064
+ serializedName: "customWebApi",
10065
+ type: {
10066
+ name: "Composite",
10067
+ className: "CustomVectorizer",
10068
+ uberParent: "VectorSearchVectorizer",
10069
+ polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
10070
+ modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { customVectorizerParameters: {
10071
+ serializedName: "customVectorizerParameters",
10072
+ type: {
10073
+ name: "Composite",
10074
+ className: "CustomVectorizerParameters"
10075
+ }
10076
+ } })
10077
+ }
10078
+ };
9573
10079
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
9574
10080
  type: {
9575
10081
  name: "Composite",
@@ -9598,11 +10104,13 @@ let discriminators = {
9598
10104
  LexicalNormalizer: LexicalNormalizer,
9599
10105
  Similarity: Similarity,
9600
10106
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10107
+ VectorSearchVectorizer: VectorSearchVectorizer,
9601
10108
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
9602
10109
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
9603
10110
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
9604
10111
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
9605
10112
  "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
10113
+ "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
9606
10114
  "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
9607
10115
  "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
9608
10116
  "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
@@ -9622,6 +10130,7 @@ let discriminators = {
9622
10130
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
9623
10131
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
9624
10132
  "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
10133
+ "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
9625
10134
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
9626
10135
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
9627
10136
  "ScoringFunction.distance": DistanceScoringFunction,
@@ -9674,166 +10183,183 @@ let discriminators = {
9674
10183
  "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
9675
10184
  "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
9676
10185
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
9677
- "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration
10186
+ "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration,
10187
+ "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration,
10188
+ "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
10189
+ "VectorSearchVectorizer.customWebApi": CustomVectorizer
9678
10190
  };
9679
10191
 
9680
10192
  var Mappers = /*#__PURE__*/Object.freeze({
9681
10193
  __proto__: null,
9682
- SearchIndexerDataSource: SearchIndexerDataSource,
9683
- DataSourceCredentials: DataSourceCredentials,
9684
- SearchIndexerDataContainer: SearchIndexerDataContainer,
9685
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
9686
- DataChangeDetectionPolicy: DataChangeDetectionPolicy,
9687
- DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
9688
- SearchResourceEncryptionKey: SearchResourceEncryptionKey,
9689
- AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
9690
- SearchError: SearchError,
9691
- ListDataSourcesResult: ListDataSourcesResult,
9692
- DocumentKeysOrIds: DocumentKeysOrIds,
9693
- SearchIndexer: SearchIndexer,
9694
- IndexingSchedule: IndexingSchedule,
9695
- IndexingParameters: IndexingParameters,
9696
- IndexingParametersConfiguration: IndexingParametersConfiguration,
9697
- FieldMapping: FieldMapping,
9698
- FieldMappingFunction: FieldMappingFunction,
9699
- SearchIndexerCache: SearchIndexerCache,
9700
- ListIndexersResult: ListIndexersResult,
9701
- SearchIndexerStatus: SearchIndexerStatus,
9702
- IndexerExecutionResult: IndexerExecutionResult,
9703
- IndexerState: IndexerState,
9704
- SearchIndexerError: SearchIndexerError,
9705
- SearchIndexerWarning: SearchIndexerWarning,
9706
- SearchIndexerLimits: SearchIndexerLimits,
9707
- SearchIndexerSkillset: SearchIndexerSkillset,
9708
- SearchIndexerSkill: SearchIndexerSkill,
9709
- InputFieldMappingEntry: InputFieldMappingEntry,
9710
- OutputFieldMappingEntry: OutputFieldMappingEntry,
9711
- CognitiveServicesAccount: CognitiveServicesAccount,
9712
- SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
9713
- SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
9714
- SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
9715
- ListSkillsetsResult: ListSkillsetsResult,
9716
- SkillNames: SkillNames,
9717
- SynonymMap: SynonymMap,
9718
- ListSynonymMapsResult: ListSynonymMapsResult,
9719
- SearchIndex: SearchIndex,
9720
- SearchField: SearchField,
9721
- ScoringProfile: ScoringProfile,
9722
- TextWeights: TextWeights,
9723
- ScoringFunction: ScoringFunction,
9724
- CorsOptions: CorsOptions,
9725
- Suggester: Suggester,
9726
- LexicalAnalyzer: LexicalAnalyzer,
9727
- LexicalTokenizer: LexicalTokenizer,
9728
- TokenFilter: TokenFilter,
9729
- CharFilter: CharFilter,
9730
- LexicalNormalizer: LexicalNormalizer,
9731
- Similarity: Similarity,
9732
- SemanticSettings: SemanticSettings,
9733
- SemanticConfiguration: SemanticConfiguration,
9734
- PrioritizedFields: PrioritizedFields,
9735
- SemanticField: SemanticField,
9736
- VectorSearch: VectorSearch,
9737
- VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
9738
- ListIndexesResult: ListIndexesResult,
9739
- GetIndexStatisticsResult: GetIndexStatisticsResult,
9740
10194
  AnalyzeRequest: AnalyzeRequest,
9741
10195
  AnalyzeResult: AnalyzeResult,
9742
10196
  AnalyzedTokenInfo: AnalyzedTokenInfo,
9743
- SearchAlias: SearchAlias,
9744
- ListAliasesResult: ListAliasesResult,
9745
- ServiceStatistics: ServiceStatistics,
9746
- ServiceCounters: ServiceCounters,
9747
- ResourceCounter: ResourceCounter,
9748
- ServiceLimits: ServiceLimits,
9749
- HnswParameters: HnswParameters,
9750
- DistanceScoringParameters: DistanceScoringParameters,
9751
- FreshnessScoringParameters: FreshnessScoringParameters,
9752
- MagnitudeScoringParameters: MagnitudeScoringParameters,
9753
- TagScoringParameters: TagScoringParameters,
10197
+ AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
10198
+ AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
10199
+ AzureMachineLearningSkill: AzureMachineLearningSkill,
10200
+ AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
10201
+ AzureOpenAIParameters: AzureOpenAIParameters,
10202
+ AzureOpenAIVectorizer: AzureOpenAIVectorizer,
10203
+ BM25Similarity: BM25Similarity,
10204
+ CharFilter: CharFilter,
10205
+ CjkBigramTokenFilter: CjkBigramTokenFilter,
10206
+ ClassicSimilarity: ClassicSimilarity,
10207
+ ClassicTokenizer: ClassicTokenizer,
10208
+ CognitiveServicesAccount: CognitiveServicesAccount,
10209
+ CognitiveServicesAccountKey: CognitiveServicesAccountKey,
10210
+ CommonGramTokenFilter: CommonGramTokenFilter,
10211
+ ConditionalSkill: ConditionalSkill,
10212
+ CorsOptions: CorsOptions,
10213
+ CustomAnalyzer: CustomAnalyzer,
9754
10214
  CustomEntity: CustomEntity,
9755
10215
  CustomEntityAlias: CustomEntityAlias,
9756
- SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
9757
- SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
9758
- HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
9759
- SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
9760
- SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
9761
- ConditionalSkill: ConditionalSkill,
9762
- KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
9763
- OcrSkill: OcrSkill,
9764
- ImageAnalysisSkill: ImageAnalysisSkill,
9765
- LanguageDetectionSkill: LanguageDetectionSkill,
9766
- ShaperSkill: ShaperSkill,
9767
- MergeSkill: MergeSkill,
9768
- EntityRecognitionSkill: EntityRecognitionSkill,
9769
- SentimentSkill: SentimentSkill,
9770
- SentimentSkillV3: SentimentSkillV3,
9771
- EntityLinkingSkill: EntityLinkingSkill,
9772
- EntityRecognitionSkillV3: EntityRecognitionSkillV3,
9773
- PIIDetectionSkill: PIIDetectionSkill,
9774
- SplitSkill: SplitSkill,
9775
10216
  CustomEntityLookupSkill: CustomEntityLookupSkill,
9776
- TextTranslationSkill: TextTranslationSkill,
9777
- DocumentExtractionSkill: DocumentExtractionSkill,
9778
- WebApiSkill: WebApiSkill,
9779
- AzureMachineLearningSkill: AzureMachineLearningSkill,
10217
+ CustomNormalizer: CustomNormalizer,
10218
+ CustomVectorizer: CustomVectorizer,
10219
+ CustomVectorizerParameters: CustomVectorizerParameters,
10220
+ DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10221
+ DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10222
+ DataSourceCredentials: DataSourceCredentials,
9780
10223
  DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
9781
- CognitiveServicesAccountKey: CognitiveServicesAccountKey,
9782
- SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
9783
- SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
9784
- DistanceScoringFunction: DistanceScoringFunction,
9785
- FreshnessScoringFunction: FreshnessScoringFunction,
9786
- MagnitudeScoringFunction: MagnitudeScoringFunction,
9787
- TagScoringFunction: TagScoringFunction,
9788
- CustomAnalyzer: CustomAnalyzer,
9789
- PatternAnalyzer: PatternAnalyzer,
9790
- LuceneStandardAnalyzer: LuceneStandardAnalyzer,
9791
- StopAnalyzer: StopAnalyzer,
9792
- ClassicTokenizer: ClassicTokenizer,
9793
- EdgeNGramTokenizer: EdgeNGramTokenizer,
9794
- KeywordTokenizer: KeywordTokenizer,
9795
- KeywordTokenizerV2: KeywordTokenizerV2,
9796
- MicrosoftLanguageTokenizer: MicrosoftLanguageTokenizer,
9797
- MicrosoftLanguageStemmingTokenizer: MicrosoftLanguageStemmingTokenizer,
9798
- NGramTokenizer: NGramTokenizer,
9799
- PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
9800
- PatternTokenizer: PatternTokenizer,
9801
- LuceneStandardTokenizer: LuceneStandardTokenizer,
9802
- LuceneStandardTokenizerV2: LuceneStandardTokenizerV2,
9803
- UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
9804
- AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
9805
- CjkBigramTokenFilter: CjkBigramTokenFilter,
9806
- CommonGramTokenFilter: CommonGramTokenFilter,
9807
10224
  DictionaryDecompounderTokenFilter: DictionaryDecompounderTokenFilter,
10225
+ DistanceScoringFunction: DistanceScoringFunction,
10226
+ DistanceScoringParameters: DistanceScoringParameters,
10227
+ DocumentExtractionSkill: DocumentExtractionSkill,
10228
+ DocumentKeysOrIds: DocumentKeysOrIds,
9808
10229
  EdgeNGramTokenFilter: EdgeNGramTokenFilter,
9809
10230
  EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
10231
+ EdgeNGramTokenizer: EdgeNGramTokenizer,
9810
10232
  ElisionTokenFilter: ElisionTokenFilter,
10233
+ EntityLinkingSkill: EntityLinkingSkill,
10234
+ EntityRecognitionSkill: EntityRecognitionSkill,
10235
+ EntityRecognitionSkillV3: EntityRecognitionSkillV3,
10236
+ ExhaustiveKnnParameters: ExhaustiveKnnParameters,
10237
+ ExhaustiveKnnVectorSearchAlgorithmConfiguration: ExhaustiveKnnVectorSearchAlgorithmConfiguration,
10238
+ FieldMapping: FieldMapping,
10239
+ FieldMappingFunction: FieldMappingFunction,
10240
+ FreshnessScoringFunction: FreshnessScoringFunction,
10241
+ FreshnessScoringParameters: FreshnessScoringParameters,
10242
+ GetIndexStatisticsResult: GetIndexStatisticsResult,
10243
+ HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
10244
+ HnswParameters: HnswParameters,
10245
+ HnswVectorSearchAlgorithmConfiguration: HnswVectorSearchAlgorithmConfiguration,
10246
+ ImageAnalysisSkill: ImageAnalysisSkill,
10247
+ IndexerExecutionResult: IndexerExecutionResult,
10248
+ IndexerState: IndexerState,
10249
+ IndexingParameters: IndexingParameters,
10250
+ IndexingParametersConfiguration: IndexingParametersConfiguration,
10251
+ IndexingSchedule: IndexingSchedule,
10252
+ InputFieldMappingEntry: InputFieldMappingEntry,
9811
10253
  KeepTokenFilter: KeepTokenFilter,
10254
+ KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
9812
10255
  KeywordMarkerTokenFilter: KeywordMarkerTokenFilter,
10256
+ KeywordTokenizer: KeywordTokenizer,
10257
+ KeywordTokenizerV2: KeywordTokenizerV2,
10258
+ LanguageDetectionSkill: LanguageDetectionSkill,
9813
10259
  LengthTokenFilter: LengthTokenFilter,
10260
+ LexicalAnalyzer: LexicalAnalyzer,
10261
+ LexicalNormalizer: LexicalNormalizer,
10262
+ LexicalTokenizer: LexicalTokenizer,
9814
10263
  LimitTokenFilter: LimitTokenFilter,
10264
+ ListAliasesResult: ListAliasesResult,
10265
+ ListDataSourcesResult: ListDataSourcesResult,
10266
+ ListIndexersResult: ListIndexersResult,
10267
+ ListIndexesResult: ListIndexesResult,
10268
+ ListSkillsetsResult: ListSkillsetsResult,
10269
+ ListSynonymMapsResult: ListSynonymMapsResult,
10270
+ LuceneStandardAnalyzer: LuceneStandardAnalyzer,
10271
+ LuceneStandardTokenizer: LuceneStandardTokenizer,
10272
+ LuceneStandardTokenizerV2: LuceneStandardTokenizerV2,
10273
+ MagnitudeScoringFunction: MagnitudeScoringFunction,
10274
+ MagnitudeScoringParameters: MagnitudeScoringParameters,
10275
+ MappingCharFilter: MappingCharFilter,
10276
+ MergeSkill: MergeSkill,
10277
+ MicrosoftLanguageStemmingTokenizer: MicrosoftLanguageStemmingTokenizer,
10278
+ MicrosoftLanguageTokenizer: MicrosoftLanguageTokenizer,
9815
10279
  NGramTokenFilter: NGramTokenFilter,
9816
10280
  NGramTokenFilterV2: NGramTokenFilterV2,
10281
+ NGramTokenizer: NGramTokenizer,
10282
+ NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
10283
+ OcrSkill: OcrSkill,
10284
+ OutputFieldMappingEntry: OutputFieldMappingEntry,
10285
+ PIIDetectionSkill: PIIDetectionSkill,
10286
+ PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
10287
+ PatternAnalyzer: PatternAnalyzer,
9817
10288
  PatternCaptureTokenFilter: PatternCaptureTokenFilter,
10289
+ PatternReplaceCharFilter: PatternReplaceCharFilter,
9818
10290
  PatternReplaceTokenFilter: PatternReplaceTokenFilter,
10291
+ PatternTokenizer: PatternTokenizer,
9819
10292
  PhoneticTokenFilter: PhoneticTokenFilter,
10293
+ PrioritizedFields: PrioritizedFields,
10294
+ ResourceCounter: ResourceCounter,
10295
+ ScoringFunction: ScoringFunction,
10296
+ ScoringProfile: ScoringProfile,
10297
+ SearchAlias: SearchAlias,
10298
+ SearchError: SearchError,
10299
+ SearchField: SearchField,
10300
+ SearchIndex: SearchIndex,
10301
+ SearchIndexer: SearchIndexer,
10302
+ SearchIndexerCache: SearchIndexerCache,
10303
+ SearchIndexerDataContainer: SearchIndexerDataContainer,
10304
+ SearchIndexerDataIdentity: SearchIndexerDataIdentity,
10305
+ SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
10306
+ SearchIndexerDataSource: SearchIndexerDataSource,
10307
+ SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
10308
+ SearchIndexerError: SearchIndexerError,
10309
+ SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
10310
+ SearchIndexerIndexProjections: SearchIndexerIndexProjections,
10311
+ SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
10312
+ SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
10313
+ SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
10314
+ SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
10315
+ SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
10316
+ SearchIndexerKnowledgeStoreParameters: SearchIndexerKnowledgeStoreParameters,
10317
+ SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
10318
+ SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
10319
+ SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
10320
+ SearchIndexerLimits: SearchIndexerLimits,
10321
+ SearchIndexerSkill: SearchIndexerSkill,
10322
+ SearchIndexerSkillset: SearchIndexerSkillset,
10323
+ SearchIndexerStatus: SearchIndexerStatus,
10324
+ SearchIndexerWarning: SearchIndexerWarning,
10325
+ SearchResourceEncryptionKey: SearchResourceEncryptionKey,
10326
+ SemanticConfiguration: SemanticConfiguration,
10327
+ SemanticField: SemanticField,
10328
+ SemanticSettings: SemanticSettings,
10329
+ SentimentSkill: SentimentSkill,
10330
+ SentimentSkillV3: SentimentSkillV3,
10331
+ ServiceCounters: ServiceCounters,
10332
+ ServiceLimits: ServiceLimits,
10333
+ ServiceStatistics: ServiceStatistics,
10334
+ ShaperSkill: ShaperSkill,
9820
10335
  ShingleTokenFilter: ShingleTokenFilter,
10336
+ Similarity: Similarity,
10337
+ SkillNames: SkillNames,
9821
10338
  SnowballTokenFilter: SnowballTokenFilter,
9822
- StemmerTokenFilter: StemmerTokenFilter,
10339
+ SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
10340
+ SplitSkill: SplitSkill,
10341
+ SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
9823
10342
  StemmerOverrideTokenFilter: StemmerOverrideTokenFilter,
10343
+ StemmerTokenFilter: StemmerTokenFilter,
10344
+ StopAnalyzer: StopAnalyzer,
9824
10345
  StopwordsTokenFilter: StopwordsTokenFilter,
10346
+ Suggester: Suggester,
10347
+ SynonymMap: SynonymMap,
9825
10348
  SynonymTokenFilter: SynonymTokenFilter,
10349
+ TagScoringFunction: TagScoringFunction,
10350
+ TagScoringParameters: TagScoringParameters,
10351
+ TextTranslationSkill: TextTranslationSkill,
10352
+ TextWeights: TextWeights,
10353
+ TokenFilter: TokenFilter,
9826
10354
  TruncateTokenFilter: TruncateTokenFilter,
10355
+ UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
9827
10356
  UniqueTokenFilter: UniqueTokenFilter,
10357
+ VectorSearch: VectorSearch,
10358
+ VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10359
+ VectorSearchProfile: VectorSearchProfile,
10360
+ VectorSearchVectorizer: VectorSearchVectorizer,
10361
+ WebApiSkill: WebApiSkill,
9828
10362
  WordDelimiterTokenFilter: WordDelimiterTokenFilter,
9829
- MappingCharFilter: MappingCharFilter,
9830
- PatternReplaceCharFilter: PatternReplaceCharFilter,
9831
- CustomNormalizer: CustomNormalizer,
9832
- ClassicSimilarity: ClassicSimilarity,
9833
- BM25Similarity: BM25Similarity,
9834
- HnswVectorSearchAlgorithmConfiguration: HnswVectorSearchAlgorithmConfiguration,
9835
- SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
9836
- SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
9837
10363
  discriminators: discriminators
9838
10364
  });
9839
10365
 
@@ -11207,7 +11733,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11207
11733
  const defaults = {
11208
11734
  requestContentType: "application/json; charset=utf-8"
11209
11735
  };
11210
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.2`;
11736
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
11211
11737
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11212
11738
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11213
11739
  : `${packageDetails}`;
@@ -11253,6 +11779,7 @@ const getServiceStatisticsOperationSpec = {
11253
11779
  };
11254
11780
 
11255
11781
  // Copyright (c) Microsoft Corporation.
11782
+ // Licensed under the MIT license.
11256
11783
  /**
11257
11784
  * Class to perform operations to manage
11258
11785
  * (create, update, list/delete)
@@ -11910,6 +12437,7 @@ class SearchIndexClient {
11910
12437
  }
11911
12438
 
11912
12439
  // Copyright (c) Microsoft Corporation.
12440
+ // Licensed under the MIT license.
11913
12441
  /**
11914
12442
  * Class to perform operations to manage
11915
12443
  * (create, update, list/delete)
@@ -12546,12 +13074,12 @@ function odata(strings, ...values) {
12546
13074
  * Code generated by Microsoft (R) AutoRest Code Generator.
12547
13075
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12548
13076
  */
12549
- /** Known values of {@link ApiVersion20230701Preview} that the service accepts. */
12550
- var KnownApiVersion20230701Preview$1;
12551
- (function (KnownApiVersion20230701Preview) {
12552
- /** Api Version '2023-07-01-Preview' */
12553
- KnownApiVersion20230701Preview["TwoThousandTwentyThree0701Preview"] = "2023-07-01-Preview";
12554
- })(KnownApiVersion20230701Preview$1 || (KnownApiVersion20230701Preview$1 = {}));
13077
+ /** Known values of {@link ApiVersion20231001Preview} that the service accepts. */
13078
+ var KnownApiVersion20231001Preview$1;
13079
+ (function (KnownApiVersion20231001Preview) {
13080
+ /** Api Version '2023-10-01-Preview' */
13081
+ KnownApiVersion20231001Preview["TwoThousandTwentyThree1001Preview"] = "2023-10-01-Preview";
13082
+ })(KnownApiVersion20231001Preview$1 || (KnownApiVersion20231001Preview$1 = {}));
12555
13083
  /** Known values of {@link SemanticErrorHandling} that the service accepts. */
12556
13084
  var KnownSemanticErrorHandling;
12557
13085
  (function (KnownSemanticErrorHandling) {
@@ -12764,6 +13292,22 @@ exports.KnownQueryCaptionType = void 0;
12764
13292
  /** Extracts captions from the matching documents that contain passages relevant to the search query. */
12765
13293
  KnownQueryCaptionType["Extractive"] = "extractive";
12766
13294
  })(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
13295
+ /** Known values of {@link VectorQueryKind} that the service accepts. */
13296
+ var KnownVectorQueryKind;
13297
+ (function (KnownVectorQueryKind) {
13298
+ /** Vector query where a raw vector value is provided. */
13299
+ KnownVectorQueryKind["Vector"] = "vector";
13300
+ /** Vector query where a text value that needs to be vectorized is provided. */
13301
+ KnownVectorQueryKind["$DO_NOT_NORMALIZE$_text"] = "text";
13302
+ })(KnownVectorQueryKind || (KnownVectorQueryKind = {}));
13303
+ /** Known values of {@link VectorFilterMode} that the service accepts. */
13304
+ var KnownVectorFilterMode;
13305
+ (function (KnownVectorFilterMode) {
13306
+ /** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */
13307
+ KnownVectorFilterMode["PostFilter"] = "postFilter";
13308
+ /** The filter will be applied before the search query. */
13309
+ KnownVectorFilterMode["PreFilter"] = "preFilter";
13310
+ })(KnownVectorFilterMode || (KnownVectorFilterMode = {}));
12767
13311
  /** Known values of {@link SemanticPartialResponseReason} that the service accepts. */
12768
13312
  var KnownSemanticPartialResponseReason;
12769
13313
  (function (KnownSemanticPartialResponseReason) {
@@ -12800,12 +13344,12 @@ var KnownSemanticFieldState;
12800
13344
  * Code generated by Microsoft (R) AutoRest Code Generator.
12801
13345
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12802
13346
  */
12803
- /** Known values of {@link ApiVersion20230701Preview} that the service accepts. */
12804
- var KnownApiVersion20230701Preview;
12805
- (function (KnownApiVersion20230701Preview) {
12806
- /** Api Version '2023-07-01-Preview' */
12807
- KnownApiVersion20230701Preview["TwoThousandTwentyThree0701Preview"] = "2023-07-01-Preview";
12808
- })(KnownApiVersion20230701Preview || (KnownApiVersion20230701Preview = {}));
13347
+ /** Known values of {@link ApiVersion20231001Preview} that the service accepts. */
13348
+ var KnownApiVersion20231001Preview;
13349
+ (function (KnownApiVersion20231001Preview) {
13350
+ /** Api Version '2023-10-01-Preview' */
13351
+ KnownApiVersion20231001Preview["TwoThousandTwentyThree1001Preview"] = "2023-10-01-Preview";
13352
+ })(KnownApiVersion20231001Preview || (KnownApiVersion20231001Preview = {}));
12809
13353
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
12810
13354
  exports.KnownSearchIndexerDataSourceType = void 0;
12811
13355
  (function (KnownSearchIndexerDataSourceType) {
@@ -12888,6 +13432,14 @@ exports.KnownIndexingMode = void 0;
12888
13432
  /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
12889
13433
  KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
12890
13434
  })(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
13435
+ /** Known values of {@link IndexProjectionMode} that the service accepts. */
13436
+ var KnownIndexProjectionMode;
13437
+ (function (KnownIndexProjectionMode) {
13438
+ /** The source document will be skipped from writing into the indexer's target index. */
13439
+ KnownIndexProjectionMode["SkipIndexingParentDocuments"] = "skipIndexingParentDocuments";
13440
+ /** The source document will be written into the indexer's target index. This is the default pattern. */
13441
+ KnownIndexProjectionMode["IncludeIndexingParentDocuments"] = "includeIndexingParentDocuments";
13442
+ })(KnownIndexProjectionMode || (KnownIndexProjectionMode = {}));
12891
13443
  /** Known values of {@link SearchFieldDataType} that the service accepts. */
12892
13444
  var KnownSearchFieldDataType;
12893
13445
  (function (KnownSearchFieldDataType) {
@@ -13114,6 +13666,22 @@ exports.KnownLexicalNormalizerName = void 0;
13114
13666
  /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
13115
13667
  KnownLexicalNormalizerName["Uppercase"] = "uppercase";
13116
13668
  })(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
13669
+ /** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
13670
+ var KnownVectorSearchAlgorithmKind;
13671
+ (function (KnownVectorSearchAlgorithmKind) {
13672
+ /** Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
13673
+ KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
13674
+ /** Exhaustive KNN algorithm which will perform brute-force search. */
13675
+ KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
13676
+ })(KnownVectorSearchAlgorithmKind || (KnownVectorSearchAlgorithmKind = {}));
13677
+ /** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */
13678
+ var KnownVectorSearchVectorizerKind;
13679
+ (function (KnownVectorSearchVectorizerKind) {
13680
+ /** Generate embeddings using an Azure Open AI service at query time. */
13681
+ KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
13682
+ /** Generate embeddings using a custom web endpoint at query time. */
13683
+ KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
13684
+ })(KnownVectorSearchVectorizerKind || (KnownVectorSearchVectorizerKind = {}));
13117
13685
  /** Known values of {@link TokenFilterName} that the service accepts. */
13118
13686
  exports.KnownTokenFilterName = void 0;
13119
13687
  (function (KnownTokenFilterName) {
@@ -14087,6 +14655,7 @@ exports.KnownRegexFlags = void 0;
14087
14655
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
14088
14656
 
14089
14657
  // Copyright (c) Microsoft Corporation.
14658
+ // Licensed under the MIT license.
14090
14659
  const readFileAsync = util.promisify(fs__namespace.readFile);
14091
14660
  /**
14092
14661
  * Helper method to create a SynonymMap object. This is a NodeJS only method.