@azure-rest/ai-document-intelligence
Advanced tools
Comparing version 1.0.0-alpha.20240305.1 to 1.0.0-alpha.20240307.1
@@ -12,4 +12,5 @@ // Copyright (c) Microsoft Corporation. | ||
export default function createClient(endpoint, credentials, options = {}) { | ||
const baseUrl = options.baseUrl ?? `${endpoint}/documentintelligence`; | ||
options.apiVersion = options.apiVersion ?? "2023-10-31-preview"; | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/documentintelligence`; | ||
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2024-02-29-preview"; | ||
const userAgentInfo = `azsdk-js-ai-document-intelligence-rest/1.0.0-beta.2`; | ||
@@ -19,15 +20,10 @@ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
: `${userAgentInfo}`; | ||
options = { | ||
...options, | ||
userAgentOptions: { | ||
options = Object.assign(Object.assign({}, options), { userAgentOptions: { | ||
userAgentPrefix, | ||
}, | ||
loggingOptions: { | ||
logger: options.loggingOptions?.logger ?? logger.info, | ||
}, | ||
credentials: { | ||
scopes: options.credentials?.scopes ?? ["https://cognitiveservices.azure.com/.default"], | ||
apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? "Ocp-Apim-Subscription-Key", | ||
}, | ||
}; | ||
}, loggingOptions: { | ||
logger: (_d = (_c = options.loggingOptions) === null || _c === void 0 ? void 0 : _c.logger) !== null && _d !== void 0 ? _d : logger.info, | ||
}, credentials: { | ||
scopes: (_f = (_e = options.credentials) === null || _e === void 0 ? void 0 : _e.scopes) !== null && _f !== void 0 ? _f : ["https://cognitiveservices.azure.com/.default"], | ||
apiKeyHeaderName: (_h = (_g = options.credentials) === null || _g === void 0 ? void 0 : _g.apiKeyHeaderName) !== null && _h !== void 0 ? _h : "Ocp-Apim-Subscription-Key", | ||
} }); | ||
const client = getClient(baseUrl, credentials, options); | ||
@@ -34,0 +30,0 @@ return client; |
@@ -31,3 +31,3 @@ // Copyright (c) Microsoft Corporation. | ||
const lroOriginal = response.headers["x-ms-original-url"]; | ||
const url = new URL(lroOriginal ?? response.request.url); | ||
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url); | ||
const method = response.request.method; | ||
@@ -41,2 +41,3 @@ let pathDetails = responseMap[`${method} ${url.pathname}`]; | ||
function getParametrizedPathSuccess(method, path) { | ||
var _a, _b, _c, _d; | ||
const pathParts = path.split("/"); | ||
@@ -60,4 +61,4 @@ // Traverse list to match the longest candidate | ||
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { | ||
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { | ||
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; | ||
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) { | ||
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length; | ||
// If the current part of the candidate is a "template" part | ||
@@ -67,3 +68,3 @@ // Try to use the suffix of pattern to match the path | ||
// {guid}:export ==> :export$ | ||
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); | ||
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || ""); | ||
if (!isMatched) { | ||
@@ -70,0 +71,0 @@ found = false; |
@@ -59,3 +59,3 @@ // Copyright (c) Microsoft Corporation. | ||
} | ||
return value ?? []; | ||
return value !== null && value !== void 0 ? value : []; | ||
} | ||
@@ -62,0 +62,0 @@ /** |
@@ -5,2 +5,3 @@ // Copyright (c) Microsoft Corporation. | ||
export async function getLongRunningPoller(client, initialResponse, options = {}) { | ||
var _a; | ||
const poller = { | ||
@@ -20,3 +21,3 @@ requestMethod: initialResponse.request.method, | ||
// depending on the lro pattern that the service implements. If non is provided we default to the initial path. | ||
const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); | ||
const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get(); | ||
const lroResponse = getLroResponse(response); | ||
@@ -27,3 +28,3 @@ lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; | ||
}; | ||
options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; | ||
options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true; | ||
return createHttpPoller(poller, options); | ||
@@ -42,9 +43,5 @@ } | ||
flatResponse: response, | ||
rawResponse: { | ||
...response, | ||
statusCode: Number.parseInt(response.status), | ||
body: response.body, | ||
}, | ||
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }), | ||
}; | ||
} | ||
//# sourceMappingURL=pollingHelper.js.map |
@@ -23,4 +23,5 @@ 'use strict'; | ||
function createClient(endpoint, credentials, options = {}) { | ||
const baseUrl = options.baseUrl ?? `${endpoint}/documentintelligence`; | ||
options.apiVersion = options.apiVersion ?? "2023-10-31-preview"; | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/documentintelligence`; | ||
options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2024-02-29-preview"; | ||
const userAgentInfo = `azsdk-js-ai-document-intelligence-rest/1.0.0-beta.2`; | ||
@@ -30,15 +31,10 @@ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix | ||
: `${userAgentInfo}`; | ||
options = { | ||
...options, | ||
userAgentOptions: { | ||
options = Object.assign(Object.assign({}, options), { userAgentOptions: { | ||
userAgentPrefix, | ||
}, | ||
loggingOptions: { | ||
logger: options.loggingOptions?.logger ?? logger.info, | ||
}, | ||
credentials: { | ||
scopes: options.credentials?.scopes ?? ["https://cognitiveservices.azure.com/.default"], | ||
apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? "Ocp-Apim-Subscription-Key", | ||
}, | ||
}; | ||
}, loggingOptions: { | ||
logger: (_d = (_c = options.loggingOptions) === null || _c === void 0 ? void 0 : _c.logger) !== null && _d !== void 0 ? _d : logger.info, | ||
}, credentials: { | ||
scopes: (_f = (_e = options.credentials) === null || _e === void 0 ? void 0 : _e.scopes) !== null && _f !== void 0 ? _f : ["https://cognitiveservices.azure.com/.default"], | ||
apiKeyHeaderName: (_h = (_g = options.credentials) === null || _g === void 0 ? void 0 : _g.apiKeyHeaderName) !== null && _h !== void 0 ? _h : "Ocp-Apim-Subscription-Key", | ||
} }); | ||
const client = coreClient.getClient(baseUrl, credentials, options); | ||
@@ -78,3 +74,3 @@ return client; | ||
const lroOriginal = response.headers["x-ms-original-url"]; | ||
const url = new URL(lroOriginal ?? response.request.url); | ||
const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url); | ||
const method = response.request.method; | ||
@@ -88,2 +84,3 @@ let pathDetails = responseMap[`${method} ${url.pathname}`]; | ||
function getParametrizedPathSuccess(method, path) { | ||
var _a, _b, _c, _d; | ||
const pathParts = path.split("/"); | ||
@@ -107,4 +104,4 @@ // Traverse list to match the longest candidate | ||
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) { | ||
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) { | ||
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length; | ||
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) { | ||
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length; | ||
// If the current part of the candidate is a "template" part | ||
@@ -114,3 +111,3 @@ // Try to use the suffix of pattern to match the path | ||
// {guid}:export ==> :export$ | ||
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || ""); | ||
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || ""); | ||
if (!isMatched) { | ||
@@ -200,3 +197,3 @@ found = false; | ||
} | ||
return value ?? []; | ||
return value !== null && value !== void 0 ? value : []; | ||
} | ||
@@ -216,2 +213,3 @@ /** | ||
async function getLongRunningPoller(client, initialResponse, options = {}) { | ||
var _a; | ||
const poller = { | ||
@@ -231,3 +229,3 @@ requestMethod: initialResponse.request.method, | ||
// depending on the lro pattern that the service implements. If non is provided we default to the initial path. | ||
const response = await client.pathUnchecked(path ?? initialResponse.request.url).get(); | ||
const response = await client.pathUnchecked(path !== null && path !== void 0 ? path : initialResponse.request.url).get(); | ||
const lroResponse = getLroResponse(response); | ||
@@ -238,3 +236,3 @@ lroResponse.rawResponse.headers["x-ms-original-url"] = initialResponse.request.url; | ||
}; | ||
options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true; | ||
options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true; | ||
return coreLro.createHttpPoller(poller, options); | ||
@@ -253,7 +251,3 @@ } | ||
flatResponse: response, | ||
rawResponse: { | ||
...response, | ||
statusCode: Number.parseInt(response.status), | ||
body: response.body, | ||
}, | ||
rawResponse: Object.assign(Object.assign({}, response), { statusCode: Number.parseInt(response.status), body: response.body }), | ||
}; | ||
@@ -260,0 +254,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Microsoft Corporation", | ||
"version": "1.0.0-alpha.20240305.1", | ||
"version": "1.0.0-alpha.20240307.1", | ||
"description": "Azure Document Intelligence Rest Client", | ||
@@ -36,3 +36,2 @@ "keywords": [ | ||
"scripts": { | ||
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", | ||
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1", | ||
@@ -66,5 +65,5 @@ "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1", | ||
"dependencies": { | ||
"@azure/core-auth": "^1.3.0", | ||
"@azure-rest/core-client": "^1.1.4", | ||
"@azure/core-rest-pipeline": "^1.12.0", | ||
"@azure/core-auth": "^1.6.0", | ||
"@azure-rest/core-client": "^1.2.0", | ||
"@azure/core-rest-pipeline": "^1.14.0", | ||
"@azure/logger": "^1.0.0", | ||
@@ -92,2 +91,3 @@ "tslib": "^2.2.0", | ||
"mocha": "^10.0.0", | ||
"esm": "^3.2.18", | ||
"@types/mocha": "^10.0.0", | ||
@@ -94,0 +94,0 @@ "cross-env": "^7.0.2", |
@@ -13,2 +13,3 @@ # Azure DocumentIntelligence (formerly FormRecognizer) REST client library for JavaScript | ||
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/ai-document-intelligence) | ||
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure-rest/ai-document-intelligence?view=azure-node-preview) | ||
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documentintelligence/ai-document-intelligence-rest/samples) | ||
@@ -18,3 +19,3 @@ - [Changelog](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documentintelligence/ai-document-intelligence-rest/CHANGELOG.md) | ||
> This version of the client library defaults to the `"2023-10-31-preview"` version of the service. | ||
> This version of the client library defaults to the `"2024-02-29-preview"` version of the service. | ||
@@ -25,2 +26,3 @@ This table shows the relationship between SDK versions and supported API versions of the service: | ||
| ------------ | -------------------------------- | | ||
| 1.0.0-beta.2 | 2024-02-29-preview | | ||
| 1.0.0-beta.1 | 2023-10-31-preview | | ||
@@ -34,2 +36,3 @@ | ||
| ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------- | | ||
| 2024-02-29-preview | DocumentIntelligenceClient | `@azure-rest/ai-document-intelligence` version `1.0.0-beta.2` | | ||
| 2023-10-31-preview | DocumentIntelligenceClient | `@azure-rest/ai-document-intelligence` version `1.0.0-beta.1` | | ||
@@ -36,0 +39,0 @@ | 2023-07-31 | DocumentAnalysisClient and DocumentModelAdministrationClient | `@azure/ai-form-recognizer` version `^5.0.0` | |
@@ -19,2 +19,3 @@ ## API Report File for "@azure-rest/ai-document-intelligence" | ||
import { RawHttpHeaders } from '@azure/core-rest-pipeline'; | ||
import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; | ||
import { RequestParameters } from '@azure-rest/core-client'; | ||
@@ -47,2 +48,3 @@ import { SimplePollerLike } from '@azure/core-lro'; | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -81,2 +83,3 @@ | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -274,2 +277,3 @@ | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -309,2 +313,3 @@ | ||
export interface BuildDocumentClassifierRequest { | ||
baseClassifierId?: string; | ||
classifierId: string; | ||
@@ -334,2 +339,3 @@ description?: string; | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -385,2 +391,3 @@ | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -419,2 +426,3 @@ | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -502,2 +510,6 @@ | ||
// @public | ||
export interface ClientRequestIdHeaderOutput { | ||
} | ||
// @public | ||
export interface ComponentDocumentModelDetails { | ||
@@ -524,2 +536,3 @@ modelId: string; | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -586,2 +599,3 @@ | ||
"operation-location": string; | ||
"retry-after"?: number; | ||
} | ||
@@ -636,5 +650,12 @@ | ||
// @public (undocumented) | ||
export interface DeleteClassifier204Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
export interface DeleteClassifier204Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & DeleteClassifier204Headers; | ||
// (undocumented) | ||
status: "204"; | ||
@@ -652,7 +673,25 @@ } | ||
// @public (undocumented) | ||
export type DeleteClassifierParameters = RequestParameters; | ||
export interface DeleteClassifierHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & DeleteClassifierHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface DeleteClassifierHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface DeleteModel204Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
export interface DeleteModel204Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & DeleteModel204Headers; | ||
// (undocumented) | ||
status: "204"; | ||
@@ -670,4 +709,15 @@ } | ||
// @public (undocumented) | ||
export type DeleteModelParameters = RequestParameters; | ||
export interface DeleteModelHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & DeleteModelHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface DeleteModelHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters; | ||
// @public | ||
@@ -699,2 +749,3 @@ export interface DocumentBarcodeOutput { | ||
apiVersion: string; | ||
baseClassifierId?: string; | ||
classifierId: string; | ||
@@ -705,2 +756,3 @@ createdDateTime: string; | ||
expirationDateTime?: string; | ||
warnings?: Array<WarningOutput>; | ||
} | ||
@@ -725,2 +777,3 @@ | ||
valuePhoneNumber?: string; | ||
valueSelectionGroup?: string[]; | ||
valueSelectionMark?: string; | ||
@@ -845,2 +898,3 @@ valueSignature?: string; | ||
tags?: Record<string, string>; | ||
warnings?: Array<WarningOutput>; | ||
} | ||
@@ -999,2 +1053,7 @@ | ||
// @public (undocumented) | ||
export interface GetClassifier200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1005,2 +1064,4 @@ export interface GetClassifier200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetClassifier200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1018,5 +1079,16 @@ } | ||
// @public (undocumented) | ||
export type GetClassifierParameters = RequestParameters; | ||
export interface GetClassifierHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetClassifierHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetClassifierHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface GetClassifyResult { | ||
@@ -1045,2 +1117,7 @@ get(options?: GetClassifyResultParameters): StreamableMethod<GetClassifyResult200Response | GetClassifyResultDefaultResponse>; | ||
// @public (undocumented) | ||
export interface GetDocumentClassifierBuildOperation200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1051,2 +1128,4 @@ export interface GetDocumentClassifierBuildOperation200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetDocumentClassifierBuildOperation200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1064,5 +1143,16 @@ } | ||
// @public (undocumented) | ||
export type GetDocumentClassifierBuildOperationParameters = RequestParameters; | ||
export interface GetDocumentClassifierBuildOperationHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetDocumentClassifierBuildOperationHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetDocumentClassifierBuildOperationParameters = GetDocumentClassifierBuildOperationHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface GetDocumentModelBuildOperation { | ||
@@ -1076,2 +1166,7 @@ get(options?: GetDocumentModelBuildOperationParameters): StreamableMethod<GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse>; | ||
// @public (undocumented) | ||
export interface GetDocumentModelBuildOperation200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1082,2 +1177,4 @@ export interface GetDocumentModelBuildOperation200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetDocumentModelBuildOperation200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1095,4 +1192,20 @@ } | ||
// @public (undocumented) | ||
export type GetDocumentModelBuildOperationParameters = RequestParameters; | ||
export interface GetDocumentModelBuildOperationHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetDocumentModelBuildOperationHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface GetDocumentModelComposeOperation200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1103,2 +1216,4 @@ export interface GetDocumentModelComposeOperation200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetDocumentModelComposeOperation200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1116,4 +1231,20 @@ } | ||
// @public (undocumented) | ||
export type GetDocumentModelComposeOperationParameters = RequestParameters; | ||
export interface GetDocumentModelComposeOperationHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetDocumentModelComposeOperationHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetDocumentModelComposeOperationParameters = GetDocumentModelComposeOperationHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface GetDocumentModelCopyToOperation200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1124,2 +1255,4 @@ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetDocumentModelCopyToOperation200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1137,4 +1270,15 @@ } | ||
// @public (undocumented) | ||
export type GetDocumentModelCopyToOperationParameters = RequestParameters; | ||
export interface GetDocumentModelCopyToOperationHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetDocumentModelCopyToOperationHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam & RequestParameters; | ||
// @public | ||
@@ -1164,2 +1308,7 @@ export function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>; | ||
// @public (undocumented) | ||
export interface GetModel200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1170,2 +1319,4 @@ export interface GetModel200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetModel200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1183,4 +1334,20 @@ } | ||
// @public (undocumented) | ||
export type GetModelParameters = RequestParameters; | ||
export interface GetModelHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetModelHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetModelHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetModelParameters = GetModelHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface GetOperation200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1191,2 +1358,4 @@ export interface GetOperation200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & GetOperation200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1204,4 +1373,15 @@ } | ||
// @public (undocumented) | ||
export type GetOperationParameters = RequestParameters; | ||
export interface GetOperationHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & GetOperationHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface GetOperationHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type GetOperationParameters = GetOperationHeaderParam & RequestParameters; | ||
// @public | ||
@@ -1248,3 +1428,3 @@ export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{ | ||
// @public (undocumented) | ||
export function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse; | ||
export function isUnexpected(response: GetDocumentModelBuildOperation200Response | GetDocumentModelComposeOperation200Response | GetDocumentModelCopyToOperation200Response | GetDocumentClassifierBuildOperation200Response | GetOperation200Response | GetDocumentModelBuildOperationDefaultResponse): response is GetDocumentModelBuildOperationDefaultResponse; | ||
@@ -1258,3 +1438,3 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse; | ||
export function isUnexpected(response: AnalyzeDocumentFromStream202Response | AnalyzeDocument202Response | AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse): response is AnalyzeDocumentFromStreamDefaultResponse; | ||
@@ -1295,3 +1475,3 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export function isUnexpected(response: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse): response is ClassifyDocumentFromStreamDefaultResponse; | ||
export function isUnexpected(response: ClassifyDocumentFromStream202Response | ClassifyDocument202Response | ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentLogicalResponse | ClassifyDocumentFromStreamDefaultResponse): response is ClassifyDocumentFromStreamDefaultResponse; | ||
@@ -1306,2 +1486,7 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export interface ListClassifiers200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1312,2 +1497,4 @@ export interface ListClassifiers200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & ListClassifiers200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1325,5 +1512,16 @@ } | ||
// @public (undocumented) | ||
export type ListClassifiersParameters = RequestParameters; | ||
export interface ListClassifiersHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & ListClassifiersHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface ListClassifiersHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface ListModels { | ||
@@ -1333,2 +1531,7 @@ get(options?: ListModelsParameters): StreamableMethod<ListModels200Response | ListModelsDefaultResponse>; | ||
// @public (undocumented) | ||
export interface ListModels200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1339,2 +1542,4 @@ export interface ListModels200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & ListModels200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1352,5 +1557,16 @@ } | ||
// @public (undocumented) | ||
export type ListModelsParameters = RequestParameters; | ||
export interface ListModelsHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & ListModelsHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface ListModelsHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type ListModelsParameters = ListModelsHeaderParam & RequestParameters; | ||
// @public (undocumented) | ||
export interface ListOperations { | ||
@@ -1360,2 +1576,7 @@ get(options?: ListOperationsParameters): StreamableMethod<ListOperations200Response | ListOperationsDefaultResponse>; | ||
// @public (undocumented) | ||
export interface ListOperations200Headers { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public | ||
@@ -1366,2 +1587,4 @@ export interface ListOperations200Response extends HttpResponse { | ||
// (undocumented) | ||
headers: RawHttpHeaders & ListOperations200Headers; | ||
// (undocumented) | ||
status: "200"; | ||
@@ -1379,6 +1602,17 @@ } | ||
// @public (undocumented) | ||
export type ListOperationsParameters = RequestParameters; | ||
export interface ListOperationsHeaderParam { | ||
// (undocumented) | ||
headers?: RawHttpHeadersInput & ListOperationsHeaders; | ||
} | ||
// @public (undocumented) | ||
export interface ListOperationsHeaders { | ||
"x-ms-client-request-id"?: string; | ||
} | ||
// @public (undocumented) | ||
export type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters; | ||
// @public | ||
export type OperationDetailsOutput = DocumentModelBuildOperationDetailsOutput | DocumentModelComposeOperationDetailsOutput | DocumentModelCopyToOperationDetailsOutput | DocumentClassifierBuildOperationDetailsOutput; | ||
export type OperationDetailsOutput = OperationDetailsOutputParent | DocumentModelBuildOperationDetailsOutput | DocumentModelComposeOperationDetailsOutput | DocumentModelCopyToOperationDetailsOutput | DocumentClassifierBuildOperationDetailsOutput; | ||
@@ -1457,4 +1691,11 @@ // @public | ||
// @public | ||
export interface WarningOutput { | ||
code: string; | ||
message: string; | ||
target?: string; | ||
} | ||
// (No @packageDocumentation comment for this package) | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
313338
2263
307
32