@azure/search-documents 12.1.0-beta.1 → 12.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -19
- package/dist/index.js +634 -224
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +43 -23
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/models/mappers.js +127 -0
- package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/data/models/parameters.js +74 -74
- package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/data/operations/documents.js +8 -8
- package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
- package/dist-esm/src/generated/data/searchClient.js +1 -1
- package/dist-esm/src/generated/data/searchClient.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +53 -9
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +159 -16
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
- package/dist-esm/src/generatedStringLiteralUnions.js.map +1 -1
- package/dist-esm/src/index.js +2 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/indexModels.js.map +1 -1
- package/dist-esm/src/searchClient.js +2 -5
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +5 -5
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexingBufferedSender.js +2 -1
- package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
- package/dist-esm/src/serialization.js +34 -70
- package/dist-esm/src/serialization.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +38 -12
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/dist-esm/src/walk.js +79 -0
- package/dist-esm/src/walk.js.map +1 -0
- package/package.json +11 -10
- package/types/search-documents.d.ts +7679 -7432
- package/dist-esm/src/constants.js +0 -5
- package/dist-esm/src/constants.js.map +0 -1
|
@@ -136,22 +136,22 @@ const searchGetOperationSpec = {
|
|
|
136
136
|
Parameters.queryType,
|
|
137
137
|
Parameters.scoringParameters,
|
|
138
138
|
Parameters.scoringProfile,
|
|
139
|
-
Parameters.semanticQuery,
|
|
140
|
-
Parameters.semanticConfiguration,
|
|
141
|
-
Parameters.semanticErrorHandling,
|
|
142
|
-
Parameters.semanticMaxWaitInMilliseconds,
|
|
143
|
-
Parameters.debug,
|
|
144
139
|
Parameters.searchFields,
|
|
145
|
-
Parameters.queryLanguage,
|
|
146
|
-
Parameters.speller,
|
|
147
|
-
Parameters.answers,
|
|
148
140
|
Parameters.searchMode,
|
|
149
141
|
Parameters.scoringStatistics,
|
|
150
142
|
Parameters.sessionId,
|
|
151
143
|
Parameters.select,
|
|
152
144
|
Parameters.skip,
|
|
153
145
|
Parameters.top,
|
|
146
|
+
Parameters.semanticConfiguration,
|
|
147
|
+
Parameters.semanticErrorHandling,
|
|
148
|
+
Parameters.semanticMaxWaitInMilliseconds,
|
|
149
|
+
Parameters.answers,
|
|
154
150
|
Parameters.captions,
|
|
151
|
+
Parameters.semanticQuery,
|
|
152
|
+
Parameters.debug,
|
|
153
|
+
Parameters.queryLanguage,
|
|
154
|
+
Parameters.speller,
|
|
155
155
|
Parameters.semanticFields,
|
|
156
156
|
],
|
|
157
157
|
urlParameters: [Parameters.endpoint, Parameters.indexName],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../../src/generated/data/operations/documents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB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right (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Documents } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SearchClient } from \"../searchClient\";\nimport {\n DocumentsCountOptionalParams,\n DocumentsCountResponse,\n DocumentsSearchGetOptionalParams,\n DocumentsSearchGetResponse,\n SearchRequest,\n DocumentsSearchPostOptionalParams,\n DocumentsSearchPostResponse,\n DocumentsGetOptionalParams,\n DocumentsGetResponse,\n DocumentsSuggestGetOptionalParams,\n DocumentsSuggestGetResponse,\n SuggestRequest,\n DocumentsSuggestPostOptionalParams,\n DocumentsSuggestPostResponse,\n IndexBatch,\n DocumentsIndexOptionalParams,\n DocumentsIndexResponse,\n DocumentsAutocompleteGetOptionalParams,\n DocumentsAutocompleteGetResponse,\n AutocompleteRequest,\n DocumentsAutocompletePostOptionalParams,\n DocumentsAutocompletePostResponse,\n} from \"../models\";\n\n/** Class containing Documents operations. */\nexport class DocumentsImpl implements Documents {\n private readonly client: SearchClient;\n\n /**\n * Initialize a new instance of the class Documents class.\n * @param client Reference to the service client\n */\n constructor(client: SearchClient) {\n this.client = client;\n }\n\n /**\n * Queries the number of documents in the index.\n * @param options The options parameters.\n */\n count(\n options?: DocumentsCountOptionalParams,\n ): Promise<DocumentsCountResponse> {\n return this.client.sendOperationRequest({ options }, countOperationSpec);\n }\n\n /**\n * Searches for documents in the index.\n * @param options The options parameters.\n */\n searchGet(\n options?: DocumentsSearchGetOptionalParams,\n ): Promise<DocumentsSearchGetResponse> {\n return this.client.sendOperationRequest(\n { options },\n searchGetOperationSpec,\n );\n }\n\n /**\n * Searches for documents in the index.\n * @param searchRequest The definition of the Search request.\n * @param options The options parameters.\n */\n searchPost(\n searchRequest: SearchRequest,\n options?: DocumentsSearchPostOptionalParams,\n ): Promise<DocumentsSearchPostResponse> {\n return this.client.sendOperationRequest(\n { searchRequest, options },\n searchPostOperationSpec,\n );\n }\n\n /**\n * Retrieves a document from the index.\n * @param key The key of the document to retrieve.\n * @param options The options parameters.\n */\n get(\n key: string,\n options?: DocumentsGetOptionalParams,\n ): Promise<DocumentsGetResponse> {\n return this.client.sendOperationRequest({ key, options }, getOperationSpec);\n }\n\n /**\n * Suggests documents in the index that match the given partial query text.\n * @param searchText The search text to use to suggest documents. Must be at least 1 character, and no\n * more than 100 characters.\n * @param suggesterName The name of the suggester as specified in the suggesters collection that's part\n * of the index definition.\n * @param options The options parameters.\n */\n suggestGet(\n searchText: string,\n suggesterName: string,\n options?: DocumentsSuggestGetOptionalParams,\n ): Promise<DocumentsSuggestGetResponse> {\n return this.client.sendOperationRequest(\n { searchText, suggesterName, options },\n suggestGetOperationSpec,\n );\n }\n\n /**\n * Suggests documents in the index that match the given partial query text.\n * @param suggestRequest The Suggest request.\n * @param options The options parameters.\n */\n suggestPost(\n suggestRequest: SuggestRequest,\n options?: DocumentsSuggestPostOptionalParams,\n ): Promise<DocumentsSuggestPostResponse> {\n return this.client.sendOperationRequest(\n { suggestRequest, options },\n suggestPostOperationSpec,\n );\n }\n\n /**\n * Sends a batch of document write actions to the index.\n * @param batch The batch of index actions.\n * @param options The options parameters.\n */\n index(\n batch: IndexBatch,\n options?: DocumentsIndexOptionalParams,\n ): Promise<DocumentsIndexResponse> {\n return this.client.sendOperationRequest(\n { batch, options },\n indexOperationSpec,\n );\n }\n\n /**\n * Autocompletes incomplete query terms based on input text and matching terms in the index.\n * @param searchText The incomplete term which should be auto-completed.\n * @param suggesterName The name of the suggester as specified in the suggesters collection that's part\n * of the index definition.\n * @param options The options parameters.\n */\n autocompleteGet(\n searchText: string,\n suggesterName: string,\n options?: DocumentsAutocompleteGetOptionalParams,\n ): Promise<DocumentsAutocompleteGetResponse> {\n return this.client.sendOperationRequest(\n { searchText, suggesterName, options },\n autocompleteGetOperationSpec,\n );\n }\n\n /**\n * Autocompletes incomplete query terms based on input text and matching terms in the index.\n * @param autocompleteRequest The definition of the Autocomplete request.\n * @param options The options parameters.\n */\n autocompletePost(\n autocompleteRequest: AutocompleteRequest,\n options?: DocumentsAutocompletePostOptionalParams,\n ): Promise<DocumentsAutocompletePostResponse> {\n return this.client.sendOperationRequest(\n { autocompleteRequest, options },\n autocompletePostOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst countOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/$count\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"Number\" } },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst searchGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText,\n Parameters.includeTotalResultCount,\n Parameters.facets,\n Parameters.filter,\n Parameters.highlightFields,\n Parameters.highlightPostTag,\n Parameters.highlightPreTag,\n Parameters.minimumCoverage,\n Parameters.orderBy,\n Parameters.queryType,\n Parameters.scoringParameters,\n Parameters.scoringProfile,\n Parameters.semanticQuery,\n Parameters.semanticConfiguration,\n Parameters.semanticErrorHandling,\n Parameters.semanticMaxWaitInMilliseconds,\n Parameters.debug,\n Parameters.searchFields,\n Parameters.queryLanguage,\n Parameters.speller,\n Parameters.answers,\n Parameters.searchMode,\n Parameters.scoringStatistics,\n Parameters.sessionId,\n Parameters.select,\n Parameters.skip,\n Parameters.top,\n Parameters.captions,\n Parameters.semanticFields,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst searchPostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.searchRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/docs('{key}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.selectedFields],\n urlParameters: [Parameters.endpoint, Parameters.indexName, Parameters.key],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst suggestGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.suggest\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuggestDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText1,\n Parameters.suggesterName,\n Parameters.filter1,\n Parameters.useFuzzyMatching,\n Parameters.highlightPostTag1,\n Parameters.highlightPreTag1,\n Parameters.minimumCoverage1,\n Parameters.orderBy1,\n Parameters.searchFields1,\n Parameters.select1,\n Parameters.top1,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst suggestPostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.suggest\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuggestDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.suggestRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst indexOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.index\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexDocumentsResult,\n },\n 207: {\n bodyMapper: Mappers.IndexDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.batch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst autocompleteGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.autocomplete\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutocompleteResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText1,\n Parameters.suggesterName,\n Parameters.autocompleteMode,\n Parameters.filter2,\n Parameters.useFuzzyMatching1,\n Parameters.highlightPostTag2,\n Parameters.highlightPreTag2,\n Parameters.minimumCoverage2,\n Parameters.searchFields2,\n Parameters.top2,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst autocompletePostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.autocomplete\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutocompleteResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.autocompleteRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../../src/generated/data/operations/documents.ts"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AAC,SAAS,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Documents } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { SearchClient } from \"../searchClient\";\nimport {\n DocumentsCountOptionalParams,\n DocumentsCountResponse,\n DocumentsSearchGetOptionalParams,\n DocumentsSearchGetResponse,\n SearchRequest,\n DocumentsSearchPostOptionalParams,\n DocumentsSearchPostResponse,\n DocumentsGetOptionalParams,\n DocumentsGetResponse,\n DocumentsSuggestGetOptionalParams,\n DocumentsSuggestGetResponse,\n SuggestRequest,\n DocumentsSuggestPostOptionalParams,\n DocumentsSuggestPostResponse,\n IndexBatch,\n DocumentsIndexOptionalParams,\n DocumentsIndexResponse,\n DocumentsAutocompleteGetOptionalParams,\n DocumentsAutocompleteGetResponse,\n AutocompleteRequest,\n DocumentsAutocompletePostOptionalParams,\n DocumentsAutocompletePostResponse,\n} from \"../models\";\n\n/** Class containing Documents operations. */\nexport class DocumentsImpl implements Documents {\n private readonly client: SearchClient;\n\n /**\n * Initialize a new instance of the class Documents class.\n * @param client Reference to the service client\n */\n constructor(client: SearchClient) {\n this.client = client;\n }\n\n /**\n * Queries the number of documents in the index.\n * @param options The options parameters.\n */\n count(\n options?: DocumentsCountOptionalParams,\n ): Promise<DocumentsCountResponse> {\n return this.client.sendOperationRequest({ options }, countOperationSpec);\n }\n\n /**\n * Searches for documents in the index.\n * @param options The options parameters.\n */\n searchGet(\n options?: DocumentsSearchGetOptionalParams,\n ): Promise<DocumentsSearchGetResponse> {\n return this.client.sendOperationRequest(\n { options },\n searchGetOperationSpec,\n );\n }\n\n /**\n * Searches for documents in the index.\n * @param searchRequest The definition of the Search request.\n * @param options The options parameters.\n */\n searchPost(\n searchRequest: SearchRequest,\n options?: DocumentsSearchPostOptionalParams,\n ): Promise<DocumentsSearchPostResponse> {\n return this.client.sendOperationRequest(\n { searchRequest, options },\n searchPostOperationSpec,\n );\n }\n\n /**\n * Retrieves a document from the index.\n * @param key The key of the document to retrieve.\n * @param options The options parameters.\n */\n get(\n key: string,\n options?: DocumentsGetOptionalParams,\n ): Promise<DocumentsGetResponse> {\n return this.client.sendOperationRequest({ key, options }, getOperationSpec);\n }\n\n /**\n * Suggests documents in the index that match the given partial query text.\n * @param searchText The search text to use to suggest documents. Must be at least 1 character, and no\n * more than 100 characters.\n * @param suggesterName The name of the suggester as specified in the suggesters collection that's part\n * of the index definition.\n * @param options The options parameters.\n */\n suggestGet(\n searchText: string,\n suggesterName: string,\n options?: DocumentsSuggestGetOptionalParams,\n ): Promise<DocumentsSuggestGetResponse> {\n return this.client.sendOperationRequest(\n { searchText, suggesterName, options },\n suggestGetOperationSpec,\n );\n }\n\n /**\n * Suggests documents in the index that match the given partial query text.\n * @param suggestRequest The Suggest request.\n * @param options The options parameters.\n */\n suggestPost(\n suggestRequest: SuggestRequest,\n options?: DocumentsSuggestPostOptionalParams,\n ): Promise<DocumentsSuggestPostResponse> {\n return this.client.sendOperationRequest(\n { suggestRequest, options },\n suggestPostOperationSpec,\n );\n }\n\n /**\n * Sends a batch of document write actions to the index.\n * @param batch The batch of index actions.\n * @param options The options parameters.\n */\n index(\n batch: IndexBatch,\n options?: DocumentsIndexOptionalParams,\n ): Promise<DocumentsIndexResponse> {\n return this.client.sendOperationRequest(\n { batch, options },\n indexOperationSpec,\n );\n }\n\n /**\n * Autocompletes incomplete query terms based on input text and matching terms in the index.\n * @param searchText The incomplete term which should be auto-completed.\n * @param suggesterName The name of the suggester as specified in the suggesters collection that's part\n * of the index definition.\n * @param options The options parameters.\n */\n autocompleteGet(\n searchText: string,\n suggesterName: string,\n options?: DocumentsAutocompleteGetOptionalParams,\n ): Promise<DocumentsAutocompleteGetResponse> {\n return this.client.sendOperationRequest(\n { searchText, suggesterName, options },\n autocompleteGetOperationSpec,\n );\n }\n\n /**\n * Autocompletes incomplete query terms based on input text and matching terms in the index.\n * @param autocompleteRequest The definition of the Autocomplete request.\n * @param options The options parameters.\n */\n autocompletePost(\n autocompleteRequest: AutocompleteRequest,\n options?: DocumentsAutocompletePostOptionalParams,\n ): Promise<DocumentsAutocompletePostResponse> {\n return this.client.sendOperationRequest(\n { autocompleteRequest, options },\n autocompletePostOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst countOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/$count\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"Number\" } },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst searchGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText,\n Parameters.includeTotalResultCount,\n Parameters.facets,\n Parameters.filter,\n Parameters.highlightFields,\n Parameters.highlightPostTag,\n Parameters.highlightPreTag,\n Parameters.minimumCoverage,\n Parameters.orderBy,\n Parameters.queryType,\n Parameters.scoringParameters,\n Parameters.scoringProfile,\n Parameters.searchFields,\n Parameters.searchMode,\n Parameters.scoringStatistics,\n Parameters.sessionId,\n Parameters.select,\n Parameters.skip,\n Parameters.top,\n Parameters.semanticConfiguration,\n Parameters.semanticErrorHandling,\n Parameters.semanticMaxWaitInMilliseconds,\n Parameters.answers,\n Parameters.captions,\n Parameters.semanticQuery,\n Parameters.debug,\n Parameters.queryLanguage,\n Parameters.speller,\n Parameters.semanticFields,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst searchPostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.search\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SearchDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.searchRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/docs('{key}')\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Dictionary\", value: { type: { name: \"any\" } } },\n },\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.selectedFields],\n urlParameters: [Parameters.endpoint, Parameters.indexName, Parameters.key],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst suggestGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.suggest\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuggestDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText1,\n Parameters.suggesterName,\n Parameters.filter1,\n Parameters.useFuzzyMatching,\n Parameters.highlightPostTag1,\n Parameters.highlightPreTag1,\n Parameters.minimumCoverage1,\n Parameters.orderBy1,\n Parameters.searchFields1,\n Parameters.select1,\n Parameters.top1,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst suggestPostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.suggest\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SuggestDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.suggestRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst indexOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.index\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IndexDocumentsResult,\n },\n 207: {\n bodyMapper: Mappers.IndexDocumentsResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.batch,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst autocompleteGetOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.autocomplete\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutocompleteResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.searchText1,\n Parameters.suggesterName,\n Parameters.autocompleteMode,\n Parameters.filter2,\n Parameters.useFuzzyMatching1,\n Parameters.highlightPostTag2,\n Parameters.highlightPreTag2,\n Parameters.minimumCoverage2,\n Parameters.searchFields2,\n Parameters.top2,\n ],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst autocompletePostOperationSpec: coreClient.OperationSpec = {\n path: \"/docs/search.post.autocomplete\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AutocompleteResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.autocompleteRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.indexName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -34,7 +34,7 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient {
|
|
|
34
34
|
const defaults = {
|
|
35
35
|
requestContentType: "application/json; charset=utf-8",
|
|
36
36
|
};
|
|
37
|
-
const packageDetails = `azsdk-js-search-documents/12.1.0-beta.
|
|
37
|
+
const packageDetails = `azsdk-js-search-documents/12.1.0-beta.2`;
|
|
38
38
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
39
39
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
40
40
|
: `${packageDetails}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchClient.js","sourceRoot":"","sources":["../../../../src/generated/data/searchClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAM1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAO7C,gBAAgB;AAChB,MAAM,OAAO,YAAa,SAAQ,cAAc,CAAC,qBAAqB;IAKpE;;;;;;OAMG;IACH,YACE,QAAgB,EAChB,SAAiB,EACjB,UAAqC,EACrC,OAAoC;;QAEpC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QACD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QACD,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;Q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,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { DocumentsImpl } from \"./operations\";\nimport { Documents } from \"./operationsInterfaces\";\nimport {\n
|
|
1
|
+
{"version":3,"file":"searchClient.js","sourceRoot":"","sources":["../../../../src/generated/data/searchClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC;AAM1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAO7C,gBAAgB;AAChB,MAAM,OAAO,YAAa,SAAQ,cAAc,CAAC,qBAAqB;IAKpE;;;;;;OAMG;IACH,YACE,QAAgB,EAChB,SAAiB,EACjB,UAAqC,EACrC,OAAoC;;QAEpC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CA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MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAGF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttpCompat from \"@azure/core-http-compat\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport { DocumentsImpl } from \"./operations\";\nimport { Documents } from \"./operationsInterfaces\";\nimport {\n ApiVersion20240501Preview,\n SearchClientOptionalParams,\n} from \"./models\";\n\n/** @internal */\nexport class SearchClient extends coreHttpCompat.ExtendedServiceClient {\n endpoint: string;\n indexName: string;\n apiVersion: ApiVersion20240501Preview;\n\n /**\n * Initializes a new instance of the SearchClient class.\n * @param endpoint The endpoint URL of the search service.\n * @param indexName The name of the index.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n indexName: string,\n apiVersion: ApiVersion20240501Preview,\n options?: SearchClientOptionalParams,\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n if (indexName === undefined) {\n throw new Error(\"'indexName' cannot be null\");\n }\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SearchClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n };\n\n const packageDetails = `azsdk-js-search-documents/12.1.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ??\n options.baseUri ??\n \"{endpoint}/indexes('{indexName}')\",\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n this.indexName = indexName;\n this.apiVersion = apiVersion;\n this.documents = new DocumentsImpl(this);\n this.addCustomApiVersionPolicy(apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n documents: Documents;\n}\n"]}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
/** Known values of {@link
|
|
9
|
-
export var
|
|
10
|
-
(function (
|
|
11
|
-
/** Api Version '2024-
|
|
12
|
-
|
|
13
|
-
})(
|
|
8
|
+
/** Known values of {@link ApiVersion20240501Preview} that the service accepts. */
|
|
9
|
+
export var KnownApiVersion20240501Preview;
|
|
10
|
+
(function (KnownApiVersion20240501Preview) {
|
|
11
|
+
/** Api Version '2024-05-01-preview' */
|
|
12
|
+
KnownApiVersion20240501Preview["TwoThousandTwentyFour0501Preview"] = "2024-05-01-preview";
|
|
13
|
+
})(KnownApiVersion20240501Preview || (KnownApiVersion20240501Preview = {}));
|
|
14
14
|
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
15
15
|
export var KnownSearchIndexerDataSourceType;
|
|
16
16
|
(function (KnownSearchIndexerDataSourceType) {
|
|
@@ -26,6 +26,8 @@ export var KnownSearchIndexerDataSourceType;
|
|
|
26
26
|
KnownSearchIndexerDataSourceType["MySql"] = "mysql";
|
|
27
27
|
/** Indicates an ADLS Gen2 datasource. */
|
|
28
28
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
29
|
+
/** Indicates a Microsoft Fabric OneLake datasource. */
|
|
30
|
+
KnownSearchIndexerDataSourceType["OneLake"] = "onelake";
|
|
29
31
|
})(KnownSearchIndexerDataSourceType || (KnownSearchIndexerDataSourceType = {}));
|
|
30
32
|
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
31
33
|
export var KnownBlobIndexerParsingMode;
|
|
@@ -128,6 +130,8 @@ export var KnownSearchFieldDataType;
|
|
|
128
130
|
KnownSearchFieldDataType["Int16"] = "Edm.Int16";
|
|
129
131
|
/** Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */
|
|
130
132
|
KnownSearchFieldDataType["SByte"] = "Edm.SByte";
|
|
133
|
+
/** Indicates that a field contains a 8-bit unsigned integer. This is only valid when used with Collection(Edm.Byte). */
|
|
134
|
+
KnownSearchFieldDataType["Byte"] = "Edm.Byte";
|
|
131
135
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
132
136
|
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
133
137
|
export var KnownLexicalAnalyzerName;
|
|
@@ -333,6 +337,12 @@ export var KnownLexicalNormalizerName;
|
|
|
333
337
|
/** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */
|
|
334
338
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
335
339
|
})(KnownLexicalNormalizerName || (KnownLexicalNormalizerName = {}));
|
|
340
|
+
/** Known values of {@link VectorEncodingFormat} that the service accepts. */
|
|
341
|
+
export var KnownVectorEncodingFormat;
|
|
342
|
+
(function (KnownVectorEncodingFormat) {
|
|
343
|
+
/** Encoding format representing bits packed into a wider data type. */
|
|
344
|
+
KnownVectorEncodingFormat["PackedBit"] = "packedBit";
|
|
345
|
+
})(KnownVectorEncodingFormat || (KnownVectorEncodingFormat = {}));
|
|
336
346
|
/** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */
|
|
337
347
|
export var KnownVectorSearchAlgorithmKind;
|
|
338
348
|
(function (KnownVectorSearchAlgorithmKind) {
|
|
@@ -348,6 +358,10 @@ export var KnownVectorSearchVectorizerKind;
|
|
|
348
358
|
KnownVectorSearchVectorizerKind["AzureOpenAI"] = "azureOpenAI";
|
|
349
359
|
/** Generate embeddings using a custom web endpoint at query time. */
|
|
350
360
|
KnownVectorSearchVectorizerKind["CustomWebApi"] = "customWebApi";
|
|
361
|
+
/** Generate embeddings for an image or text input at query time using the Azure AI Services Vision Vectorize API. */
|
|
362
|
+
KnownVectorSearchVectorizerKind["AIServicesVision"] = "aiServicesVision";
|
|
363
|
+
/** Generate embeddings using an Azure Machine Learning endpoint deployed via the Azure AI Studio Model Catalog at query time. */
|
|
364
|
+
KnownVectorSearchVectorizerKind["AML"] = "aml";
|
|
351
365
|
})(KnownVectorSearchVectorizerKind || (KnownVectorSearchVectorizerKind = {}));
|
|
352
366
|
/** Known values of {@link VectorSearchCompressionKind} that the service accepts. */
|
|
353
367
|
export var KnownVectorSearchCompressionKind;
|
|
@@ -436,12 +450,14 @@ export var KnownCharFilterName;
|
|
|
436
450
|
/** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */
|
|
437
451
|
export var KnownVectorSearchAlgorithmMetric;
|
|
438
452
|
(function (KnownVectorSearchAlgorithmMetric) {
|
|
439
|
-
/**
|
|
453
|
+
/** Measures the angle between vectors to quantify their similarity, disregarding magnitude. The smaller the angle, the closer the similarity. */
|
|
440
454
|
KnownVectorSearchAlgorithmMetric["Cosine"] = "cosine";
|
|
441
|
-
/**
|
|
455
|
+
/** Computes the straight-line distance between vectors in a multi-dimensional space. The smaller the distance, the closer the similarity. */
|
|
442
456
|
KnownVectorSearchAlgorithmMetric["Euclidean"] = "euclidean";
|
|
443
|
-
/**
|
|
457
|
+
/** Calculates the sum of element-wise products to gauge alignment and magnitude similarity. The larger and more positive, the closer the similarity. */
|
|
444
458
|
KnownVectorSearchAlgorithmMetric["DotProduct"] = "dotProduct";
|
|
459
|
+
/** Only applicable to bit-packed binary data types. Determines dissimilarity by counting differing positions in binary vectors. The fewer differences, the closer the similarity. */
|
|
460
|
+
KnownVectorSearchAlgorithmMetric["Hamming"] = "hamming";
|
|
445
461
|
})(KnownVectorSearchAlgorithmMetric || (KnownVectorSearchAlgorithmMetric = {}));
|
|
446
462
|
/** Known values of {@link VectorSearchCompressionTargetDataType} that the service accepts. */
|
|
447
463
|
export var KnownVectorSearchCompressionTargetDataType;
|
|
@@ -449,6 +465,34 @@ export var KnownVectorSearchCompressionTargetDataType;
|
|
|
449
465
|
/** Int8 */
|
|
450
466
|
KnownVectorSearchCompressionTargetDataType["Int8"] = "int8";
|
|
451
467
|
})(KnownVectorSearchCompressionTargetDataType || (KnownVectorSearchCompressionTargetDataType = {}));
|
|
468
|
+
/** Known values of {@link AzureOpenAIModelName} that the service accepts. */
|
|
469
|
+
export var KnownAzureOpenAIModelName;
|
|
470
|
+
(function (KnownAzureOpenAIModelName) {
|
|
471
|
+
/** TextEmbeddingAda002 */
|
|
472
|
+
KnownAzureOpenAIModelName["TextEmbeddingAda002"] = "text-embedding-ada-002";
|
|
473
|
+
/** TextEmbedding3Large */
|
|
474
|
+
KnownAzureOpenAIModelName["TextEmbedding3Large"] = "text-embedding-3-large";
|
|
475
|
+
/** TextEmbedding3Small */
|
|
476
|
+
KnownAzureOpenAIModelName["TextEmbedding3Small"] = "text-embedding-3-small";
|
|
477
|
+
/** Experimental */
|
|
478
|
+
KnownAzureOpenAIModelName["Experimental"] = "experimental";
|
|
479
|
+
})(KnownAzureOpenAIModelName || (KnownAzureOpenAIModelName = {}));
|
|
480
|
+
/** Known values of {@link AIStudioModelCatalogName} that the service accepts. */
|
|
481
|
+
export var KnownAIStudioModelCatalogName;
|
|
482
|
+
(function (KnownAIStudioModelCatalogName) {
|
|
483
|
+
/** OpenAIClipImageTextEmbeddingsVitBasePatch32 */
|
|
484
|
+
KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsVitBasePatch32"] = "OpenAI-CLIP-Image-Text-Embeddings-vit-base-patch32";
|
|
485
|
+
/** OpenAIClipImageTextEmbeddingsViTLargePatch14336 */
|
|
486
|
+
KnownAIStudioModelCatalogName["OpenAIClipImageTextEmbeddingsViTLargePatch14336"] = "OpenAI-CLIP-Image-Text-Embeddings-ViT-Large-Patch14-336";
|
|
487
|
+
/** FacebookDinoV2ImageEmbeddingsViTBase */
|
|
488
|
+
KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTBase"] = "Facebook-DinoV2-Image-Embeddings-ViT-Base";
|
|
489
|
+
/** FacebookDinoV2ImageEmbeddingsViTGiant */
|
|
490
|
+
KnownAIStudioModelCatalogName["FacebookDinoV2ImageEmbeddingsViTGiant"] = "Facebook-DinoV2-Image-Embeddings-ViT-Giant";
|
|
491
|
+
/** CohereEmbedV3English */
|
|
492
|
+
KnownAIStudioModelCatalogName["CohereEmbedV3English"] = "Cohere-embed-v3-english";
|
|
493
|
+
/** CohereEmbedV3Multilingual */
|
|
494
|
+
KnownAIStudioModelCatalogName["CohereEmbedV3Multilingual"] = "Cohere-embed-v3-multilingual";
|
|
495
|
+
})(KnownAIStudioModelCatalogName || (KnownAIStudioModelCatalogName = {}));
|
|
452
496
|
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
453
497
|
export var KnownKeyPhraseExtractionSkillLanguage;
|
|
454
498
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|