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

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 (54) hide show
  1. package/dist/index.js +579 -2392
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/constants.js +1 -1
  4. package/dist-esm/src/constants.js.map +1 -1
  5. package/dist-esm/src/generated/data/models/index.js +26 -226
  6. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  7. package/dist-esm/src/generated/data/models/mappers.js +49 -222
  8. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  9. package/dist-esm/src/generated/data/models/parameters.js +38 -89
  10. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  11. package/dist-esm/src/generated/data/operations/documents.js +5 -10
  12. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  13. package/dist-esm/src/generated/data/searchClient.js +28 -2
  14. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  15. package/dist-esm/src/generated/service/models/index.js +158 -181
  16. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  17. package/dist-esm/src/generated/service/models/mappers.js +25 -800
  18. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  19. package/dist-esm/src/generated/service/models/parameters.js +1 -51
  20. package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
  21. package/dist-esm/src/generated/service/operations/dataSources.js +1 -4
  22. package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
  23. package/dist-esm/src/generated/service/operations/index.js +0 -1
  24. package/dist-esm/src/generated/service/operations/index.js.map +1 -1
  25. package/dist-esm/src/generated/service/operations/indexers.js +1 -29
  26. package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
  27. package/dist-esm/src/generated/service/operations/skillsets.js +1 -30
  28. package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
  29. package/dist-esm/src/generated/service/operationsInterfaces/index.js +0 -1
  30. package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -1
  31. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
  32. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
  33. package/dist-esm/src/generated/service/searchServiceClient.js +29 -4
  34. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  35. package/dist-esm/src/index.js +2 -3
  36. package/dist-esm/src/index.js.map +1 -1
  37. package/dist-esm/src/indexDocumentsBatch.js.map +1 -1
  38. package/dist-esm/src/indexModels.js.map +1 -1
  39. package/dist-esm/src/searchClient.js +29 -26
  40. package/dist-esm/src/searchClient.js.map +1 -1
  41. package/dist-esm/src/searchIndexClient.js +11 -174
  42. package/dist-esm/src/searchIndexClient.js.map +1 -1
  43. package/dist-esm/src/searchIndexerClient.js +3 -49
  44. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  45. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  46. package/dist-esm/src/serviceModels.js.map +1 -1
  47. package/dist-esm/src/serviceUtils.js +31 -99
  48. package/dist-esm/src/serviceUtils.js.map +1 -1
  49. package/package.json +7 -7
  50. package/types/search-documents.d.ts +735 -2682
  51. package/dist-esm/src/generated/service/operations/aliases.js +0 -160
  52. package/dist-esm/src/generated/service/operations/aliases.js.map +0 -1
  53. package/dist-esm/src/generated/service/operationsInterfaces/aliases.js +0 -9
  54. package/dist-esm/src/generated/service/operationsInterfaces/aliases.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var tslib = require('tslib');
4
6
  var coreRestPipeline = require('@azure/core-rest-pipeline');
5
7
  var coreHttpCompat = require('@azure/core-http-compat');
@@ -116,7 +118,7 @@ const SearchDocumentsResult = {
116
118
  element: {
117
119
  type: {
118
120
  name: "Composite",
119
- className: "AnswerResult"
121
+ className: "QueryAnswerResult"
120
122
  }
121
123
  }
122
124
  }
@@ -128,20 +130,6 @@ const SearchDocumentsResult = {
128
130
  className: "SearchRequest"
129
131
  }
130
132
  },
131
- semanticPartialResponseReason: {
132
- serializedName: "@search\\.semanticPartialResponseReason",
133
- readOnly: true,
134
- type: {
135
- name: "String"
136
- }
137
- },
138
- semanticPartialResponseType: {
139
- serializedName: "@search\\.semanticPartialResponseType",
140
- readOnly: true,
141
- type: {
142
- name: "String"
143
- }
144
- },
145
133
  results: {
146
134
  serializedName: "value",
147
135
  required: true,
@@ -162,6 +150,20 @@ const SearchDocumentsResult = {
162
150
  type: {
163
151
  name: "String"
164
152
  }
153
+ },
154
+ semanticPartialResponseReason: {
155
+ serializedName: "@search\\.semanticPartialResponseReason",
156
+ readOnly: true,
157
+ type: {
158
+ name: "String"
159
+ }
160
+ },
161
+ semanticPartialResponseType: {
162
+ serializedName: "@search\\.semanticPartialResponseType",
163
+ readOnly: true,
164
+ type: {
165
+ name: "String"
166
+ }
165
167
  }
166
168
  }
167
169
  }
@@ -182,10 +184,10 @@ const FacetResult = {
182
184
  }
183
185
  }
184
186
  };
185
- const AnswerResult = {
187
+ const QueryAnswerResult = {
186
188
  type: {
187
189
  name: "Composite",
188
- className: "AnswerResult",
190
+ className: "QueryAnswerResult",
189
191
  additionalProperties: { type: { name: "Object" } },
190
192
  modelProperties: {
191
193
  score: {
@@ -318,40 +320,6 @@ const SearchRequest = {
318
320
  name: "String"
319
321
  }
320
322
  },
321
- semanticQuery: {
322
- serializedName: "semanticQuery",
323
- type: {
324
- name: "String"
325
- }
326
- },
327
- semanticConfiguration: {
328
- serializedName: "semanticConfiguration",
329
- type: {
330
- name: "String"
331
- }
332
- },
333
- semanticErrorHandling: {
334
- serializedName: "semanticErrorHandling",
335
- type: {
336
- name: "String"
337
- }
338
- },
339
- semanticMaxWaitInMilliseconds: {
340
- constraints: {
341
- InclusiveMinimum: 700
342
- },
343
- serializedName: "semanticMaxWaitInMilliseconds",
344
- nullable: true,
345
- type: {
346
- name: "Number"
347
- }
348
- },
349
- debug: {
350
- serializedName: "debug",
351
- type: {
352
- name: "String"
353
- }
354
- },
355
323
  searchText: {
356
324
  serializedName: "search",
357
325
  type: {
@@ -371,50 +339,54 @@ const SearchRequest = {
371
339
  allowedValues: ["any", "all"]
372
340
  }
373
341
  },
374
- queryLanguage: {
375
- serializedName: "queryLanguage",
342
+ select: {
343
+ serializedName: "select",
376
344
  type: {
377
345
  name: "String"
378
346
  }
379
347
  },
380
- speller: {
381
- serializedName: "speller",
348
+ skip: {
349
+ serializedName: "skip",
382
350
  type: {
383
- name: "String"
351
+ name: "Number"
384
352
  }
385
353
  },
386
- answers: {
387
- serializedName: "answers",
354
+ top: {
355
+ serializedName: "top",
388
356
  type: {
389
- name: "String"
357
+ name: "Number"
390
358
  }
391
359
  },
392
- select: {
393
- serializedName: "select",
360
+ semanticConfigurationName: {
361
+ serializedName: "semanticConfiguration",
394
362
  type: {
395
363
  name: "String"
396
364
  }
397
365
  },
398
- skip: {
399
- serializedName: "skip",
366
+ semanticErrorHandling: {
367
+ serializedName: "semanticErrorHandling",
400
368
  type: {
401
- name: "Number"
369
+ name: "String"
402
370
  }
403
371
  },
404
- top: {
405
- serializedName: "top",
372
+ semanticMaxWaitInMilliseconds: {
373
+ constraints: {
374
+ InclusiveMinimum: 700
375
+ },
376
+ serializedName: "semanticMaxWaitInMilliseconds",
377
+ nullable: true,
406
378
  type: {
407
379
  name: "Number"
408
380
  }
409
381
  },
410
- captions: {
411
- serializedName: "captions",
382
+ answers: {
383
+ serializedName: "answers",
412
384
  type: {
413
385
  name: "String"
414
386
  }
415
387
  },
416
- semanticFields: {
417
- serializedName: "semanticFields",
388
+ captions: {
389
+ serializedName: "captions",
418
390
  type: {
419
391
  name: "String"
420
392
  }
@@ -492,7 +464,7 @@ const SearchResult = {
492
464
  name: "Number"
493
465
  }
494
466
  },
495
- rerankerScore: {
467
+ _rerankerScore: {
496
468
  serializedName: "@search\\.rerankerScore",
497
469
  readOnly: true,
498
470
  nullable: true,
@@ -510,7 +482,7 @@ const SearchResult = {
510
482
  }
511
483
  }
512
484
  },
513
- captions: {
485
+ _captions: {
514
486
  serializedName: "@search\\.captions",
515
487
  readOnly: true,
516
488
  nullable: true,
@@ -519,21 +491,7 @@ const SearchResult = {
519
491
  element: {
520
492
  type: {
521
493
  name: "Composite",
522
- className: "CaptionResult"
523
- }
524
- }
525
- }
526
- },
527
- documentDebugInfo: {
528
- serializedName: "@search\\.documentDebugInfo",
529
- readOnly: true,
530
- nullable: true,
531
- type: {
532
- name: "Sequence",
533
- element: {
534
- type: {
535
- name: "Composite",
536
- className: "DocumentDebugInfo"
494
+ className: "QueryCaptionResult"
537
495
  }
538
496
  }
539
497
  }
@@ -541,10 +499,10 @@ const SearchResult = {
541
499
  }
542
500
  }
543
501
  };
544
- const CaptionResult = {
502
+ const QueryCaptionResult = {
545
503
  type: {
546
504
  name: "Composite",
547
- className: "CaptionResult",
505
+ className: "QueryCaptionResult",
548
506
  additionalProperties: { type: { name: "Object" } },
549
507
  modelProperties: {
550
508
  text: {
@@ -565,120 +523,6 @@ const CaptionResult = {
565
523
  }
566
524
  }
567
525
  };
568
- const DocumentDebugInfo = {
569
- type: {
570
- name: "Composite",
571
- className: "DocumentDebugInfo",
572
- modelProperties: {
573
- semantic: {
574
- serializedName: "semantic",
575
- type: {
576
- name: "Composite",
577
- className: "SemanticDebugInfo"
578
- }
579
- }
580
- }
581
- }
582
- };
583
- const SemanticDebugInfo = {
584
- type: {
585
- name: "Composite",
586
- className: "SemanticDebugInfo",
587
- modelProperties: {
588
- titleField: {
589
- serializedName: "titleField",
590
- type: {
591
- name: "Composite",
592
- className: "QueryResultDocumentSemanticField"
593
- }
594
- },
595
- contentFields: {
596
- serializedName: "contentFields",
597
- readOnly: true,
598
- type: {
599
- name: "Sequence",
600
- element: {
601
- type: {
602
- name: "Composite",
603
- className: "QueryResultDocumentSemanticField"
604
- }
605
- }
606
- }
607
- },
608
- keywordFields: {
609
- serializedName: "keywordFields",
610
- readOnly: true,
611
- type: {
612
- name: "Sequence",
613
- element: {
614
- type: {
615
- name: "Composite",
616
- className: "QueryResultDocumentSemanticField"
617
- }
618
- }
619
- }
620
- },
621
- rerankerInput: {
622
- serializedName: "rerankerInput",
623
- type: {
624
- name: "Composite",
625
- className: "QueryResultDocumentRerankerInput"
626
- }
627
- }
628
- }
629
- }
630
- };
631
- const QueryResultDocumentSemanticField = {
632
- type: {
633
- name: "Composite",
634
- className: "QueryResultDocumentSemanticField",
635
- modelProperties: {
636
- name: {
637
- serializedName: "name",
638
- readOnly: true,
639
- type: {
640
- name: "String"
641
- }
642
- },
643
- state: {
644
- serializedName: "state",
645
- readOnly: true,
646
- type: {
647
- name: "String"
648
- }
649
- }
650
- }
651
- }
652
- };
653
- const QueryResultDocumentRerankerInput = {
654
- type: {
655
- name: "Composite",
656
- className: "QueryResultDocumentRerankerInput",
657
- modelProperties: {
658
- title: {
659
- serializedName: "title",
660
- readOnly: true,
661
- type: {
662
- name: "String"
663
- }
664
- },
665
- content: {
666
- serializedName: "content",
667
- readOnly: true,
668
- type: {
669
- name: "String"
670
- }
671
- },
672
- keywords: {
673
- serializedName: "keywords",
674
- readOnly: true,
675
- type: {
676
- name: "String"
677
- }
678
- }
679
- }
680
- }
681
- };
682
526
  const SuggestDocumentsResult = {
683
527
  type: {
684
528
  name: "Composite",
@@ -1024,15 +868,16 @@ const AutocompleteRequest = {
1024
868
  }
1025
869
  }
1026
870
  };
1027
- const RawVectorQuery = {
871
+ const VectorizedQuery = {
1028
872
  serializedName: "vector",
1029
873
  type: {
1030
874
  name: "Composite",
1031
- className: "RawVectorQuery",
875
+ className: "VectorizedQuery",
1032
876
  uberParent: "VectorQuery",
1033
877
  polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
1034
878
  modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
1035
879
  serializedName: "vector",
880
+ required: true,
1036
881
  type: {
1037
882
  name: "Sequence",
1038
883
  element: {
@@ -1044,53 +889,32 @@ const RawVectorQuery = {
1044
889
  } })
1045
890
  }
1046
891
  };
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
892
  let discriminators$1 = {
1063
893
  VectorQuery: VectorQuery,
1064
- "VectorQuery.vector": RawVectorQuery,
1065
- "VectorQuery.text": VectorizableTextQuery
894
+ "VectorQuery.vector": VectorizedQuery
1066
895
  };
1067
896
 
1068
897
  var Mappers$1 = /*#__PURE__*/Object.freeze({
1069
898
  __proto__: null,
1070
- AnswerResult: AnswerResult,
1071
899
  AutocompleteItem: AutocompleteItem,
1072
900
  AutocompleteRequest: AutocompleteRequest,
1073
901
  AutocompleteResult: AutocompleteResult,
1074
- CaptionResult: CaptionResult,
1075
- DocumentDebugInfo: DocumentDebugInfo,
1076
902
  FacetResult: FacetResult,
1077
903
  IndexAction: IndexAction,
1078
904
  IndexBatch: IndexBatch,
1079
905
  IndexDocumentsResult: IndexDocumentsResult,
1080
906
  IndexingResult: IndexingResult,
1081
- QueryResultDocumentRerankerInput: QueryResultDocumentRerankerInput,
1082
- QueryResultDocumentSemanticField: QueryResultDocumentSemanticField,
1083
- RawVectorQuery: RawVectorQuery,
907
+ QueryAnswerResult: QueryAnswerResult,
908
+ QueryCaptionResult: QueryCaptionResult,
1084
909
  SearchDocumentsResult: SearchDocumentsResult,
1085
910
  SearchError: SearchError$1,
1086
911
  SearchRequest: SearchRequest,
1087
912
  SearchResult: SearchResult,
1088
- SemanticDebugInfo: SemanticDebugInfo,
1089
913
  SuggestDocumentsResult: SuggestDocumentsResult,
1090
914
  SuggestRequest: SuggestRequest,
1091
915
  SuggestResult: SuggestResult,
1092
916
  VectorQuery: VectorQuery,
1093
- VectorizableTextQuery: VectorizableTextQuery,
917
+ VectorizedQuery: VectorizedQuery,
1094
918
  discriminators: discriminators$1
1095
919
  });
1096
920
 
@@ -1276,54 +1100,6 @@ const scoringProfile = {
1276
1100
  }
1277
1101
  }
1278
1102
  };
1279
- const semanticQuery = {
1280
- parameterPath: ["options", "searchOptions", "semanticQuery"],
1281
- mapper: {
1282
- serializedName: "semanticQuery",
1283
- type: {
1284
- name: "String"
1285
- }
1286
- }
1287
- };
1288
- const semanticConfiguration = {
1289
- parameterPath: ["options", "searchOptions", "semanticConfiguration"],
1290
- mapper: {
1291
- serializedName: "semanticConfiguration",
1292
- type: {
1293
- name: "String"
1294
- }
1295
- }
1296
- };
1297
- const semanticErrorHandling = {
1298
- parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
1299
- mapper: {
1300
- serializedName: "semanticErrorHandling",
1301
- type: {
1302
- name: "String"
1303
- }
1304
- }
1305
- };
1306
- const semanticMaxWaitInMilliseconds = {
1307
- parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
1308
- mapper: {
1309
- constraints: {
1310
- InclusiveMinimum: 700
1311
- },
1312
- serializedName: "semanticMaxWaitInMilliseconds",
1313
- type: {
1314
- name: "Number"
1315
- }
1316
- }
1317
- };
1318
- const debug = {
1319
- parameterPath: ["options", "searchOptions", "debug"],
1320
- mapper: {
1321
- serializedName: "debug",
1322
- type: {
1323
- name: "String"
1324
- }
1325
- }
1326
- };
1327
1103
  const searchFields = {
1328
1104
  parameterPath: ["options", "searchOptions", "searchFields"],
1329
1105
  mapper: {
@@ -1339,47 +1115,20 @@ const searchFields = {
1339
1115
  },
1340
1116
  collectionFormat: "CSV"
1341
1117
  };
1342
- const queryLanguage = {
1343
- parameterPath: ["options", "searchOptions", "queryLanguage"],
1118
+ const searchMode = {
1119
+ parameterPath: ["options", "searchOptions", "searchMode"],
1344
1120
  mapper: {
1345
- serializedName: "queryLanguage",
1121
+ serializedName: "searchMode",
1346
1122
  type: {
1347
- name: "String"
1123
+ name: "Enum",
1124
+ allowedValues: ["any", "all"]
1348
1125
  }
1349
1126
  }
1350
1127
  };
1351
- const speller = {
1352
- parameterPath: ["options", "searchOptions", "speller"],
1128
+ const scoringStatistics = {
1129
+ parameterPath: ["options", "searchOptions", "scoringStatistics"],
1353
1130
  mapper: {
1354
- serializedName: "speller",
1355
- type: {
1356
- name: "String"
1357
- }
1358
- }
1359
- };
1360
- const answers = {
1361
- parameterPath: ["options", "searchOptions", "answers"],
1362
- mapper: {
1363
- serializedName: "answers",
1364
- type: {
1365
- name: "String"
1366
- }
1367
- }
1368
- };
1369
- const searchMode = {
1370
- parameterPath: ["options", "searchOptions", "searchMode"],
1371
- mapper: {
1372
- serializedName: "searchMode",
1373
- type: {
1374
- name: "Enum",
1375
- allowedValues: ["any", "all"]
1376
- }
1377
- }
1378
- };
1379
- const scoringStatistics = {
1380
- parameterPath: ["options", "searchOptions", "scoringStatistics"],
1381
- mapper: {
1382
- serializedName: "scoringStatistics",
1131
+ serializedName: "scoringStatistics",
1383
1132
  type: {
1384
1133
  name: "Enum",
1385
1134
  allowedValues: ["local", "global"]
@@ -1428,29 +1177,53 @@ const top = {
1428
1177
  }
1429
1178
  }
1430
1179
  };
1431
- const captions = {
1432
- parameterPath: ["options", "searchOptions", "captions"],
1180
+ const semanticConfiguration = {
1181
+ parameterPath: ["options", "searchOptions", "semanticConfiguration"],
1433
1182
  mapper: {
1434
- serializedName: "captions",
1183
+ serializedName: "semanticConfiguration",
1435
1184
  type: {
1436
1185
  name: "String"
1437
1186
  }
1438
1187
  }
1439
1188
  };
1440
- const semanticFields = {
1441
- parameterPath: ["options", "searchOptions", "semanticFields"],
1189
+ const semanticErrorHandling = {
1190
+ parameterPath: ["options", "searchOptions", "semanticErrorHandling"],
1442
1191
  mapper: {
1443
- serializedName: "semanticFields",
1192
+ serializedName: "semanticErrorHandling",
1444
1193
  type: {
1445
- name: "Sequence",
1446
- element: {
1447
- type: {
1448
- name: "String"
1449
- }
1450
- }
1194
+ name: "String"
1451
1195
  }
1452
- },
1453
- collectionFormat: "CSV"
1196
+ }
1197
+ };
1198
+ const semanticMaxWaitInMilliseconds = {
1199
+ parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"],
1200
+ mapper: {
1201
+ constraints: {
1202
+ InclusiveMinimum: 700
1203
+ },
1204
+ serializedName: "semanticMaxWaitInMilliseconds",
1205
+ type: {
1206
+ name: "Number"
1207
+ }
1208
+ }
1209
+ };
1210
+ const answers = {
1211
+ parameterPath: ["options", "searchOptions", "answers"],
1212
+ mapper: {
1213
+ serializedName: "answers",
1214
+ type: {
1215
+ name: "String"
1216
+ }
1217
+ }
1218
+ };
1219
+ const captions = {
1220
+ parameterPath: ["options", "searchOptions", "captions"],
1221
+ mapper: {
1222
+ serializedName: "captions",
1223
+ type: {
1224
+ name: "String"
1225
+ }
1226
+ }
1454
1227
  };
1455
1228
  const contentType$1 = {
1456
1229
  parameterPath: ["options", "contentType"],
@@ -1747,7 +1520,7 @@ class DocumentsImpl {
1747
1520
  * @param options The options parameters.
1748
1521
  */
1749
1522
  get(key, options) {
1750
- return this.client.sendOperationRequest({ key, options }, getOperationSpec$6);
1523
+ return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
1751
1524
  }
1752
1525
  /**
1753
1526
  * Suggests documents in the index that match the given partial query text.
@@ -1796,7 +1569,7 @@ class DocumentsImpl {
1796
1569
  }
1797
1570
  }
1798
1571
  // Operation Specifications
1799
- const serializer$7 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
1572
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
1800
1573
  const countOperationSpec = {
1801
1574
  path: "/docs/$count",
1802
1575
  httpMethod: "GET",
@@ -1811,7 +1584,7 @@ const countOperationSpec = {
1811
1584
  queryParameters: [apiVersion$1],
1812
1585
  urlParameters: [endpoint$1, indexName$1],
1813
1586
  headerParameters: [accept$1],
1814
- serializer: serializer$7
1587
+ serializer: serializer$6
1815
1588
  };
1816
1589
  const searchGetOperationSpec = {
1817
1590
  path: "/docs",
@@ -1838,27 +1611,22 @@ const searchGetOperationSpec = {
1838
1611
  queryType,
1839
1612
  scoringParameters,
1840
1613
  scoringProfile,
1841
- semanticQuery,
1842
- semanticConfiguration,
1843
- semanticErrorHandling,
1844
- semanticMaxWaitInMilliseconds,
1845
- debug,
1846
1614
  searchFields,
1847
- queryLanguage,
1848
- speller,
1849
- answers,
1850
1615
  searchMode,
1851
1616
  scoringStatistics,
1852
1617
  sessionId,
1853
1618
  select$1,
1854
1619
  skip,
1855
1620
  top,
1856
- captions,
1857
- semanticFields
1621
+ semanticConfiguration,
1622
+ semanticErrorHandling,
1623
+ semanticMaxWaitInMilliseconds,
1624
+ answers,
1625
+ captions
1858
1626
  ],
1859
1627
  urlParameters: [endpoint$1, indexName$1],
1860
1628
  headerParameters: [accept$1],
1861
- serializer: serializer$7
1629
+ serializer: serializer$6
1862
1630
  };
1863
1631
  const searchPostOperationSpec = {
1864
1632
  path: "/docs/search.post.search",
@@ -1876,9 +1644,9 @@ const searchPostOperationSpec = {
1876
1644
  urlParameters: [endpoint$1, indexName$1],
1877
1645
  headerParameters: [accept$1, contentType$1],
1878
1646
  mediaType: "json",
1879
- serializer: serializer$7
1647
+ serializer: serializer$6
1880
1648
  };
1881
- const getOperationSpec$6 = {
1649
+ const getOperationSpec$5 = {
1882
1650
  path: "/docs('{key}')",
1883
1651
  httpMethod: "GET",
1884
1652
  responses: {
@@ -1894,7 +1662,7 @@ const getOperationSpec$6 = {
1894
1662
  queryParameters: [apiVersion$1, selectedFields],
1895
1663
  urlParameters: [endpoint$1, indexName$1, key],
1896
1664
  headerParameters: [accept$1],
1897
- serializer: serializer$7
1665
+ serializer: serializer$6
1898
1666
  };
1899
1667
  const suggestGetOperationSpec = {
1900
1668
  path: "/docs/search.suggest",
@@ -1923,7 +1691,7 @@ const suggestGetOperationSpec = {
1923
1691
  ],
1924
1692
  urlParameters: [endpoint$1, indexName$1],
1925
1693
  headerParameters: [accept$1],
1926
- serializer: serializer$7
1694
+ serializer: serializer$6
1927
1695
  };
1928
1696
  const suggestPostOperationSpec = {
1929
1697
  path: "/docs/search.post.suggest",
@@ -1941,7 +1709,7 @@ const suggestPostOperationSpec = {
1941
1709
  urlParameters: [endpoint$1, indexName$1],
1942
1710
  headerParameters: [accept$1, contentType$1],
1943
1711
  mediaType: "json",
1944
- serializer: serializer$7
1712
+ serializer: serializer$6
1945
1713
  };
1946
1714
  const indexOperationSpec = {
1947
1715
  path: "/docs/search.index",
@@ -1962,7 +1730,7 @@ const indexOperationSpec = {
1962
1730
  urlParameters: [endpoint$1, indexName$1],
1963
1731
  headerParameters: [accept$1, contentType$1],
1964
1732
  mediaType: "json",
1965
- serializer: serializer$7
1733
+ serializer: serializer$6
1966
1734
  };
1967
1735
  const autocompleteGetOperationSpec = {
1968
1736
  path: "/docs/search.autocomplete",
@@ -1990,7 +1758,7 @@ const autocompleteGetOperationSpec = {
1990
1758
  ],
1991
1759
  urlParameters: [endpoint$1, indexName$1],
1992
1760
  headerParameters: [accept$1],
1993
- serializer: serializer$7
1761
+ serializer: serializer$6
1994
1762
  };
1995
1763
  const autocompletePostOperationSpec = {
1996
1764
  path: "/docs/search.post.autocomplete",
@@ -2008,7 +1776,7 @@ const autocompletePostOperationSpec = {
2008
1776
  urlParameters: [endpoint$1, indexName$1],
2009
1777
  headerParameters: [accept$1, contentType$1],
2010
1778
  mediaType: "json",
2011
- serializer: serializer$7
1779
+ serializer: serializer$6
2012
1780
  };
2013
1781
 
2014
1782
  /*
@@ -2045,19 +1813,45 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
2045
1813
  const defaults = {
2046
1814
  requestContentType: "application/json; charset=utf-8"
2047
1815
  };
2048
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
1816
+ const packageDetails = `azsdk-js-search-documents/12.0.0`;
2049
1817
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2050
1818
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2051
1819
  : `${packageDetails}`;
2052
1820
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2053
1821
  userAgentPrefix
2054
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}/indexes('{indexName}')" });
1822
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}/indexes('{indexName}')" });
2055
1823
  super(optionsWithDefaults);
2056
1824
  // Parameter assignments
2057
1825
  this.endpoint = endpoint;
2058
1826
  this.indexName = indexName;
2059
1827
  this.apiVersion = apiVersion;
2060
1828
  this.documents = new DocumentsImpl(this);
1829
+ this.addCustomApiVersionPolicy(apiVersion);
1830
+ }
1831
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1832
+ addCustomApiVersionPolicy(apiVersion) {
1833
+ if (!apiVersion) {
1834
+ return;
1835
+ }
1836
+ const apiVersionPolicy = {
1837
+ name: "CustomApiVersionPolicy",
1838
+ async sendRequest(request, next) {
1839
+ const param = request.url.split("?");
1840
+ if (param.length > 1) {
1841
+ const newParams = param[1].split("&").map((item) => {
1842
+ if (item.indexOf("api-version") > -1) {
1843
+ return "api-version=" + apiVersion;
1844
+ }
1845
+ else {
1846
+ return item;
1847
+ }
1848
+ });
1849
+ request.url = param[0] + "?" + newParams.join("&");
1850
+ }
1851
+ return next(request);
1852
+ }
1853
+ };
1854
+ this.pipeline.addPolicy(apiVersionPolicy);
2061
1855
  }
2062
1856
  };
2063
1857
 
@@ -2409,7 +2203,7 @@ function isComplexField(field) {
2409
2203
  * Defines values for TokenizerName.
2410
2204
  * @readonly
2411
2205
  */
2412
- exports.KnownTokenizerNames = void 0;
2206
+ var KnownTokenizerNames;
2413
2207
  (function (KnownTokenizerNames) {
2414
2208
  /**
2415
2209
  * Grammar-based tokenizer that is suitable for processing most European-language documents. See
@@ -2477,12 +2271,12 @@ exports.KnownTokenizerNames = void 0;
2477
2271
  * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html
2478
2272
  */
2479
2273
  KnownTokenizerNames["Whitespace"] = "whitespace";
2480
- })(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
2274
+ })(KnownTokenizerNames || (KnownTokenizerNames = {}));
2481
2275
  /**
2482
2276
  * Defines values for TokenFilterName.
2483
2277
  * @readonly
2484
2278
  */
2485
- exports.KnownTokenFilterNames = void 0;
2279
+ var KnownTokenFilterNames;
2486
2280
  (function (KnownTokenFilterNames) {
2487
2281
  /**
2488
2282
  * A token filter that applies the Arabic normalizer to normalize the orthography. See
@@ -2660,19 +2454,19 @@ exports.KnownTokenFilterNames = void 0;
2660
2454
  * Splits words into subwords and performs optional transformations on subword groups.
2661
2455
  */
2662
2456
  KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
2663
- })(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
2457
+ })(KnownTokenFilterNames || (KnownTokenFilterNames = {}));
2664
2458
  /**
2665
2459
  * Defines values for CharFilterName.
2666
2460
  * @readonly
2667
2461
  */
2668
- exports.KnownCharFilterNames = void 0;
2462
+ var KnownCharFilterNames;
2669
2463
  (function (KnownCharFilterNames) {
2670
2464
  /**
2671
2465
  * A character filter that attempts to strip out HTML constructs. See
2672
2466
  * https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html
2673
2467
  */
2674
2468
  KnownCharFilterNames["HtmlStrip"] = "html_strip";
2675
- })(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
2469
+ })(KnownCharFilterNames || (KnownCharFilterNames = {}));
2676
2470
  /**
2677
2471
  * Defines values for AnalyzerName.
2678
2472
  * See https://docs.microsoft.com/rest/api/searchservice/Language-support
@@ -3117,9 +2911,6 @@ function convertSkillsToPublic(skills) {
3117
2911
  case "#Microsoft.Skills.Util.DocumentExtractionSkill":
3118
2912
  result.push(skill);
3119
2913
  break;
3120
- case "#Microsoft.Skills.Custom.AmlSkill":
3121
- result.push(skill);
3122
- break;
3123
2914
  }
3124
2915
  }
3125
2916
  return result;
@@ -3191,7 +2982,12 @@ function convertAnalyzersToPublic(analyzers) {
3191
2982
  : undefined }));
3192
2983
  break;
3193
2984
  case "#Microsoft.Azure.Search.CustomAnalyzer":
3194
- result.push(Object.assign(Object.assign({}, analyzer), { tokenizerName: analyzer.tokenizerName }));
2985
+ {
2986
+ const customAnalyzer = analyzer;
2987
+ const { name, tokenizerName, tokenFilters } = customAnalyzer;
2988
+ const publicAnalyzer = Object.assign(Object.assign({}, customAnalyzer), { name: name, tokenizerName, tokenFilters: tokenFilters });
2989
+ result.push(publicAnalyzer);
2990
+ }
3195
2991
  break;
3196
2992
  }
3197
2993
  }
@@ -3212,20 +3008,11 @@ function convertFieldsToPublic(fields) {
3212
3008
  }
3213
3009
  else {
3214
3010
  const type = field.type;
3215
- const analyzerName = field.analyzer;
3216
- const searchAnalyzerName = field.searchAnalyzer;
3217
- const indexAnalyzerName = field.indexAnalyzer;
3218
3011
  const synonymMapNames = field.synonymMaps;
3219
- const normalizerName = field.normalizer;
3220
- const { retrievable } = field, restField = tslib.__rest(field, ["retrievable"]);
3012
+ const { retrievable, analyzer, searchAnalyzer, indexAnalyzer } = field, restField = tslib.__rest(field, ["retrievable", "analyzer", "searchAnalyzer", "indexAnalyzer"]);
3221
3013
  const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
3222
3014
  const result = Object.assign(Object.assign({}, restField), { type,
3223
- hidden,
3224
- analyzerName,
3225
- searchAnalyzerName,
3226
- indexAnalyzerName,
3227
- synonymMapNames,
3228
- normalizerName });
3015
+ hidden, analyzerName: analyzer, searchAnalyzerName: searchAnalyzer, indexAnalyzerName: indexAnalyzer, synonymMapNames });
3229
3016
  return result;
3230
3017
  }
3231
3018
  });
@@ -3245,7 +3032,7 @@ function convertFieldsToGenerated(fields) {
3245
3032
  const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
3246
3033
  return Object.assign(Object.assign({}, restField), { retrievable,
3247
3034
  // modify API defaults to use less storage for simple types
3248
- searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames, normalizer: field.normalizerName });
3035
+ searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames });
3249
3036
  }
3250
3037
  });
3251
3038
  }
@@ -3265,15 +3052,16 @@ function convertTokenizersToGenerated(tokenizers) {
3265
3052
  return result;
3266
3053
  }
3267
3054
  function convertTokenizersToPublic(tokenizers) {
3055
+ var _a;
3268
3056
  if (!tokenizers) {
3269
3057
  return tokenizers;
3270
3058
  }
3271
3059
  const result = [];
3272
3060
  for (const tokenizer of tokenizers) {
3273
3061
  if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
3274
- result.push(Object.assign(Object.assign({}, tokenizer), { flags: tokenizer.flags
3275
- ? tokenizer.flags.split("|")
3276
- : undefined }));
3062
+ const patternTokenizer = tokenizer;
3063
+ const flags = (_a = patternTokenizer.flags) === null || _a === void 0 ? void 0 : _a.split("|");
3064
+ result.push(Object.assign(Object.assign({}, tokenizer), { flags }));
3277
3065
  }
3278
3066
  else {
3279
3067
  result.push(tokenizer);
@@ -3306,7 +3094,6 @@ function convertEncryptionKeyToPublic(encryptionKey) {
3306
3094
  keyName: encryptionKey.keyName,
3307
3095
  keyVersion: encryptionKey.keyVersion,
3308
3096
  vaultUrl: encryptionKey.vaultUri,
3309
- identity: convertSearchIndexerDataIdentityToPublic(encryptionKey.identity),
3310
3097
  };
3311
3098
  if (encryptionKey.accessCredentials) {
3312
3099
  result.applicationId = encryptionKey.accessCredentials.applicationId;
@@ -3322,7 +3109,6 @@ function convertEncryptionKeyToGenerated(encryptionKey) {
3322
3109
  keyName: encryptionKey.keyName,
3323
3110
  keyVersion: encryptionKey.keyVersion,
3324
3111
  vaultUri: encryptionKey.vaultUrl,
3325
- identity: encryptionKey.identity,
3326
3112
  };
3327
3113
  if (encryptionKey.applicationId) {
3328
3114
  result.accessCredentials = {
@@ -3344,32 +3130,13 @@ function generatedIndexToPublicIndex(generatedIndex) {
3344
3130
  tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),
3345
3131
  tokenFilters: generatedIndex.tokenFilters,
3346
3132
  charFilters: generatedIndex.charFilters,
3347
- normalizers: generatedIndex.normalizers,
3348
3133
  scoringProfiles: generatedIndex.scoringProfiles,
3349
3134
  fields: convertFieldsToPublic(generatedIndex.fields),
3350
3135
  similarity: convertSimilarityToPublic(generatedIndex.similarity),
3351
- semanticSettings: generatedIndex.semanticSettings,
3136
+ semanticSearch: generatedIndex.semanticSearch,
3352
3137
  vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),
3353
3138
  };
3354
3139
  }
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
3140
  function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
3374
3141
  var _a;
3375
3142
  if (!generatedAlgorithmConfiguration) {
@@ -3383,23 +3150,21 @@ function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorith
3383
3150
  throw Error("Unsupported algorithm configuration");
3384
3151
  }
3385
3152
  function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
3386
- var _a, _b;
3153
+ var _a;
3387
3154
  if (!vectorSearch) {
3388
3155
  return vectorSearch;
3389
3156
  }
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) });
3157
+ return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration) });
3391
3158
  }
3392
3159
  function generatedSearchResultToPublicSearchResult(results) {
3393
3160
  const returnValues = results.map((result) => {
3394
- const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
3395
- const doc = Object.assign({}, restProps);
3161
+ const { _score: score, _highlights: highlights, _rerankerScore: rerankerScore, _captions: captions } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "_rerankerScore", "_captions"]);
3396
3162
  const obj = {
3397
- score: _score,
3398
- highlights: _highlights,
3163
+ score,
3164
+ highlights,
3399
3165
  rerankerScore,
3400
3166
  captions,
3401
- document: doc,
3402
- documentDebugInfo,
3167
+ document: restProps, // todo: make this change in beta
3403
3168
  };
3404
3169
  return obj;
3405
3170
  });
@@ -3408,10 +3173,9 @@ function generatedSearchResultToPublicSearchResult(results) {
3408
3173
  function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDocumentsResult) {
3409
3174
  const results = searchDocumentsResult.results.map((element) => {
3410
3175
  const { _text } = element, restProps = tslib.__rest(element, ["_text"]);
3411
- const doc = Object.assign({}, restProps);
3412
3176
  const obj = {
3413
3177
  text: _text,
3414
- document: doc,
3178
+ document: restProps, // todo: make this change in beta
3415
3179
  };
3416
3180
  return obj;
3417
3181
  });
@@ -3426,15 +3190,8 @@ function publicIndexToGeneratedIndex(index) {
3426
3190
  return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
3427
3191
  }
3428
3192
  function generatedSkillsetToPublicSkillset(generatedSkillset) {
3429
- return {
3430
- name: generatedSkillset.name,
3431
- description: generatedSkillset.description,
3432
- skills: convertSkillsToPublic(generatedSkillset.skills),
3433
- cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(generatedSkillset.cognitiveServicesAccount),
3434
- knowledgeStore: convertKnowledgeStoreToPublic(generatedSkillset.knowledgeStore),
3435
- etag: generatedSkillset.etag,
3436
- encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey),
3437
- };
3193
+ const { skills, cognitiveServicesAccount, knowledgeStore, encryptionKey } = generatedSkillset, props = tslib.__rest(generatedSkillset, ["skills", "cognitiveServicesAccount", "knowledgeStore", "encryptionKey"]);
3194
+ return Object.assign(Object.assign({}, props), { skills: convertSkillsToPublic(skills), cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), encryptionKey: convertEncryptionKeyToPublic(encryptionKey) });
3438
3195
  }
3439
3196
  function publicSkillsetToGeneratedSkillset(skillset) {
3440
3197
  return {
@@ -3474,12 +3231,11 @@ function publicSearchIndexerToGeneratedSearchIndexer(indexer) {
3474
3231
  return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey) });
3475
3232
  }
3476
3233
  function generatedSearchIndexerToPublicSearchIndexer(indexer) {
3477
- return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
3478
- }
3479
- function generatedSearchRequestToPublicSearchRequest(request) {
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;
3234
+ var _a, _b, _c, _d;
3235
+ const { parsingMode, dataToExtract, imageAction, pdfTextRotationAlgorithm, executionEnvironment, } = (_b = (_a = indexer.parameters) === null || _a === void 0 ? void 0 : _a.configuration) !== null && _b !== void 0 ? _b : {};
3236
+ const configuration = ((_c = indexer.parameters) === null || _c === void 0 ? void 0 : _c.configuration) && Object.assign(Object.assign({}, (_d = indexer.parameters) === null || _d === void 0 ? void 0 : _d.configuration), { parsingMode: parsingMode, dataToExtract: dataToExtract, imageAction: imageAction, pdfTextRotationAlgorithm: pdfTextRotationAlgorithm, executionEnvironment: executionEnvironment });
3237
+ const parameters = Object.assign(Object.assign({}, indexer.parameters), { configuration });
3238
+ return Object.assign(Object.assign({}, indexer), { parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey) });
3483
3239
  }
3484
3240
  function publicDataSourceToGeneratedDataSource(dataSource) {
3485
3241
  return {
@@ -3490,7 +3246,6 @@ function publicDataSourceToGeneratedDataSource(dataSource) {
3490
3246
  connectionString: dataSource.connectionString,
3491
3247
  },
3492
3248
  container: dataSource.container,
3493
- identity: dataSource.identity,
3494
3249
  etag: dataSource.etag,
3495
3250
  dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,
3496
3251
  dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,
@@ -3504,24 +3259,12 @@ function generatedDataSourceToPublicDataSource(dataSource) {
3504
3259
  type: dataSource.type,
3505
3260
  connectionString: dataSource.credentials.connectionString,
3506
3261
  container: dataSource.container,
3507
- identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity),
3508
3262
  etag: dataSource.etag,
3509
3263
  dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(dataSource.dataChangeDetectionPolicy),
3510
3264
  dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(dataSource.dataDeletionDetectionPolicy),
3511
3265
  encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),
3512
3266
  };
3513
3267
  }
3514
- function convertSearchIndexerDataIdentityToPublic(searchIndexerDataIdentity) {
3515
- if (!searchIndexerDataIdentity) {
3516
- return searchIndexerDataIdentity;
3517
- }
3518
- if (searchIndexerDataIdentity.odatatype === "#Microsoft.Azure.Search.DataNoneIdentity") {
3519
- return searchIndexerDataIdentity;
3520
- }
3521
- else {
3522
- return searchIndexerDataIdentity;
3523
- }
3524
- }
3525
3268
  function convertDataChangeDetectionPolicyToPublic(dataChangeDetectionPolicy) {
3526
3269
  if (!dataChangeDetectionPolicy) {
3527
3270
  return dataChangeDetectionPolicy;
@@ -3540,14 +3283,6 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
3540
3283
  }
3541
3284
  return dataDeletionDetectionPolicy;
3542
3285
  }
3543
- function convertVectorQueryToPublic(vector) {
3544
- var _a;
3545
- if (!vector) {
3546
- return vector;
3547
- }
3548
- const fields = (_a = vector.fields) === null || _a === void 0 ? void 0 : _a.split(",");
3549
- return Object.assign(Object.assign({}, vector), { fields });
3550
- }
3551
3286
  function getRandomIntegerInclusive(min, max) {
3552
3287
  // Make sure inputs are integers.
3553
3288
  min = Math.ceil(min);
@@ -3566,18 +3301,9 @@ function getRandomIntegerInclusive(min, max) {
3566
3301
  function delay(timeInMs) {
3567
3302
  return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
3568
3303
  }
3569
- const defaultServiceVersion = "2023-10-01-Preview";
3304
+ const defaultServiceVersion = "2023-11-01";
3570
3305
  function convertKnowledgeStoreToPublic(knowledgeStore) {
3571
- if (!knowledgeStore) {
3572
- return knowledgeStore;
3573
- }
3574
- return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
3575
- }
3576
- function convertSearchIndexerCacheToPublic(cache) {
3577
- if (!cache) {
3578
- return cache;
3579
- }
3580
- return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
3306
+ return knowledgeStore;
3581
3307
  }
3582
3308
 
3583
3309
  // Copyright (c) Microsoft Corporation.
@@ -3776,16 +3502,19 @@ class SearchClient {
3776
3502
  }
3777
3503
  }
3778
3504
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
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 });
3505
+ const { searchFields, select, orderBy, includeTotalCount, vectorSearchOptions } = options, restOptions = tslib.__rest(options, ["searchFields", "select", "orderBy", "includeTotalCount", "vectorSearchOptions"]);
3506
+ const semanticSearchOptions = restOptions
3507
+ .semanticSearchOptions;
3508
+ delete restOptions.semanticSearchOptions;
3509
+ const _a = semanticSearchOptions !== null && semanticSearchOptions !== void 0 ? semanticSearchOptions : {}, { configurationName, errorMode, answers, captions } = _a, restSemanticOptions = tslib.__rest(_a, ["configurationName", "errorMode", "answers", "captions"]);
3510
+ const _b = vectorSearchOptions !== null && vectorSearchOptions !== void 0 ? vectorSearchOptions : {}, { queries, filterMode } = _b, restVectorOptions = tslib.__rest(_b, ["queries", "filterMode"]);
3511
+ const fullOptions = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, restSemanticOptions), restVectorOptions), restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: queries === null || queries === void 0 ? void 0 : queries.map(this.convertVectorQuery.bind(this)), answers: this.convertQueryAnswers(answers), captions: this.convertCaptions(captions), semanticErrorHandling: errorMode, semanticConfigurationName: configurationName, vectorFilterMode: filterMode });
3781
3512
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
3782
3513
  try {
3783
3514
  const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
3784
- const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
3515
+ const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason: semanticErrorReason, semanticPartialResponseType: semanticSearchResultsType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
3785
3516
  const modifiedResults = generatedSearchResultToPublicSearchResult(results);
3786
- const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults, semanticPartialResponseReason: semanticPartialResponseReason, semanticPartialResponseType: semanticPartialResponseType, continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters
3787
- ? generatedSearchRequestToPublicSearchRequest(resultNextPageParameters)
3788
- : resultNextPageParameters) });
3517
+ const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults, semanticErrorReason: semanticErrorReason, semanticSearchResultsType: semanticSearchResultsType, continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters) });
3789
3518
  return deserialize(converted);
3790
3519
  }
3791
3520
  catch (e) {
@@ -3821,16 +3550,11 @@ class SearchClient {
3821
3550
  try {
3822
3551
  for (var _d = true, _e = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
3823
3552
  continuationToken: firstPage.continuationToken,
3824
- })), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
3553
+ })), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3825
3554
  _c = _f.value;
3826
3555
  _d = false;
3827
- try {
3828
- const page = _c;
3829
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
3830
- }
3831
- finally {
3832
- _d = true;
3833
- }
3556
+ const page = _c;
3557
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
3834
3558
  }
3835
3559
  }
3836
3560
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -4169,27 +3893,18 @@ class SearchClient {
4169
3893
  }
4170
3894
  return searchFields;
4171
3895
  }
4172
- convertSemanticFields(semanticFields) {
4173
- if (semanticFields) {
4174
- return semanticFields.join(",");
4175
- }
4176
- return semanticFields;
4177
- }
4178
3896
  convertOrderBy(orderBy) {
4179
3897
  if (orderBy) {
4180
3898
  return orderBy.join(",");
4181
3899
  }
4182
3900
  return orderBy;
4183
3901
  }
4184
- convertAnswers(answers) {
4185
- if (!answers || typeof answers === "string") {
3902
+ convertQueryAnswers(answers) {
3903
+ if (!answers) {
4186
3904
  return answers;
4187
3905
  }
4188
- if (answers.answers === "none") {
4189
- return answers.answers;
4190
- }
4191
3906
  const config = [];
4192
- const { answers: output, count, threshold } = answers;
3907
+ const { answerType: output, count, threshold } = answers;
4193
3908
  if (count) {
4194
3909
  config.push(`count-${count}`);
4195
3910
  }
@@ -4201,6 +3916,20 @@ class SearchClient {
4201
3916
  }
4202
3917
  return output;
4203
3918
  }
3919
+ convertCaptions(captions) {
3920
+ if (!captions) {
3921
+ return captions;
3922
+ }
3923
+ const config = [];
3924
+ const { captionType: output, highlight } = captions;
3925
+ if (highlight !== undefined) {
3926
+ config.push(`highlight-${highlight}`);
3927
+ }
3928
+ if (config.length) {
3929
+ return output + `|${config.join(",")}`;
3930
+ }
3931
+ return output;
3932
+ }
4204
3933
  convertVectorQuery(vectorQuery) {
4205
3934
  if (!vectorQuery) {
4206
3935
  return vectorQuery;
@@ -4533,13 +4262,6 @@ const SearchIndexerDataSource = {
4533
4262
  className: "SearchIndexerDataContainer"
4534
4263
  }
4535
4264
  },
4536
- identity: {
4537
- serializedName: "identity",
4538
- type: {
4539
- name: "Composite",
4540
- className: "SearchIndexerDataIdentity"
4541
- }
4542
- },
4543
4265
  dataChangeDetectionPolicy: {
4544
4266
  serializedName: "dataChangeDetectionPolicy",
4545
4267
  type: {
@@ -4605,26 +4327,6 @@ const SearchIndexerDataContainer = {
4605
4327
  }
4606
4328
  }
4607
4329
  };
4608
- const SearchIndexerDataIdentity = {
4609
- type: {
4610
- name: "Composite",
4611
- className: "SearchIndexerDataIdentity",
4612
- uberParent: "SearchIndexerDataIdentity",
4613
- polymorphicDiscriminator: {
4614
- serializedName: "@odata\\.type",
4615
- clientName: "odatatype"
4616
- },
4617
- modelProperties: {
4618
- odatatype: {
4619
- serializedName: "@odata\\.type",
4620
- required: true,
4621
- type: {
4622
- name: "String"
4623
- }
4624
- }
4625
- }
4626
- }
4627
- };
4628
4330
  const DataChangeDetectionPolicy = {
4629
4331
  type: {
4630
4332
  name: "Composite",
@@ -4697,13 +4399,6 @@ const SearchResourceEncryptionKey = {
4697
4399
  name: "Composite",
4698
4400
  className: "AzureActiveDirectoryApplicationCredentials"
4699
4401
  }
4700
- },
4701
- identity: {
4702
- serializedName: "identity",
4703
- type: {
4704
- name: "Composite",
4705
- className: "SearchIndexerDataIdentity"
4706
- }
4707
4402
  }
4708
4403
  }
4709
4404
  }
@@ -4787,36 +4482,6 @@ const ListDataSourcesResult = {
4787
4482
  }
4788
4483
  }
4789
4484
  };
4790
- const DocumentKeysOrIds = {
4791
- type: {
4792
- name: "Composite",
4793
- className: "DocumentKeysOrIds",
4794
- modelProperties: {
4795
- documentKeys: {
4796
- serializedName: "documentKeys",
4797
- type: {
4798
- name: "Sequence",
4799
- element: {
4800
- type: {
4801
- name: "String"
4802
- }
4803
- }
4804
- }
4805
- },
4806
- datasourceDocumentIds: {
4807
- serializedName: "datasourceDocumentIds",
4808
- type: {
4809
- name: "Sequence",
4810
- element: {
4811
- type: {
4812
- name: "String"
4813
- }
4814
- }
4815
- }
4816
- }
4817
- }
4818
- }
4819
- };
4820
4485
  const SearchIndexer = {
4821
4486
  type: {
4822
4487
  name: "Composite",
@@ -4913,13 +4578,6 @@ const SearchIndexer = {
4913
4578
  name: "Composite",
4914
4579
  className: "SearchResourceEncryptionKey"
4915
4580
  }
4916
- },
4917
- cache: {
4918
- serializedName: "cache",
4919
- type: {
4920
- name: "Composite",
4921
- className: "SearchIndexerCache"
4922
- }
4923
4581
  }
4924
4582
  }
4925
4583
  }
@@ -5143,7 +4801,6 @@ const FieldMappingFunction = {
5143
4801
  },
5144
4802
  parameters: {
5145
4803
  serializedName: "parameters",
5146
- nullable: true,
5147
4804
  type: {
5148
4805
  name: "Dictionary",
5149
4806
  value: { type: { name: "any" } }
@@ -5152,34 +4809,6 @@ const FieldMappingFunction = {
5152
4809
  }
5153
4810
  }
5154
4811
  };
5155
- const SearchIndexerCache = {
5156
- type: {
5157
- name: "Composite",
5158
- className: "SearchIndexerCache",
5159
- modelProperties: {
5160
- storageConnectionString: {
5161
- serializedName: "storageConnectionString",
5162
- type: {
5163
- name: "String"
5164
- }
5165
- },
5166
- enableReprocessing: {
5167
- serializedName: "enableReprocessing",
5168
- nullable: true,
5169
- type: {
5170
- name: "Boolean"
5171
- }
5172
- },
5173
- identity: {
5174
- serializedName: "identity",
5175
- type: {
5176
- name: "Composite",
5177
- className: "SearchIndexerDataIdentity"
5178
- }
5179
- }
5180
- }
5181
- }
5182
- };
5183
4812
  const ListIndexersResult = {
5184
4813
  type: {
5185
4814
  name: "Composite",
@@ -5261,20 +4890,6 @@ const IndexerExecutionResult = {
5261
4890
  allowedValues: ["transientFailure", "success", "inProgress", "reset"]
5262
4891
  }
5263
4892
  },
5264
- statusDetail: {
5265
- serializedName: "statusDetail",
5266
- readOnly: true,
5267
- type: {
5268
- name: "String"
5269
- }
5270
- },
5271
- currentState: {
5272
- serializedName: "currentState",
5273
- type: {
5274
- name: "Composite",
5275
- className: "IndexerState"
5276
- }
5277
- },
5278
4893
  errorMessage: {
5279
4894
  serializedName: "errorMessage",
5280
4895
  readOnly: true,
@@ -5358,120 +4973,53 @@ const IndexerExecutionResult = {
5358
4973
  }
5359
4974
  }
5360
4975
  };
5361
- const IndexerState = {
4976
+ const SearchIndexerError = {
5362
4977
  type: {
5363
4978
  name: "Composite",
5364
- className: "IndexerState",
4979
+ className: "SearchIndexerError",
5365
4980
  modelProperties: {
5366
- mode: {
5367
- serializedName: "mode",
4981
+ key: {
4982
+ serializedName: "key",
5368
4983
  readOnly: true,
5369
4984
  type: {
5370
4985
  name: "String"
5371
4986
  }
5372
4987
  },
5373
- allDocumentsInitialChangeTrackingState: {
5374
- serializedName: "allDocsInitialChangeTrackingState",
4988
+ errorMessage: {
4989
+ serializedName: "errorMessage",
4990
+ required: true,
5375
4991
  readOnly: true,
5376
4992
  type: {
5377
4993
  name: "String"
5378
4994
  }
5379
4995
  },
5380
- allDocumentsFinalChangeTrackingState: {
5381
- serializedName: "allDocsFinalChangeTrackingState",
4996
+ statusCode: {
4997
+ serializedName: "statusCode",
4998
+ required: true,
5382
4999
  readOnly: true,
5383
5000
  type: {
5384
- name: "String"
5001
+ name: "Number"
5385
5002
  }
5386
5003
  },
5387
- resetDocumentsInitialChangeTrackingState: {
5388
- serializedName: "resetDocsInitialChangeTrackingState",
5004
+ name: {
5005
+ serializedName: "name",
5389
5006
  readOnly: true,
5390
5007
  type: {
5391
5008
  name: "String"
5392
5009
  }
5393
5010
  },
5394
- resetDocumentsFinalChangeTrackingState: {
5395
- serializedName: "resetDocsFinalChangeTrackingState",
5011
+ details: {
5012
+ serializedName: "details",
5396
5013
  readOnly: true,
5397
5014
  type: {
5398
5015
  name: "String"
5399
5016
  }
5400
5017
  },
5401
- resetDocumentKeys: {
5402
- serializedName: "resetDocumentKeys",
5018
+ documentationLink: {
5019
+ serializedName: "documentationLink",
5403
5020
  readOnly: true,
5404
5021
  type: {
5405
- name: "Sequence",
5406
- element: {
5407
- type: {
5408
- name: "String"
5409
- }
5410
- }
5411
- }
5412
- },
5413
- resetDatasourceDocumentIds: {
5414
- serializedName: "resetDatasourceDocumentIds",
5415
- readOnly: true,
5416
- type: {
5417
- name: "Sequence",
5418
- element: {
5419
- type: {
5420
- name: "String"
5421
- }
5422
- }
5423
- }
5424
- }
5425
- }
5426
- }
5427
- };
5428
- const SearchIndexerError = {
5429
- type: {
5430
- name: "Composite",
5431
- className: "SearchIndexerError",
5432
- modelProperties: {
5433
- key: {
5434
- serializedName: "key",
5435
- readOnly: true,
5436
- type: {
5437
- name: "String"
5438
- }
5439
- },
5440
- errorMessage: {
5441
- serializedName: "errorMessage",
5442
- required: true,
5443
- readOnly: true,
5444
- type: {
5445
- name: "String"
5446
- }
5447
- },
5448
- statusCode: {
5449
- serializedName: "statusCode",
5450
- required: true,
5451
- readOnly: true,
5452
- type: {
5453
- name: "Number"
5454
- }
5455
- },
5456
- name: {
5457
- serializedName: "name",
5458
- readOnly: true,
5459
- type: {
5460
- name: "String"
5461
- }
5462
- },
5463
- details: {
5464
- serializedName: "details",
5465
- readOnly: true,
5466
- type: {
5467
- name: "String"
5468
- }
5469
- },
5470
- documentationLink: {
5471
- serializedName: "documentationLink",
5472
- readOnly: true,
5473
- type: {
5474
- name: "String"
5022
+ name: "String"
5475
5023
  }
5476
5024
  }
5477
5025
  }
@@ -5595,13 +5143,6 @@ const SearchIndexerSkillset = {
5595
5143
  className: "SearchIndexerKnowledgeStore"
5596
5144
  }
5597
5145
  },
5598
- indexProjections: {
5599
- serializedName: "indexProjections",
5600
- type: {
5601
- name: "Composite",
5602
- className: "SearchIndexerIndexProjections"
5603
- }
5604
- },
5605
5146
  etag: {
5606
5147
  serializedName: "@odata\\.etag",
5607
5148
  type: {
@@ -5792,20 +5333,6 @@ const SearchIndexerKnowledgeStore = {
5792
5333
  }
5793
5334
  }
5794
5335
  }
5795
- },
5796
- identity: {
5797
- serializedName: "identity",
5798
- type: {
5799
- name: "Composite",
5800
- className: "SearchIndexerDataIdentity"
5801
- }
5802
- },
5803
- parameters: {
5804
- serializedName: "parameters",
5805
- type: {
5806
- name: "Composite",
5807
- className: "SearchIndexerKnowledgeStoreParameters"
5808
- }
5809
5336
  }
5810
5337
  }
5811
5338
  }
@@ -5898,107 +5425,6 @@ const SearchIndexerKnowledgeStoreProjectionSelector = {
5898
5425
  }
5899
5426
  }
5900
5427
  };
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
- };
6002
5428
  const ListSkillsetsResult = {
6003
5429
  type: {
6004
5430
  name: "Composite",
@@ -6021,25 +5447,6 @@ const ListSkillsetsResult = {
6021
5447
  }
6022
5448
  }
6023
5449
  };
6024
- const SkillNames = {
6025
- type: {
6026
- name: "Composite",
6027
- className: "SkillNames",
6028
- modelProperties: {
6029
- skillNames: {
6030
- serializedName: "skillNames",
6031
- type: {
6032
- name: "Sequence",
6033
- element: {
6034
- type: {
6035
- name: "String"
6036
- }
6037
- }
6038
- }
6039
- }
6040
- }
6041
- }
6042
- };
6043
5450
  const SynonymMap = {
6044
5451
  type: {
6045
5452
  name: "Composite",
@@ -6215,18 +5622,6 @@ const SearchIndex = {
6215
5622
  }
6216
5623
  }
6217
5624
  },
6218
- normalizers: {
6219
- serializedName: "normalizers",
6220
- type: {
6221
- name: "Sequence",
6222
- element: {
6223
- type: {
6224
- name: "Composite",
6225
- className: "LexicalNormalizer"
6226
- }
6227
- }
6228
- }
6229
- },
6230
5625
  encryptionKey: {
6231
5626
  serializedName: "encryptionKey",
6232
5627
  type: {
@@ -6241,11 +5636,11 @@ const SearchIndex = {
6241
5636
  className: "Similarity"
6242
5637
  }
6243
5638
  },
6244
- semanticSettings: {
5639
+ semanticSearch: {
6245
5640
  serializedName: "semantic",
6246
5641
  type: {
6247
5642
  name: "Composite",
6248
- className: "SemanticSettings"
5643
+ className: "SemanticSearch"
6249
5644
  }
6250
5645
  },
6251
5646
  vectorSearch: {
@@ -6340,13 +5735,6 @@ const SearchField = {
6340
5735
  name: "String"
6341
5736
  }
6342
5737
  },
6343
- normalizer: {
6344
- serializedName: "normalizer",
6345
- nullable: true,
6346
- type: {
6347
- name: "String"
6348
- }
6349
- },
6350
5738
  vectorSearchDimensions: {
6351
5739
  constraints: {
6352
5740
  InclusiveMaximum: 2048,
@@ -6358,7 +5746,7 @@ const SearchField = {
6358
5746
  name: "Number"
6359
5747
  }
6360
5748
  },
6361
- vectorSearchProfile: {
5749
+ vectorSearchProfileName: {
6362
5750
  serializedName: "vectorSearchProfile",
6363
5751
  nullable: true,
6364
5752
  type: {
@@ -6665,33 +6053,6 @@ const CharFilter = {
6665
6053
  }
6666
6054
  }
6667
6055
  };
6668
- const LexicalNormalizer = {
6669
- type: {
6670
- name: "Composite",
6671
- className: "LexicalNormalizer",
6672
- uberParent: "LexicalNormalizer",
6673
- polymorphicDiscriminator: {
6674
- serializedName: "@odata\\.type",
6675
- clientName: "odatatype"
6676
- },
6677
- modelProperties: {
6678
- odatatype: {
6679
- serializedName: "@odata\\.type",
6680
- required: true,
6681
- type: {
6682
- name: "String"
6683
- }
6684
- },
6685
- name: {
6686
- serializedName: "name",
6687
- required: true,
6688
- type: {
6689
- name: "String"
6690
- }
6691
- }
6692
- }
6693
- }
6694
- };
6695
6056
  const Similarity = {
6696
6057
  type: {
6697
6058
  name: "Composite",
@@ -6712,12 +6073,12 @@ const Similarity = {
6712
6073
  }
6713
6074
  }
6714
6075
  };
6715
- const SemanticSettings = {
6076
+ const SemanticSearch = {
6716
6077
  type: {
6717
6078
  name: "Composite",
6718
- className: "SemanticSettings",
6079
+ className: "SemanticSearch",
6719
6080
  modelProperties: {
6720
- defaultConfiguration: {
6081
+ defaultConfigurationName: {
6721
6082
  serializedName: "defaultConfiguration",
6722
6083
  type: {
6723
6084
  name: "String"
@@ -6754,16 +6115,16 @@ const SemanticConfiguration = {
6754
6115
  serializedName: "prioritizedFields",
6755
6116
  type: {
6756
6117
  name: "Composite",
6757
- className: "PrioritizedFields"
6118
+ className: "SemanticPrioritizedFields"
6758
6119
  }
6759
6120
  }
6760
6121
  }
6761
6122
  }
6762
6123
  };
6763
- const PrioritizedFields = {
6124
+ const SemanticPrioritizedFields = {
6764
6125
  type: {
6765
6126
  name: "Composite",
6766
- className: "PrioritizedFields",
6127
+ className: "SemanticPrioritizedFields",
6767
6128
  modelProperties: {
6768
6129
  titleField: {
6769
6130
  serializedName: "titleField",
@@ -6772,7 +6133,7 @@ const PrioritizedFields = {
6772
6133
  className: "SemanticField"
6773
6134
  }
6774
6135
  },
6775
- prioritizedContentFields: {
6136
+ contentFields: {
6776
6137
  serializedName: "prioritizedContentFields",
6777
6138
  type: {
6778
6139
  name: "Sequence",
@@ -6784,7 +6145,7 @@ const PrioritizedFields = {
6784
6145
  }
6785
6146
  }
6786
6147
  },
6787
- prioritizedKeywordsFields: {
6148
+ keywordsFields: {
6788
6149
  serializedName: "prioritizedKeywordsFields",
6789
6150
  type: {
6790
6151
  name: "Sequence",
@@ -6806,6 +6167,7 @@ const SemanticField = {
6806
6167
  modelProperties: {
6807
6168
  name: {
6808
6169
  serializedName: "fieldName",
6170
+ required: true,
6809
6171
  type: {
6810
6172
  name: "String"
6811
6173
  }
@@ -6841,18 +6203,6 @@ const VectorSearch = {
6841
6203
  }
6842
6204
  }
6843
6205
  }
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
6206
  }
6857
6207
  }
6858
6208
  }
@@ -6869,18 +6219,12 @@ const VectorSearchProfile = {
6869
6219
  name: "String"
6870
6220
  }
6871
6221
  },
6872
- algorithm: {
6222
+ algorithmConfigurationName: {
6873
6223
  serializedName: "algorithm",
6874
6224
  required: true,
6875
6225
  type: {
6876
6226
  name: "String"
6877
6227
  }
6878
- },
6879
- vectorizer: {
6880
- serializedName: "vectorizer",
6881
- type: {
6882
- name: "String"
6883
- }
6884
6228
  }
6885
6229
  }
6886
6230
  }
@@ -6912,33 +6256,6 @@ const VectorSearchAlgorithmConfiguration = {
6912
6256
  }
6913
6257
  }
6914
6258
  };
6915
- const VectorSearchVectorizer = {
6916
- type: {
6917
- name: "Composite",
6918
- className: "VectorSearchVectorizer",
6919
- uberParent: "VectorSearchVectorizer",
6920
- polymorphicDiscriminator: {
6921
- serializedName: "kind",
6922
- clientName: "kind"
6923
- },
6924
- modelProperties: {
6925
- name: {
6926
- serializedName: "name",
6927
- required: true,
6928
- 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
6259
  const ListIndexesResult = {
6943
6260
  type: {
6944
6261
  name: "Composite",
@@ -7017,12 +6334,6 @@ const AnalyzeRequest = {
7017
6334
  name: "String"
7018
6335
  }
7019
6336
  },
7020
- normalizer: {
7021
- serializedName: "normalizer",
7022
- type: {
7023
- name: "String"
7024
- }
7025
- },
7026
6337
  tokenFilters: {
7027
6338
  serializedName: "tokenFilters",
7028
6339
  type: {
@@ -7109,68 +6420,13 @@ const AnalyzedTokenInfo = {
7109
6420
  }
7110
6421
  }
7111
6422
  };
7112
- const SearchAlias = {
6423
+ const ServiceStatistics = {
7113
6424
  type: {
7114
6425
  name: "Composite",
7115
- className: "SearchAlias",
6426
+ className: "ServiceStatistics",
7116
6427
  modelProperties: {
7117
- name: {
7118
- serializedName: "name",
7119
- required: true,
7120
- type: {
7121
- name: "String"
7122
- }
7123
- },
7124
- indexes: {
7125
- serializedName: "indexes",
7126
- required: true,
7127
- type: {
7128
- name: "Sequence",
7129
- element: {
7130
- type: {
7131
- name: "String"
7132
- }
7133
- }
7134
- }
7135
- },
7136
- etag: {
7137
- serializedName: "@odata\\.etag",
7138
- type: {
7139
- name: "String"
7140
- }
7141
- }
7142
- }
7143
- }
7144
- };
7145
- const ListAliasesResult = {
7146
- type: {
7147
- name: "Composite",
7148
- className: "ListAliasesResult",
7149
- modelProperties: {
7150
- aliases: {
7151
- serializedName: "value",
7152
- required: true,
7153
- readOnly: true,
7154
- type: {
7155
- name: "Sequence",
7156
- element: {
7157
- type: {
7158
- name: "Composite",
7159
- className: "SearchAlias"
7160
- }
7161
- }
7162
- }
7163
- }
7164
- }
7165
- }
7166
- };
7167
- const ServiceStatistics = {
7168
- type: {
7169
- name: "Composite",
7170
- className: "ServiceStatistics",
7171
- modelProperties: {
7172
- counters: {
7173
- serializedName: "counters",
6428
+ counters: {
6429
+ serializedName: "counters",
7174
6430
  type: {
7175
6431
  name: "Composite",
7176
6432
  className: "ServiceCounters"
@@ -7191,13 +6447,6 @@ const ServiceCounters = {
7191
6447
  name: "Composite",
7192
6448
  className: "ServiceCounters",
7193
6449
  modelProperties: {
7194
- aliasCounter: {
7195
- serializedName: "aliasesCount",
7196
- type: {
7197
- name: "Composite",
7198
- className: "ResourceCounter"
7199
- }
7200
- },
7201
6450
  documentCounter: {
7202
6451
  serializedName: "documentCount",
7203
6452
  type: {
@@ -7381,86 +6630,6 @@ const ExhaustiveKnnParameters = {
7381
6630
  }
7382
6631
  }
7383
6632
  };
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
- };
7464
6633
  const DistanceScoringParameters = {
7465
6634
  type: {
7466
6635
  name: "Composite",
@@ -7675,32 +6844,6 @@ const CustomEntityAlias = {
7675
6844
  }
7676
6845
  }
7677
6846
  };
7678
- const SearchIndexerDataNoneIdentity = {
7679
- serializedName: "#Microsoft.Azure.Search.DataNoneIdentity",
7680
- type: {
7681
- name: "Composite",
7682
- className: "SearchIndexerDataNoneIdentity",
7683
- uberParent: "SearchIndexerDataIdentity",
7684
- polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
7685
- modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties)
7686
- }
7687
- };
7688
- const SearchIndexerDataUserAssignedIdentity = {
7689
- serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity",
7690
- type: {
7691
- name: "Composite",
7692
- className: "SearchIndexerDataUserAssignedIdentity",
7693
- uberParent: "SearchIndexerDataIdentity",
7694
- polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
7695
- modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
7696
- serializedName: "userAssignedIdentity",
7697
- required: true,
7698
- type: {
7699
- name: "String"
7700
- }
7701
- } })
7702
- }
7703
- };
7704
6847
  const HighWaterMarkChangeDetectionPolicy = {
7705
6848
  serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy",
7706
6849
  type: {
@@ -7747,16 +6890,6 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
7747
6890
  } })
7748
6891
  }
7749
6892
  };
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
- };
7760
6893
  const ConditionalSkill = {
7761
6894
  serializedName: "#Microsoft.Skills.Util.ConditionalSkill",
7762
6895
  type: {
@@ -7812,11 +6945,6 @@ const OcrSkill = {
7812
6945
  type: {
7813
6946
  name: "Boolean"
7814
6947
  }
7815
- }, lineEnding: {
7816
- serializedName: "lineEnding",
7817
- type: {
7818
- name: "String"
7819
- }
7820
6948
  } })
7821
6949
  }
7822
6950
  };
@@ -8106,7 +7234,7 @@ const PIIDetectionSkill = {
8106
7234
  type: {
8107
7235
  name: "String"
8108
7236
  }
8109
- }, piiCategories: {
7237
+ }, categories: {
8110
7238
  serializedName: "piiCategories",
8111
7239
  type: {
8112
7240
  name: "Sequence",
@@ -8148,18 +7276,6 @@ const SplitSkill = {
8148
7276
  type: {
8149
7277
  name: "Number"
8150
7278
  }
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
- }
8163
7279
  } })
8164
7280
  }
8165
7281
  };
@@ -8312,95 +7428,6 @@ const WebApiSkill = {
8312
7428
  type: {
8313
7429
  name: "Number"
8314
7430
  }
8315
- }, authResourceId: {
8316
- serializedName: "authResourceId",
8317
- nullable: true,
8318
- type: {
8319
- name: "String"
8320
- }
8321
- }, authIdentity: {
8322
- serializedName: "authIdentity",
8323
- type: {
8324
- name: "Composite",
8325
- className: "SearchIndexerDataIdentity"
8326
- }
8327
- } })
8328
- }
8329
- };
8330
- const AzureMachineLearningSkill = {
8331
- serializedName: "#Microsoft.Skills.Custom.AmlSkill",
8332
- type: {
8333
- name: "Composite",
8334
- className: "AzureMachineLearningSkill",
8335
- uberParent: "SearchIndexerSkill",
8336
- polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8337
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
8338
- serializedName: "uri",
8339
- nullable: true,
8340
- type: {
8341
- name: "String"
8342
- }
8343
- }, authenticationKey: {
8344
- serializedName: "key",
8345
- nullable: true,
8346
- type: {
8347
- name: "String"
8348
- }
8349
- }, resourceId: {
8350
- serializedName: "resourceId",
8351
- nullable: true,
8352
- type: {
8353
- name: "String"
8354
- }
8355
- }, timeout: {
8356
- serializedName: "timeout",
8357
- nullable: true,
8358
- type: {
8359
- name: "TimeSpan"
8360
- }
8361
- }, region: {
8362
- serializedName: "region",
8363
- nullable: true,
8364
- type: {
8365
- name: "String"
8366
- }
8367
- }, degreeOfParallelism: {
8368
- serializedName: "degreeOfParallelism",
8369
- nullable: true,
8370
- type: {
8371
- name: "Number"
8372
- }
8373
- } })
8374
- }
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
7431
  } })
8405
7432
  }
8406
7433
  };
@@ -9950,36 +8977,6 @@ const PatternReplaceCharFilter = {
9950
8977
  } })
9951
8978
  }
9952
8979
  };
9953
- const CustomNormalizer = {
9954
- serializedName: "#Microsoft.Azure.Search.CustomNormalizer",
9955
- type: {
9956
- name: "Composite",
9957
- className: "CustomNormalizer",
9958
- uberParent: "LexicalNormalizer",
9959
- polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
9960
- modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
9961
- serializedName: "tokenFilters",
9962
- type: {
9963
- name: "Sequence",
9964
- element: {
9965
- type: {
9966
- name: "String"
9967
- }
9968
- }
9969
- }
9970
- }, charFilters: {
9971
- serializedName: "charFilters",
9972
- type: {
9973
- name: "Sequence",
9974
- element: {
9975
- type: {
9976
- name: "String"
9977
- }
9978
- }
9979
- }
9980
- } })
9981
- }
9982
- };
9983
8980
  const ClassicSimilarity = {
9984
8981
  serializedName: "#Microsoft.Azure.Search.ClassicSimilarity",
9985
8982
  type: {
@@ -10012,11 +9009,11 @@ const BM25Similarity = {
10012
9009
  } })
10013
9010
  }
10014
9011
  };
10015
- const HnswVectorSearchAlgorithmConfiguration = {
9012
+ const HnswAlgorithmConfiguration = {
10016
9013
  serializedName: "hnsw",
10017
9014
  type: {
10018
9015
  name: "Composite",
10019
- className: "HnswVectorSearchAlgorithmConfiguration",
9016
+ className: "HnswAlgorithmConfiguration",
10020
9017
  uberParent: "VectorSearchAlgorithmConfiguration",
10021
9018
  polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
10022
9019
  modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
@@ -10028,11 +9025,11 @@ const HnswVectorSearchAlgorithmConfiguration = {
10028
9025
  } })
10029
9026
  }
10030
9027
  };
10031
- const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
9028
+ const ExhaustiveKnnAlgorithmConfiguration = {
10032
9029
  serializedName: "exhaustiveKnn",
10033
9030
  type: {
10034
9031
  name: "Composite",
10035
- className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration",
9032
+ className: "ExhaustiveKnnAlgorithmConfiguration",
10036
9033
  uberParent: "VectorSearchAlgorithmConfiguration",
10037
9034
  polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
10038
9035
  modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
@@ -10044,38 +9041,6 @@ const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
10044
9041
  } })
10045
9042
  }
10046
9043
  };
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
- };
10079
9044
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
10080
9045
  type: {
10081
9046
  name: "Composite",
@@ -10091,7 +9056,6 @@ const SearchIndexerKnowledgeStoreFileProjectionSelector = {
10091
9056
  }
10092
9057
  };
10093
9058
  let discriminators = {
10094
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
10095
9059
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10096
9060
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10097
9061
  SearchIndexerSkill: SearchIndexerSkill,
@@ -10101,16 +9065,11 @@ let discriminators = {
10101
9065
  LexicalTokenizer: LexicalTokenizer,
10102
9066
  TokenFilter: TokenFilter,
10103
9067
  CharFilter: CharFilter,
10104
- LexicalNormalizer: LexicalNormalizer,
10105
9068
  Similarity: Similarity,
10106
9069
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10107
- VectorSearchVectorizer: VectorSearchVectorizer,
10108
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity,
10109
- "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity,
10110
9070
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy,
10111
9071
  "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy,
10112
9072
  "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy,
10113
- "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy,
10114
9073
  "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill,
10115
9074
  "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill,
10116
9075
  "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill,
@@ -10129,8 +9088,6 @@ let discriminators = {
10129
9088
  "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
10130
9089
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
10131
9090
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
10132
- "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
10133
- "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill,
10134
9091
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
10135
9092
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
10136
9093
  "ScoringFunction.distance": DistanceScoringFunction,
@@ -10180,13 +9137,10 @@ let discriminators = {
10180
9137
  "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter,
10181
9138
  "CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter,
10182
9139
  "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter,
10183
- "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer,
10184
9140
  "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity,
10185
9141
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity,
10186
- "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration,
10187
- "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration,
10188
- "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer,
10189
- "VectorSearchVectorizer.customWebApi": CustomVectorizer
9142
+ "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration,
9143
+ "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnAlgorithmConfiguration
10190
9144
  };
10191
9145
 
10192
9146
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -10196,10 +9150,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10196
9150
  AnalyzedTokenInfo: AnalyzedTokenInfo,
10197
9151
  AsciiFoldingTokenFilter: AsciiFoldingTokenFilter,
10198
9152
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
10199
- AzureMachineLearningSkill: AzureMachineLearningSkill,
10200
- AzureOpenAIEmbeddingSkill: AzureOpenAIEmbeddingSkill,
10201
- AzureOpenAIParameters: AzureOpenAIParameters,
10202
- AzureOpenAIVectorizer: AzureOpenAIVectorizer,
10203
9153
  BM25Similarity: BM25Similarity,
10204
9154
  CharFilter: CharFilter,
10205
9155
  CjkBigramTokenFilter: CjkBigramTokenFilter,
@@ -10214,9 +9164,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10214
9164
  CustomEntity: CustomEntity,
10215
9165
  CustomEntityAlias: CustomEntityAlias,
10216
9166
  CustomEntityLookupSkill: CustomEntityLookupSkill,
10217
- CustomNormalizer: CustomNormalizer,
10218
- CustomVectorizer: CustomVectorizer,
10219
- CustomVectorizerParameters: CustomVectorizerParameters,
10220
9167
  DataChangeDetectionPolicy: DataChangeDetectionPolicy,
10221
9168
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
10222
9169
  DataSourceCredentials: DataSourceCredentials,
@@ -10225,7 +9172,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10225
9172
  DistanceScoringFunction: DistanceScoringFunction,
10226
9173
  DistanceScoringParameters: DistanceScoringParameters,
10227
9174
  DocumentExtractionSkill: DocumentExtractionSkill,
10228
- DocumentKeysOrIds: DocumentKeysOrIds,
10229
9175
  EdgeNGramTokenFilter: EdgeNGramTokenFilter,
10230
9176
  EdgeNGramTokenFilterV2: EdgeNGramTokenFilterV2,
10231
9177
  EdgeNGramTokenizer: EdgeNGramTokenizer,
@@ -10233,19 +9179,18 @@ var Mappers = /*#__PURE__*/Object.freeze({
10233
9179
  EntityLinkingSkill: EntityLinkingSkill,
10234
9180
  EntityRecognitionSkill: EntityRecognitionSkill,
10235
9181
  EntityRecognitionSkillV3: EntityRecognitionSkillV3,
9182
+ ExhaustiveKnnAlgorithmConfiguration: ExhaustiveKnnAlgorithmConfiguration,
10236
9183
  ExhaustiveKnnParameters: ExhaustiveKnnParameters,
10237
- ExhaustiveKnnVectorSearchAlgorithmConfiguration: ExhaustiveKnnVectorSearchAlgorithmConfiguration,
10238
9184
  FieldMapping: FieldMapping,
10239
9185
  FieldMappingFunction: FieldMappingFunction,
10240
9186
  FreshnessScoringFunction: FreshnessScoringFunction,
10241
9187
  FreshnessScoringParameters: FreshnessScoringParameters,
10242
9188
  GetIndexStatisticsResult: GetIndexStatisticsResult,
10243
9189
  HighWaterMarkChangeDetectionPolicy: HighWaterMarkChangeDetectionPolicy,
9190
+ HnswAlgorithmConfiguration: HnswAlgorithmConfiguration,
10244
9191
  HnswParameters: HnswParameters,
10245
- HnswVectorSearchAlgorithmConfiguration: HnswVectorSearchAlgorithmConfiguration,
10246
9192
  ImageAnalysisSkill: ImageAnalysisSkill,
10247
9193
  IndexerExecutionResult: IndexerExecutionResult,
10248
- IndexerState: IndexerState,
10249
9194
  IndexingParameters: IndexingParameters,
10250
9195
  IndexingParametersConfiguration: IndexingParametersConfiguration,
10251
9196
  IndexingSchedule: IndexingSchedule,
@@ -10258,10 +9203,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
10258
9203
  LanguageDetectionSkill: LanguageDetectionSkill,
10259
9204
  LengthTokenFilter: LengthTokenFilter,
10260
9205
  LexicalAnalyzer: LexicalAnalyzer,
10261
- LexicalNormalizer: LexicalNormalizer,
10262
9206
  LexicalTokenizer: LexicalTokenizer,
10263
9207
  LimitTokenFilter: LimitTokenFilter,
10264
- ListAliasesResult: ListAliasesResult,
10265
9208
  ListDataSourcesResult: ListDataSourcesResult,
10266
9209
  ListIndexersResult: ListIndexersResult,
10267
9210
  ListIndexesResult: ListIndexesResult,
@@ -10279,7 +9222,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10279
9222
  NGramTokenFilter: NGramTokenFilter,
10280
9223
  NGramTokenFilterV2: NGramTokenFilterV2,
10281
9224
  NGramTokenizer: NGramTokenizer,
10282
- NativeBlobSoftDeleteDeletionDetectionPolicy: NativeBlobSoftDeleteDeletionDetectionPolicy,
10283
9225
  OcrSkill: OcrSkill,
10284
9226
  OutputFieldMappingEntry: OutputFieldMappingEntry,
10285
9227
  PIIDetectionSkill: PIIDetectionSkill,
@@ -10290,30 +9232,20 @@ var Mappers = /*#__PURE__*/Object.freeze({
10290
9232
  PatternReplaceTokenFilter: PatternReplaceTokenFilter,
10291
9233
  PatternTokenizer: PatternTokenizer,
10292
9234
  PhoneticTokenFilter: PhoneticTokenFilter,
10293
- PrioritizedFields: PrioritizedFields,
10294
9235
  ResourceCounter: ResourceCounter,
10295
9236
  ScoringFunction: ScoringFunction,
10296
9237
  ScoringProfile: ScoringProfile,
10297
- SearchAlias: SearchAlias,
10298
9238
  SearchError: SearchError,
10299
9239
  SearchField: SearchField,
10300
9240
  SearchIndex: SearchIndex,
10301
9241
  SearchIndexer: SearchIndexer,
10302
- SearchIndexerCache: SearchIndexerCache,
10303
9242
  SearchIndexerDataContainer: SearchIndexerDataContainer,
10304
- SearchIndexerDataIdentity: SearchIndexerDataIdentity,
10305
- SearchIndexerDataNoneIdentity: SearchIndexerDataNoneIdentity,
10306
9243
  SearchIndexerDataSource: SearchIndexerDataSource,
10307
- SearchIndexerDataUserAssignedIdentity: SearchIndexerDataUserAssignedIdentity,
10308
9244
  SearchIndexerError: SearchIndexerError,
10309
- SearchIndexerIndexProjectionSelector: SearchIndexerIndexProjectionSelector,
10310
- SearchIndexerIndexProjections: SearchIndexerIndexProjections,
10311
- SearchIndexerIndexProjectionsParameters: SearchIndexerIndexProjectionsParameters,
10312
9245
  SearchIndexerKnowledgeStore: SearchIndexerKnowledgeStore,
10313
9246
  SearchIndexerKnowledgeStoreBlobProjectionSelector: SearchIndexerKnowledgeStoreBlobProjectionSelector,
10314
9247
  SearchIndexerKnowledgeStoreFileProjectionSelector: SearchIndexerKnowledgeStoreFileProjectionSelector,
10315
9248
  SearchIndexerKnowledgeStoreObjectProjectionSelector: SearchIndexerKnowledgeStoreObjectProjectionSelector,
10316
- SearchIndexerKnowledgeStoreParameters: SearchIndexerKnowledgeStoreParameters,
10317
9249
  SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
10318
9250
  SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
10319
9251
  SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
@@ -10325,7 +9257,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
10325
9257
  SearchResourceEncryptionKey: SearchResourceEncryptionKey,
10326
9258
  SemanticConfiguration: SemanticConfiguration,
10327
9259
  SemanticField: SemanticField,
10328
- SemanticSettings: SemanticSettings,
9260
+ SemanticPrioritizedFields: SemanticPrioritizedFields,
9261
+ SemanticSearch: SemanticSearch,
10329
9262
  SentimentSkill: SentimentSkill,
10330
9263
  SentimentSkillV3: SentimentSkillV3,
10331
9264
  ServiceCounters: ServiceCounters,
@@ -10334,7 +9267,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10334
9267
  ShaperSkill: ShaperSkill,
10335
9268
  ShingleTokenFilter: ShingleTokenFilter,
10336
9269
  Similarity: Similarity,
10337
- SkillNames: SkillNames,
10338
9270
  SnowballTokenFilter: SnowballTokenFilter,
10339
9271
  SoftDeleteColumnDeletionDetectionPolicy: SoftDeleteColumnDeletionDetectionPolicy,
10340
9272
  SplitSkill: SplitSkill,
@@ -10357,7 +9289,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
10357
9289
  VectorSearch: VectorSearch,
10358
9290
  VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration,
10359
9291
  VectorSearchProfile: VectorSearchProfile,
10360
- VectorSearchVectorizer: VectorSearchVectorizer,
10361
9292
  WebApiSkill: WebApiSkill,
10362
9293
  WordDelimiterTokenFilter: WordDelimiterTokenFilter,
10363
9294
  discriminators: discriminators
@@ -10456,15 +9387,6 @@ const apiVersion = {
10456
9387
  }
10457
9388
  }
10458
9389
  };
10459
- const skipIndexerResetRequirementForCache = {
10460
- parameterPath: ["options", "skipIndexerResetRequirementForCache"],
10461
- mapper: {
10462
- serializedName: "ignoreResetRequirements",
10463
- type: {
10464
- name: "Boolean"
10465
- }
10466
- }
10467
- };
10468
9390
  const select = {
10469
9391
  parameterPath: ["options", "select"],
10470
9392
  mapper: {
@@ -10484,32 +9406,9 @@ const indexerName = {
10484
9406
  }
10485
9407
  }
10486
9408
  };
10487
- const keysOrIds = {
10488
- parameterPath: ["options", "keysOrIds"],
10489
- mapper: DocumentKeysOrIds
10490
- };
10491
- const overwrite = {
10492
- parameterPath: ["options", "overwrite"],
10493
- mapper: {
10494
- defaultValue: false,
10495
- serializedName: "overwrite",
10496
- type: {
10497
- name: "Boolean"
10498
- }
10499
- }
10500
- };
10501
- const indexer = {
10502
- parameterPath: "indexer",
10503
- mapper: SearchIndexer
10504
- };
10505
- const disableCacheReprocessingChangeDetection = {
10506
- parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
10507
- mapper: {
10508
- serializedName: "disableCacheReprocessingChangeDetection",
10509
- type: {
10510
- name: "Boolean"
10511
- }
10512
- }
9409
+ const indexer = {
9410
+ parameterPath: "indexer",
9411
+ mapper: SearchIndexer
10513
9412
  };
10514
9413
  const skillset = {
10515
9414
  parameterPath: "skillset",
@@ -10525,10 +9424,6 @@ const skillsetName = {
10525
9424
  }
10526
9425
  }
10527
9426
  };
10528
- const skillNames = {
10529
- parameterPath: "skillNames",
10530
- mapper: SkillNames
10531
- };
10532
9427
  const synonymMap = {
10533
9428
  parameterPath: "synonymMap",
10534
9429
  mapper: SynonymMap
@@ -10570,20 +9465,6 @@ const request = {
10570
9465
  parameterPath: "request",
10571
9466
  mapper: AnalyzeRequest
10572
9467
  };
10573
- const alias = {
10574
- parameterPath: "alias",
10575
- mapper: SearchAlias
10576
- };
10577
- const aliasName = {
10578
- parameterPath: "aliasName",
10579
- mapper: {
10580
- serializedName: "aliasName",
10581
- required: true,
10582
- type: {
10583
- name: "String"
10584
- }
10585
- }
10586
- };
10587
9468
 
10588
9469
  /*
10589
9470
  * Copyright (c) Microsoft Corporation.
@@ -10608,7 +9489,7 @@ class DataSourcesImpl {
10608
9489
  * @param options The options parameters.
10609
9490
  */
10610
9491
  createOrUpdate(dataSourceName, dataSource, options) {
10611
- return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$5);
9492
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
10612
9493
  }
10613
9494
  /**
10614
9495
  * Deletes a datasource.
@@ -10616,7 +9497,7 @@ class DataSourcesImpl {
10616
9497
  * @param options The options parameters.
10617
9498
  */
10618
9499
  delete(dataSourceName, options) {
10619
- return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$5);
9500
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
10620
9501
  }
10621
9502
  /**
10622
9503
  * Retrieves a datasource definition.
@@ -10624,14 +9505,14 @@ class DataSourcesImpl {
10624
9505
  * @param options The options parameters.
10625
9506
  */
10626
9507
  get(dataSourceName, options) {
10627
- return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$5);
9508
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
10628
9509
  }
10629
9510
  /**
10630
9511
  * Lists all datasources available for a search service.
10631
9512
  * @param options The options parameters.
10632
9513
  */
10633
9514
  list(options) {
10634
- return this.client.sendOperationRequest({ options }, listOperationSpec$5);
9515
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
10635
9516
  }
10636
9517
  /**
10637
9518
  * Creates a new datasource.
@@ -10639,12 +9520,12 @@ class DataSourcesImpl {
10639
9520
  * @param options The options parameters.
10640
9521
  */
10641
9522
  create(dataSource, options) {
10642
- return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$5);
9523
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
10643
9524
  }
10644
9525
  }
10645
9526
  // Operation Specifications
10646
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10647
- const createOrUpdateOperationSpec$5 = {
9527
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9528
+ const createOrUpdateOperationSpec$4 = {
10648
9529
  path: "/datasources('{dataSourceName}')",
10649
9530
  httpMethod: "PUT",
10650
9531
  responses: {
@@ -10659,10 +9540,7 @@ const createOrUpdateOperationSpec$5 = {
10659
9540
  }
10660
9541
  },
10661
9542
  requestBody: dataSource,
10662
- queryParameters: [
10663
- apiVersion,
10664
- skipIndexerResetRequirementForCache
10665
- ],
9543
+ queryParameters: [apiVersion],
10666
9544
  urlParameters: [endpoint, dataSourceName],
10667
9545
  headerParameters: [
10668
9546
  contentType,
@@ -10672,9 +9550,9 @@ const createOrUpdateOperationSpec$5 = {
10672
9550
  prefer
10673
9551
  ],
10674
9552
  mediaType: "json",
10675
- serializer: serializer$6
9553
+ serializer: serializer$5
10676
9554
  };
10677
- const deleteOperationSpec$5 = {
9555
+ const deleteOperationSpec$4 = {
10678
9556
  path: "/datasources('{dataSourceName}')",
10679
9557
  httpMethod: "DELETE",
10680
9558
  responses: {
@@ -10691,9 +9569,9 @@ const deleteOperationSpec$5 = {
10691
9569
  ifMatch,
10692
9570
  ifNoneMatch
10693
9571
  ],
10694
- serializer: serializer$6
9572
+ serializer: serializer$5
10695
9573
  };
10696
- const getOperationSpec$5 = {
9574
+ const getOperationSpec$4 = {
10697
9575
  path: "/datasources('{dataSourceName}')",
10698
9576
  httpMethod: "GET",
10699
9577
  responses: {
@@ -10707,9 +9585,9 @@ const getOperationSpec$5 = {
10707
9585
  queryParameters: [apiVersion],
10708
9586
  urlParameters: [endpoint, dataSourceName],
10709
9587
  headerParameters: [accept],
10710
- serializer: serializer$6
9588
+ serializer: serializer$5
10711
9589
  };
10712
- const listOperationSpec$5 = {
9590
+ const listOperationSpec$4 = {
10713
9591
  path: "/datasources",
10714
9592
  httpMethod: "GET",
10715
9593
  responses: {
@@ -10723,9 +9601,9 @@ const listOperationSpec$5 = {
10723
9601
  queryParameters: [apiVersion, select],
10724
9602
  urlParameters: [endpoint],
10725
9603
  headerParameters: [accept],
10726
- serializer: serializer$6
9604
+ serializer: serializer$5
10727
9605
  };
10728
- const createOperationSpec$5 = {
9606
+ const createOperationSpec$4 = {
10729
9607
  path: "/datasources",
10730
9608
  httpMethod: "POST",
10731
9609
  responses: {
@@ -10741,7 +9619,7 @@ const createOperationSpec$5 = {
10741
9619
  urlParameters: [endpoint],
10742
9620
  headerParameters: [contentType, accept],
10743
9621
  mediaType: "json",
10744
- serializer: serializer$6
9622
+ serializer: serializer$5
10745
9623
  };
10746
9624
 
10747
9625
  /*
@@ -10768,14 +9646,6 @@ class IndexersImpl {
10768
9646
  reset(indexerName, options) {
10769
9647
  return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
10770
9648
  }
10771
- /**
10772
- * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
10773
- * @param indexerName The name of the indexer to reset documents for.
10774
- * @param options The options parameters.
10775
- */
10776
- resetDocs(indexerName, options) {
10777
- return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
10778
- }
10779
9649
  /**
10780
9650
  * Runs an indexer on-demand.
10781
9651
  * @param indexerName The name of the indexer to run.
@@ -10791,7 +9661,7 @@ class IndexersImpl {
10791
9661
  * @param options The options parameters.
10792
9662
  */
10793
9663
  createOrUpdate(indexerName, indexer, options) {
10794
- return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$4);
9664
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
10795
9665
  }
10796
9666
  /**
10797
9667
  * Deletes an indexer.
@@ -10799,7 +9669,7 @@ class IndexersImpl {
10799
9669
  * @param options The options parameters.
10800
9670
  */
10801
9671
  delete(indexerName, options) {
10802
- return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$4);
9672
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
10803
9673
  }
10804
9674
  /**
10805
9675
  * Retrieves an indexer definition.
@@ -10807,14 +9677,14 @@ class IndexersImpl {
10807
9677
  * @param options The options parameters.
10808
9678
  */
10809
9679
  get(indexerName, options) {
10810
- return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$4);
9680
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
10811
9681
  }
10812
9682
  /**
10813
9683
  * Lists all indexers available for a search service.
10814
9684
  * @param options The options parameters.
10815
9685
  */
10816
9686
  list(options) {
10817
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
9687
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
10818
9688
  }
10819
9689
  /**
10820
9690
  * Creates a new indexer.
@@ -10822,7 +9692,7 @@ class IndexersImpl {
10822
9692
  * @param options The options parameters.
10823
9693
  */
10824
9694
  create(indexer, options) {
10825
- return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$4);
9695
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
10826
9696
  }
10827
9697
  /**
10828
9698
  * Returns the current status and execution history of an indexer.
@@ -10834,7 +9704,7 @@ class IndexersImpl {
10834
9704
  }
10835
9705
  }
10836
9706
  // Operation Specifications
10837
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9707
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10838
9708
  const resetOperationSpec = {
10839
9709
  path: "/indexers('{indexerName}')/search.reset",
10840
9710
  httpMethod: "POST",
@@ -10847,23 +9717,7 @@ const resetOperationSpec = {
10847
9717
  queryParameters: [apiVersion],
10848
9718
  urlParameters: [endpoint, indexerName],
10849
9719
  headerParameters: [accept],
10850
- serializer: serializer$5
10851
- };
10852
- const resetDocsOperationSpec = {
10853
- path: "/indexers('{indexerName}')/search.resetdocs",
10854
- httpMethod: "POST",
10855
- responses: {
10856
- 204: {},
10857
- default: {
10858
- bodyMapper: SearchError
10859
- }
10860
- },
10861
- requestBody: keysOrIds,
10862
- queryParameters: [apiVersion, overwrite],
10863
- urlParameters: [endpoint, indexerName],
10864
- headerParameters: [contentType, accept],
10865
- mediaType: "json",
10866
- serializer: serializer$5
9720
+ serializer: serializer$4
10867
9721
  };
10868
9722
  const runOperationSpec = {
10869
9723
  path: "/indexers('{indexerName}')/search.run",
@@ -10877,9 +9731,9 @@ const runOperationSpec = {
10877
9731
  queryParameters: [apiVersion],
10878
9732
  urlParameters: [endpoint, indexerName],
10879
9733
  headerParameters: [accept],
10880
- serializer: serializer$5
9734
+ serializer: serializer$4
10881
9735
  };
10882
- const createOrUpdateOperationSpec$4 = {
9736
+ const createOrUpdateOperationSpec$3 = {
10883
9737
  path: "/indexers('{indexerName}')",
10884
9738
  httpMethod: "PUT",
10885
9739
  responses: {
@@ -10894,11 +9748,7 @@ const createOrUpdateOperationSpec$4 = {
10894
9748
  }
10895
9749
  },
10896
9750
  requestBody: indexer,
10897
- queryParameters: [
10898
- apiVersion,
10899
- skipIndexerResetRequirementForCache,
10900
- disableCacheReprocessingChangeDetection
10901
- ],
9751
+ queryParameters: [apiVersion],
10902
9752
  urlParameters: [endpoint, indexerName],
10903
9753
  headerParameters: [
10904
9754
  contentType,
@@ -10908,9 +9758,9 @@ const createOrUpdateOperationSpec$4 = {
10908
9758
  prefer
10909
9759
  ],
10910
9760
  mediaType: "json",
10911
- serializer: serializer$5
9761
+ serializer: serializer$4
10912
9762
  };
10913
- const deleteOperationSpec$4 = {
9763
+ const deleteOperationSpec$3 = {
10914
9764
  path: "/indexers('{indexerName}')",
10915
9765
  httpMethod: "DELETE",
10916
9766
  responses: {
@@ -10927,9 +9777,9 @@ const deleteOperationSpec$4 = {
10927
9777
  ifMatch,
10928
9778
  ifNoneMatch
10929
9779
  ],
10930
- serializer: serializer$5
9780
+ serializer: serializer$4
10931
9781
  };
10932
- const getOperationSpec$4 = {
9782
+ const getOperationSpec$3 = {
10933
9783
  path: "/indexers('{indexerName}')",
10934
9784
  httpMethod: "GET",
10935
9785
  responses: {
@@ -10943,9 +9793,9 @@ const getOperationSpec$4 = {
10943
9793
  queryParameters: [apiVersion],
10944
9794
  urlParameters: [endpoint, indexerName],
10945
9795
  headerParameters: [accept],
10946
- serializer: serializer$5
9796
+ serializer: serializer$4
10947
9797
  };
10948
- const listOperationSpec$4 = {
9798
+ const listOperationSpec$3 = {
10949
9799
  path: "/indexers",
10950
9800
  httpMethod: "GET",
10951
9801
  responses: {
@@ -10959,9 +9809,9 @@ const listOperationSpec$4 = {
10959
9809
  queryParameters: [apiVersion, select],
10960
9810
  urlParameters: [endpoint],
10961
9811
  headerParameters: [accept],
10962
- serializer: serializer$5
9812
+ serializer: serializer$4
10963
9813
  };
10964
- const createOperationSpec$4 = {
9814
+ const createOperationSpec$3 = {
10965
9815
  path: "/indexers",
10966
9816
  httpMethod: "POST",
10967
9817
  responses: {
@@ -10977,7 +9827,7 @@ const createOperationSpec$4 = {
10977
9827
  urlParameters: [endpoint],
10978
9828
  headerParameters: [contentType, accept],
10979
9829
  mediaType: "json",
10980
- serializer: serializer$5
9830
+ serializer: serializer$4
10981
9831
  };
10982
9832
  const getStatusOperationSpec = {
10983
9833
  path: "/indexers('{indexerName}')/search.status",
@@ -10993,7 +9843,7 @@ const getStatusOperationSpec = {
10993
9843
  queryParameters: [apiVersion],
10994
9844
  urlParameters: [endpoint, indexerName],
10995
9845
  headerParameters: [accept],
10996
- serializer: serializer$5
9846
+ serializer: serializer$4
10997
9847
  };
10998
9848
 
10999
9849
  /*
@@ -11019,7 +9869,7 @@ class SkillsetsImpl {
11019
9869
  * @param options The options parameters.
11020
9870
  */
11021
9871
  createOrUpdate(skillsetName, skillset, options) {
11022
- return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$3);
9872
+ return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
11023
9873
  }
11024
9874
  /**
11025
9875
  * Deletes a skillset in a search service.
@@ -11027,7 +9877,7 @@ class SkillsetsImpl {
11027
9877
  * @param options The options parameters.
11028
9878
  */
11029
9879
  delete(skillsetName, options) {
11030
- return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$3);
9880
+ return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
11031
9881
  }
11032
9882
  /**
11033
9883
  * Retrieves a skillset in a search service.
@@ -11035,14 +9885,14 @@ class SkillsetsImpl {
11035
9885
  * @param options The options parameters.
11036
9886
  */
11037
9887
  get(skillsetName, options) {
11038
- return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
9888
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
11039
9889
  }
11040
9890
  /**
11041
9891
  * List all skillsets in a search service.
11042
9892
  * @param options The options parameters.
11043
9893
  */
11044
9894
  list(options) {
11045
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
9895
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
11046
9896
  }
11047
9897
  /**
11048
9898
  * Creates a new skillset in a search service.
@@ -11050,21 +9900,12 @@ class SkillsetsImpl {
11050
9900
  * @param options The options parameters.
11051
9901
  */
11052
9902
  create(skillset, options) {
11053
- return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$3);
11054
- }
11055
- /**
11056
- * Reset an existing skillset in a search service.
11057
- * @param skillsetName The name of the skillset to reset.
11058
- * @param skillNames The names of skills to reset.
11059
- * @param options The options parameters.
11060
- */
11061
- resetSkills(skillsetName, skillNames, options) {
11062
- return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
9903
+ return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
11063
9904
  }
11064
9905
  }
11065
9906
  // Operation Specifications
11066
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11067
- const createOrUpdateOperationSpec$3 = {
9907
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9908
+ const createOrUpdateOperationSpec$2 = {
11068
9909
  path: "/skillsets('{skillsetName}')",
11069
9910
  httpMethod: "PUT",
11070
9911
  responses: {
@@ -11079,11 +9920,7 @@ const createOrUpdateOperationSpec$3 = {
11079
9920
  }
11080
9921
  },
11081
9922
  requestBody: skillset,
11082
- queryParameters: [
11083
- apiVersion,
11084
- skipIndexerResetRequirementForCache,
11085
- disableCacheReprocessingChangeDetection
11086
- ],
9923
+ queryParameters: [apiVersion],
11087
9924
  urlParameters: [endpoint, skillsetName],
11088
9925
  headerParameters: [
11089
9926
  contentType,
@@ -11093,9 +9930,9 @@ const createOrUpdateOperationSpec$3 = {
11093
9930
  prefer
11094
9931
  ],
11095
9932
  mediaType: "json",
11096
- serializer: serializer$4
9933
+ serializer: serializer$3
11097
9934
  };
11098
- const deleteOperationSpec$3 = {
9935
+ const deleteOperationSpec$2 = {
11099
9936
  path: "/skillsets('{skillsetName}')",
11100
9937
  httpMethod: "DELETE",
11101
9938
  responses: {
@@ -11112,9 +9949,9 @@ const deleteOperationSpec$3 = {
11112
9949
  ifMatch,
11113
9950
  ifNoneMatch
11114
9951
  ],
11115
- serializer: serializer$4
9952
+ serializer: serializer$3
11116
9953
  };
11117
- const getOperationSpec$3 = {
9954
+ const getOperationSpec$2 = {
11118
9955
  path: "/skillsets('{skillsetName}')",
11119
9956
  httpMethod: "GET",
11120
9957
  responses: {
@@ -11128,9 +9965,9 @@ const getOperationSpec$3 = {
11128
9965
  queryParameters: [apiVersion],
11129
9966
  urlParameters: [endpoint, skillsetName],
11130
9967
  headerParameters: [accept],
11131
- serializer: serializer$4
9968
+ serializer: serializer$3
11132
9969
  };
11133
- const listOperationSpec$3 = {
9970
+ const listOperationSpec$2 = {
11134
9971
  path: "/skillsets",
11135
9972
  httpMethod: "GET",
11136
9973
  responses: {
@@ -11144,9 +9981,9 @@ const listOperationSpec$3 = {
11144
9981
  queryParameters: [apiVersion, select],
11145
9982
  urlParameters: [endpoint],
11146
9983
  headerParameters: [accept],
11147
- serializer: serializer$4
9984
+ serializer: serializer$3
11148
9985
  };
11149
- const createOperationSpec$3 = {
9986
+ const createOperationSpec$2 = {
11150
9987
  path: "/skillsets",
11151
9988
  httpMethod: "POST",
11152
9989
  responses: {
@@ -11162,23 +9999,7 @@ const createOperationSpec$3 = {
11162
9999
  urlParameters: [endpoint],
11163
10000
  headerParameters: [contentType, accept],
11164
10001
  mediaType: "json",
11165
- serializer: serializer$4
11166
- };
11167
- const resetSkillsOperationSpec = {
11168
- path: "/skillsets('{skillsetName}')/search.resetskills",
11169
- httpMethod: "POST",
11170
- responses: {
11171
- 204: {},
11172
- default: {
11173
- bodyMapper: SearchError
11174
- }
11175
- },
11176
- requestBody: skillNames,
11177
- queryParameters: [apiVersion],
11178
- urlParameters: [endpoint, skillsetName],
11179
- headerParameters: [contentType, accept],
11180
- mediaType: "json",
11181
- serializer: serializer$4
10002
+ serializer: serializer$3
11182
10003
  };
11183
10004
 
11184
10005
  /*
@@ -11204,7 +10025,7 @@ class SynonymMapsImpl {
11204
10025
  * @param options The options parameters.
11205
10026
  */
11206
10027
  createOrUpdate(synonymMapName, synonymMap, options) {
11207
- return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$2);
10028
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
11208
10029
  }
11209
10030
  /**
11210
10031
  * Deletes a synonym map.
@@ -11212,7 +10033,7 @@ class SynonymMapsImpl {
11212
10033
  * @param options The options parameters.
11213
10034
  */
11214
10035
  delete(synonymMapName, options) {
11215
- return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$2);
10036
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
11216
10037
  }
11217
10038
  /**
11218
10039
  * Retrieves a synonym map definition.
@@ -11220,14 +10041,14 @@ class SynonymMapsImpl {
11220
10041
  * @param options The options parameters.
11221
10042
  */
11222
10043
  get(synonymMapName, options) {
11223
- return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$2);
10044
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
11224
10045
  }
11225
10046
  /**
11226
10047
  * Lists all synonym maps available for a search service.
11227
10048
  * @param options The options parameters.
11228
10049
  */
11229
10050
  list(options) {
11230
- return this.client.sendOperationRequest({ options }, listOperationSpec$2);
10051
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
11231
10052
  }
11232
10053
  /**
11233
10054
  * Creates a new synonym map.
@@ -11235,12 +10056,12 @@ class SynonymMapsImpl {
11235
10056
  * @param options The options parameters.
11236
10057
  */
11237
10058
  create(synonymMap, options) {
11238
- return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$2);
10059
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
11239
10060
  }
11240
10061
  }
11241
10062
  // Operation Specifications
11242
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11243
- const createOrUpdateOperationSpec$2 = {
10063
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10064
+ const createOrUpdateOperationSpec$1 = {
11244
10065
  path: "/synonymmaps('{synonymMapName}')",
11245
10066
  httpMethod: "PUT",
11246
10067
  responses: {
@@ -11265,9 +10086,9 @@ const createOrUpdateOperationSpec$2 = {
11265
10086
  prefer
11266
10087
  ],
11267
10088
  mediaType: "json",
11268
- serializer: serializer$3
10089
+ serializer: serializer$2
11269
10090
  };
11270
- const deleteOperationSpec$2 = {
10091
+ const deleteOperationSpec$1 = {
11271
10092
  path: "/synonymmaps('{synonymMapName}')",
11272
10093
  httpMethod: "DELETE",
11273
10094
  responses: {
@@ -11284,9 +10105,9 @@ const deleteOperationSpec$2 = {
11284
10105
  ifMatch,
11285
10106
  ifNoneMatch
11286
10107
  ],
11287
- serializer: serializer$3
10108
+ serializer: serializer$2
11288
10109
  };
11289
- const getOperationSpec$2 = {
10110
+ const getOperationSpec$1 = {
11290
10111
  path: "/synonymmaps('{synonymMapName}')",
11291
10112
  httpMethod: "GET",
11292
10113
  responses: {
@@ -11300,9 +10121,9 @@ const getOperationSpec$2 = {
11300
10121
  queryParameters: [apiVersion],
11301
10122
  urlParameters: [endpoint, synonymMapName],
11302
10123
  headerParameters: [accept],
11303
- serializer: serializer$3
10124
+ serializer: serializer$2
11304
10125
  };
11305
- const listOperationSpec$2 = {
10126
+ const listOperationSpec$1 = {
11306
10127
  path: "/synonymmaps",
11307
10128
  httpMethod: "GET",
11308
10129
  responses: {
@@ -11316,9 +10137,9 @@ const listOperationSpec$2 = {
11316
10137
  queryParameters: [apiVersion, select],
11317
10138
  urlParameters: [endpoint],
11318
10139
  headerParameters: [accept],
11319
- serializer: serializer$3
10140
+ serializer: serializer$2
11320
10141
  };
11321
- const createOperationSpec$2 = {
10142
+ const createOperationSpec$1 = {
11322
10143
  path: "/synonymmaps",
11323
10144
  httpMethod: "POST",
11324
10145
  responses: {
@@ -11334,7 +10155,7 @@ const createOperationSpec$2 = {
11334
10155
  urlParameters: [endpoint],
11335
10156
  headerParameters: [contentType, accept],
11336
10157
  mediaType: "json",
11337
- serializer: serializer$3
10158
+ serializer: serializer$2
11338
10159
  };
11339
10160
 
11340
10161
  /*
@@ -11359,14 +10180,14 @@ class IndexesImpl {
11359
10180
  * @param options The options parameters.
11360
10181
  */
11361
10182
  create(index, options) {
11362
- return this.client.sendOperationRequest({ index, options }, createOperationSpec$1);
10183
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec);
11363
10184
  }
11364
10185
  /**
11365
10186
  * Lists all indexes available for a search service.
11366
10187
  * @param options The options parameters.
11367
10188
  */
11368
10189
  list(options) {
11369
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
10190
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
11370
10191
  }
11371
10192
  /**
11372
10193
  * Creates a new search index or updates an index if it already exists.
@@ -11375,7 +10196,7 @@ class IndexesImpl {
11375
10196
  * @param options The options parameters.
11376
10197
  */
11377
10198
  createOrUpdate(indexName, index, options) {
11378
- return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$1);
10199
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
11379
10200
  }
11380
10201
  /**
11381
10202
  * Deletes a search index and all the documents it contains. This operation is permanent, with no
@@ -11385,7 +10206,7 @@ class IndexesImpl {
11385
10206
  * @param options The options parameters.
11386
10207
  */
11387
10208
  delete(indexName, options) {
11388
- return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$1);
10209
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
11389
10210
  }
11390
10211
  /**
11391
10212
  * Retrieves an index definition.
@@ -11393,7 +10214,7 @@ class IndexesImpl {
11393
10214
  * @param options The options parameters.
11394
10215
  */
11395
10216
  get(indexName, options) {
11396
- return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$1);
10217
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
11397
10218
  }
11398
10219
  /**
11399
10220
  * Returns statistics for the given index, including a document count and storage usage.
@@ -11414,8 +10235,8 @@ class IndexesImpl {
11414
10235
  }
11415
10236
  }
11416
10237
  // Operation Specifications
11417
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11418
- const createOperationSpec$1 = {
10238
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10239
+ const createOperationSpec = {
11419
10240
  path: "/indexes",
11420
10241
  httpMethod: "POST",
11421
10242
  responses: {
@@ -11431,9 +10252,9 @@ const createOperationSpec$1 = {
11431
10252
  urlParameters: [endpoint],
11432
10253
  headerParameters: [contentType, accept],
11433
10254
  mediaType: "json",
11434
- serializer: serializer$2
10255
+ serializer: serializer$1
11435
10256
  };
11436
- const listOperationSpec$1 = {
10257
+ const listOperationSpec = {
11437
10258
  path: "/indexes",
11438
10259
  httpMethod: "GET",
11439
10260
  responses: {
@@ -11447,9 +10268,9 @@ const listOperationSpec$1 = {
11447
10268
  queryParameters: [apiVersion, select],
11448
10269
  urlParameters: [endpoint],
11449
10270
  headerParameters: [accept],
11450
- serializer: serializer$2
10271
+ serializer: serializer$1
11451
10272
  };
11452
- const createOrUpdateOperationSpec$1 = {
10273
+ const createOrUpdateOperationSpec = {
11453
10274
  path: "/indexes('{indexName}')",
11454
10275
  httpMethod: "PUT",
11455
10276
  responses: {
@@ -11474,9 +10295,9 @@ const createOrUpdateOperationSpec$1 = {
11474
10295
  prefer
11475
10296
  ],
11476
10297
  mediaType: "json",
11477
- serializer: serializer$2
10298
+ serializer: serializer$1
11478
10299
  };
11479
- const deleteOperationSpec$1 = {
10300
+ const deleteOperationSpec = {
11480
10301
  path: "/indexes('{indexName}')",
11481
10302
  httpMethod: "DELETE",
11482
10303
  responses: {
@@ -11493,9 +10314,9 @@ const deleteOperationSpec$1 = {
11493
10314
  ifMatch,
11494
10315
  ifNoneMatch
11495
10316
  ],
11496
- serializer: serializer$2
10317
+ serializer: serializer$1
11497
10318
  };
11498
- const getOperationSpec$1 = {
10319
+ const getOperationSpec = {
11499
10320
  path: "/indexes('{indexName}')",
11500
10321
  httpMethod: "GET",
11501
10322
  responses: {
@@ -11509,7 +10330,7 @@ const getOperationSpec$1 = {
11509
10330
  queryParameters: [apiVersion],
11510
10331
  urlParameters: [endpoint, indexName],
11511
10332
  headerParameters: [accept],
11512
- serializer: serializer$2
10333
+ serializer: serializer$1
11513
10334
  };
11514
10335
  const getStatisticsOperationSpec = {
11515
10336
  path: "/indexes('{indexName}')/search.stats",
@@ -11525,7 +10346,7 @@ const getStatisticsOperationSpec = {
11525
10346
  queryParameters: [apiVersion],
11526
10347
  urlParameters: [endpoint, indexName],
11527
10348
  headerParameters: [accept],
11528
- serializer: serializer$2
10349
+ serializer: serializer$1
11529
10350
  };
11530
10351
  const analyzeOperationSpec = {
11531
10352
  path: "/indexes('{indexName}')/search.analyze",
@@ -11543,163 +10364,6 @@ const analyzeOperationSpec = {
11543
10364
  urlParameters: [endpoint, indexName],
11544
10365
  headerParameters: [contentType, accept],
11545
10366
  mediaType: "json",
11546
- serializer: serializer$2
11547
- };
11548
-
11549
- /*
11550
- * Copyright (c) Microsoft Corporation.
11551
- * Licensed under the MIT License.
11552
- *
11553
- * Code generated by Microsoft (R) AutoRest Code Generator.
11554
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11555
- */
11556
- /** Class containing Aliases operations. */
11557
- class AliasesImpl {
11558
- /**
11559
- * Initialize a new instance of the class Aliases class.
11560
- * @param client Reference to the service client
11561
- */
11562
- constructor(client) {
11563
- this.client = client;
11564
- }
11565
- /**
11566
- * Creates a new search alias.
11567
- * @param alias The definition of the alias to create.
11568
- * @param options The options parameters.
11569
- */
11570
- create(alias, options) {
11571
- return this.client.sendOperationRequest({ alias, options }, createOperationSpec);
11572
- }
11573
- /**
11574
- * Lists all aliases available for a search service.
11575
- * @param options The options parameters.
11576
- */
11577
- list(options) {
11578
- return this.client.sendOperationRequest({ options }, listOperationSpec);
11579
- }
11580
- /**
11581
- * Creates a new search alias or updates an alias if it already exists.
11582
- * @param aliasName The definition of the alias to create or update.
11583
- * @param alias The definition of the alias to create or update.
11584
- * @param options The options parameters.
11585
- */
11586
- createOrUpdate(aliasName, alias, options) {
11587
- return this.client.sendOperationRequest({ aliasName, alias, options }, createOrUpdateOperationSpec);
11588
- }
11589
- /**
11590
- * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
11591
- * recovery option. The mapped index is untouched by this operation.
11592
- * @param aliasName The name of the alias to delete.
11593
- * @param options The options parameters.
11594
- */
11595
- delete(aliasName, options) {
11596
- return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
11597
- }
11598
- /**
11599
- * Retrieves an alias definition.
11600
- * @param aliasName The name of the alias to retrieve.
11601
- * @param options The options parameters.
11602
- */
11603
- get(aliasName, options) {
11604
- return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
11605
- }
11606
- }
11607
- // Operation Specifications
11608
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
11609
- const createOperationSpec = {
11610
- path: "/aliases",
11611
- httpMethod: "POST",
11612
- responses: {
11613
- 201: {
11614
- bodyMapper: SearchAlias
11615
- },
11616
- default: {
11617
- bodyMapper: SearchError
11618
- }
11619
- },
11620
- requestBody: alias,
11621
- queryParameters: [apiVersion],
11622
- urlParameters: [endpoint],
11623
- headerParameters: [contentType, accept],
11624
- mediaType: "json",
11625
- serializer: serializer$1
11626
- };
11627
- const listOperationSpec = {
11628
- path: "/aliases",
11629
- httpMethod: "GET",
11630
- responses: {
11631
- 200: {
11632
- bodyMapper: ListAliasesResult
11633
- },
11634
- default: {
11635
- bodyMapper: SearchError
11636
- }
11637
- },
11638
- queryParameters: [apiVersion],
11639
- urlParameters: [endpoint],
11640
- headerParameters: [accept],
11641
- serializer: serializer$1
11642
- };
11643
- const createOrUpdateOperationSpec = {
11644
- path: "/aliases('{aliasName}')",
11645
- httpMethod: "PUT",
11646
- responses: {
11647
- 200: {
11648
- bodyMapper: SearchAlias
11649
- },
11650
- 201: {
11651
- bodyMapper: SearchAlias
11652
- },
11653
- default: {
11654
- bodyMapper: SearchError
11655
- }
11656
- },
11657
- requestBody: alias,
11658
- queryParameters: [apiVersion],
11659
- urlParameters: [endpoint, aliasName],
11660
- headerParameters: [
11661
- contentType,
11662
- accept,
11663
- ifMatch,
11664
- ifNoneMatch,
11665
- prefer
11666
- ],
11667
- mediaType: "json",
11668
- serializer: serializer$1
11669
- };
11670
- const deleteOperationSpec = {
11671
- path: "/aliases('{aliasName}')",
11672
- httpMethod: "DELETE",
11673
- responses: {
11674
- 204: {},
11675
- 404: {},
11676
- default: {
11677
- bodyMapper: SearchError
11678
- }
11679
- },
11680
- queryParameters: [apiVersion],
11681
- urlParameters: [endpoint, aliasName],
11682
- headerParameters: [
11683
- accept,
11684
- ifMatch,
11685
- ifNoneMatch
11686
- ],
11687
- serializer: serializer$1
11688
- };
11689
- const getOperationSpec = {
11690
- path: "/aliases('{aliasName}')",
11691
- httpMethod: "GET",
11692
- responses: {
11693
- 200: {
11694
- bodyMapper: SearchAlias
11695
- },
11696
- default: {
11697
- bodyMapper: SearchError
11698
- }
11699
- },
11700
- queryParameters: [apiVersion],
11701
- urlParameters: [endpoint, aliasName],
11702
- headerParameters: [accept],
11703
10367
  serializer: serializer$1
11704
10368
  };
11705
10369
 
@@ -11733,13 +10397,13 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11733
10397
  const defaults = {
11734
10398
  requestContentType: "application/json; charset=utf-8"
11735
10399
  };
11736
- const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`;
10400
+ const packageDetails = `azsdk-js-search-documents/12.0.0`;
11737
10401
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11738
10402
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11739
10403
  : `${packageDetails}`;
11740
10404
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
11741
10405
  userAgentPrefix
11742
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
10406
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
11743
10407
  super(optionsWithDefaults);
11744
10408
  // Parameter assignments
11745
10409
  this.endpoint = endpoint;
@@ -11749,7 +10413,32 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11749
10413
  this.skillsets = new SkillsetsImpl(this);
11750
10414
  this.synonymMaps = new SynonymMapsImpl(this);
11751
10415
  this.indexes = new IndexesImpl(this);
11752
- this.aliases = new AliasesImpl(this);
10416
+ this.addCustomApiVersionPolicy(apiVersion);
10417
+ }
10418
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
10419
+ addCustomApiVersionPolicy(apiVersion) {
10420
+ if (!apiVersion) {
10421
+ return;
10422
+ }
10423
+ const apiVersionPolicy = {
10424
+ name: "CustomApiVersionPolicy",
10425
+ async sendRequest(request, next) {
10426
+ const param = request.url.split("?");
10427
+ if (param.length > 1) {
10428
+ const newParams = param[1].split("&").map((item) => {
10429
+ if (item.indexOf("api-version") > -1) {
10430
+ return "api-version=" + apiVersion;
10431
+ }
10432
+ else {
10433
+ return item;
10434
+ }
10435
+ });
10436
+ request.url = param[0] + "?" + newParams.join("&");
10437
+ }
10438
+ return next(request);
10439
+ }
10440
+ };
10441
+ this.pipeline.addPolicy(apiVersionPolicy);
11753
10442
  }
11754
10443
  /**
11755
10444
  * Gets service level statistics for a search service.
@@ -11832,87 +10521,25 @@ class SearchIndexClient {
11832
10521
  this.serviceVersion =
11833
10522
  (_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
11834
10523
  this.apiVersion = this.serviceVersion;
11835
- this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
11836
- if (coreAuth.isTokenCredential(credential)) {
11837
- const scope = this.options.audience
11838
- ? `${this.options.audience}/.default`
11839
- : `${exports.KnownSearchAudience.AzurePublicCloud}/.default`;
11840
- this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
11841
- }
11842
- else {
11843
- this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
11844
- }
11845
- this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
11846
- }
11847
- listIndexesPage(options = {}) {
11848
- return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
11849
- const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
11850
- try {
11851
- const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
11852
- const mapped = result.indexes.map(generatedIndexToPublicIndex);
11853
- yield yield tslib.__await(mapped);
11854
- }
11855
- catch (e) {
11856
- span.setStatus({
11857
- status: "error",
11858
- error: e.message,
11859
- });
11860
- throw e;
11861
- }
11862
- finally {
11863
- span.end();
11864
- }
11865
- });
11866
- }
11867
- listIndexesAll(options = {}) {
11868
- return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
11869
- var _a, e_1, _b, _c;
11870
- try {
11871
- for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
11872
- _c = _f.value;
11873
- _d = false;
11874
- try {
11875
- const page = _c;
11876
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11877
- }
11878
- finally {
11879
- _d = true;
11880
- }
11881
- }
11882
- }
11883
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
11884
- finally {
11885
- try {
11886
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
11887
- }
11888
- finally { if (e_1) throw e_1.error; }
11889
- }
11890
- });
11891
- }
11892
- /**
11893
- * Retrieves a list of existing indexes in the service.
11894
- * @param options - Options to the list index operation.
11895
- */
11896
- listIndexes(options = {}) {
11897
- const iter = this.listIndexesAll(options);
11898
- return {
11899
- next() {
11900
- return iter.next();
11901
- },
11902
- [Symbol.asyncIterator]() {
11903
- return this;
11904
- },
11905
- byPage: () => {
11906
- return this.listIndexesPage(options);
11907
- },
11908
- };
10524
+ this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
10525
+ if (coreAuth.isTokenCredential(credential)) {
10526
+ const scope = this.options.audience
10527
+ ? `${this.options.audience}/.default`
10528
+ : `${exports.KnownSearchAudience.AzurePublicCloud}/.default`;
10529
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
10530
+ }
10531
+ else {
10532
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
10533
+ }
10534
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
11909
10535
  }
11910
- listAliasesPage(options = {}) {
11911
- return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
11912
- const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
10536
+ listIndexesPage(options = {}) {
10537
+ return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
10538
+ const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
11913
10539
  try {
11914
- const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
11915
- yield yield tslib.__await(result.aliases);
10540
+ const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
10541
+ const mapped = result.indexes.map(generatedIndexToPublicIndex);
10542
+ yield yield tslib.__await(mapped);
11916
10543
  }
11917
10544
  catch (e) {
11918
10545
  span.setStatus({
@@ -11926,37 +10553,32 @@ class SearchIndexClient {
11926
10553
  }
11927
10554
  });
11928
10555
  }
11929
- listAliasesAll(options = {}) {
11930
- return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
11931
- var _a, e_2, _b, _c;
10556
+ listIndexesAll(options = {}) {
10557
+ return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
10558
+ var _a, e_1, _b, _c;
11932
10559
  try {
11933
- for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
10560
+ for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
11934
10561
  _c = _f.value;
11935
10562
  _d = false;
11936
- try {
11937
- const page = _c;
11938
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11939
- }
11940
- finally {
11941
- _d = true;
11942
- }
10563
+ const page = _c;
10564
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11943
10565
  }
11944
10566
  }
11945
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
10567
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
11946
10568
  finally {
11947
10569
  try {
11948
10570
  if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
11949
10571
  }
11950
- finally { if (e_2) throw e_2.error; }
10572
+ finally { if (e_1) throw e_1.error; }
11951
10573
  }
11952
10574
  });
11953
10575
  }
11954
10576
  /**
11955
- * Lists all aliases available for a search service.
11956
- * @param options - The options parameters.
10577
+ * Retrieves a list of existing indexes in the service.
10578
+ * @param options - Options to the list index operation.
11957
10579
  */
11958
- listAliases(options = {}) {
11959
- const iter = this.listAliasesAll(options);
10580
+ listIndexes(options = {}) {
10581
+ const iter = this.listIndexesAll(options);
11960
10582
  return {
11961
10583
  next() {
11962
10584
  return iter.next();
@@ -11965,7 +10587,7 @@ class SearchIndexClient {
11965
10587
  return this;
11966
10588
  },
11967
10589
  byPage: () => {
11968
- return this.listAliasesPage(options);
10590
+ return this.listIndexesPage(options);
11969
10591
  },
11970
10592
  };
11971
10593
  }
@@ -11991,26 +10613,21 @@ class SearchIndexClient {
11991
10613
  }
11992
10614
  listIndexesNamesAll(options = {}) {
11993
10615
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
11994
- var _a, e_3, _b, _c;
10616
+ var _a, e_2, _b, _c;
11995
10617
  try {
11996
- for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
10618
+ for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
11997
10619
  _c = _f.value;
11998
10620
  _d = false;
11999
- try {
12000
- const page = _c;
12001
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
12002
- }
12003
- finally {
12004
- _d = true;
12005
- }
10621
+ const page = _c;
10622
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
12006
10623
  }
12007
10624
  }
12008
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
10625
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
12009
10626
  finally {
12010
10627
  try {
12011
10628
  if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
12012
10629
  }
12013
- finally { if (e_3) throw e_3.error; }
10630
+ finally { if (e_2) throw e_2.error; }
12014
10631
  }
12015
10632
  });
12016
10633
  }
@@ -12258,97 +10875,6 @@ class SearchIndexClient {
12258
10875
  span.end();
12259
10876
  }
12260
10877
  }
12261
- /**
12262
- * Creates a new search alias or updates an alias if it already exists.
12263
- * @param alias - The definition of the alias to create or update.
12264
- * @param options - The options parameters.
12265
- */
12266
- async createOrUpdateAlias(alias, options = {}) {
12267
- const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
12268
- try {
12269
- const etag = options.onlyIfUnchanged ? alias.etag : undefined;
12270
- const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12271
- return result;
12272
- }
12273
- catch (e) {
12274
- span.setStatus({
12275
- status: "error",
12276
- error: e.message,
12277
- });
12278
- throw e;
12279
- }
12280
- finally {
12281
- span.end();
12282
- }
12283
- }
12284
- /**
12285
- * Creates a new search alias.
12286
- * @param alias - The definition of the alias to create.
12287
- * @param options - The options parameters.
12288
- */
12289
- async createAlias(alias, options = {}) {
12290
- const { span, updatedOptions } = createSpan("SearchIndexerClient-createAlias", options);
12291
- try {
12292
- const result = await this.client.aliases.create(alias, updatedOptions);
12293
- return result;
12294
- }
12295
- catch (e) {
12296
- span.setStatus({
12297
- status: "error",
12298
- error: e.message,
12299
- });
12300
- throw e;
12301
- }
12302
- finally {
12303
- span.end();
12304
- }
12305
- }
12306
- /**
12307
- * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no
12308
- * recovery option. The mapped index is untouched by this operation.
12309
- * @param alias - Alias/Name name of the alias to delete.
12310
- * @param options - The options parameters.
12311
- */
12312
- async deleteAlias(alias, options = {}) {
12313
- const { span, updatedOptions } = createSpan("SearchIndexerClient-deleteAlias", options);
12314
- try {
12315
- const aliasName = typeof alias === "string" ? alias : alias.name;
12316
- const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
12317
- await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12318
- }
12319
- catch (e) {
12320
- span.setStatus({
12321
- status: "error",
12322
- error: e.message,
12323
- });
12324
- throw e;
12325
- }
12326
- finally {
12327
- span.end();
12328
- }
12329
- }
12330
- /**
12331
- * Retrieves an alias definition.
12332
- * @param aliasName - The name of the alias to retrieve.
12333
- * @param options - The options parameters.
12334
- */
12335
- async getAlias(aliasName, options = {}) {
12336
- const { span, updatedOptions } = createSpan("SearchIndexerClient-getAlias", options);
12337
- try {
12338
- const result = await this.client.aliases.get(aliasName, updatedOptions);
12339
- return result;
12340
- }
12341
- catch (e) {
12342
- span.setStatus({
12343
- status: "error",
12344
- error: e.message,
12345
- });
12346
- throw e;
12347
- }
12348
- finally {
12349
- span.end();
12350
- }
12351
- }
12352
10878
  /**
12353
10879
  * Retrieves statistics about an index, such as the count of documents and the size
12354
10880
  * of index storage.
@@ -12379,7 +10905,7 @@ class SearchIndexClient {
12379
10905
  * @param options - Additional arguments
12380
10906
  */
12381
10907
  async analyzeText(indexName, options) {
12382
- const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
10908
+ const { abortSignal, requestOptions, tracingOptions, analyzerName: analyzer, tokenizerName: tokenizer } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions", "analyzerName", "tokenizerName"]);
12383
10909
  const operationOptions = {
12384
10910
  abortSignal,
12385
10911
  requestOptions,
@@ -12387,7 +10913,7 @@ class SearchIndexClient {
12387
10913
  };
12388
10914
  const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
12389
10915
  try {
12390
- const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
10916
+ const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer, tokenizer }), updatedOptions);
12391
10917
  return result;
12392
10918
  }
12393
10919
  catch (e) {
@@ -12767,7 +11293,7 @@ class SearchIndexerClient {
12767
11293
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
12768
11294
  try {
12769
11295
  const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
12770
- const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11296
+ const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12771
11297
  return generatedSearchIndexerToPublicSearchIndexer(result);
12772
11298
  }
12773
11299
  catch (e) {
@@ -12790,7 +11316,7 @@ class SearchIndexerClient {
12790
11316
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
12791
11317
  try {
12792
11318
  const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
12793
- const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
11319
+ const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12794
11320
  return generatedDataSourceToPublicDataSource(result);
12795
11321
  }
12796
11322
  catch (e) {
@@ -12813,7 +11339,7 @@ class SearchIndexerClient {
12813
11339
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
12814
11340
  try {
12815
11341
  const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
12816
- const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11342
+ const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12817
11343
  return generatedSkillsetToPublicSkillset(result);
12818
11344
  }
12819
11345
  catch (e) {
@@ -12972,52 +11498,6 @@ class SearchIndexerClient {
12972
11498
  span.end();
12973
11499
  }
12974
11500
  }
12975
- /**
12976
- * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
12977
- * @param indexerName - The name of the indexer to reset documents for.
12978
- * @param options - Additional optional arguments.
12979
- */
12980
- async resetDocuments(indexerName, options = {}) {
12981
- const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
12982
- try {
12983
- await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
12984
- documentKeys: updatedOptions.documentKeys,
12985
- datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
12986
- } }));
12987
- }
12988
- catch (e) {
12989
- span.setStatus({
12990
- status: "error",
12991
- error: e.message,
12992
- });
12993
- throw e;
12994
- }
12995
- finally {
12996
- span.end();
12997
- }
12998
- }
12999
- /**
13000
- * Reset an existing skillset in a search service.
13001
- * @param skillsetName - The name of the skillset to reset.
13002
- * @param skillNames - The names of skills to reset.
13003
- * @param options - The options parameters.
13004
- */
13005
- async resetSkills(skillsetName, options = {}) {
13006
- const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
13007
- try {
13008
- await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
13009
- }
13010
- catch (e) {
13011
- span.setStatus({
13012
- status: "error",
13013
- error: e.message,
13014
- });
13015
- throw e;
13016
- }
13017
- finally {
13018
- span.end();
13019
- }
13020
- }
13021
11501
  }
13022
11502
 
13023
11503
  // Copyright (c) Microsoft Corporation.
@@ -13074,282 +11554,12 @@ function odata(strings, ...values) {
13074
11554
  * Code generated by Microsoft (R) AutoRest Code Generator.
13075
11555
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
13076
11556
  */
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 = {}));
13083
- /** Known values of {@link SemanticErrorHandling} that the service accepts. */
13084
- var KnownSemanticErrorHandling;
13085
- (function (KnownSemanticErrorHandling) {
13086
- /** If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. */
13087
- KnownSemanticErrorHandling["Partial"] = "partial";
13088
- /** If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */
13089
- KnownSemanticErrorHandling["Fail"] = "fail";
13090
- })(KnownSemanticErrorHandling || (KnownSemanticErrorHandling = {}));
13091
- /** Known values of {@link QueryDebugMode} that the service accepts. */
13092
- var KnownQueryDebugMode;
13093
- (function (KnownQueryDebugMode) {
13094
- /** No query debugging information will be returned. */
13095
- KnownQueryDebugMode["Disabled"] = "disabled";
13096
- /** Allows the user to further explore their Semantic search results. */
13097
- KnownQueryDebugMode["Semantic"] = "semantic";
13098
- })(KnownQueryDebugMode || (KnownQueryDebugMode = {}));
13099
- /** Known values of {@link QueryLanguage} that the service accepts. */
13100
- exports.KnownQueryLanguage = void 0;
13101
- (function (KnownQueryLanguage) {
13102
- /** Query language not specified. */
13103
- KnownQueryLanguage["None"] = "none";
13104
- /** Query language value for English (United States). */
13105
- KnownQueryLanguage["EnUs"] = "en-us";
13106
- /** Query language value for English (Great Britain). */
13107
- KnownQueryLanguage["EnGb"] = "en-gb";
13108
- /** Query language value for English (India). */
13109
- KnownQueryLanguage["EnIn"] = "en-in";
13110
- /** Query language value for English (Canada). */
13111
- KnownQueryLanguage["EnCa"] = "en-ca";
13112
- /** Query language value for English (Australia). */
13113
- KnownQueryLanguage["EnAu"] = "en-au";
13114
- /** Query language value for French (France). */
13115
- KnownQueryLanguage["FrFr"] = "fr-fr";
13116
- /** Query language value for French (Canada). */
13117
- KnownQueryLanguage["FrCa"] = "fr-ca";
13118
- /** Query language value for German (Germany). */
13119
- KnownQueryLanguage["DeDe"] = "de-de";
13120
- /** Query language value for Spanish (Spain). */
13121
- KnownQueryLanguage["EsEs"] = "es-es";
13122
- /** Query language value for Spanish (Mexico). */
13123
- KnownQueryLanguage["EsMx"] = "es-mx";
13124
- /** Query language value for Chinese (China). */
13125
- KnownQueryLanguage["ZhCn"] = "zh-cn";
13126
- /** Query language value for Chinese (Taiwan). */
13127
- KnownQueryLanguage["ZhTw"] = "zh-tw";
13128
- /** Query language value for Portuguese (Brazil). */
13129
- KnownQueryLanguage["PtBr"] = "pt-br";
13130
- /** Query language value for Portuguese (Portugal). */
13131
- KnownQueryLanguage["PtPt"] = "pt-pt";
13132
- /** Query language value for Italian (Italy). */
13133
- KnownQueryLanguage["ItIt"] = "it-it";
13134
- /** Query language value for Japanese (Japan). */
13135
- KnownQueryLanguage["JaJp"] = "ja-jp";
13136
- /** Query language value for Korean (Korea). */
13137
- KnownQueryLanguage["KoKr"] = "ko-kr";
13138
- /** Query language value for Russian (Russia). */
13139
- KnownQueryLanguage["RuRu"] = "ru-ru";
13140
- /** Query language value for Czech (Czech Republic). */
13141
- KnownQueryLanguage["CsCz"] = "cs-cz";
13142
- /** Query language value for Dutch (Belgium). */
13143
- KnownQueryLanguage["NlBe"] = "nl-be";
13144
- /** Query language value for Dutch (Netherlands). */
13145
- KnownQueryLanguage["NlNl"] = "nl-nl";
13146
- /** Query language value for Hungarian (Hungary). */
13147
- KnownQueryLanguage["HuHu"] = "hu-hu";
13148
- /** Query language value for Polish (Poland). */
13149
- KnownQueryLanguage["PlPl"] = "pl-pl";
13150
- /** Query language value for Swedish (Sweden). */
13151
- KnownQueryLanguage["SvSe"] = "sv-se";
13152
- /** Query language value for Turkish (Turkey). */
13153
- KnownQueryLanguage["TrTr"] = "tr-tr";
13154
- /** Query language value for Hindi (India). */
13155
- KnownQueryLanguage["HiIn"] = "hi-in";
13156
- /** Query language value for Arabic (Saudi Arabia). */
13157
- KnownQueryLanguage["ArSa"] = "ar-sa";
13158
- /** Query language value for Arabic (Egypt). */
13159
- KnownQueryLanguage["ArEg"] = "ar-eg";
13160
- /** Query language value for Arabic (Morocco). */
13161
- KnownQueryLanguage["ArMa"] = "ar-ma";
13162
- /** Query language value for Arabic (Kuwait). */
13163
- KnownQueryLanguage["ArKw"] = "ar-kw";
13164
- /** Query language value for Arabic (Jordan). */
13165
- KnownQueryLanguage["ArJo"] = "ar-jo";
13166
- /** Query language value for Danish (Denmark). */
13167
- KnownQueryLanguage["DaDk"] = "da-dk";
13168
- /** Query language value for Norwegian (Norway). */
13169
- KnownQueryLanguage["NoNo"] = "no-no";
13170
- /** Query language value for Bulgarian (Bulgaria). */
13171
- KnownQueryLanguage["BgBg"] = "bg-bg";
13172
- /** Query language value for Croatian (Croatia). */
13173
- KnownQueryLanguage["HrHr"] = "hr-hr";
13174
- /** Query language value for Croatian (Bosnia and Herzegovina). */
13175
- KnownQueryLanguage["HrBa"] = "hr-ba";
13176
- /** Query language value for Malay (Malaysia). */
13177
- KnownQueryLanguage["MsMy"] = "ms-my";
13178
- /** Query language value for Malay (Brunei Darussalam). */
13179
- KnownQueryLanguage["MsBn"] = "ms-bn";
13180
- /** Query language value for Slovenian (Slovenia). */
13181
- KnownQueryLanguage["SlSl"] = "sl-sl";
13182
- /** Query language value for Tamil (India). */
13183
- KnownQueryLanguage["TaIn"] = "ta-in";
13184
- /** Query language value for Vietnamese (Viet Nam). */
13185
- KnownQueryLanguage["ViVn"] = "vi-vn";
13186
- /** Query language value for Greek (Greece). */
13187
- KnownQueryLanguage["ElGr"] = "el-gr";
13188
- /** Query language value for Romanian (Romania). */
13189
- KnownQueryLanguage["RoRo"] = "ro-ro";
13190
- /** Query language value for Icelandic (Iceland). */
13191
- KnownQueryLanguage["IsIs"] = "is-is";
13192
- /** Query language value for Indonesian (Indonesia). */
13193
- KnownQueryLanguage["IdId"] = "id-id";
13194
- /** Query language value for Thai (Thailand). */
13195
- KnownQueryLanguage["ThTh"] = "th-th";
13196
- /** Query language value for Lithuanian (Lithuania). */
13197
- KnownQueryLanguage["LtLt"] = "lt-lt";
13198
- /** Query language value for Ukrainian (Ukraine). */
13199
- KnownQueryLanguage["UkUa"] = "uk-ua";
13200
- /** Query language value for Latvian (Latvia). */
13201
- KnownQueryLanguage["LvLv"] = "lv-lv";
13202
- /** Query language value for Estonian (Estonia). */
13203
- KnownQueryLanguage["EtEe"] = "et-ee";
13204
- /** Query language value for Catalan (Spain). */
13205
- KnownQueryLanguage["CaEs"] = "ca-es";
13206
- /** Query language value for Finnish (Finland). */
13207
- KnownQueryLanguage["FiFi"] = "fi-fi";
13208
- /** Query language value for Serbian (Bosnia and Herzegovina). */
13209
- KnownQueryLanguage["SrBa"] = "sr-ba";
13210
- /** Query language value for Serbian (Montenegro). */
13211
- KnownQueryLanguage["SrMe"] = "sr-me";
13212
- /** Query language value for Serbian (Serbia). */
13213
- KnownQueryLanguage["SrRs"] = "sr-rs";
13214
- /** Query language value for Slovak (Slovakia). */
13215
- KnownQueryLanguage["SkSk"] = "sk-sk";
13216
- /** Query language value for Norwegian (Norway). */
13217
- KnownQueryLanguage["NbNo"] = "nb-no";
13218
- /** Query language value for Armenian (Armenia). */
13219
- KnownQueryLanguage["HyAm"] = "hy-am";
13220
- /** Query language value for Bengali (India). */
13221
- KnownQueryLanguage["BnIn"] = "bn-in";
13222
- /** Query language value for Basque (Spain). */
13223
- KnownQueryLanguage["EuEs"] = "eu-es";
13224
- /** Query language value for Galician (Spain). */
13225
- KnownQueryLanguage["GlEs"] = "gl-es";
13226
- /** Query language value for Gujarati (India). */
13227
- KnownQueryLanguage["GuIn"] = "gu-in";
13228
- /** Query language value for Hebrew (Israel). */
13229
- KnownQueryLanguage["HeIl"] = "he-il";
13230
- /** Query language value for Irish (Ireland). */
13231
- KnownQueryLanguage["GaIe"] = "ga-ie";
13232
- /** Query language value for Kannada (India). */
13233
- KnownQueryLanguage["KnIn"] = "kn-in";
13234
- /** Query language value for Malayalam (India). */
13235
- KnownQueryLanguage["MlIn"] = "ml-in";
13236
- /** Query language value for Marathi (India). */
13237
- KnownQueryLanguage["MrIn"] = "mr-in";
13238
- /** Query language value for Persian (U.A.E.). */
13239
- KnownQueryLanguage["FaAe"] = "fa-ae";
13240
- /** Query language value for Punjabi (India). */
13241
- KnownQueryLanguage["PaIn"] = "pa-in";
13242
- /** Query language value for Telugu (India). */
13243
- KnownQueryLanguage["TeIn"] = "te-in";
13244
- /** Query language value for Urdu (Pakistan). */
13245
- KnownQueryLanguage["UrPk"] = "ur-pk";
13246
- })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
13247
- /** Known values of {@link Speller} that the service accepts. */
13248
- exports.KnownSpeller = void 0;
13249
- (function (KnownSpeller) {
13250
- /** Speller not enabled. */
13251
- KnownSpeller["None"] = "none";
13252
- /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
13253
- KnownSpeller["Lexicon"] = "lexicon";
13254
- })(exports.KnownSpeller || (exports.KnownSpeller = {}));
13255
- /** Known values of {@link Answers} that the service accepts. */
13256
- exports.KnownAnswers = void 0;
13257
- (function (KnownAnswers) {
13258
- /** Do not return answers for the query. */
13259
- KnownAnswers["None"] = "none";
13260
- /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
13261
- KnownAnswers["Extractive"] = "extractive";
13262
- })(exports.KnownAnswers || (exports.KnownAnswers = {}));
13263
- /** Known values of {@link Captions} that the service accepts. */
13264
- var KnownCaptions;
13265
- (function (KnownCaptions) {
13266
- /** Do not return captions for the query. */
13267
- KnownCaptions["None"] = "none";
13268
- /** Extracts captions from the matching documents that contain passages relevant to the search query. */
13269
- KnownCaptions["Extractive"] = "extractive";
13270
- })(KnownCaptions || (KnownCaptions = {}));
13271
- /** Known values of {@link QuerySpellerType} that the service accepts. */
13272
- exports.KnownQuerySpellerType = void 0;
13273
- (function (KnownQuerySpellerType) {
13274
- /** Speller not enabled. */
13275
- KnownQuerySpellerType["None"] = "none";
13276
- /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
13277
- KnownQuerySpellerType["Lexicon"] = "lexicon";
13278
- })(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
13279
- /** Known values of {@link QueryAnswerType} that the service accepts. */
13280
- exports.KnownQueryAnswerType = void 0;
13281
- (function (KnownQueryAnswerType) {
13282
- /** Do not return answers for the query. */
13283
- KnownQueryAnswerType["None"] = "none";
13284
- /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
13285
- KnownQueryAnswerType["Extractive"] = "extractive";
13286
- })(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
13287
- /** Known values of {@link QueryCaptionType} that the service accepts. */
13288
- exports.KnownQueryCaptionType = void 0;
13289
- (function (KnownQueryCaptionType) {
13290
- /** Do not return captions for the query. */
13291
- KnownQueryCaptionType["None"] = "none";
13292
- /** Extracts captions from the matching documents that contain passages relevant to the search query. */
13293
- KnownQueryCaptionType["Extractive"] = "extractive";
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 = {}));
13311
- /** Known values of {@link SemanticPartialResponseReason} that the service accepts. */
13312
- var KnownSemanticPartialResponseReason;
13313
- (function (KnownSemanticPartialResponseReason) {
13314
- /** If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. */
13315
- KnownSemanticPartialResponseReason["MaxWaitExceeded"] = "maxWaitExceeded";
13316
- /** The request was throttled. Only the base results were returned. */
13317
- KnownSemanticPartialResponseReason["CapacityOverloaded"] = "capacityOverloaded";
13318
- /** At least one step of the semantic process failed. */
13319
- KnownSemanticPartialResponseReason["Transient"] = "transient";
13320
- })(KnownSemanticPartialResponseReason || (KnownSemanticPartialResponseReason = {}));
13321
- /** Known values of {@link SemanticPartialResponseType} that the service accepts. */
13322
- var KnownSemanticPartialResponseType;
13323
- (function (KnownSemanticPartialResponseType) {
13324
- /** Results without any semantic enrichment or reranking. */
13325
- KnownSemanticPartialResponseType["BaseResults"] = "baseResults";
13326
- /** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */
13327
- KnownSemanticPartialResponseType["RerankedResults"] = "rerankedResults";
13328
- })(KnownSemanticPartialResponseType || (KnownSemanticPartialResponseType = {}));
13329
- /** Known values of {@link SemanticFieldState} that the service accepts. */
13330
- var KnownSemanticFieldState;
13331
- (function (KnownSemanticFieldState) {
13332
- /** The field was fully used for semantic enrichment. */
13333
- KnownSemanticFieldState["Used"] = "used";
13334
- /** The field was not used for semantic enrichment. */
13335
- KnownSemanticFieldState["Unused"] = "unused";
13336
- /** The field was partially used for semantic enrichment. */
13337
- KnownSemanticFieldState["Partial"] = "partial";
13338
- })(KnownSemanticFieldState || (KnownSemanticFieldState = {}));
13339
-
13340
- /*
13341
- * Copyright (c) Microsoft Corporation.
13342
- * Licensed under the MIT License.
13343
- *
13344
- * Code generated by Microsoft (R) AutoRest Code Generator.
13345
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
13346
- */
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 = {}));
11557
+ /** Known values of {@link ApiVersion20231101} that the service accepts. */
11558
+ var KnownApiVersion20231101;
11559
+ (function (KnownApiVersion20231101) {
11560
+ /** Api Version '2023-11-01' */
11561
+ KnownApiVersion20231101["TwoThousandTwentyThree1101"] = "2023-11-01";
11562
+ })(KnownApiVersion20231101 || (KnownApiVersion20231101 = {}));
13353
11563
  /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
13354
11564
  exports.KnownSearchIndexerDataSourceType = void 0;
13355
11565
  (function (KnownSearchIndexerDataSourceType) {
@@ -13377,9 +11587,9 @@ exports.KnownBlobIndexerParsingMode = void 0;
13377
11587
  KnownBlobIndexerParsingMode["DelimitedText"] = "delimitedText";
13378
11588
  /** Set to json to extract structured content from JSON files. */
13379
11589
  KnownBlobIndexerParsingMode["Json"] = "json";
13380
- /** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */
11590
+ /** Set to jsonArray to extract individual elements of a JSON array as separate documents. */
13381
11591
  KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
13382
- /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
11592
+ /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */
13383
11593
  KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
13384
11594
  })(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
13385
11595
  /** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
@@ -13413,33 +11623,11 @@ exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
13413
11623
  /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */
13414
11624
  var KnownIndexerExecutionEnvironment;
13415
11625
  (function (KnownIndexerExecutionEnvironment) {
13416
- /** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */
11626
+ /** Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */
13417
11627
  KnownIndexerExecutionEnvironment["Standard"] = "standard";
13418
11628
  /** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
13419
11629
  KnownIndexerExecutionEnvironment["Private"] = "private";
13420
11630
  })(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
13421
- /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
13422
- exports.KnownIndexerExecutionStatusDetail = void 0;
13423
- (function (KnownIndexerExecutionStatusDetail) {
13424
- /** Indicates that the reset that occurred was for a call to ResetDocs. */
13425
- KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
13426
- })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
13427
- /** Known values of {@link IndexingMode} that the service accepts. */
13428
- exports.KnownIndexingMode = void 0;
13429
- (function (KnownIndexingMode) {
13430
- /** The indexer is indexing all documents in the datasource. */
13431
- KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
13432
- /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
13433
- KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
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 = {}));
13443
11631
  /** Known values of {@link SearchFieldDataType} that the service accepts. */
13444
11632
  var KnownSearchFieldDataType;
13445
11633
  (function (KnownSearchFieldDataType) {
@@ -13453,7 +11641,7 @@ var KnownSearchFieldDataType;
13453
11641
  KnownSearchFieldDataType["Double"] = "Edm.Double";
13454
11642
  /** Indicates that a field contains a Boolean value (true or false). */
13455
11643
  KnownSearchFieldDataType["Boolean"] = "Edm.Boolean";
13456
- /** Indicates that a field contains a date/time value, including timezone information. */
11644
+ /** Indicates that a field contains a date\/time value, including timezone information. */
13457
11645
  KnownSearchFieldDataType["DateTimeOffset"] = "Edm.DateTimeOffset";
13458
11646
  /** Indicates that a field contains a geo-location in terms of longitude and latitude. */
13459
11647
  KnownSearchFieldDataType["GeographyPoint"] = "Edm.GeographyPoint";
@@ -13463,7 +11651,7 @@ var KnownSearchFieldDataType;
13463
11651
  KnownSearchFieldDataType["Single"] = "Edm.Single";
13464
11652
  })(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
13465
11653
  /** Known values of {@link LexicalAnalyzerName} that the service accepts. */
13466
- exports.KnownLexicalAnalyzerName = void 0;
11654
+ var KnownLexicalAnalyzerName;
13467
11655
  (function (KnownLexicalAnalyzerName) {
13468
11656
  /** Microsoft analyzer for Arabic. */
13469
11657
  KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
@@ -13639,132 +11827,35 @@ exports.KnownLexicalAnalyzerName = void 0;
13639
11827
  KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
13640
11828
  /** Standard Lucene analyzer. */
13641
11829
  KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
13642
- /** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */
11830
+ /** Standard ASCII Folding Lucene analyzer. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */
13643
11831
  KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
13644
- /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordAnalyzer.html */
11832
+ /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */
13645
11833
  KnownLexicalAnalyzerName["Keyword"] = "keyword";
13646
- /** Flexibly separates text into terms via a regular expression pattern. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html */
11834
+ /** Flexibly separates text into terms via a regular expression pattern. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/PatternAnalyzer.html */
13647
11835
  KnownLexicalAnalyzerName["Pattern"] = "pattern";
13648
- /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/SimpleAnalyzer.html */
11836
+ /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/SimpleAnalyzer.html */
13649
11837
  KnownLexicalAnalyzerName["Simple"] = "simple";
13650
- /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html */
11838
+ /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopAnalyzer.html */
13651
11839
  KnownLexicalAnalyzerName["Stop"] = "stop";
13652
- /** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */
11840
+ /** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */
13653
11841
  KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
13654
- })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
13655
- /** Known values of {@link LexicalNormalizerName} that the service accepts. */
13656
- exports.KnownLexicalNormalizerName = void 0;
13657
- (function (KnownLexicalNormalizerName) {
13658
- /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
13659
- KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
13660
- /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
13661
- KnownLexicalNormalizerName["Elision"] = "elision";
13662
- /** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
13663
- KnownLexicalNormalizerName["Lowercase"] = "lowercase";
13664
- /** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
13665
- KnownLexicalNormalizerName["Standard"] = "standard";
13666
- /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
13667
- KnownLexicalNormalizerName["Uppercase"] = "uppercase";
13668
- })(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
11842
+ })(KnownLexicalAnalyzerName || (KnownLexicalAnalyzerName = {}));
13669
11843
  /** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
13670
11844
  var KnownVectorSearchAlgorithmKind;
13671
11845
  (function (KnownVectorSearchAlgorithmKind) {
13672
- /** Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
11846
+ /** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */
13673
11847
  KnownVectorSearchAlgorithmKind["Hnsw"] = "hnsw";
13674
11848
  /** Exhaustive KNN algorithm which will perform brute-force search. */
13675
11849
  KnownVectorSearchAlgorithmKind["ExhaustiveKnn"] = "exhaustiveKnn";
13676
11850
  })(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 = {}));
13685
- /** Known values of {@link TokenFilterName} that the service accepts. */
13686
- exports.KnownTokenFilterName = void 0;
13687
- (function (KnownTokenFilterName) {
13688
- /** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */
13689
- KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
13690
- /** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */
13691
- KnownTokenFilterName["Apostrophe"] = "apostrophe";
13692
- /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
13693
- KnownTokenFilterName["AsciiFolding"] = "asciifolding";
13694
- /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */
13695
- KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
13696
- /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */
13697
- KnownTokenFilterName["CjkWidth"] = "cjk_width";
13698
- /** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */
13699
- KnownTokenFilterName["Classic"] = "classic";
13700
- /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */
13701
- KnownTokenFilterName["CommonGram"] = "common_grams";
13702
- /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */
13703
- KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
13704
- /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
13705
- KnownTokenFilterName["Elision"] = "elision";
13706
- /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */
13707
- KnownTokenFilterName["GermanNormalization"] = "german_normalization";
13708
- /** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */
13709
- KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
13710
- /** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */
13711
- KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
13712
- /** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */
13713
- KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
13714
- /** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */
13715
- KnownTokenFilterName["KStem"] = "kstem";
13716
- /** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */
13717
- KnownTokenFilterName["Length"] = "length";
13718
- /** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */
13719
- KnownTokenFilterName["Limit"] = "limit";
13720
- /** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
13721
- KnownTokenFilterName["Lowercase"] = "lowercase";
13722
- /** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */
13723
- KnownTokenFilterName["NGram"] = "nGram_v2";
13724
- /** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */
13725
- KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
13726
- /** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */
13727
- KnownTokenFilterName["Phonetic"] = "phonetic";
13728
- /** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */
13729
- KnownTokenFilterName["PorterStem"] = "porter_stem";
13730
- /** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
13731
- KnownTokenFilterName["Reverse"] = "reverse";
13732
- /** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */
13733
- KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
13734
- /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */
13735
- KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
13736
- /** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */
13737
- KnownTokenFilterName["Shingle"] = "shingle";
13738
- /** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */
13739
- KnownTokenFilterName["Snowball"] = "snowball";
13740
- /** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */
13741
- KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
13742
- /** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */
13743
- KnownTokenFilterName["Stemmer"] = "stemmer";
13744
- /** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */
13745
- KnownTokenFilterName["Stopwords"] = "stopwords";
13746
- /** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */
13747
- KnownTokenFilterName["Trim"] = "trim";
13748
- /** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */
13749
- KnownTokenFilterName["Truncate"] = "truncate";
13750
- /** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */
13751
- KnownTokenFilterName["Unique"] = "unique";
13752
- /** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
13753
- KnownTokenFilterName["Uppercase"] = "uppercase";
13754
- /** Splits words into subwords and performs optional transformations on subword groups. */
13755
- KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
13756
- })(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
13757
- /** Known values of {@link CharFilterName} that the service accepts. */
13758
- exports.KnownCharFilterName = void 0;
13759
- (function (KnownCharFilterName) {
13760
- /** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */
13761
- KnownCharFilterName["HtmlStrip"] = "html_strip";
13762
- })(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
13763
11851
  /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
13764
11852
  var KnownVectorSearchAlgorithmMetric;
13765
11853
  (function (KnownVectorSearchAlgorithmMetric) {
11854
+ /** Cosine */
13766
11855
  KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
11856
+ /** Euclidean */
13767
11857
  KnownVectorSearchAlgorithmMetric["Euclidean"] = "euclidean";
11858
+ /** DotProduct */
13768
11859
  KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
13769
11860
  })(KnownVectorSearchAlgorithmMetric || (KnownVectorSearchAlgorithmMetric = {}));
13770
11861
  /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
@@ -14147,18 +12238,6 @@ exports.KnownOcrSkillLanguage = void 0;
14147
12238
  /** Unknown (All) */
14148
12239
  KnownOcrSkillLanguage["Unk"] = "unk";
14149
12240
  })(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
14150
- /** Known values of {@link LineEnding} that the service accepts. */
14151
- exports.KnownLineEnding = void 0;
14152
- (function (KnownLineEnding) {
14153
- /** Lines are separated by a single space character. */
14154
- KnownLineEnding["Space"] = "space";
14155
- /** Lines are separated by a carriage return ('\r') character. */
14156
- KnownLineEnding["CarriageReturn"] = "carriageReturn";
14157
- /** Lines are separated by a single line feed ('\n') character. */
14158
- KnownLineEnding["LineFeed"] = "lineFeed";
14159
- /** Lines are separated by a carriage return and a line feed ('\r\n') character. */
14160
- KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
14161
- })(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
14162
12241
  /** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
14163
12242
  exports.KnownImageAnalysisSkillLanguage = void 0;
14164
12243
  (function (KnownImageAnalysisSkillLanguage) {
@@ -14396,16 +12475,22 @@ exports.KnownSentimentSkillLanguage = void 0;
14396
12475
  KnownSentimentSkillLanguage["Tr"] = "tr";
14397
12476
  })(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
14398
12477
  /** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
14399
- exports.KnownPIIDetectionSkillMaskingMode = void 0;
12478
+ var KnownPIIDetectionSkillMaskingMode;
14400
12479
  (function (KnownPIIDetectionSkillMaskingMode) {
14401
12480
  /** No masking occurs and the maskedText output will not be returned. */
14402
12481
  KnownPIIDetectionSkillMaskingMode["None"] = "none";
14403
12482
  /** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */
14404
12483
  KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
14405
- })(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
12484
+ })(KnownPIIDetectionSkillMaskingMode || (KnownPIIDetectionSkillMaskingMode = {}));
14406
12485
  /** Known values of {@link SplitSkillLanguage} that the service accepts. */
14407
12486
  exports.KnownSplitSkillLanguage = void 0;
14408
12487
  (function (KnownSplitSkillLanguage) {
12488
+ /** Amharic */
12489
+ KnownSplitSkillLanguage["Am"] = "am";
12490
+ /** Bosnian */
12491
+ KnownSplitSkillLanguage["Bs"] = "bs";
12492
+ /** Czech */
12493
+ KnownSplitSkillLanguage["Cs"] = "cs";
14409
12494
  /** Danish */
14410
12495
  KnownSplitSkillLanguage["Da"] = "da";
14411
12496
  /** German */
@@ -14414,16 +12499,58 @@ exports.KnownSplitSkillLanguage = void 0;
14414
12499
  KnownSplitSkillLanguage["En"] = "en";
14415
12500
  /** Spanish */
14416
12501
  KnownSplitSkillLanguage["Es"] = "es";
12502
+ /** Estonian */
12503
+ KnownSplitSkillLanguage["Et"] = "et";
14417
12504
  /** Finnish */
14418
12505
  KnownSplitSkillLanguage["Fi"] = "fi";
14419
12506
  /** French */
14420
12507
  KnownSplitSkillLanguage["Fr"] = "fr";
12508
+ /** Hebrew */
12509
+ KnownSplitSkillLanguage["He"] = "he";
12510
+ /** Hindi */
12511
+ KnownSplitSkillLanguage["Hi"] = "hi";
12512
+ /** Croatian */
12513
+ KnownSplitSkillLanguage["Hr"] = "hr";
12514
+ /** Hungarian */
12515
+ KnownSplitSkillLanguage["Hu"] = "hu";
12516
+ /** Indonesian */
12517
+ KnownSplitSkillLanguage["Id"] = "id";
12518
+ /** Icelandic */
12519
+ KnownSplitSkillLanguage["Is"] = "is";
14421
12520
  /** Italian */
14422
12521
  KnownSplitSkillLanguage["It"] = "it";
12522
+ /** Japanese */
12523
+ KnownSplitSkillLanguage["Ja"] = "ja";
14423
12524
  /** Korean */
14424
12525
  KnownSplitSkillLanguage["Ko"] = "ko";
14425
- /** Portuguese */
12526
+ /** Latvian */
12527
+ KnownSplitSkillLanguage["Lv"] = "lv";
12528
+ /** Norwegian */
12529
+ KnownSplitSkillLanguage["Nb"] = "nb";
12530
+ /** Dutch */
12531
+ KnownSplitSkillLanguage["Nl"] = "nl";
12532
+ /** Polish */
12533
+ KnownSplitSkillLanguage["Pl"] = "pl";
12534
+ /** Portuguese (Portugal) */
14426
12535
  KnownSplitSkillLanguage["Pt"] = "pt";
12536
+ /** Portuguese (Brazil) */
12537
+ KnownSplitSkillLanguage["PtBr"] = "pt-br";
12538
+ /** Russian */
12539
+ KnownSplitSkillLanguage["Ru"] = "ru";
12540
+ /** Slovak */
12541
+ KnownSplitSkillLanguage["Sk"] = "sk";
12542
+ /** Slovenian */
12543
+ KnownSplitSkillLanguage["Sl"] = "sl";
12544
+ /** Serbian */
12545
+ KnownSplitSkillLanguage["Sr"] = "sr";
12546
+ /** Swedish */
12547
+ KnownSplitSkillLanguage["Sv"] = "sv";
12548
+ /** Turkish */
12549
+ KnownSplitSkillLanguage["Tr"] = "tr";
12550
+ /** Urdu */
12551
+ KnownSplitSkillLanguage["Ur"] = "ur";
12552
+ /** Chinese (Simplified) */
12553
+ KnownSplitSkillLanguage["Zh"] = "zh";
14427
12554
  })(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
14428
12555
  /** Known values of {@link TextSplitMode} that the service accepts. */
14429
12556
  exports.KnownTextSplitMode = void 0;
@@ -14522,10 +12649,6 @@ exports.KnownTextTranslationSkillLanguage = void 0;
14522
12649
  KnownTextTranslationSkillLanguage["Sw"] = "sw";
14523
12650
  /** Klingon */
14524
12651
  KnownTextTranslationSkillLanguage["Tlh"] = "tlh";
14525
- /** Klingon (Latin script) */
14526
- KnownTextTranslationSkillLanguage["TlhLatn"] = "tlh-Latn";
14527
- /** Klingon (Klingon script) */
14528
- KnownTextTranslationSkillLanguage["TlhPiqd"] = "tlh-Piqd";
14529
12652
  /** Korean */
14530
12653
  KnownTextTranslationSkillLanguage["Ko"] = "ko";
14531
12654
  /** Latvian */
@@ -14546,10 +12669,6 @@ exports.KnownTextTranslationSkillLanguage = void 0;
14546
12669
  KnownTextTranslationSkillLanguage["Pl"] = "pl";
14547
12670
  /** Portuguese */
14548
12671
  KnownTextTranslationSkillLanguage["Pt"] = "pt";
14549
- /** Portuguese (Brazil) */
14550
- KnownTextTranslationSkillLanguage["PtBr"] = "pt-br";
14551
- /** Portuguese (Portugal) */
14552
- KnownTextTranslationSkillLanguage["PtPT"] = "pt-PT";
14553
12672
  /** Queretaro Otomi */
14554
12673
  KnownTextTranslationSkillLanguage["Otq"] = "otq";
14555
12674
  /** Romanian */
@@ -14592,47 +12711,115 @@ exports.KnownTextTranslationSkillLanguage = void 0;
14592
12711
  KnownTextTranslationSkillLanguage["Cy"] = "cy";
14593
12712
  /** Yucatec Maya */
14594
12713
  KnownTextTranslationSkillLanguage["Yua"] = "yua";
14595
- /** Irish */
14596
- KnownTextTranslationSkillLanguage["Ga"] = "ga";
14597
- /** Kannada */
14598
- KnownTextTranslationSkillLanguage["Kn"] = "kn";
14599
- /** Maori */
14600
- KnownTextTranslationSkillLanguage["Mi"] = "mi";
14601
- /** Malayalam */
14602
- KnownTextTranslationSkillLanguage["Ml"] = "ml";
14603
- /** Punjabi */
14604
- KnownTextTranslationSkillLanguage["Pa"] = "pa";
14605
12714
  })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
14606
12715
  /** Known values of {@link LexicalTokenizerName} that the service accepts. */
14607
- var KnownLexicalTokenizerName;
12716
+ exports.KnownTokenizerNames = void 0;
14608
12717
  (function (KnownLexicalTokenizerName) {
14609
- /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */
12718
+ /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */
14610
12719
  KnownLexicalTokenizerName["Classic"] = "classic";
14611
- /** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */
12720
+ /** Tokenizes the input from an edge into n-grams of the given size(s). See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenizer.html */
14612
12721
  KnownLexicalTokenizerName["EdgeNGram"] = "edgeNGram";
14613
- /** Emits the entire input as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html */
12722
+ /** Emits the entire input as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordTokenizer.html */
14614
12723
  KnownLexicalTokenizerName["Keyword"] = "keyword_v2";
14615
- /** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */
12724
+ /** Divides text at non-letters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LetterTokenizer.html */
14616
12725
  KnownLexicalTokenizerName["Letter"] = "letter";
14617
- /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html */
12726
+ /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseTokenizer.html */
14618
12727
  KnownLexicalTokenizerName["Lowercase"] = "lowercase";
14619
12728
  /** Divides text using language-specific rules. */
14620
12729
  KnownLexicalTokenizerName["MicrosoftLanguageTokenizer"] = "microsoft_language_tokenizer";
14621
12730
  /** Divides text using language-specific rules and reduces words to their base forms. */
14622
12731
  KnownLexicalTokenizerName["MicrosoftLanguageStemmingTokenizer"] = "microsoft_language_stemming_tokenizer";
14623
- /** Tokenizes the input into n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html */
12732
+ /** Tokenizes the input into n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenizer.html */
14624
12733
  KnownLexicalTokenizerName["NGram"] = "nGram";
14625
- /** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */
12734
+ /** Tokenizer for path-like hierarchies. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/path\/PathHierarchyTokenizer.html */
14626
12735
  KnownLexicalTokenizerName["PathHierarchy"] = "path_hierarchy_v2";
14627
- /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html */
12736
+ /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/pattern\/PatternTokenizer.html */
14628
12737
  KnownLexicalTokenizerName["Pattern"] = "pattern";
14629
- /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html */
12738
+ /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/StandardTokenizer.html */
14630
12739
  KnownLexicalTokenizerName["Standard"] = "standard_v2";
14631
- /** Tokenizes urls and emails as one token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html */
12740
+ /** Tokenizes urls and emails as one token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/UAX29URLEmailTokenizer.html */
14632
12741
  KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
14633
- /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
12742
+ /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */
14634
12743
  KnownLexicalTokenizerName["Whitespace"] = "whitespace";
14635
- })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
12744
+ })(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
12745
+ /** Known values of {@link TokenFilterName} that the service accepts. */
12746
+ exports.KnownTokenFilterNames = void 0;
12747
+ (function (KnownTokenFilterName) {
12748
+ /** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */
12749
+ KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
12750
+ /** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */
12751
+ KnownTokenFilterName["Apostrophe"] = "apostrophe";
12752
+ /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */
12753
+ KnownTokenFilterName["AsciiFolding"] = "asciifolding";
12754
+ /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */
12755
+ KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
12756
+ /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */
12757
+ KnownTokenFilterName["CjkWidth"] = "cjk_width";
12758
+ /** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */
12759
+ KnownTokenFilterName["Classic"] = "classic";
12760
+ /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */
12761
+ KnownTokenFilterName["CommonGram"] = "common_grams";
12762
+ /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */
12763
+ KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
12764
+ /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */
12765
+ KnownTokenFilterName["Elision"] = "elision";
12766
+ /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */
12767
+ KnownTokenFilterName["GermanNormalization"] = "german_normalization";
12768
+ /** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */
12769
+ KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
12770
+ /** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */
12771
+ KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
12772
+ /** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */
12773
+ KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
12774
+ /** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */
12775
+ KnownTokenFilterName["KStem"] = "kstem";
12776
+ /** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */
12777
+ KnownTokenFilterName["Length"] = "length";
12778
+ /** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */
12779
+ KnownTokenFilterName["Limit"] = "limit";
12780
+ /** Normalizes token text to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.htm */
12781
+ KnownTokenFilterName["Lowercase"] = "lowercase";
12782
+ /** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */
12783
+ KnownTokenFilterName["NGram"] = "nGram_v2";
12784
+ /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */
12785
+ KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
12786
+ /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */
12787
+ KnownTokenFilterName["Phonetic"] = "phonetic";
12788
+ /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */
12789
+ KnownTokenFilterName["PorterStem"] = "porter_stem";
12790
+ /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */
12791
+ KnownTokenFilterName["Reverse"] = "reverse";
12792
+ /** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */
12793
+ KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
12794
+ /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */
12795
+ KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
12796
+ /** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */
12797
+ KnownTokenFilterName["Shingle"] = "shingle";
12798
+ /** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */
12799
+ KnownTokenFilterName["Snowball"] = "snowball";
12800
+ /** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */
12801
+ KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
12802
+ /** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */
12803
+ KnownTokenFilterName["Stemmer"] = "stemmer";
12804
+ /** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */
12805
+ KnownTokenFilterName["Stopwords"] = "stopwords";
12806
+ /** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */
12807
+ KnownTokenFilterName["Trim"] = "trim";
12808
+ /** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */
12809
+ KnownTokenFilterName["Truncate"] = "truncate";
12810
+ /** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */
12811
+ KnownTokenFilterName["Unique"] = "unique";
12812
+ /** Normalizes token text to upper case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
12813
+ KnownTokenFilterName["Uppercase"] = "uppercase";
12814
+ /** Splits words into subwords and performs optional transformations on subword groups. */
12815
+ KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
12816
+ })(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
12817
+ /** Known values of {@link CharFilterName} that the service accepts. */
12818
+ exports.KnownCharFilterNames = void 0;
12819
+ (function (KnownCharFilterName) {
12820
+ /** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */
12821
+ KnownCharFilterName["HtmlStrip"] = "html_strip";
12822
+ })(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
14636
12823
  /** Known values of {@link RegexFlags} that the service accepts. */
14637
12824
  exports.KnownRegexFlags = void 0;
14638
12825
  (function (KnownRegexFlags) {