@azure/ai-content-understanding 1.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.
- package/LICENSE +21 -0
- package/README.md +591 -0
- package/dist/browser/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/browser/api/contentUnderstandingContext.js +27 -0
- package/dist/browser/api/contentUnderstandingContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +4 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/operations.d.ts +67 -0
- package/dist/browser/api/operations.js +488 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +94 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/contentUnderstandingClient.d.ts +65 -0
- package/dist/browser/contentUnderstandingClient.js +161 -0
- package/dist/browser/contentUnderstandingClient.js.map +1 -0
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.js +14 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +846 -0
- package/dist/browser/models/models.js +1005 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/get-binary-response-browser.mjs.map +1 -0
- package/dist/browser/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/browser/static-helpers/serialization/get-binary-response.js +19 -0
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/commonjs/api/contentUnderstandingContext.js +30 -0
- package/dist/commonjs/api/contentUnderstandingContext.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +4 -0
- package/dist/commonjs/api/index.js +24 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/operations.d.ts +67 -0
- package/dist/commonjs/api/operations.js +535 -0
- package/dist/commonjs/api/operations.js.map +1 -0
- package/dist/commonjs/api/options.d.ts +94 -0
- package/dist/commonjs/api/options.js +5 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/contentUnderstandingClient.d.ts +65 -0
- package/dist/commonjs/contentUnderstandingClient.js +160 -0
- package/dist/commonjs/contentUnderstandingClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.js +8 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +846 -0
- package/dist/commonjs/models/models.js +1103 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +146 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +98 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.js +26 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +25 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +203 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/esm/api/contentUnderstandingContext.js +27 -0
- package/dist/esm/api/contentUnderstandingContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +4 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/operations.d.ts +67 -0
- package/dist/esm/api/operations.js +488 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +94 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/contentUnderstandingClient.d.ts +65 -0
- package/dist/esm/contentUnderstandingClient.js +161 -0
- package/dist/esm/contentUnderstandingClient.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +846 -0
- package/dist/esm/models/models.js +1005 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.js +23 -0
- package/dist/esm/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/contentUnderstandingContext.d.ts +15 -0
- package/dist/react-native/api/contentUnderstandingContext.js +27 -0
- package/dist/react-native/api/contentUnderstandingContext.js.map +1 -0
- package/dist/react-native/api/index.d.ts +4 -0
- package/dist/react-native/api/index.js +5 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/operations.d.ts +67 -0
- package/dist/react-native/api/operations.js +488 -0
- package/dist/react-native/api/operations.js.map +1 -0
- package/dist/react-native/api/options.d.ts +94 -0
- package/dist/react-native/api/options.js +4 -0
- package/dist/react-native/api/options.js.map +1 -0
- package/dist/react-native/contentUnderstandingClient.d.ts +65 -0
- package/dist/react-native/contentUnderstandingClient.js +161 -0
- package/dist/react-native/contentUnderstandingClient.js.map +1 -0
- package/dist/react-native/index.d.ts +6 -0
- package/dist/react-native/index.js +14 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +846 -0
- package/dist/react-native/models/models.js +1005 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +143 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +95 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.d.ts +10 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.js +23 -0
- package/dist/react-native/static-helpers/serialization/get-binary-response.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js +22 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +200 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +180 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/api/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAalC,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,iDAAiD,EACjD,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,wCAAwC,EACxC,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC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AM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;QACvC,MAAM,eAAe,CACnB,oEAAoE,EACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED,OAAO,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,OAAO,CACrB,OAAe,EACf,UAAkB,EAClB,MAAuB,EACvB,UAAiC,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvD,OAAO,oBAAoB,CAAC,OAAO,EAAE,mBAAmB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE;QAC/E,gHAAgH;QAChH,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC;QAC5E,sBAAsB,EAAE,oBAAoB;QAC5C,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,YAAY;KAC/C,CAA+D,CAAC;AACnE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ContentUnderstandingContext as Client } from \"./index.js\";\nimport type {\n AnalysisInput,\n AnalysisResult,\n ContentAnalyzerAnalyzeOperationStatus,\n ContentAnalyzer,\n ContentAnalyzerOperationStatus,\n ContentUnderstandingDefaults,\n CopyAuthorization,\n _PagedContentAnalyzer,\n} from \"../models/models.js\";\nimport {\n analysisInputArraySerializer,\n analysisResultDeserializer,\n contentAnalyzerAnalyzeOperationStatusDeserializer,\n contentAnalyzerSerializer,\n contentAnalyzerDeserializer,\n contentAnalyzerOperationStatusDeserializer,\n contentUnderstandingDefaultsDeserializer,\n copyAuthorizationDeserializer,\n recordMergePatchUpdateSerializer,\n _pagedContentAnalyzerDeserializer,\n} from \"../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../static-helpers/pollingHelpers.js\";\nimport { getBinaryResponse } from \"../static-helpers/serialization/get-binary-response.js\";\nimport { expandUrlTemplate } from \"../static-helpers/urlTemplate.js\";\nimport type {\n UpdateDefaultsOptionalParams,\n UpdateAnalyzerOptionalParams,\n ListAnalyzersOptionalParams,\n GrantCopyAuthorizationOptionalParams,\n GetResultFileOptionalParams,\n GetResultOptionalParams,\n GetOperationStatusOptionalParams,\n GetDefaultsOptionalParams,\n GetAnalyzerOptionalParams,\n DeleteResultOptionalParams,\n DeleteAnalyzerOptionalParams,\n CreateAnalyzerOptionalParams,\n CopyAnalyzerOptionalParams,\n AnalyzeBinaryOptionalParams,\n AnalyzeOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _updateDefaultsSend(\n context: Client,\n options: UpdateDefaultsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/defaults{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/merge-patch+json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: {\n modelDeployments: !options?.modelDeployments\n ? options?.modelDeployments\n : recordMergePatchUpdateSerializer(options?.modelDeployments),\n },\n });\n}\n\nexport async function _updateDefaultsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentUnderstandingDefaults> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentUnderstandingDefaultsDeserializer(result.body);\n}\n\n/** Update default settings for this Content Understanding resource. */\nexport async function updateDefaults(\n context: Client,\n options: UpdateDefaultsOptionalParams = { requestOptions: {} },\n): Promise<ContentUnderstandingDefaults> {\n const result = await _updateDefaultsSend(context, options);\n return _updateDefaultsDeserialize(result);\n}\n\nexport function _updateAnalyzerSend(\n context: Client,\n analyzerId: string,\n resource: ContentAnalyzer,\n options: UpdateAnalyzerOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}{?api%2Dversion}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/merge-patch+json\",\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: contentAnalyzerSerializer(resource),\n });\n}\n\nexport async function _updateAnalyzerDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzer> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentAnalyzerDeserializer(result.body);\n}\n\n/** Update analyzer properties. */\nexport async function updateAnalyzer(\n context: Client,\n analyzerId: string,\n resource: ContentAnalyzer,\n options: UpdateAnalyzerOptionalParams = { requestOptions: {} },\n): Promise<ContentAnalyzer> {\n const result = await _updateAnalyzerSend(context, analyzerId, resource, options);\n return _updateAnalyzerDeserialize(result);\n}\n\nexport function _listAnalyzersSend(\n context: Client,\n options: ListAnalyzersOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listAnalyzersDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedContentAnalyzer> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedContentAnalyzerDeserializer(result.body);\n}\n\n/** List analyzers. */\nexport function listAnalyzers(\n context: Client,\n options: ListAnalyzersOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<ContentAnalyzer> {\n return buildPagedAsyncIterator(\n context,\n () => _listAnalyzersSend(context, options),\n _listAnalyzersDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\", apiVersion: context.apiVersion ?? \"2025-11-01\" },\n );\n}\n\nexport function _grantCopyAuthorizationSend(\n context: Client,\n analyzerId: string,\n targetAzureResourceId: string,\n options: GrantCopyAuthorizationOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}:grantCopyAuthorization{?api%2Dversion}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: { targetAzureResourceId: targetAzureResourceId, targetRegion: options?.targetRegion },\n });\n}\n\nexport async function _grantCopyAuthorizationDeserialize(\n result: PathUncheckedResponse,\n): Promise<CopyAuthorization> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return copyAuthorizationDeserializer(result.body);\n}\n\n/** Get authorization for copying this analyzer to another location. */\nexport async function grantCopyAuthorization(\n context: Client,\n analyzerId: string,\n targetAzureResourceId: string,\n options: GrantCopyAuthorizationOptionalParams = { requestOptions: {} },\n): Promise<CopyAuthorization> {\n const result = await _grantCopyAuthorizationSend(\n context,\n analyzerId,\n targetAzureResourceId,\n options,\n );\n return _grantCopyAuthorizationDeserialize(result);\n}\n\nexport function _getResultFileSend(\n context: Client,\n operationId: string,\n path: string,\n options: GetResultFileOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n // CUSTOMIZATION: EMITTER-FIX: Renamed `path` to `urlPath` to avoid shadowing the function parameter `path`\n const urlPath = expandUrlTemplate(\n \"/analyzerResults/{operationId}/files/{+path}{?api%2Dversion}\",\n {\n operationId: operationId,\n path: path,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(urlPath).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"*/*\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getResultFileDeserialize(\n result: PathUncheckedResponse,\n): Promise<Uint8Array> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return result.body;\n}\n\n/** Get a file associated with the result of an analysis operation. */\nexport async function getResultFile(\n context: Client,\n operationId: string,\n path: string,\n options: GetResultFileOptionalParams = { requestOptions: {} },\n): Promise<Uint8Array> {\n const streamableMethod = _getResultFileSend(context, operationId, path, options);\n const result = await getBinaryResponse(streamableMethod);\n return _getResultFileDeserialize(result);\n}\n\nexport function _getResultSend(\n context: Client,\n operationId: string,\n options: GetResultOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzerResults/{operationId}{?api%2Dversion}\",\n {\n operationId: operationId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getResultDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzerAnalyzeOperationStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentAnalyzerAnalyzeOperationStatusDeserializer(result.body);\n}\n\n/** Get the result of an analysis operation. */\nexport async function getResult(\n context: Client,\n operationId: string,\n options: GetResultOptionalParams = { requestOptions: {} },\n): Promise<ContentAnalyzerAnalyzeOperationStatus> {\n const result = await _getResultSend(context, operationId, options);\n return _getResultDeserialize(result);\n}\n\nexport function _getOperationStatusSend(\n context: Client,\n analyzerId: string,\n operationId: string,\n options: GetOperationStatusOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}/operations/{operationId}{?api%2Dversion}\",\n {\n analyzerId: analyzerId,\n operationId: operationId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getOperationStatusDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzerOperationStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentAnalyzerOperationStatusDeserializer(result.body);\n}\n\n/** Get the status of an analyzer creation operation. */\nexport async function getOperationStatus(\n context: Client,\n analyzerId: string,\n operationId: string,\n options: GetOperationStatusOptionalParams = { requestOptions: {} },\n): Promise<ContentAnalyzerOperationStatus> {\n const result = await _getOperationStatusSend(context, analyzerId, operationId, options);\n return _getOperationStatusDeserialize(result);\n}\n\nexport function _getDefaultsSend(\n context: Client,\n options: GetDefaultsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/defaults{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDefaultsDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentUnderstandingDefaults> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentUnderstandingDefaultsDeserializer(result.body);\n}\n\n/** Return default settings for this Content Understanding resource. */\nexport async function getDefaults(\n context: Client,\n options: GetDefaultsOptionalParams = { requestOptions: {} },\n): Promise<ContentUnderstandingDefaults> {\n const result = await _getDefaultsSend(context, options);\n return _getDefaultsDeserialize(result);\n}\n\nexport function _getAnalyzerSend(\n context: Client,\n analyzerId: string,\n options: GetAnalyzerOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}{?api%2Dversion}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getAnalyzerDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzer> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentAnalyzerDeserializer(result.body);\n}\n\n/** Get analyzer properties. */\nexport async function getAnalyzer(\n context: Client,\n analyzerId: string,\n options: GetAnalyzerOptionalParams = { requestOptions: {} },\n): Promise<ContentAnalyzer> {\n const result = await _getAnalyzerSend(context, analyzerId, options);\n return _getAnalyzerDeserialize(result);\n}\n\nexport function _deleteResultSend(\n context: Client,\n operationId: string,\n options: DeleteResultOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzerResults/{operationId}{?api%2Dversion}\",\n {\n operationId: operationId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _deleteResultDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Mark the result of an analysis operation for deletion. */\nexport async function deleteResult(\n context: Client,\n operationId: string,\n options: DeleteResultOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteResultSend(context, operationId, options);\n return _deleteResultDeserialize(result);\n}\n\nexport function _deleteAnalyzerSend(\n context: Client,\n analyzerId: string,\n options: DeleteAnalyzerOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}{?api%2Dversion}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteAnalyzerDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete analyzer. */\nexport async function deleteAnalyzer(\n context: Client,\n analyzerId: string,\n options: DeleteAnalyzerOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteAnalyzerSend(context, analyzerId, options);\n return _deleteAnalyzerDeserialize(result);\n}\n\nexport function _createAnalyzerSend(\n context: Client,\n analyzerId: string,\n resource: ContentAnalyzer,\n options: CreateAnalyzerOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}{?api%2Dversion,allowReplace}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n allowReplace: options?.allowReplace,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: contentAnalyzerSerializer(resource),\n });\n}\n\nexport async function _createAnalyzerDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzer> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return contentAnalyzerDeserializer(result.body);\n}\n\n/** Create a new analyzer asynchronously. */\nexport function createAnalyzer(\n context: Client,\n analyzerId: string,\n resource: ContentAnalyzer,\n options: CreateAnalyzerOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer> {\n return getLongRunningPoller(context, _createAnalyzerDeserialize, [\"201\", \"200\", \"202\"], {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds (generated code defaults to 2 seconds).\n updateIntervalInMs: options?.updateIntervalInMs ?? 3000,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createAnalyzerSend(context, analyzerId, resource, options),\n resourceLocationConfig: \"original-uri\",\n apiVersion: context.apiVersion ?? \"2025-11-01\",\n }) as PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer>;\n}\n\nexport function _copyAnalyzerSend(\n context: Client,\n analyzerId: string,\n sourceAnalyzerId: string,\n options: CopyAnalyzerOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}:copy{?api%2Dversion,allowReplace}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n allowReplace: options?.allowReplace,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n sourceAzureResourceId: options?.sourceAzureResourceId,\n sourceRegion: options?.sourceRegion,\n sourceAnalyzerId: sourceAnalyzerId,\n },\n });\n}\n\nexport async function _copyAnalyzerDeserialize(\n result: PathUncheckedResponse,\n): Promise<ContentAnalyzer> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return contentAnalyzerDeserializer(result.body.result);\n}\n\n/** Create a copy of the source analyzer to the current location. */\nexport function copyAnalyzer(\n context: Client,\n analyzerId: string,\n sourceAnalyzerId: string,\n options: CopyAnalyzerOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer> {\n return getLongRunningPoller(context, _copyAnalyzerDeserialize, [\"201\", \"200\", \"202\"], {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds (generated code defaults to 2 seconds).\n updateIntervalInMs: options?.updateIntervalInMs ?? 3000,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _copyAnalyzerSend(context, analyzerId, sourceAnalyzerId, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"2025-11-01\",\n }) as PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer>;\n}\n\n// CUSTOMIZATION: SDK-IMPROVEMENT: `_analyzeBinarySend` and `analyzeBinary` signatures differ from generated code:\n// - Generated has: (context, analyzerId, input, stringEncoding, contentType, options)\n// - Custom has: (context, analyzerId, input, contentType, options)\n// `stringEncoding` is removed as a positional param and passed via options instead, so the custom\n// ContentUnderstandingClient can always inject `\"utf16\"` internally.\n// Also fixes generated bug: `body: binaryInput` (wrong var name, should be `input`).\nexport function _analyzeBinarySend(\n context: Client,\n analyzerId: string,\n input: Uint8Array,\n contentType: string,\n options: AnalyzeBinaryOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}:analyzeBinary{?api%2Dversion,stringEncoding,processingLocation,range}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n stringEncoding: options?.stringEncoding,\n processingLocation: options?.processingLocation,\n range: options?.contentRange,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: contentType,\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: input,\n });\n}\n\nexport async function _analyzeBinaryDeserialize(\n result: PathUncheckedResponse,\n): Promise<AnalysisResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return analysisResultDeserializer(result.body.result);\n}\n\n/** Extract content and fields from input. */\nexport function analyzeBinary(\n context: Client,\n analyzerId: string,\n input: Uint8Array,\n contentType: string,\n options: AnalyzeBinaryOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<AnalysisResult>, AnalysisResult> {\n return getLongRunningPoller(context, _analyzeBinaryDeserialize, [\"202\", \"200\", \"201\"], {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds (generated code defaults to 2 seconds).\n updateIntervalInMs: options?.updateIntervalInMs ?? 3000,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _analyzeBinarySend(context, analyzerId, input, contentType, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"2025-11-01\",\n }) as PollerLike<OperationState<AnalysisResult>, AnalysisResult>;\n}\n\n// CUSTOMIZATION: SDK-IMPROVEMENT: `_analyzeSend` and `analyze` signatures differ from generated code:\n// - Generated has: (context, analyzerId, inputs, stringEncoding, options)\n// - Custom has: (context, analyzerId, inputs, options)\n// `stringEncoding` is removed as a positional param and passed via options instead,\n// so the custom ContentUnderstandingClient can always inject `\"utf16\"` internally.\nexport function _analyzeSend(\n context: Client,\n analyzerId: string,\n inputs: AnalysisInput[],\n options: AnalyzeOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/analyzers/{analyzerId}:analyze{?api%2Dversion,stringEncoding,processingLocation}\",\n {\n analyzerId: analyzerId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-11-01\",\n stringEncoding: options?.stringEncoding,\n processingLocation: options?.processingLocation,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n inputs: analysisInputArraySerializer(inputs),\n modelDeployments: options?.modelDeployments,\n },\n });\n}\n\nexport async function _analyzeDeserialize(result: PathUncheckedResponse): Promise<AnalysisResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return analysisResultDeserializer(result.body.result);\n}\n\n/** Extract content and fields from input. */\nexport function analyze(\n context: Client,\n analyzerId: string,\n inputs: AnalysisInput[],\n options: AnalyzeOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<AnalysisResult>, AnalysisResult> {\n return getLongRunningPoller(context, _analyzeDeserialize, [\"202\", \"200\", \"201\"], {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds (generated code defaults to 2 seconds).\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _analyzeSend(context, analyzerId, inputs, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"2025-11-01\",\n }) as PollerLike<OperationState<AnalysisResult>, AnalysisResult>;\n}\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { ProcessingLocation, RecordMergePatchUpdate } from "../models/models.js";
|
|
2
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
3
|
+
/** Optional parameters. */
|
|
4
|
+
export interface UpdateDefaultsOptionalParams extends OperationOptions {
|
|
5
|
+
/** Specify the default mapping of model names to LLM/embedding deployments in Microsoft Foundry. For details and current semantics, see https://aka.ms/cudoc-quickstart-rest. */
|
|
6
|
+
modelDeployments?: RecordMergePatchUpdate;
|
|
7
|
+
}
|
|
8
|
+
/** Optional parameters. */
|
|
9
|
+
export interface UpdateAnalyzerOptionalParams extends OperationOptions {
|
|
10
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
11
|
+
clientRequestId?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Optional parameters. */
|
|
14
|
+
export interface ListAnalyzersOptionalParams extends OperationOptions {
|
|
15
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
16
|
+
clientRequestId?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Optional parameters. */
|
|
19
|
+
export interface GrantCopyAuthorizationOptionalParams extends OperationOptions {
|
|
20
|
+
/** Azure region of the target analyzer location. Defaults to current region. */
|
|
21
|
+
targetRegion?: string;
|
|
22
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
23
|
+
clientRequestId?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Optional parameters. */
|
|
26
|
+
export interface GetResultFileOptionalParams extends OperationOptions {
|
|
27
|
+
}
|
|
28
|
+
/** Optional parameters. */
|
|
29
|
+
export interface GetResultOptionalParams extends OperationOptions {
|
|
30
|
+
}
|
|
31
|
+
/** Optional parameters. */
|
|
32
|
+
export interface GetOperationStatusOptionalParams extends OperationOptions {
|
|
33
|
+
}
|
|
34
|
+
/** Optional parameters. */
|
|
35
|
+
export interface GetDefaultsOptionalParams extends OperationOptions {
|
|
36
|
+
}
|
|
37
|
+
/** Optional parameters. */
|
|
38
|
+
export interface GetAnalyzerOptionalParams extends OperationOptions {
|
|
39
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
40
|
+
clientRequestId?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Optional parameters. */
|
|
43
|
+
export interface DeleteResultOptionalParams extends OperationOptions {
|
|
44
|
+
}
|
|
45
|
+
/** Optional parameters. */
|
|
46
|
+
export interface DeleteAnalyzerOptionalParams extends OperationOptions {
|
|
47
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
48
|
+
clientRequestId?: string;
|
|
49
|
+
}
|
|
50
|
+
/** Optional parameters. */
|
|
51
|
+
export interface CreateAnalyzerOptionalParams extends OperationOptions {
|
|
52
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
53
|
+
updateIntervalInMs?: number;
|
|
54
|
+
/** Allow the operation to replace an existing resource. */
|
|
55
|
+
allowReplace?: boolean;
|
|
56
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
57
|
+
clientRequestId?: string;
|
|
58
|
+
}
|
|
59
|
+
/** Optional parameters. */
|
|
60
|
+
export interface CopyAnalyzerOptionalParams extends OperationOptions {
|
|
61
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
62
|
+
updateIntervalInMs?: number;
|
|
63
|
+
/** Azure resource ID of the source analyzer location. Defaults to the current resource. */
|
|
64
|
+
sourceAzureResourceId?: string;
|
|
65
|
+
/** Azure region of the source analyzer location. Defaults to current region. */
|
|
66
|
+
sourceRegion?: string;
|
|
67
|
+
/** Allow the operation to replace an existing resource. */
|
|
68
|
+
allowReplace?: boolean;
|
|
69
|
+
/** An opaque, globally-unique, client-generated string identifier for the request. */
|
|
70
|
+
clientRequestId?: string;
|
|
71
|
+
}
|
|
72
|
+
/** Optional parameters. */
|
|
73
|
+
export interface AnalyzeBinaryOptionalParams extends OperationOptions {
|
|
74
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
75
|
+
updateIntervalInMs?: number;
|
|
76
|
+
/** Range of the input to analyze (ex. `1-3,5,9-`). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds. */
|
|
77
|
+
contentRange?: string;
|
|
78
|
+
/** The location where the data may be processed. Defaults to global. */
|
|
79
|
+
processingLocation?: ProcessingLocation;
|
|
80
|
+
/** String encoding for span offsets. Defaults to 'utf16'. */
|
|
81
|
+
stringEncoding?: string;
|
|
82
|
+
}
|
|
83
|
+
/** Optional parameters. */
|
|
84
|
+
export interface AnalyzeOptionalParams extends OperationOptions {
|
|
85
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
86
|
+
updateIntervalInMs?: number;
|
|
87
|
+
/** Specify the default mapping of model names to LLM/embedding deployments in Microsoft Foundry. For details and current semantics, see https://aka.ms/cudoc-quickstart-rest. */
|
|
88
|
+
modelDeployments?: Record<string, string>;
|
|
89
|
+
/** The location where the data may be processed. Defaults to global. */
|
|
90
|
+
processingLocation?: ProcessingLocation;
|
|
91
|
+
/** String encoding for span offsets. Defaults to 'utf16'. */
|
|
92
|
+
stringEncoding?: string;
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/api/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ProcessingLocation, RecordMergePatchUpdate } from \"../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface UpdateDefaultsOptionalParams extends OperationOptions {\n /** Specify the default mapping of model names to LLM/embedding deployments in Microsoft Foundry. For details and current semantics, see https://aka.ms/cudoc-quickstart-rest. */\n modelDeployments?: RecordMergePatchUpdate;\n}\n\n/** Optional parameters. */\nexport interface UpdateAnalyzerOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface ListAnalyzersOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface GrantCopyAuthorizationOptionalParams extends OperationOptions {\n /** Azure region of the target analyzer location. Defaults to current region. */\n targetRegion?: string;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface GetResultFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetResultOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetOperationStatusOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetDefaultsOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetAnalyzerOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface DeleteResultOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeleteAnalyzerOptionalParams extends OperationOptions {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface CreateAnalyzerOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Allow the operation to replace an existing resource. */\n allowReplace?: boolean;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface CopyAnalyzerOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Azure resource ID of the source analyzer location. Defaults to the current resource. */\n sourceAzureResourceId?: string;\n /** Azure region of the source analyzer location. Defaults to current region. */\n sourceRegion?: string;\n /** Allow the operation to replace an existing resource. */\n allowReplace?: boolean;\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n clientRequestId?: string;\n}\n\n/** Optional parameters. */\nexport interface AnalyzeBinaryOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Range of the input to analyze (ex. `1-3,5,9-`). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds. */\n contentRange?: string;\n /** The location where the data may be processed. Defaults to global. */\n processingLocation?: ProcessingLocation;\n // CUSTOMIZATION: SDK-IMPROVEMENT: Added stringEncoding property to support internal UTF-16 encoding.\n // This is used internally by ContentUnderstandingClient but hidden from the public API.\n /** String encoding for span offsets. Defaults to 'utf16'. */\n stringEncoding?: string;\n}\n\n/** Optional parameters. */\nexport interface AnalyzeOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Specify the default mapping of model names to LLM/embedding deployments in Microsoft Foundry. For details and current semantics, see https://aka.ms/cudoc-quickstart-rest. */\n modelDeployments?: Record<string, string>;\n /** The location where the data may be processed. Defaults to global. */\n processingLocation?: ProcessingLocation;\n // CUSTOMIZATION: SDK-IMPROVEMENT: Added stringEncoding property to support internal UTF-16 encoding.\n // This is used internally by ContentUnderstandingClient but hidden from the public API.\n /** String encoding for span offsets. Defaults to 'utf16'. */\n stringEncoding?: string;\n}\n"]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ContentUnderstandingClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { UpdateDefaultsOptionalParams, UpdateAnalyzerOptionalParams, ListAnalyzersOptionalParams, GrantCopyAuthorizationOptionalParams, GetResultFileOptionalParams, GetDefaultsOptionalParams, GetAnalyzerOptionalParams, DeleteResultOptionalParams, DeleteAnalyzerOptionalParams, CreateAnalyzerOptionalParams, CopyAnalyzerOptionalParams } from "./api/options.js";
|
|
3
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
4
|
+
import type { AnalysisResult, ContentAnalyzer, ContentUnderstandingDefaults, CopyAuthorization, AnalysisInput } from "./models/models.js";
|
|
5
|
+
import type { PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
6
|
+
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
|
7
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
8
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
9
|
+
export { ContentUnderstandingClientOptionalParams } from "./api/contentUnderstandingContext.js";
|
|
10
|
+
import type { ProcessingLocation } from "./models/models.js";
|
|
11
|
+
/** Optional parameters for the analyze operation. */
|
|
12
|
+
export interface AnalyzeOptionalParams extends OperationOptions {
|
|
13
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
14
|
+
updateIntervalInMs?: number;
|
|
15
|
+
/** Override default mapping of model names to deployments. */
|
|
16
|
+
modelDeployments?: Record<string, string>;
|
|
17
|
+
/** The location where the data may be processed. Defaults to global. */
|
|
18
|
+
processingLocation?: ProcessingLocation;
|
|
19
|
+
}
|
|
20
|
+
/** Optional parameters for the analyzeBinary operation. */
|
|
21
|
+
export interface AnalyzeBinaryOptionalParams extends OperationOptions {
|
|
22
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
23
|
+
updateIntervalInMs?: number;
|
|
24
|
+
/** Range of the input to analyze (ex. `1-3,5,9-`). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds. */
|
|
25
|
+
contentRange?: string;
|
|
26
|
+
/** The location where the data may be processed. Defaults to global. */
|
|
27
|
+
processingLocation?: ProcessingLocation;
|
|
28
|
+
}
|
|
29
|
+
export interface AnalysisResultPoller extends PollerLike<OperationState<AnalysisResult>, AnalysisResult> {
|
|
30
|
+
/** The operation ID */
|
|
31
|
+
operationId?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare class ContentUnderstandingClient {
|
|
34
|
+
private _client;
|
|
35
|
+
/** The pipeline used by this client to make requests */
|
|
36
|
+
readonly pipeline: Pipeline;
|
|
37
|
+
constructor(endpoint: string, credential: KeyCredential | TokenCredential, options?: ContentUnderstandingClientOptionalParams);
|
|
38
|
+
/** Update default settings for this Content Understanding resource. */
|
|
39
|
+
updateDefaults(options?: UpdateDefaultsOptionalParams): Promise<ContentUnderstandingDefaults>;
|
|
40
|
+
/** Update analyzer properties. */
|
|
41
|
+
updateAnalyzer(analyzerId: string, resource: ContentAnalyzer, options?: UpdateAnalyzerOptionalParams): Promise<ContentAnalyzer>;
|
|
42
|
+
/** List analyzers. */
|
|
43
|
+
listAnalyzers(options?: ListAnalyzersOptionalParams): PagedAsyncIterableIterator<ContentAnalyzer>;
|
|
44
|
+
/** Get authorization for copying this analyzer to another location. */
|
|
45
|
+
grantCopyAuthorization(analyzerId: string, targetAzureResourceId: string, options?: GrantCopyAuthorizationOptionalParams): Promise<CopyAuthorization>;
|
|
46
|
+
/** Get a file associated with the result of an analysis operation. */
|
|
47
|
+
getResultFile(operationId: string, path: string, options?: GetResultFileOptionalParams): Promise<Uint8Array>;
|
|
48
|
+
/** Return default settings for this Content Understanding resource. */
|
|
49
|
+
getDefaults(options?: GetDefaultsOptionalParams): Promise<ContentUnderstandingDefaults>;
|
|
50
|
+
/** Get analyzer properties. */
|
|
51
|
+
getAnalyzer(analyzerId: string, options?: GetAnalyzerOptionalParams): Promise<ContentAnalyzer>;
|
|
52
|
+
/** Mark the result of an analysis operation for deletion. */
|
|
53
|
+
deleteResult(operationId: string, options?: DeleteResultOptionalParams): Promise<void>;
|
|
54
|
+
/** Delete analyzer. */
|
|
55
|
+
deleteAnalyzer(analyzerId: string, options?: DeleteAnalyzerOptionalParams): Promise<void>;
|
|
56
|
+
/** Create a new analyzer asynchronously. */
|
|
57
|
+
createAnalyzer(analyzerId: string, resource: ContentAnalyzer, options?: CreateAnalyzerOptionalParams): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer>;
|
|
58
|
+
/** Create a copy of the source analyzer to the current location. */
|
|
59
|
+
copyAnalyzer(analyzerId: string, sourceAnalyzerId: string, options?: CopyAnalyzerOptionalParams): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer>;
|
|
60
|
+
/** Extract content and fields from input. */
|
|
61
|
+
analyzeBinary(analyzerId: string, binaryInput: Uint8Array, contentType?: string, options?: AnalyzeBinaryOptionalParams): AnalysisResultPoller;
|
|
62
|
+
/** Extract content and fields from input. */
|
|
63
|
+
analyze(analyzerId: string, inputs: AnalysisInput[], options?: AnalyzeOptionalParams): AnalysisResultPoller;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=contentUnderstandingClient.d.ts.map
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { createContentUnderstanding } from "./api/index.js";
|
|
4
|
+
import { updateDefaults, updateAnalyzer, listAnalyzers, grantCopyAuthorization, getResultFile,
|
|
5
|
+
// CUSTOMIZATION: EMITTER-FIX: getResult and getOperationStatus are marked as @@access(Access.internal)
|
|
6
|
+
// in TypeSpec but the JS emitter does not respect this. Keeping imports commented for reference.
|
|
7
|
+
// getResult,
|
|
8
|
+
// getOperationStatus,
|
|
9
|
+
getDefaults, getAnalyzer, deleteResult, deleteAnalyzer, createAnalyzer, copyAnalyzer, _analyzeSend, _analyzeDeserialize, _analyzeBinarySend, _analyzeBinaryDeserialize, } from "./api/operations.js";
|
|
10
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
11
|
+
export class ContentUnderstandingClient {
|
|
12
|
+
_client;
|
|
13
|
+
/** The pipeline used by this client to make requests */
|
|
14
|
+
pipeline;
|
|
15
|
+
// CUSTOMIZATION: EMITTER-FIX: Renamed 'endpointParam' to 'endpoint' for clarity and consistency.
|
|
16
|
+
// The emitter generates 'endpointParam' but 'endpoint' is the standard name.
|
|
17
|
+
constructor(endpoint, credential, options = {}) {
|
|
18
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
19
|
+
const userAgentPrefix = prefixFromOptions
|
|
20
|
+
? `${prefixFromOptions} azsdk-js-client`
|
|
21
|
+
: `azsdk-js-client`;
|
|
22
|
+
this._client = createContentUnderstanding(endpoint, credential, {
|
|
23
|
+
...options,
|
|
24
|
+
userAgentOptions: { userAgentPrefix },
|
|
25
|
+
});
|
|
26
|
+
this.pipeline = this._client.pipeline;
|
|
27
|
+
}
|
|
28
|
+
/** Update default settings for this Content Understanding resource. */
|
|
29
|
+
updateDefaults(options = { requestOptions: {} }) {
|
|
30
|
+
return updateDefaults(this._client, options);
|
|
31
|
+
}
|
|
32
|
+
/** Update analyzer properties. */
|
|
33
|
+
updateAnalyzer(analyzerId, resource, options = { requestOptions: {} }) {
|
|
34
|
+
return updateAnalyzer(this._client, analyzerId, resource, options);
|
|
35
|
+
}
|
|
36
|
+
/** List analyzers. */
|
|
37
|
+
listAnalyzers(options = { requestOptions: {} }) {
|
|
38
|
+
return listAnalyzers(this._client, options);
|
|
39
|
+
}
|
|
40
|
+
/** Get authorization for copying this analyzer to another location. */
|
|
41
|
+
grantCopyAuthorization(analyzerId, targetAzureResourceId, options = { requestOptions: {} }) {
|
|
42
|
+
return grantCopyAuthorization(this._client, analyzerId, targetAzureResourceId, options);
|
|
43
|
+
}
|
|
44
|
+
/** Get a file associated with the result of an analysis operation. */
|
|
45
|
+
getResultFile(operationId, path, options = { requestOptions: {} }) {
|
|
46
|
+
return getResultFile(this._client, operationId, path, options);
|
|
47
|
+
}
|
|
48
|
+
// CUSTOMIZATION: EMITTER-FIX: Commented out `getResult` method - it is marked as
|
|
49
|
+
// @@access(Access.internal) in TypeSpec, but the JS emitter does not respect this decorator.
|
|
50
|
+
// The poller handles result retrieval internally.
|
|
51
|
+
// /** Get the result of an analysis operation. */
|
|
52
|
+
// getResult(
|
|
53
|
+
// operationId: string,
|
|
54
|
+
// options: GetResultOptionalParams = { requestOptions: {} },
|
|
55
|
+
// ): Promise<ContentAnalyzerAnalyzeOperationStatus> {
|
|
56
|
+
// return getResult(this._client, operationId, options);
|
|
57
|
+
// }
|
|
58
|
+
// CUSTOMIZATION: EMITTER-FIX: Commented out `getOperationStatus` method - it is marked as
|
|
59
|
+
// @@access(Access.internal) in TypeSpec, but the JS emitter does not respect this decorator.
|
|
60
|
+
// The poller handles operation status internally.
|
|
61
|
+
// /** Get the status of an analyzer creation operation. */
|
|
62
|
+
// getOperationStatus(
|
|
63
|
+
// analyzerId: string,
|
|
64
|
+
// operationId: string,
|
|
65
|
+
// options: GetOperationStatusOptionalParams = { requestOptions: {} },
|
|
66
|
+
// ): Promise<ContentAnalyzerOperationStatus> {
|
|
67
|
+
// return getOperationStatus(this._client, analyzerId, operationId, options);
|
|
68
|
+
// }
|
|
69
|
+
/** Return default settings for this Content Understanding resource. */
|
|
70
|
+
getDefaults(options = { requestOptions: {} }) {
|
|
71
|
+
return getDefaults(this._client, options);
|
|
72
|
+
}
|
|
73
|
+
/** Get analyzer properties. */
|
|
74
|
+
getAnalyzer(analyzerId, options = { requestOptions: {} }) {
|
|
75
|
+
return getAnalyzer(this._client, analyzerId, options);
|
|
76
|
+
}
|
|
77
|
+
/** Mark the result of an analysis operation for deletion. */
|
|
78
|
+
deleteResult(operationId, options = { requestOptions: {} }) {
|
|
79
|
+
return deleteResult(this._client, operationId, options);
|
|
80
|
+
}
|
|
81
|
+
/** Delete analyzer. */
|
|
82
|
+
deleteAnalyzer(analyzerId, options = { requestOptions: {} }) {
|
|
83
|
+
return deleteAnalyzer(this._client, analyzerId, options);
|
|
84
|
+
}
|
|
85
|
+
/** Create a new analyzer asynchronously. */
|
|
86
|
+
createAnalyzer(analyzerId, resource, options = { requestOptions: {} }) {
|
|
87
|
+
return createAnalyzer(this._client, analyzerId, resource, options);
|
|
88
|
+
}
|
|
89
|
+
/** Create a copy of the source analyzer to the current location. */
|
|
90
|
+
copyAnalyzer(analyzerId, sourceAnalyzerId, options = { requestOptions: {} }) {
|
|
91
|
+
return copyAnalyzer(this._client, analyzerId, sourceAnalyzerId, options);
|
|
92
|
+
}
|
|
93
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: Custom `analyzeBinary` method with:
|
|
94
|
+
// 1. `contentType` has default "application/octet-stream" (EMITTER-FIX: TypeSpec defines this default but emitter doesn't generate it)
|
|
95
|
+
// 2. Uses custom option type that hides `stringEncoding`
|
|
96
|
+
// 3. Always passes `stringEncoding: "utf16"` internally for JavaScript string compatibility
|
|
97
|
+
// 4. Exposes `operationId` on the returned poller for result retrieval
|
|
98
|
+
/** Extract content and fields from input. */
|
|
99
|
+
analyzeBinary(analyzerId, binaryInput, contentType = "application/octet-stream", options = { requestOptions: {} }) {
|
|
100
|
+
let operationId;
|
|
101
|
+
const getInitialResponse = async () => {
|
|
102
|
+
const res = await _analyzeBinarySend(this._client, analyzerId, binaryInput, contentType, {
|
|
103
|
+
...options,
|
|
104
|
+
stringEncoding: "utf16",
|
|
105
|
+
});
|
|
106
|
+
const operationLocation = res.headers["operation-location"];
|
|
107
|
+
if (operationLocation) {
|
|
108
|
+
operationId = operationLocation.match(/\/analyzerResults\/([^?/]+)/)?.[1];
|
|
109
|
+
}
|
|
110
|
+
return res;
|
|
111
|
+
};
|
|
112
|
+
const poller = getLongRunningPoller(this._client, _analyzeBinaryDeserialize, ["202", "200", "201"], {
|
|
113
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds for
|
|
114
|
+
// Content Understanding operations (generated code defaults to 2 seconds).
|
|
115
|
+
updateIntervalInMs: options?.updateIntervalInMs ?? 3000,
|
|
116
|
+
abortSignal: options?.abortSignal,
|
|
117
|
+
getInitialResponse,
|
|
118
|
+
resourceLocationConfig: "operation-location",
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(poller, "operationId", {
|
|
121
|
+
get: () => operationId,
|
|
122
|
+
enumerable: true,
|
|
123
|
+
configurable: true,
|
|
124
|
+
});
|
|
125
|
+
return poller;
|
|
126
|
+
}
|
|
127
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: Custom `analyze` method with:
|
|
128
|
+
// 1. Uses custom option type that hides `stringEncoding`
|
|
129
|
+
// 2. Always passes `stringEncoding: "utf16"` internally for JavaScript string compatibility
|
|
130
|
+
// 3. Exposes `operationId` on the returned poller for result retrieval
|
|
131
|
+
/** Extract content and fields from input. */
|
|
132
|
+
analyze(analyzerId, inputs, options = { requestOptions: {} }) {
|
|
133
|
+
let operationId;
|
|
134
|
+
const getInitialResponse = async () => {
|
|
135
|
+
const res = await _analyzeSend(this._client, analyzerId, inputs, {
|
|
136
|
+
...options,
|
|
137
|
+
stringEncoding: "utf16",
|
|
138
|
+
});
|
|
139
|
+
const operationLocation = res.headers["operation-location"];
|
|
140
|
+
if (operationLocation) {
|
|
141
|
+
operationId = operationLocation.match(/\/analyzerResults\/([^?/]+)/)?.[1];
|
|
142
|
+
}
|
|
143
|
+
return res;
|
|
144
|
+
};
|
|
145
|
+
const poller = getLongRunningPoller(this._client, _analyzeDeserialize, ["202", "200", "201"], {
|
|
146
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds for
|
|
147
|
+
// Content Understanding operations (generated code defaults to 2 seconds).
|
|
148
|
+
updateIntervalInMs: options?.updateIntervalInMs ?? 3000,
|
|
149
|
+
abortSignal: options?.abortSignal,
|
|
150
|
+
getInitialResponse,
|
|
151
|
+
resourceLocationConfig: "operation-location",
|
|
152
|
+
});
|
|
153
|
+
Object.defineProperty(poller, "operationId", {
|
|
154
|
+
get: () => operationId,
|
|
155
|
+
enumerable: true,
|
|
156
|
+
configurable: true,
|
|
157
|
+
});
|
|
158
|
+
return poller;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=contentUnderstandingClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentUnderstandingClient.js","sourceRoot":"","sources":["../../src/contentUnderstandingClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EACL,cAAc,EACd,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,aAAa;AACb,uGAAuG;AACvG,iGAAiG;AACjG,aAAa;AACb,sBAAsB;AACtB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAwE1E,MAAM,OAAO,0BAA0B;IAC7B,OAAO,CAA8B;IAC7C,wDAAwD;IACxC,QAAQ,CAAW;IAEnC,iGAAiG;IACjG,6EAA6E;IAC7E,YACE,QAAgB,EAChB,UAA2C,EAC3C,UAAoD,EAAE;QAEtD,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;QACrE,MAAM,eAAe,GAAG,iBAAiB;YACvC,CAAC,CAAC,GAAG,iBAAiB,kBAAkB;YACxC,CAAC,CAAC,iBAAiB,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,0BAA0B,CAAC,QAAQ,EAAE,UAAU,EAAE;YAC9D,GAAG,OAAO;YACV,gBAAg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uB,EACvB,UAAiC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEvD,IAAI,WAA+B,CAAC;QACpC,MAAM,kBAAkB,GAAG,KAAK,IAAoC,EAAE;YACpE,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE;gBAC/D,GAAG,OAAO;gBACV,cAAc,EAAE,OAAO;aACxB,CAAC,CAAC;YACH,MAAM,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YAC5D,IAAI,iBAAiB,EAAE,CAAC;gBACtB,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,6BAA6B,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5E,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,CAAC;QAEF,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE;YAC5F,4EAA4E;YAC5E,2EAA2E;YAC3E,kBAAkB,EAAE,OAAO,EAAE,kBAAkB,IAAI,IAAI;YACvD,WAAW,EAAE,OAAO,EAAE,WAAW;YACjC,kBAAkB;YAClB,sBAAsB,EAAE,oBAAoB;SAC7C,CAAyB,CAAC;QAE3B,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE;YAC3C,GAAG,EAAE,GAAG,EAAE,CAAC,WAAW;YACtB,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport type {\n ContentUnderstandingContext,\n ContentUnderstandingClientOptionalParams,\n} from \"./api/index.js\";\nimport { createContentUnderstanding } from \"./api/index.js\";\nimport {\n updateDefaults,\n updateAnalyzer,\n listAnalyzers,\n grantCopyAuthorization,\n getResultFile,\n // CUSTOMIZATION: EMITTER-FIX: getResult and getOperationStatus are marked as @@access(Access.internal)\n // in TypeSpec but the JS emitter does not respect this. Keeping imports commented for reference.\n // getResult,\n // getOperationStatus,\n getDefaults,\n getAnalyzer,\n deleteResult,\n deleteAnalyzer,\n createAnalyzer,\n copyAnalyzer,\n _analyzeSend,\n _analyzeDeserialize,\n _analyzeBinarySend,\n _analyzeBinaryDeserialize,\n} from \"./api/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport type {\n UpdateDefaultsOptionalParams,\n UpdateAnalyzerOptionalParams,\n ListAnalyzersOptionalParams,\n GrantCopyAuthorizationOptionalParams,\n GetResultFileOptionalParams,\n // CUSTOMIZATION: EMITTER-FIX: Types for internal methods kept commented for reference.\n // GetResultOptionalParams,\n // GetOperationStatusOptionalParams,\n GetDefaultsOptionalParams,\n GetAnalyzerOptionalParams,\n DeleteResultOptionalParams,\n DeleteAnalyzerOptionalParams,\n CreateAnalyzerOptionalParams,\n CopyAnalyzerOptionalParams,\n} from \"./api/options.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\nimport type {\n AnalysisResult,\n // CUSTOMIZATION: EMITTER-FIX: Types for internal methods kept commented for reference.\n // ContentAnalyzerAnalyzeOperationStatus,\n // ContentAnalyzerOperationStatus,\n ContentAnalyzer,\n ContentUnderstandingDefaults,\n CopyAuthorization,\n AnalysisInput,\n} from \"./models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"./static-helpers/pagingHelpers.js\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\n\nexport { ContentUnderstandingClientOptionalParams } from \"./api/contentUnderstandingContext.js\";\n\nimport type { ProcessingLocation } from \"./models/models.js\";\n\n// CUSTOMIZATION: SDK-IMPROVEMENT: Custom option types that exclude `stringEncoding` from the public API.\n// `stringEncoding` is always 'utf16' internally to ensure span offsets align with JavaScript's UTF-16 string operations.\n// Defined as explicit interfaces (rather than Omit<> aliases) to keep standard type names\n// (AnalyzeOptionalParams, AnalyzeBinaryOptionalParams) and avoid API Extractor warnings.\n\n/** Optional parameters for the analyze operation. */\nexport interface AnalyzeOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Override default mapping of model names to deployments. */\n modelDeployments?: Record<string, string>;\n /** The location where the data may be processed. Defaults to global. */\n processingLocation?: ProcessingLocation;\n}\n\n/** Optional parameters for the analyzeBinary operation. */\nexport interface AnalyzeBinaryOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Range of the input to analyze (ex. `1-3,5,9-`). Document content uses 1-based page numbers, while audio visual content uses integer milliseconds. */\n contentRange?: string;\n /** The location where the data may be processed. Defaults to global. */\n processingLocation?: ProcessingLocation;\n}\n\n// CUSTOMIZATION: SDK-IMPROVEMENT: Custom poller type that exposes `operationId` for users to call\n// `getResult`, `getResultFile`, and `deleteResult` methods.\nexport interface AnalysisResultPoller extends PollerLike<\n OperationState<AnalysisResult>,\n AnalysisResult\n> {\n /** The operation ID */\n operationId?: string;\n}\n\nexport class ContentUnderstandingClient {\n private _client: ContentUnderstandingContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n // CUSTOMIZATION: EMITTER-FIX: Renamed 'endpointParam' to 'endpoint' for clarity and consistency.\n // The emitter generates 'endpointParam' but 'endpoint' is the standard name.\n constructor(\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options: ContentUnderstandingClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createContentUnderstanding(endpoint, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n }\n\n /** Update default settings for this Content Understanding resource. */\n updateDefaults(\n options: UpdateDefaultsOptionalParams = { requestOptions: {} },\n ): Promise<ContentUnderstandingDefaults> {\n return updateDefaults(this._client, options);\n }\n\n /** Update analyzer properties. */\n updateAnalyzer(\n analyzerId: string,\n resource: ContentAnalyzer,\n options: UpdateAnalyzerOptionalParams = { requestOptions: {} },\n ): Promise<ContentAnalyzer> {\n return updateAnalyzer(this._client, analyzerId, resource, options);\n }\n\n /** List analyzers. */\n listAnalyzers(\n options: ListAnalyzersOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<ContentAnalyzer> {\n return listAnalyzers(this._client, options);\n }\n\n /** Get authorization for copying this analyzer to another location. */\n grantCopyAuthorization(\n analyzerId: string,\n targetAzureResourceId: string,\n options: GrantCopyAuthorizationOptionalParams = { requestOptions: {} },\n ): Promise<CopyAuthorization> {\n return grantCopyAuthorization(this._client, analyzerId, targetAzureResourceId, options);\n }\n\n /** Get a file associated with the result of an analysis operation. */\n getResultFile(\n operationId: string,\n path: string,\n options: GetResultFileOptionalParams = { requestOptions: {} },\n ): Promise<Uint8Array> {\n return getResultFile(this._client, operationId, path, options);\n }\n\n // CUSTOMIZATION: EMITTER-FIX: Commented out `getResult` method - it is marked as\n // @@access(Access.internal) in TypeSpec, but the JS emitter does not respect this decorator.\n // The poller handles result retrieval internally.\n // /** Get the result of an analysis operation. */\n // getResult(\n // operationId: string,\n // options: GetResultOptionalParams = { requestOptions: {} },\n // ): Promise<ContentAnalyzerAnalyzeOperationStatus> {\n // return getResult(this._client, operationId, options);\n // }\n\n // CUSTOMIZATION: EMITTER-FIX: Commented out `getOperationStatus` method - it is marked as\n // @@access(Access.internal) in TypeSpec, but the JS emitter does not respect this decorator.\n // The poller handles operation status internally.\n // /** Get the status of an analyzer creation operation. */\n // getOperationStatus(\n // analyzerId: string,\n // operationId: string,\n // options: GetOperationStatusOptionalParams = { requestOptions: {} },\n // ): Promise<ContentAnalyzerOperationStatus> {\n // return getOperationStatus(this._client, analyzerId, operationId, options);\n // }\n\n /** Return default settings for this Content Understanding resource. */\n getDefaults(\n options: GetDefaultsOptionalParams = { requestOptions: {} },\n ): Promise<ContentUnderstandingDefaults> {\n return getDefaults(this._client, options);\n }\n\n /** Get analyzer properties. */\n getAnalyzer(\n analyzerId: string,\n options: GetAnalyzerOptionalParams = { requestOptions: {} },\n ): Promise<ContentAnalyzer> {\n return getAnalyzer(this._client, analyzerId, options);\n }\n\n /** Mark the result of an analysis operation for deletion. */\n deleteResult(\n operationId: string,\n options: DeleteResultOptionalParams = { requestOptions: {} },\n ): Promise<void> {\n return deleteResult(this._client, operationId, options);\n }\n\n /** Delete analyzer. */\n deleteAnalyzer(\n analyzerId: string,\n options: DeleteAnalyzerOptionalParams = { requestOptions: {} },\n ): Promise<void> {\n return deleteAnalyzer(this._client, analyzerId, options);\n }\n\n /** Create a new analyzer asynchronously. */\n createAnalyzer(\n analyzerId: string,\n resource: ContentAnalyzer,\n options: CreateAnalyzerOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer> {\n return createAnalyzer(this._client, analyzerId, resource, options);\n }\n\n /** Create a copy of the source analyzer to the current location. */\n copyAnalyzer(\n analyzerId: string,\n sourceAnalyzerId: string,\n options: CopyAnalyzerOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<ContentAnalyzer>, ContentAnalyzer> {\n return copyAnalyzer(this._client, analyzerId, sourceAnalyzerId, options);\n }\n\n // CUSTOMIZATION: SDK-IMPROVEMENT: Custom `analyzeBinary` method with:\n // 1. `contentType` has default \"application/octet-stream\" (EMITTER-FIX: TypeSpec defines this default but emitter doesn't generate it)\n // 2. Uses custom option type that hides `stringEncoding`\n // 3. Always passes `stringEncoding: \"utf16\"` internally for JavaScript string compatibility\n // 4. Exposes `operationId` on the returned poller for result retrieval\n /** Extract content and fields from input. */\n analyzeBinary(\n analyzerId: string,\n binaryInput: Uint8Array,\n contentType: string = \"application/octet-stream\",\n options: AnalyzeBinaryOptionalParams = { requestOptions: {} },\n ): AnalysisResultPoller {\n let operationId: string | undefined;\n const getInitialResponse = async (): Promise<PathUncheckedResponse> => {\n const res = await _analyzeBinarySend(this._client, analyzerId, binaryInput, contentType, {\n ...options,\n stringEncoding: \"utf16\",\n });\n const operationLocation = res.headers[\"operation-location\"];\n if (operationLocation) {\n operationId = operationLocation.match(/\\/analyzerResults\\/([^?/]+)/)?.[1];\n }\n return res;\n };\n\n const poller = getLongRunningPoller(\n this._client,\n _analyzeBinaryDeserialize,\n [\"202\", \"200\", \"201\"],\n {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds for\n // Content Understanding operations (generated code defaults to 2 seconds).\n updateIntervalInMs: options?.updateIntervalInMs ?? 3000,\n abortSignal: options?.abortSignal,\n getInitialResponse,\n resourceLocationConfig: \"operation-location\",\n },\n ) as AnalysisResultPoller;\n\n Object.defineProperty(poller, \"operationId\", {\n get: () => operationId,\n enumerable: true,\n configurable: true,\n });\n\n return poller;\n }\n\n // CUSTOMIZATION: SDK-IMPROVEMENT: Custom `analyze` method with:\n // 1. Uses custom option type that hides `stringEncoding`\n // 2. Always passes `stringEncoding: \"utf16\"` internally for JavaScript string compatibility\n // 3. Exposes `operationId` on the returned poller for result retrieval\n /** Extract content and fields from input. */\n analyze(\n analyzerId: string,\n inputs: AnalysisInput[],\n options: AnalyzeOptionalParams = { requestOptions: {} },\n ): AnalysisResultPoller {\n let operationId: string | undefined;\n const getInitialResponse = async (): Promise<PathUncheckedResponse> => {\n const res = await _analyzeSend(this._client, analyzerId, inputs, {\n ...options,\n stringEncoding: \"utf16\",\n });\n const operationLocation = res.headers[\"operation-location\"];\n if (operationLocation) {\n operationId = operationLocation.match(/\\/analyzerResults\\/([^?/]+)/)?.[1];\n }\n return res;\n };\n\n const poller = getLongRunningPoller(this._client, _analyzeDeserialize, [\"202\", \"200\", \"201\"], {\n // CUSTOMIZATION: SDK-IMPROVEMENT: Default polling interval to 3 seconds for\n // Content Understanding operations (generated code defaults to 2 seconds).\n updateIntervalInMs: options?.updateIntervalInMs ?? 3000,\n abortSignal: options?.abortSignal,\n getInitialResponse,\n resourceLocationConfig: \"operation-location\",\n }) as AnalysisResultPoller;\n\n Object.defineProperty(poller, \"operationId\", {\n get: () => operationId,\n enumerable: true,\n configurable: true,\n });\n\n return poller;\n }\n}\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
2
|
+
export { ContentUnderstandingClient, AnalysisResultPoller, AnalyzeOptionalParams, AnalyzeBinaryOptionalParams, } from "./contentUnderstandingClient.js";
|
|
3
|
+
export { AnalysisInput, ContentAnalyzerAnalyzeOperationStatus, OperationState, AnalysisResult, AnalysisContent, AnalysisContentUnion, AnalysisContentKind, ContentField, ContentFieldUnion, ContentFieldType, ContentSpan, StringField, DateField, TimeField, NumberField, IntegerField, BooleanField, ArrayField, ObjectField, JsonField, DocumentContent, LengthUnit, DocumentPage, DocumentWord, DocumentLine, DocumentBarcode, DocumentBarcodeKind, DocumentFormula, DocumentFormulaKind, DocumentParagraph, SemanticRole, DocumentSection, DocumentTable, DocumentTableCell, DocumentTableCellKind, DocumentCaption, DocumentFootnote, DocumentFigure, DocumentFigureUnion, DocumentFigureKind, DocumentChartFigure, DocumentMermaidFigure, DocumentAnnotation, DocumentAnnotationKind, DocumentAnnotationComment, DocumentHyperlink, DocumentContentSegment, AudioVisualContent, TranscriptPhrase, TranscriptWord, AudioVisualContentSegment, UsageDetails, ContentAnalyzer, ContentAnalyzerStatus, ContentAnalyzerConfig, TableFormat, ChartFormat, AnnotationFormat, ContentCategoryDefinition, ContentFieldSchema, ContentFieldDefinition, GenerationMethod, ProcessingLocation, KnowledgeSource, KnowledgeSourceUnion, KnowledgeSourceKind, LabeledDataKnowledgeSource, SupportedModels, ContentAnalyzerOperationStatus, ContentUnderstandingDefaults, CopyAuthorization, RecordMergePatchUpdate, KnownVersions, } from "./models/index.js";
|
|
4
|
+
export { ContentUnderstandingClientOptionalParams, UpdateDefaultsOptionalParams, UpdateAnalyzerOptionalParams, ListAnalyzersOptionalParams, GrantCopyAuthorizationOptionalParams, GetResultFileOptionalParams, GetResultOptionalParams, GetOperationStatusOptionalParams, GetDefaultsOptionalParams, GetAnalyzerOptionalParams, DeleteResultOptionalParams, DeleteAnalyzerOptionalParams, CreateAnalyzerOptionalParams, CopyAnalyzerOptionalParams, } from "./api/index.js";
|
|
5
|
+
export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: Export custom types from ContentUnderstandingClient for the customized
|
|
4
|
+
// analyze and analyzeBinary method signatures (AnalysisResultPoller with operationId,
|
|
5
|
+
// and option types that hide stringEncoding from the public API).
|
|
6
|
+
export { ContentUnderstandingClient, } from "./contentUnderstandingClient.js";
|
|
7
|
+
// CUSTOMIZATION: EMITTER-FIX: Removed restorePoller and RestorePollerOptions.
|
|
8
|
+
// The emitter-generated restorePoller function exposes rest-level types (PathUncheckedResponse)
|
|
9
|
+
// in its public signature, which is a leaky abstraction for a modular (non-rest-level) client.
|
|
10
|
+
// This is a known emitter issue affecting all ~72 modular packages. The src/restorePollerHelpers.ts
|
|
11
|
+
// file was deleted; the generated version is still available in generated/restorePollerHelpers.ts.
|
|
12
|
+
// Re-add when the emitter fixes the type leak.
|
|
13
|
+
export { KnownVersions, } from "./models/index.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,yGAAyG;AACzG,sFAAsF;AACtF,kEAAkE;AAClE,OAAO,EACL,0BAA0B,GAI3B,MAAM,iCAAiC,CAAC;AACzC,8EAA8E;AAC9E,gGAAgG;AAChG,+FAA+F;AAC/F,oGAAoG;AACpG,mGAAmG;AACnG,+CAA+C;AAC/C,OAAO,EAyEL,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\n// CUSTOMIZATION: SDK-IMPROVEMENT: Export custom types from ContentUnderstandingClient for the customized\n// analyze and analyzeBinary method signatures (AnalysisResultPoller with operationId,\n// and option types that hide stringEncoding from the public API).\nexport {\n ContentUnderstandingClient,\n AnalysisResultPoller,\n AnalyzeOptionalParams,\n AnalyzeBinaryOptionalParams,\n} from \"./contentUnderstandingClient.js\";\n// CUSTOMIZATION: EMITTER-FIX: Removed restorePoller and RestorePollerOptions.\n// The emitter-generated restorePoller function exposes rest-level types (PathUncheckedResponse)\n// in its public signature, which is a leaky abstraction for a modular (non-rest-level) client.\n// This is a known emitter issue affecting all ~72 modular packages. The src/restorePollerHelpers.ts\n// file was deleted; the generated version is still available in generated/restorePollerHelpers.ts.\n// Re-add when the emitter fixes the type leak.\nexport {\n AnalysisInput,\n ContentAnalyzerAnalyzeOperationStatus,\n OperationState,\n AnalysisResult,\n AnalysisContent,\n AnalysisContentUnion,\n AnalysisContentKind,\n ContentField,\n ContentFieldUnion,\n ContentFieldType,\n ContentSpan,\n StringField,\n DateField,\n TimeField,\n NumberField,\n IntegerField,\n BooleanField,\n ArrayField,\n ObjectField,\n JsonField,\n DocumentContent,\n LengthUnit,\n DocumentPage,\n DocumentWord,\n DocumentLine,\n DocumentBarcode,\n DocumentBarcodeKind,\n DocumentFormula,\n DocumentFormulaKind,\n DocumentParagraph,\n SemanticRole,\n DocumentSection,\n DocumentTable,\n DocumentTableCell,\n DocumentTableCellKind,\n DocumentCaption,\n DocumentFootnote,\n DocumentFigure,\n DocumentFigureUnion,\n DocumentFigureKind,\n DocumentChartFigure,\n DocumentMermaidFigure,\n DocumentAnnotation,\n DocumentAnnotationKind,\n DocumentAnnotationComment,\n DocumentHyperlink,\n DocumentContentSegment,\n AudioVisualContent,\n TranscriptPhrase,\n TranscriptWord,\n AudioVisualContentSegment,\n UsageDetails,\n ContentAnalyzer,\n ContentAnalyzerStatus,\n ContentAnalyzerConfig,\n TableFormat,\n ChartFormat,\n AnnotationFormat,\n ContentCategoryDefinition,\n ContentFieldSchema,\n ContentFieldDefinition,\n GenerationMethod,\n ProcessingLocation,\n KnowledgeSource,\n KnowledgeSourceUnion,\n KnowledgeSourceKind,\n LabeledDataKnowledgeSource,\n SupportedModels,\n ContentAnalyzerOperationStatus,\n ContentUnderstandingDefaults,\n CopyAuthorization,\n RecordMergePatchUpdate,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n ContentUnderstandingClientOptionalParams,\n UpdateDefaultsOptionalParams,\n UpdateAnalyzerOptionalParams,\n ListAnalyzersOptionalParams,\n GrantCopyAuthorizationOptionalParams,\n GetResultFileOptionalParams,\n GetResultOptionalParams,\n GetOperationStatusOptionalParams,\n GetDefaultsOptionalParams,\n GetAnalyzerOptionalParams,\n DeleteResultOptionalParams,\n DeleteAnalyzerOptionalParams,\n CreateAnalyzerOptionalParams,\n CopyAnalyzerOptionalParams,\n} from \"./api/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,0BAA0B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"ai-content-understanding\");\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { AnalysisInput, ContentAnalyzerAnalyzeOperationStatus, OperationState, AnalysisResult, AnalysisContent, AnalysisContentUnion, AnalysisContentKind, ContentField, ContentFieldUnion, ContentFieldType, ContentSpan, StringField, DateField, TimeField, NumberField, IntegerField, BooleanField, ArrayField, ObjectField, JsonField, DocumentContent, LengthUnit, DocumentPage, DocumentWord, DocumentLine, DocumentBarcode, DocumentBarcodeKind, DocumentFormula, DocumentFormulaKind, DocumentParagraph, SemanticRole, DocumentSection, DocumentTable, DocumentTableCell, DocumentTableCellKind, DocumentCaption, DocumentFootnote, DocumentFigure, DocumentFigureUnion, DocumentFigureKind, DocumentChartFigure, DocumentMermaidFigure, DocumentAnnotation, DocumentAnnotationKind, DocumentAnnotationComment, DocumentHyperlink, DocumentContentSegment, AudioVisualContent, TranscriptPhrase, TranscriptWord, AudioVisualContentSegment, UsageDetails, ContentAnalyzer, ContentAnalyzerStatus, ContentAnalyzerConfig, TableFormat, ChartFormat, AnnotationFormat, ContentCategoryDefinition, ContentFieldSchema, ContentFieldDefinition, GenerationMethod, ProcessingLocation, KnowledgeSource, KnowledgeSourceUnion, KnowledgeSourceKind, LabeledDataKnowledgeSource, SupportedModels, ContentAnalyzerOperationStatus, ContentUnderstandingDefaults, CopyAuthorization, RecordMergePatchUpdate, KnownVersions, } from "./models.js";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAyEL,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n AnalysisInput,\n ContentAnalyzerAnalyzeOperationStatus,\n OperationState,\n AnalysisResult,\n AnalysisContent,\n AnalysisContentUnion,\n AnalysisContentKind,\n ContentField,\n ContentFieldUnion,\n ContentFieldType,\n ContentSpan,\n StringField,\n DateField,\n TimeField,\n NumberField,\n IntegerField,\n BooleanField,\n ArrayField,\n ObjectField,\n JsonField,\n DocumentContent,\n LengthUnit,\n DocumentPage,\n DocumentWord,\n DocumentLine,\n DocumentBarcode,\n DocumentBarcodeKind,\n DocumentFormula,\n DocumentFormulaKind,\n DocumentParagraph,\n SemanticRole,\n DocumentSection,\n DocumentTable,\n DocumentTableCell,\n DocumentTableCellKind,\n DocumentCaption,\n DocumentFootnote,\n DocumentFigure,\n DocumentFigureUnion,\n DocumentFigureKind,\n DocumentChartFigure,\n DocumentMermaidFigure,\n DocumentAnnotation,\n DocumentAnnotationKind,\n DocumentAnnotationComment,\n DocumentHyperlink,\n DocumentContentSegment,\n AudioVisualContent,\n TranscriptPhrase,\n TranscriptWord,\n AudioVisualContentSegment,\n UsageDetails,\n ContentAnalyzer,\n ContentAnalyzerStatus,\n ContentAnalyzerConfig,\n TableFormat,\n ChartFormat,\n AnnotationFormat,\n ContentCategoryDefinition,\n ContentFieldSchema,\n ContentFieldDefinition,\n GenerationMethod,\n ProcessingLocation,\n KnowledgeSource,\n KnowledgeSourceUnion,\n KnowledgeSourceKind,\n LabeledDataKnowledgeSource,\n SupportedModels,\n ContentAnalyzerOperationStatus,\n ContentUnderstandingDefaults,\n CopyAuthorization,\n RecordMergePatchUpdate,\n KnownVersions,\n} from \"./models.js\";\n"]}
|