@azure/search-documents 12.0.0-beta.3 → 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 +780 -217
  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 +72 -13
  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 +43 -6
  28. package/dist-esm/src/serviceUtils.js.map +1 -1
  29. package/package.json +9 -8
  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,35 +419,42 @@ const SearchRequest = {
419
419
  name: "String"
420
420
  }
421
421
  },
422
- vectors: {
423
- serializedName: "vectors",
422
+ vectorQueries: {
423
+ serializedName: "vectorQueries",
424
424
  type: {
425
425
  name: "Sequence",
426
426
  element: {
427
427
  type: {
428
428
  name: "Composite",
429
- className: "Vector"
429
+ className: "VectorQuery"
430
430
  }
431
431
  }
432
432
  }
433
+ },
434
+ vectorFilterMode: {
435
+ serializedName: "vectorFilterMode",
436
+ type: {
437
+ name: "String"
438
+ }
433
439
  }
434
440
  }
435
441
  }
436
442
  };
437
- const Vector = {
443
+ const VectorQuery = {
438
444
  type: {
439
445
  name: "Composite",
440
- className: "Vector",
446
+ className: "VectorQuery",
447
+ uberParent: "VectorQuery",
448
+ polymorphicDiscriminator: {
449
+ serializedName: "kind",
450
+ clientName: "kind"
451
+ },
441
452
  modelProperties: {
442
- value: {
443
- serializedName: "value",
453
+ kind: {
454
+ serializedName: "kind",
455
+ required: true,
444
456
  type: {
445
- name: "Sequence",
446
- element: {
447
- type: {
448
- name: "Number"
449
- }
450
- }
457
+ name: "String"
451
458
  }
452
459
  },
453
460
  kNearestNeighborsCount: {
@@ -461,6 +468,12 @@ const Vector = {
461
468
  type: {
462
469
  name: "String"
463
470
  }
471
+ },
472
+ exhaustive: {
473
+ serializedName: "exhaustive",
474
+ type: {
475
+ name: "Boolean"
476
+ }
464
477
  }
465
478
  }
466
479
  }
@@ -1011,31 +1024,74 @@ const AutocompleteRequest = {
1011
1024
  }
1012
1025
  }
1013
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
+ };
1014
1067
 
1015
1068
  var Mappers$1 = /*#__PURE__*/Object.freeze({
1016
1069
  __proto__: null,
1017
- SearchError: SearchError$1,
1018
- SearchDocumentsResult: SearchDocumentsResult,
1019
- FacetResult: FacetResult,
1020
1070
  AnswerResult: AnswerResult,
1021
- SearchRequest: SearchRequest,
1022
- Vector: Vector,
1023
- SearchResult: SearchResult,
1071
+ AutocompleteItem: AutocompleteItem,
1072
+ AutocompleteRequest: AutocompleteRequest,
1073
+ AutocompleteResult: AutocompleteResult,
1024
1074
  CaptionResult: CaptionResult,
1025
1075
  DocumentDebugInfo: DocumentDebugInfo,
1026
- SemanticDebugInfo: SemanticDebugInfo,
1027
- QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
1028
- QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
1029
- SuggestDocumentsResult: SuggestDocumentsResult,
1030
- SuggestResult: SuggestResult,
1031
- SuggestRequest: SuggestRequest,
1032
- IndexBatch: IndexBatch,
1076
+ FacetResult: FacetResult,
1033
1077
  IndexAction: IndexAction,
1078
+ IndexBatch: IndexBatch,
1034
1079
  IndexDocumentsResult: IndexDocumentsResult,
1035
1080
  IndexingResult: IndexingResult,
1036
- AutocompleteResult: AutocompleteResult,
1037
- AutocompleteItem: AutocompleteItem,
1038
- 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
1039
1095
  });
1040
1096
 
1041
1097
  /*
@@ -1220,6 +1276,15 @@ const scoringProfile = {
1220
1276
  }
1221
1277
  }
1222
1278
  };
1279
+ const semanticQuery = {
1280
+ parameterPath: ["options", "searchOptions", "semanticQuery"],
1281
+ mapper: {
1282
+ serializedName: "semanticQuery",
1283
+ type: {
1284
+ name: "String"
1285
+ }
1286
+ }
1287
+ };
1223
1288
  const semanticConfiguration = {
1224
1289
  parameterPath: ["options", "searchOptions", "semanticConfiguration"],
1225
1290
  mapper: {
@@ -1773,6 +1838,7 @@ const searchGetOperationSpec = {
1773
1838
  queryType,
1774
1839
  scoringParameters,
1775
1840
  scoringProfile,
1841
+ semanticQuery,
1776
1842
  semanticConfiguration,
1777
1843
  semanticErrorHandling,
1778
1844
  semanticMaxWaitInMilliseconds,
@@ -1953,7 +2019,7 @@ const autocompletePostOperationSpec = {
1953
2019
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1954
2020
  */
1955
2021
  /** @internal */
1956
- class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
2022
+ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.ExtendedServiceClient {
1957
2023
  /**
1958
2024
  * Initializes a new instance of the SearchClient class.
1959
2025
  * @param endpoint The endpoint URL of the search service.
@@ -1979,7 +2045,7 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
1979
2045
  const defaults = {
1980
2046
  requestContentType: "application/json; charset=utf-8"
1981
2047
  };
1982
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.3`;
2048
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
1983
2049
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1984
2050
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1985
2051
  : `${packageDetails}`;
@@ -1993,7 +2059,7 @@ class SearchClient$1 extends coreHttpCompat__namespace.ExtendedServiceClient {
1993
2059
  this.apiVersion = apiVersion;
1994
2060
  this.documents = new DocumentsImpl(this);
1995
2061
  }
1996
- }
2062
+ };
1997
2063
 
1998
2064
  // Copyright (c) Microsoft Corporation.
1999
2065
  // Licensed under the MIT license.
@@ -2016,12 +2082,14 @@ function createSearchApiKeyCredentialPolicy(credential) {
2016
2082
  }
2017
2083
 
2018
2084
  // Copyright (c) Microsoft Corporation.
2085
+ // Licensed under the MIT license.
2019
2086
  /**
2020
2087
  * The `@azure/logger` configuration for this package.
2021
2088
  */
2022
2089
  const logger = logger$1.createClientLogger("search");
2023
2090
 
2024
2091
  // Copyright (c) Microsoft Corporation.
2092
+ // Licensed under the MIT license.
2025
2093
  /**
2026
2094
  * Creates a tracing client using the global tracer.
2027
2095
  * @internal
@@ -2061,6 +2129,7 @@ class GeographyPoint {
2061
2129
  }
2062
2130
 
2063
2131
  // Copyright (c) Microsoft Corporation.
2132
+ // Licensed under the MIT license.
2064
2133
  const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/i;
2065
2134
  const GeoJSONPointTypeName = "Point";
2066
2135
  const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
@@ -2986,6 +3055,7 @@ exports.KnownAnalyzerNames = void 0;
2986
3055
  // END manually modified generated interfaces
2987
3056
 
2988
3057
  // Copyright (c) Microsoft Corporation.
3058
+ // Licensed under the MIT license.
2989
3059
  function convertSkillsToPublic(skills) {
2990
3060
  if (!skills) {
2991
3061
  return skills;
@@ -3279,9 +3349,46 @@ function generatedIndexToPublicIndex(generatedIndex) {
3279
3349
  fields: convertFieldsToPublic(generatedIndex.fields),
3280
3350
  similarity: convertSimilarityToPublic(generatedIndex.similarity),
3281
3351
  semanticSettings: generatedIndex.semanticSettings,
3282
- vectorSearch: generatedIndex.vectorSearch,
3352
+ vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),
3283
3353
  };
3284
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
+ }
3285
3392
  function generatedSearchResultToPublicSearchResult(results) {
3286
3393
  const returnValues = results.map((result) => {
3287
3394
  const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
@@ -3370,8 +3477,8 @@ function generatedSearchIndexerToPublicSearchIndexer(indexer) {
3370
3477
  return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
3371
3478
  }
3372
3479
  function generatedSearchRequestToPublicSearchRequest(request) {
3373
- const { semanticErrorHandling, debug, vectors } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vectors"]);
3374
- const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vectors: vectors === null || vectors === void 0 ? void 0 : vectors.map((convertVectorToPublic)).filter((v) => v !== undefined) }, 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);
3375
3482
  return publicRequest;
3376
3483
  }
3377
3484
  function publicDataSourceToGeneratedDataSource(dataSource) {
@@ -3433,7 +3540,7 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
3433
3540
  }
3434
3541
  return dataDeletionDetectionPolicy;
3435
3542
  }
3436
- function convertVectorToPublic(vector) {
3543
+ function convertVectorQueryToPublic(vector) {
3437
3544
  var _a;
3438
3545
  if (!vector) {
3439
3546
  return vector;
@@ -3459,7 +3566,7 @@ function getRandomIntegerInclusive(min, max) {
3459
3566
  function delay(timeInMs) {
3460
3567
  return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
3461
3568
  }
3462
- const defaultServiceVersion = "2023-07-01-Preview";
3569
+ const defaultServiceVersion = "2023-10-01-Preview";
3463
3570
  function convertKnowledgeStoreToPublic(knowledgeStore) {
3464
3571
  if (!knowledgeStore) {
3465
3572
  return knowledgeStore;
@@ -3495,6 +3602,7 @@ exports.KnownSearchAudience = void 0;
3495
3602
  })(exports.KnownSearchAudience || (exports.KnownSearchAudience = {}));
3496
3603
 
3497
3604
  // Copyright (c) Microsoft Corporation.
3605
+ // Licensed under the MIT license.
3498
3606
  /**
3499
3607
  * Class used to perform operations against a search index,
3500
3608
  * including querying documents in the index as well as
@@ -3668,8 +3776,8 @@ class SearchClient {
3668
3776
  }
3669
3777
  }
3670
3778
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
3671
- const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectors, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vectors", "answers", "semanticErrorHandlingMode", "debugMode"]);
3672
- 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, vectors: vectors === null || vectors === void 0 ? void 0 : vectors.map(this.convertVector.bind(this)), 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 });
3673
3781
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
3674
3782
  try {
3675
3783
  const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
@@ -4049,7 +4157,7 @@ class SearchClient {
4049
4157
  }
4050
4158
  return select;
4051
4159
  }
4052
- convertVectorFields(fields) {
4160
+ convertVectorQueryFields(fields) {
4053
4161
  if (fields) {
4054
4162
  return fields.join(",");
4055
4163
  }
@@ -4093,15 +4201,16 @@ class SearchClient {
4093
4201
  }
4094
4202
  return output;
4095
4203
  }
4096
- convertVector(vector) {
4097
- if (!vector) {
4098
- return vector;
4204
+ convertVectorQuery(vectorQuery) {
4205
+ if (!vectorQuery) {
4206
+ return vectorQuery;
4099
4207
  }
4100
- 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) });
4101
4209
  }
4102
4210
  }
4103
4211
 
4104
4212
  // Copyright (c) Microsoft Corporation.
4213
+ // Licensed under the MIT license.
4105
4214
  /**
4106
4215
  * Default Batch Size
4107
4216
  */
@@ -4135,7 +4244,7 @@ class SearchIndexingBufferedSender {
4135
4244
  /**
4136
4245
  * Event emitter/publisher used in the Buffered Sender
4137
4246
  */
4138
- this.emitter = new EventEmitter__default["default"]();
4247
+ this.emitter = new EventEmitter();
4139
4248
  this.client = client;
4140
4249
  this.documentKeyRetriever = documentKeyRetriever;
4141
4250
  // General Configuration properties
@@ -5486,6 +5595,13 @@ const SearchIndexerSkillset = {
5486
5595
  className: "SearchIndexerKnowledgeStore"
5487
5596
  }
5488
5597
  },
5598
+ indexProjections: {
5599
+ serializedName: "indexProjections",
5600
+ type: {
5601
+ name: "Composite",
5602
+ className: "SearchIndexerIndexProjections"
5603
+ }
5604
+ },
5489
5605
  etag: {
5490
5606
  serializedName: "@odata\\.etag",
5491
5607
  type: {
@@ -5683,6 +5799,13 @@ const SearchIndexerKnowledgeStore = {
5683
5799
  name: "Composite",
5684
5800
  className: "SearchIndexerDataIdentity"
5685
5801
  }
5802
+ },
5803
+ parameters: {
5804
+ serializedName: "parameters",
5805
+ type: {
5806
+ name: "Composite",
5807
+ className: "SearchIndexerKnowledgeStoreParameters"
5808
+ }
5686
5809
  }
5687
5810
  }
5688
5811
  }
@@ -5775,6 +5898,107 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
5775
5898
  }
5776
5899
  }
5777
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
+ };
5778
6002
  const ListSkillsetsResult = {
5779
6003
  type: {
5780
6004
  name: "Composite",
@@ -6134,8 +6358,8 @@ const SearchField = {
6134
6358
  name: "Number"
6135
6359
  }
6136
6360
  },
6137
- vectorSearchConfiguration: {
6138
- serializedName: "vectorSearchConfiguration",
6361
+ vectorSearchProfile: {
6362
+ serializedName: "vectorSearchProfile",
6139
6363
  nullable: true,
6140
6364
  type: {
6141
6365
  name: "String"
@@ -6594,8 +6818,20 @@ const VectorSearch = {
6594
6818
  name: "Composite",
6595
6819
  className: "VectorSearch",
6596
6820
  modelProperties: {
6597
- algorithmConfigurations: {
6598
- 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",
6599
6835
  type: {
6600
6836
  name: "Sequence",
6601
6837
  element: {
@@ -6605,6 +6841,46 @@ const VectorSearch = {
6605
6841
  }
6606
6842
  }
6607
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
+ }
6608
6884
  }
6609
6885
  }
6610
6886
  }
@@ -6636,28 +6912,55 @@ const VectorSearchAlgorithmConfiguration = {
6636
6912
  }
6637
6913
  }
6638
6914
  };
6639
- const ListIndexesResult = {
6915
+ const VectorSearchVectorizer = {
6640
6916
  type: {
6641
6917
  name: "Composite",
6642
- className: "ListIndexesResult",
6918
+ className: "VectorSearchVectorizer",
6919
+ uberParent: "VectorSearchVectorizer",
6920
+ polymorphicDiscriminator: {
6921
+ serializedName: "kind",
6922
+ clientName: "kind"
6923
+ },
6643
6924
  modelProperties: {
6644
- indexes: {
6645
- serializedName: "value",
6925
+ name: {
6926
+ serializedName: "name",
6646
6927
  required: true,
6647
- readOnly: true,
6648
6928
  type: {
6649
- name: "Sequence",
6650
- element: {
6651
- type: {
6652
- name: "Composite",
6653
- className: "SearchIndex"
6654
- }
6655
- }
6929
+ name: "String"
6656
6930
  }
6657
- }
6658
- }
6659
- }
6660
- };
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: {
6955
+ name: "Composite",
6956
+ className: "SearchIndex"
6957
+ }
6958
+ }
6959
+ }
6960
+ }
6961
+ }
6962
+ }
6963
+ };
6661
6964
  const GetIndexStatisticsResult = {
6662
6965
  type: {
6663
6966
  name: "Composite",
@@ -6681,6 +6984,7 @@ const GetIndexStatisticsResult = {
6681
6984
  },
6682
6985
  vectorIndexSize: {
6683
6986
  serializedName: "vectorIndexSize",
6987
+ required: true,
6684
6988
  readOnly: true,
6685
6989
  type: {
6686
6990
  name: "Number"
@@ -7062,6 +7366,101 @@ const HnswParameters = {
7062
7366
  }
7063
7367
  }
7064
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
+ };
7065
7464
  const DistanceScoringParameters = {
7066
7465
  type: {
7067
7466
  name: "Composite",
@@ -7348,6 +7747,16 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
7348
7747
  } })
7349
7748
  }
7350
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
+ };
7351
7760
  const ConditionalSkill = {
7352
7761
  serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
7353
7762
  type: {
@@ -7739,6 +8148,18 @@ const SplitSkill = {
7739
8148
  type: {
7740
8149
  name: "Number"
7741
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
+ }
7742
8163
  } })
7743
8164
  }
7744
8165
  };
@@ -7952,6 +8373,37 @@ const AzureMachineLearningSkill = {
7952
8373
  } })
7953
8374
  }
7954
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
+ };
7955
8407
  const DefaultCognitiveServicesAccount = {
7956
8408
  serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
7957
8409
  type: {
@@ -9576,6 +10028,54 @@ const HnswVectorSearchAlgorithmConfiguration = {
9576
10028
  } })
9577
10029
  }
9578
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
+ };
9579
10079
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
9580
10080
  type: {
9581
10081
  name: "Composite",
@@ -9604,11 +10104,13 @@ let discriminators = {
9604
10104
  LexicalNormalizer: LexicalNormalizer,
9605
10105
  Similarity: Similarity,
9606
10106
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10107
+ VectorSearchVectorizer: VectorSearchVectorizer,
9607
10108
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
9608
10109
  "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
9609
10110
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
9610
10111
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
9611
10112
  "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
10113
+ "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
9612
10114
  "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
9613
10115
  "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
9614
10116
  "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
@@ -9628,6 +10130,7 @@ let discriminators = {
9628
10130
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
9629
10131
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
9630
10132
  "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
10133
+ "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
9631
10134
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
9632
10135
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
9633
10136
  "ScoringFunction.distance": DistanceScoringFunction,
@@ -9680,166 +10183,183 @@ let discriminators = {
9680
10183
  "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
9681
10184
  "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
9682
10185
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
9683
- "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration
10186
+ "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration,
10187
+ "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration,
10188
+ "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
10189
+ "VectorSearchVectorizer.customWebApi": CustomVectorizer
9684
10190
  };
9685
10191
 
9686
10192
  var Mappers = /*#__PURE__*/Object.freeze({
9687
10193
  __proto__: null,
9688
- SearchIndexerDataSource: SearchIndexerDataSource,
9689
- DataSourceCredentials: DataSourceCredentials,
9690
- SearchIndexerDataContainer: SearchIndexerDataContainer,
9691
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
9692
- DataChangeDetectionPolicy: DataChangeDetectionPolicy,
9693
- DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
9694
- SearchResourceEncryptionKey: SearchResourceEncryptionKey,
9695
- AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
9696
- SearchError: SearchError,
9697
- ListDataSourcesResult: ListDataSourcesResult,
9698
- DocumentKeysOrIds: DocumentKeysOrIds,
9699
- SearchIndexer: SearchIndexer,
9700
- IndexingSchedule: IndexingSchedule,
9701
- IndexingParameters: IndexingParameters,
9702
- IndexingParametersConfiguration: IndexingParametersConfiguration,
9703
- FieldMapping: FieldMapping,
9704
- FieldMappingFunction: FieldMappingFunction,
9705
- SearchIndexerCache: SearchIndexerCache,
9706
- ListIndexersResult: ListIndexersResult,
9707
- SearchIndexerStatus: SearchIndexerStatus,
9708
- IndexerExecutionResult: IndexerExecutionResult,
9709
- IndexerState: IndexerState,
9710
- SearchIndexerError: SearchIndexerError,
9711
- SearchIndexerWarning: SearchIndexerWarning,
9712
- SearchIndexerLimits: SearchIndexerLimits,
9713
- SearchIndexerSkillset: SearchIndexerSkillset,
9714
- SearchIndexerSkill: SearchIndexerSkill,
9715
- InputFieldMappingEntry: InputFieldMappingEntry,
9716
- OutputFieldMappingEntry: OutputFieldMappingEntry,
9717
- CognitiveServicesAccount: CognitiveServicesAccount,
9718
- SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
9719
- SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
9720
- SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
9721
- ListSkillsetsResult: ListSkillsetsResult,
9722
- SkillNames: SkillNames,
9723
- SynonymMap: SynonymMap,
9724
- ListSynonymMapsResult: ListSynonymMapsResult,
9725
- SearchIndex: SearchIndex,
9726
- SearchField: SearchField,
9727
- ScoringProfile: ScoringProfile,
9728
- TextWeights: TextWeights,
9729
- ScoringFunction: ScoringFunction,
9730
- CorsOptions: CorsOptions,
9731
- Suggester: Suggester,
9732
- LexicalAnalyzer: LexicalAnalyzer,
9733
- LexicalTokenizer: LexicalTokenizer,
9734
- TokenFilter: TokenFilter,
9735
- CharFilter: CharFilter,
9736
- LexicalNormalizer: LexicalNormalizer,
9737
- Similarity: Similarity,
9738
- SemanticSettings: SemanticSettings,
9739
- SemanticConfiguration: SemanticConfiguration,
9740
- PrioritizedFields: PrioritizedFields,
9741
- SemanticField: SemanticField,
9742
- VectorSearch: VectorSearch,
9743
- VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
9744
- ListIndexesResult: ListIndexesResult,
9745
- GetIndexStatisticsResult: GetIndexStatisticsResult,
9746
10194
  AnalyzeRequest: AnalyzeRequest,
9747
10195
  AnalyzeResult: AnalyzeResult,
9748
10196
  AnalyzedTokenInfo: AnalyzedTokenInfo,
9749
- SearchAlias: SearchAlias,
9750
- ListAliasesResult: ListAliasesResult,
9751
- ServiceStatistics: ServiceStatistics,
9752
- ServiceCounters: ServiceCounters,
9753
- ResourceCounter: ResourceCounter,
9754
- ServiceLimits: ServiceLimits,
9755
- HnswParameters: HnswParameters,
9756
- DistanceScoringParameters: DistanceScoringParameters,
9757
- FreshnessScoringParameters: FreshnessScoringParameters,
9758
- MagnitudeScoringParameters: MagnitudeScoringParameters,
9759
- 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,
9760
10214
  CustomEntity: CustomEntity,
9761
10215
  CustomEntityAlias: CustomEntityAlias,
9762
- SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
9763
- SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
9764
- HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
9765
- SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
9766
- SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
9767
- ConditionalSkill: ConditionalSkill,
9768
- KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
9769
- OcrSkill: OcrSkill,
9770
- ImageAnalysisSkill: ImageAnalysisSkill,
9771
- LanguageDetectionSkill: LanguageDetectionSkill,
9772
- ShaperSkill: ShaperSkill,
9773
- MergeSkill: MergeSkill,
9774
- EntityRecognitionSkill: EntityRecognitionSkill,
9775
- SentimentSkill: SentimentSkill,
9776
- SentimentSkillV3: SentimentSkillV3,
9777
- EntityLinkingSkill: EntityLinkingSkill,
9778
- EntityRecognitionSkillV3: EntityRecognitionSkillV3,
9779
- PIIDetectionSkill: PIIDetectionSkill,
9780
- SplitSkill: SplitSkill,
9781
10216
  CustomEntityLookupSkill: CustomEntityLookupSkill,
9782
- TextTranslationSkill: TextTranslationSkill,
9783
- DocumentExtractionSkill: DocumentExtractionSkill,
9784
- WebApiSkill: WebApiSkill,
9785
- AzureMachineLearningSkill: AzureMachineLearningSkill,
10217
+ CustomNormalizer: CustomNormalizer,
10218
+ CustomVectorizer: CustomVectorizer,
10219
+ CustomVectorizerParameters: CustomVectorizerParameters,
10220
+ DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10221
+ DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10222
+ DataSourceCredentials: DataSourceCredentials,
9786
10223
  DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
9787
- CognitiveServicesAccountKey: CognitiveServicesAccountKey,
9788
- SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
9789
- SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
9790
- DistanceScoringFunction: DistanceScoringFunction,
9791
- FreshnessScoringFunction: FreshnessScoringFunction,
9792
- MagnitudeScoringFunction: MagnitudeScoringFunction,
9793
- TagScoringFunction: TagScoringFunction,
9794
- CustomAnalyzer: CustomAnalyzer,
9795
- PatternAnalyzer: PatternAnalyzer,
9796
- LuceneStandardAnalyzer: LuceneStandardAnalyzer,
9797
- StopAnalyzer: StopAnalyzer,
9798
- ClassicTokenizer: ClassicTokenizer,
9799
- EdgeNGramTokenizer: EdgeNGramTokenizer,
9800
- KeywordTokenizer: KeywordTokenizer,
9801
- KeywordTokenizerV2: KeywordTokenizerV2,
9802
- MicrosoftLanguageTokenizer: MicrosoftLanguageTokenizer,
9803
- MicrosoftLanguageStemmingTokenizer: MicrosoftLanguageStemmingTokenizer,
9804
- NGramTokenizer: NGramTokenizer,
9805
- PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
9806
- PatternTokenizer: PatternTokenizer,
9807
- LuceneStandardTokenizer: LuceneStandardTokenizer,
9808
- LuceneStandardTokenizerV2: LuceneStandardTokenizerV2,
9809
- UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
9810
- AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
9811
- CjkBigramTokenFilter: CjkBigramTokenFilter,
9812
- CommonGramTokenFilter: CommonGramTokenFilter,
9813
10224
  DictionaryDecompounderTokenFilter: DictionaryDecompounderTokenFilter,
10225
+ DistanceScoringFunction: DistanceScoringFunction,
10226
+ DistanceScoringParameters: DistanceScoringParameters,
10227
+ DocumentExtractionSkill: DocumentExtractionSkill,
10228
+ DocumentKeysOrIds: DocumentKeysOrIds,
9814
10229
  EdgeNGramTokenFilter: EdgeNGramTokenFilter,
9815
10230
  EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
10231
+ EdgeNGramTokenizer: EdgeNGramTokenizer,
9816
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,
9817
10253
  KeepTokenFilter: KeepTokenFilter,
10254
+ KeyPhraseExtractionSkill: KeyPhraseExtractionSkill,
9818
10255
  KeywordMarkerTokenFilter: KeywordMarkerTokenFilter,
10256
+ KeywordTokenizer: KeywordTokenizer,
10257
+ KeywordTokenizerV2: KeywordTokenizerV2,
10258
+ LanguageDetectionSkill: LanguageDetectionSkill,
9819
10259
  LengthTokenFilter: LengthTokenFilter,
10260
+ LexicalAnalyzer: LexicalAnalyzer,
10261
+ LexicalNormalizer: LexicalNormalizer,
10262
+ LexicalTokenizer: LexicalTokenizer,
9820
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,
9821
10279
  NGramTokenFilter: NGramTokenFilter,
9822
10280
  NGramTokenFilterV2: NGramTokenFilterV2,
10281
+ NGramTokenizer: NGramTokenizer,
10282
+ NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
10283
+ OcrSkill: OcrSkill,
10284
+ OutputFieldMappingEntry: OutputFieldMappingEntry,
10285
+ PIIDetectionSkill: PIIDetectionSkill,
10286
+ PathHierarchyTokenizerV2: PathHierarchyTokenizerV2,
10287
+ PatternAnalyzer: PatternAnalyzer,
9823
10288
  PatternCaptureTokenFilter: PatternCaptureTokenFilter,
10289
+ PatternReplaceCharFilter: PatternReplaceCharFilter,
9824
10290
  PatternReplaceTokenFilter: PatternReplaceTokenFilter,
10291
+ PatternTokenizer: PatternTokenizer,
9825
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,
9826
10335
  ShingleTokenFilter: ShingleTokenFilter,
10336
+ Similarity: Similarity,
10337
+ SkillNames: SkillNames,
9827
10338
  SnowballTokenFilter: SnowballTokenFilter,
9828
- StemmerTokenFilter: StemmerTokenFilter,
10339
+ SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
10340
+ SplitSkill: SplitSkill,
10341
+ SqlIntegratedChangeTrackingPolicy: SqlIntegratedChangeTrackingPolicy,
9829
10342
  StemmerOverrideTokenFilter: StemmerOverrideTokenFilter,
10343
+ StemmerTokenFilter: StemmerTokenFilter,
10344
+ StopAnalyzer: StopAnalyzer,
9830
10345
  StopwordsTokenFilter: StopwordsTokenFilter,
10346
+ Suggester: Suggester,
10347
+ SynonymMap: SynonymMap,
9831
10348
  SynonymTokenFilter: SynonymTokenFilter,
10349
+ TagScoringFunction: TagScoringFunction,
10350
+ TagScoringParameters: TagScoringParameters,
10351
+ TextTranslationSkill: TextTranslationSkill,
10352
+ TextWeights: TextWeights,
10353
+ TokenFilter: TokenFilter,
9832
10354
  TruncateTokenFilter: TruncateTokenFilter,
10355
+ UaxUrlEmailTokenizer: UaxUrlEmailTokenizer,
9833
10356
  UniqueTokenFilter: UniqueTokenFilter,
10357
+ VectorSearch: VectorSearch,
10358
+ VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10359
+ VectorSearchProfile: VectorSearchProfile,
10360
+ VectorSearchVectorizer: VectorSearchVectorizer,
10361
+ WebApiSkill: WebApiSkill,
9834
10362
  WordDelimiterTokenFilter: WordDelimiterTokenFilter,
9835
- MappingCharFilter: MappingCharFilter,
9836
- PatternReplaceCharFilter: PatternReplaceCharFilter,
9837
- CustomNormalizer: CustomNormalizer,
9838
- ClassicSimilarity: ClassicSimilarity,
9839
- BM25Similarity: BM25Similarity,
9840
- HnswVectorSearchAlgorithmConfiguration: HnswVectorSearchAlgorithmConfiguration,
9841
- SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
9842
- SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
9843
10363
  discriminators: discriminators
9844
10364
  });
9845
10365
 
@@ -11213,7 +11733,7 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11213
11733
  const defaults = {
11214
11734
  requestContentType: "application/json; charset=utf-8"
11215
11735
  };
11216
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.3`;
11736
+ const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
11217
11737
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11218
11738
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11219
11739
  : `${packageDetails}`;
@@ -11259,6 +11779,7 @@ const getServiceStatisticsOperationSpec = {
11259
11779
  };
11260
11780
 
11261
11781
  // Copyright (c) Microsoft Corporation.
11782
+ // Licensed under the MIT license.
11262
11783
  /**
11263
11784
  * Class to perform operations to manage
11264
11785
  * (create, update, list/delete)
@@ -11916,6 +12437,7 @@ class SearchIndexClient {
11916
12437
  }
11917
12438
 
11918
12439
  // Copyright (c) Microsoft Corporation.
12440
+ // Licensed under the MIT license.
11919
12441
  /**
11920
12442
  * Class to perform operations to manage
11921
12443
  * (create, update, list/delete)
@@ -12552,12 +13074,12 @@ function odata(strings, ...values) {
12552
13074
  * Code generated by Microsoft (R) AutoRest Code Generator.
12553
13075
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12554
13076
  */
12555
- /** Known values of {@link ApiVersion20230701Preview} that the service accepts. */
12556
- var KnownApiVersion20230701Preview$1;
12557
- (function (KnownApiVersion20230701Preview) {
12558
- /** Api Version '2023-07-01-Preview' */
12559
- KnownApiVersion20230701Preview["TwoThousandTwentyThree0701Preview"] = "2023-07-01-Preview";
12560
- })(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 = {}));
12561
13083
  /** Known values of {@link SemanticErrorHandling} that the service accepts. */
12562
13084
  var KnownSemanticErrorHandling;
12563
13085
  (function (KnownSemanticErrorHandling) {
@@ -12770,6 +13292,22 @@ exports.KnownQueryCaptionType = void 0;
12770
13292
  /** Extracts captions from the matching documents that contain passages relevant to the search query. */
12771
13293
  KnownQueryCaptionType["Extractive"] = "extractive";
12772
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 = {}));
12773
13311
  /** Known values of {@link SemanticPartialResponseReason} that the service accepts. */
12774
13312
  var KnownSemanticPartialResponseReason;
12775
13313
  (function (KnownSemanticPartialResponseReason) {
@@ -12806,12 +13344,12 @@ var KnownSemanticFieldState;
12806
13344
  * Code generated by Microsoft (R) AutoRest Code Generator.
12807
13345
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
12808
13346
  */
12809
- /** Known values of {@link ApiVersion20230701Preview} that the service accepts. */
12810
- var KnownApiVersion20230701Preview;
12811
- (function (KnownApiVersion20230701Preview) {
12812
- /** Api Version '2023-07-01-Preview' */
12813
- KnownApiVersion20230701Preview["TwoThousandTwentyThree0701Preview"] = "2023-07-01-Preview";
12814
- })(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 = {}));
12815
13353
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
12816
13354
  exports.KnownSearchIndexerDataSourceType = void 0;
12817
13355
  (function (KnownSearchIndexerDataSourceType) {
@@ -12894,6 +13432,14 @@ exports.KnownIndexingMode = void 0;
12894
13432
  /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
12895
13433
  KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
12896
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 = {}));
12897
13443
  /** Known values of {@link SearchFieldDataType} that the service accepts. */
12898
13444
  var KnownSearchFieldDataType;
12899
13445
  (function (KnownSearchFieldDataType) {
@@ -13120,6 +13666,22 @@ exports.KnownLexicalNormalizerName = void 0;
13120
13666
  /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
13121
13667
  KnownLexicalNormalizerName["Uppercase"] = "uppercase";
13122
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 = {}));
13123
13685
  /** Known values of {@link TokenFilterName} that the service accepts. */
13124
13686
  exports.KnownTokenFilterName = void 0;
13125
13687
  (function (KnownTokenFilterName) {
@@ -14093,6 +14655,7 @@ exports.KnownRegexFlags = void 0;
14093
14655
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
14094
14656
 
14095
14657
  // Copyright (c) Microsoft Corporation.
14658
+ // Licensed under the MIT license.
14096
14659
  const readFileAsync = util.promisify(fs__namespace.readFile);
14097
14660
  /**
14098
14661
  * Helper method to create a SynonymMap object. This is a NodeJS only method.