@azure-rest/ai-translation-document 1.0.0-alpha.20250401.1 → 1.0.0-alpha.20250403.1
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/CHANGELOG.md +34 -0
- package/dist/browser/documentTranslationClient.js +1 -1
- package/dist/browser/documentTranslationClient.js.map +1 -1
- package/dist/commonjs/documentTranslationClient.js +1 -1
- package/dist/commonjs/documentTranslationClient.js.map +1 -1
- package/dist/esm/documentTranslationClient.js +1 -1
- package/dist/esm/documentTranslationClient.js.map +1 -1
- package/dist/react-native/documentTranslationClient.js +1 -1
- package/dist/react-native/documentTranslationClient.js.map +1 -1
- package/package.json +15 -5
- package/review/ai-translation-document.api.md +631 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.0.0 (2024-11-15)
|
|
4
|
+
|
|
5
|
+
### Other Changes
|
|
6
|
+
- Renamed SingleDocumentTranslationClient's API from `document_translate` to `translate`
|
|
7
|
+
|
|
8
|
+
## 1.0.0-beta.2 (2024-07-01)
|
|
9
|
+
|
|
10
|
+
### Other Changes
|
|
11
|
+
- Re-release of 1.0.0-beta.1 as the SDK package was released without types
|
|
12
|
+
|
|
13
|
+
## 1.0.0-beta.1 (2024-06-27)
|
|
14
|
+
- Initial release. Please see the README and wiki for information on the new design.
|
|
15
|
+
|
|
16
|
+
Version 1.0.0-beta.1 is preview of our efforts in creating a client library that is developer-friendly, idiomatic
|
|
17
|
+
to the JS/TS ecosystem, and as consistent across different languages and platforms as possible.
|
|
18
|
+
|
|
19
|
+
This package's
|
|
20
|
+
[documentation](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-document-rest/README.md)
|
|
21
|
+
and
|
|
22
|
+
[samples](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/translation/ai-translation-document-rest/samples)
|
|
23
|
+
demonstrate the new API.
|
|
24
|
+
|
|
25
|
+
### Features Added
|
|
26
|
+
- Added support for Synchronous document translation - [translate-document API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/translate-document)
|
|
27
|
+
- Added support for Batch Translation - [start Translation API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/start-batch-translation)
|
|
28
|
+
- Added support for Get Translations Status - [get translations status API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-translations-status)
|
|
29
|
+
- Added support for Get Translation Status - [get translation status API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-translation-status)
|
|
30
|
+
- Added support for Get Documents Status - [get documents status API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-documents-status)
|
|
31
|
+
- Added support for Get Document Status - [get document status API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-document-status)
|
|
32
|
+
- Added support for Cancel Translation - [cancel translation API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/cancel-translation)
|
|
33
|
+
- Added support for Get Supported Document Formats - [get supported document formats API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-supported-document-formats)
|
|
34
|
+
- Added support for Get Supported Glossary Formats - [get supported glossary formats API](https://learn.microsoft.com/azure/ai-services/translator/document-translation/reference/get-supported-glossary-formats)
|
|
@@ -11,7 +11,7 @@ export default function createClient(endpointParam, credentials, _a = {}) {
|
|
|
11
11
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
var { apiVersion = "2024-05-01" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
13
13
|
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpointParam}/translator`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0
|
|
14
|
+
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,6CAA6C,CAAC;IACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,8CAA8C,CAAC;YACvF,gBAAgB,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,2BAA2B;SACvF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;IAEzF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential, KeyCredential } from \"@azure/core-auth\";\nimport type { DocumentTranslationClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DocumentTranslationClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DocumentTranslationClient`\n * @param endpointParam - Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential | KeyCredential,\n { apiVersion = \"2024-05-01\", ...options }: DocumentTranslationClientOptions = {},\n): DocumentTranslationClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/translator`;\n const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? \"Ocp-Apim-Subscription-Key\",\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DocumentTranslationClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
|
@@ -14,7 +14,7 @@ function createClient(endpointParam, credentials, _a = {}) {
|
|
|
14
14
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
15
15
|
var { apiVersion = "2024-05-01" } = _a, options = tslib_1.__rest(_a, ["apiVersion"]);
|
|
16
16
|
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpointParam}/translator`;
|
|
17
|
-
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0
|
|
17
|
+
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;
|
|
18
18
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
19
19
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
20
20
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";;AAoBA,+BA4CC;;AA7DD,yDAAoD;AACpD,2CAAqC;AAUrC;;;;;GAKG;AACH,SAAwB,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,sBAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";;AAoBA,+BA4CC;;AA7DD,yDAAoD;AACpD,2CAAqC;AAUrC;;;;;GAKG;AACH,SAAwB,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,sBAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,6CAA6C,CAAC;IACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,8CAA8C,CAAC;YACvF,gBAAgB,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,2BAA2B;SACvF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;IAEzF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential, KeyCredential } from \"@azure/core-auth\";\nimport type { DocumentTranslationClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DocumentTranslationClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DocumentTranslationClient`\n * @param endpointParam - Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential | KeyCredential,\n { apiVersion = \"2024-05-01\", ...options }: DocumentTranslationClientOptions = {},\n): DocumentTranslationClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/translator`;\n const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? \"Ocp-Apim-Subscription-Key\",\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DocumentTranslationClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
|
@@ -11,7 +11,7 @@ export default function createClient(endpointParam, credentials, _a = {}) {
|
|
|
11
11
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
var { apiVersion = "2024-05-01" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
13
13
|
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpointParam}/translator`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0
|
|
14
|
+
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,6CAA6C,CAAC;IACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,8CAA8C,CAAC;YACvF,gBAAgB,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,2BAA2B;SACvF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;IAEzF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential, KeyCredential } from \"@azure/core-auth\";\nimport type { DocumentTranslationClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DocumentTranslationClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DocumentTranslationClient`\n * @param endpointParam - Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential | KeyCredential,\n { apiVersion = \"2024-05-01\", ...options }: DocumentTranslationClientOptions = {},\n): DocumentTranslationClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/translator`;\n const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? \"Ocp-Apim-Subscription-Key\",\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DocumentTranslationClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
|
@@ -11,7 +11,7 @@ export default function createClient(endpointParam, credentials, _a = {}) {
|
|
|
11
11
|
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
12
12
|
var { apiVersion = "2024-05-01" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
13
13
|
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `${endpointParam}/translator`;
|
|
14
|
-
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0
|
|
14
|
+
const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;
|
|
15
15
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
16
16
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
17
17
|
: `${userAgentInfo}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"documentTranslationClient.js","sourceRoot":"","sources":["../../src/documentTranslationClient.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,aAAqB,EACrB,WAA4C,EAC5C,KAA8E,EAAE;;QAAhF,EAAE,UAAU,GAAG,YAAY,OAAqD,EAAhD,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,GAAG,aAAa,aAAa,CAAC;IACzF,MAAM,aAAa,GAAG,6CAA6C,CAAC;IACpE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,8CAA8C,CAAC;YACvF,gBAAgB,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,gBAAgB,mCAAI,2BAA2B;SACvF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAA8B,CAAC;IAEzF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential, KeyCredential } from \"@azure/core-auth\";\nimport type { DocumentTranslationClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DocumentTranslationClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DocumentTranslationClient`\n * @param endpointParam - Supported document Translation endpoint, protocol and hostname, for example: https://{TranslatorResourceName}.cognitiveservices.azure.com/translator.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpointParam: string,\n credentials: TokenCredential | KeyCredential,\n { apiVersion = \"2024-05-01\", ...options }: DocumentTranslationClientOptions = {},\n): DocumentTranslationClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/translator`;\n const userAgentInfo = `azsdk-js-ai-translation-document-rest/1.0.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: options.credentials?.apiKeyHeaderName ?? \"Ocp-Apim-Subscription-Key\",\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DocumentTranslationClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for DocumentTranslationClient.",
|
|
6
|
-
"version": "1.0.0-alpha.
|
|
6
|
+
"version": "1.0.0-alpha.20250403.1",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
9
9
|
"azure",
|
|
@@ -26,8 +26,18 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist/",
|
|
28
28
|
"README.md",
|
|
29
|
-
"LICENSE"
|
|
29
|
+
"LICENSE",
|
|
30
|
+
"review/",
|
|
31
|
+
"CHANGELOG.md"
|
|
30
32
|
],
|
|
33
|
+
"//metadata": {
|
|
34
|
+
"constantPaths": [
|
|
35
|
+
{
|
|
36
|
+
"path": "src/documentTranslationClient.ts",
|
|
37
|
+
"prefix": "userAgentInfo"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
31
41
|
"engines": {
|
|
32
42
|
"node": ">=18.0.0"
|
|
33
43
|
},
|
|
@@ -55,7 +65,7 @@
|
|
|
55
65
|
"devDependencies": {
|
|
56
66
|
"@azure-tools/test-credential": "^2.0.0",
|
|
57
67
|
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
58
|
-
"@azure
|
|
68
|
+
"@azure/arm-cognitiveservices": ">=7.6.0-alpha <7.6.0-alphb",
|
|
59
69
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
60
70
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
61
71
|
"@azure/identity": "^4.7.0",
|
|
@@ -84,8 +94,8 @@
|
|
|
84
94
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
85
95
|
"generate:client": "echo skipped",
|
|
86
96
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
87
|
-
"integration-test:browser": "dev-tool run test:browser",
|
|
88
|
-
"integration-test:node": "dev-tool run test:
|
|
97
|
+
"integration-test:browser": "dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
98
|
+
"integration-test:node": "dev-tool run test:vitest --esm",
|
|
89
99
|
"lint": "eslint package.json api-extractor.json src test",
|
|
90
100
|
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
91
101
|
"pack": "npm pack 2>&1",
|
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
## API Report File for "@azure-rest/ai-translation-document"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import type { AbortSignalLike } from '@azure/abort-controller';
|
|
8
|
+
import type { CancelOnProgress } from '@azure/core-lro';
|
|
9
|
+
import type { Client } from '@azure-rest/core-client';
|
|
10
|
+
import type { ClientOptions } from '@azure-rest/core-client';
|
|
11
|
+
import type { CreateHttpPollerOptions } from '@azure/core-lro';
|
|
12
|
+
import type { ErrorResponse } from '@azure-rest/core-client';
|
|
13
|
+
import type { HttpResponse } from '@azure-rest/core-client';
|
|
14
|
+
import type { KeyCredential } from '@azure/core-auth';
|
|
15
|
+
import type { OperationState } from '@azure/core-lro';
|
|
16
|
+
import type { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
17
|
+
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
18
|
+
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
19
|
+
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
20
|
+
import type { RequestParameters } from '@azure-rest/core-client';
|
|
21
|
+
import type { StreamableMethod } from '@azure-rest/core-client';
|
|
22
|
+
import type { TokenCredential } from '@azure/core-auth';
|
|
23
|
+
|
|
24
|
+
// @public
|
|
25
|
+
export interface BatchRequest {
|
|
26
|
+
source: SourceInput;
|
|
27
|
+
storageType?: StorageInputType;
|
|
28
|
+
targets: Array<TargetInput>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @public
|
|
32
|
+
export interface CancelTranslation200Response extends HttpResponse {
|
|
33
|
+
// (undocumented)
|
|
34
|
+
body: TranslationStatusOutput;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
status: "200";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public (undocumented)
|
|
40
|
+
export interface CancelTranslationDefaultHeaders {
|
|
41
|
+
"x-ms-error-code"?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// @public (undocumented)
|
|
45
|
+
export interface CancelTranslationDefaultResponse extends HttpResponse {
|
|
46
|
+
// (undocumented)
|
|
47
|
+
body: ErrorResponse;
|
|
48
|
+
// (undocumented)
|
|
49
|
+
headers: RawHttpHeaders & CancelTranslationDefaultHeaders;
|
|
50
|
+
// (undocumented)
|
|
51
|
+
status: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// @public (undocumented)
|
|
55
|
+
export type CancelTranslationParameters = RequestParameters;
|
|
56
|
+
|
|
57
|
+
// @public
|
|
58
|
+
function createClient(endpointParam: string, credentials: TokenCredential | KeyCredential, { apiVersion, ...options }?: DocumentTranslationClientOptions): DocumentTranslationClient;
|
|
59
|
+
export default createClient;
|
|
60
|
+
|
|
61
|
+
// @public
|
|
62
|
+
export interface DocumentFilter {
|
|
63
|
+
prefix?: string;
|
|
64
|
+
suffix?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// @public
|
|
68
|
+
export interface DocumentsStatusOutput {
|
|
69
|
+
nextLink?: string;
|
|
70
|
+
value: Array<DocumentStatusOutput>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @public
|
|
74
|
+
export interface DocumentStatusOutput {
|
|
75
|
+
characterCharged?: number;
|
|
76
|
+
createdDateTimeUtc: string;
|
|
77
|
+
error?: TranslationErrorOutput;
|
|
78
|
+
id: string;
|
|
79
|
+
lastActionDateTimeUtc: string;
|
|
80
|
+
path?: string;
|
|
81
|
+
progress: number;
|
|
82
|
+
sourcePath: string;
|
|
83
|
+
status: StatusOutput;
|
|
84
|
+
to: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// @public (undocumented)
|
|
88
|
+
export interface DocumentTranslate {
|
|
89
|
+
post(options: DocumentTranslateParameters): StreamableMethod<DocumentTranslate200Response | DocumentTranslateDefaultResponse>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public (undocumented)
|
|
93
|
+
export interface DocumentTranslate200Headers {
|
|
94
|
+
"content-type": "application/octet-stream";
|
|
95
|
+
"x-ms-client-request-id"?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @public
|
|
99
|
+
export interface DocumentTranslate200Response extends HttpResponse {
|
|
100
|
+
body: Uint8Array;
|
|
101
|
+
// (undocumented)
|
|
102
|
+
headers: RawHttpHeaders & DocumentTranslate200Headers;
|
|
103
|
+
// (undocumented)
|
|
104
|
+
status: "200";
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export interface DocumentTranslateBodyParam {
|
|
109
|
+
body: DocumentTranslateContent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// @public
|
|
113
|
+
export type DocumentTranslateContent = FormData | Array<DocumentTranslateContentDocumentPartDescriptor | DocumentTranslateContentGlossaryPartDescriptor>;
|
|
114
|
+
|
|
115
|
+
// @public (undocumented)
|
|
116
|
+
export interface DocumentTranslateContentDocumentPartDescriptor {
|
|
117
|
+
// (undocumented)
|
|
118
|
+
body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream | File;
|
|
119
|
+
// (undocumented)
|
|
120
|
+
contentType?: string;
|
|
121
|
+
// (undocumented)
|
|
122
|
+
filename?: string;
|
|
123
|
+
// (undocumented)
|
|
124
|
+
name: "document";
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// @public (undocumented)
|
|
128
|
+
export interface DocumentTranslateContentGlossaryPartDescriptor {
|
|
129
|
+
// (undocumented)
|
|
130
|
+
body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream | File;
|
|
131
|
+
// (undocumented)
|
|
132
|
+
contentType?: string;
|
|
133
|
+
// (undocumented)
|
|
134
|
+
filename?: string;
|
|
135
|
+
// (undocumented)
|
|
136
|
+
name: "glossary";
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// @public (undocumented)
|
|
140
|
+
export interface DocumentTranslateDefaultHeaders {
|
|
141
|
+
"x-ms-error-code"?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export interface DocumentTranslateDefaultResponse extends HttpResponse {
|
|
146
|
+
// (undocumented)
|
|
147
|
+
body: ErrorResponse;
|
|
148
|
+
// (undocumented)
|
|
149
|
+
headers: RawHttpHeaders & DocumentTranslateDefaultHeaders;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
status: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
export interface DocumentTranslateHeaderParam {
|
|
156
|
+
// (undocumented)
|
|
157
|
+
headers?: RawHttpHeadersInput & DocumentTranslateHeaders;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public (undocumented)
|
|
161
|
+
export interface DocumentTranslateHeaders {
|
|
162
|
+
"x-ms-client-request-id"?: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// @public (undocumented)
|
|
166
|
+
export interface DocumentTranslateMediaTypesParam {
|
|
167
|
+
contentType: "multipart/form-data";
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export type DocumentTranslateParameters = DocumentTranslateQueryParam & DocumentTranslateHeaderParam & DocumentTranslateMediaTypesParam & DocumentTranslateBodyParam & RequestParameters;
|
|
172
|
+
|
|
173
|
+
// @public (undocumented)
|
|
174
|
+
export interface DocumentTranslateQueryParam {
|
|
175
|
+
// (undocumented)
|
|
176
|
+
queryParameters: DocumentTranslateQueryParamProperties;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
export interface DocumentTranslateQueryParamProperties {
|
|
181
|
+
allowFallback?: boolean;
|
|
182
|
+
category?: string;
|
|
183
|
+
sourceLanguage?: string;
|
|
184
|
+
targetLanguage: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// @public (undocumented)
|
|
188
|
+
export type DocumentTranslationClient = Client & {
|
|
189
|
+
path: Routes;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
// @public
|
|
193
|
+
export interface DocumentTranslationClientOptions extends ClientOptions {
|
|
194
|
+
apiVersion?: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// @public
|
|
198
|
+
export interface FileFormatOutput {
|
|
199
|
+
contentTypes: string[];
|
|
200
|
+
defaultVersion?: string;
|
|
201
|
+
fileExtensions: string[];
|
|
202
|
+
format: string;
|
|
203
|
+
type?: string;
|
|
204
|
+
versions?: string[];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// @public
|
|
208
|
+
export type FileFormatType = string;
|
|
209
|
+
|
|
210
|
+
// @public
|
|
211
|
+
export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
212
|
+
|
|
213
|
+
// @public (undocumented)
|
|
214
|
+
export interface GetDocumentsStatus {
|
|
215
|
+
get(options?: GetDocumentsStatusParameters): StreamableMethod<GetDocumentsStatus200Response | GetDocumentsStatusDefaultResponse>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// @public
|
|
219
|
+
export interface GetDocumentsStatus200Response extends HttpResponse {
|
|
220
|
+
// (undocumented)
|
|
221
|
+
body: DocumentsStatusOutput;
|
|
222
|
+
// (undocumented)
|
|
223
|
+
status: "200";
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// @public (undocumented)
|
|
227
|
+
export interface GetDocumentsStatusDefaultHeaders {
|
|
228
|
+
"x-ms-error-code"?: string;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// @public (undocumented)
|
|
232
|
+
export interface GetDocumentsStatusDefaultResponse extends HttpResponse {
|
|
233
|
+
// (undocumented)
|
|
234
|
+
body: ErrorResponse;
|
|
235
|
+
// (undocumented)
|
|
236
|
+
headers: RawHttpHeaders & GetDocumentsStatusDefaultHeaders;
|
|
237
|
+
// (undocumented)
|
|
238
|
+
status: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// @public (undocumented)
|
|
242
|
+
export type GetDocumentsStatusParameters = GetDocumentsStatusQueryParam & RequestParameters;
|
|
243
|
+
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export interface GetDocumentsStatusQueryParam {
|
|
246
|
+
// (undocumented)
|
|
247
|
+
queryParameters?: GetDocumentsStatusQueryParamProperties;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
export interface GetDocumentsStatusQueryParamProperties {
|
|
252
|
+
createdDateTimeUtcEnd?: Date | string;
|
|
253
|
+
createdDateTimeUtcStart?: Date | string;
|
|
254
|
+
ids?: string[];
|
|
255
|
+
maxpagesize?: number;
|
|
256
|
+
orderby?: string[];
|
|
257
|
+
skip?: number;
|
|
258
|
+
statuses?: string[];
|
|
259
|
+
top?: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// @public (undocumented)
|
|
263
|
+
export interface GetDocumentStatus {
|
|
264
|
+
get(options?: GetDocumentStatusParameters): StreamableMethod<GetDocumentStatus200Response | GetDocumentStatusDefaultResponse>;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// @public
|
|
268
|
+
export interface GetDocumentStatus200Response extends HttpResponse {
|
|
269
|
+
// (undocumented)
|
|
270
|
+
body: DocumentStatusOutput;
|
|
271
|
+
// (undocumented)
|
|
272
|
+
status: "200";
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// @public (undocumented)
|
|
276
|
+
export interface GetDocumentStatusDefaultHeaders {
|
|
277
|
+
"x-ms-error-code"?: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// @public (undocumented)
|
|
281
|
+
export interface GetDocumentStatusDefaultResponse extends HttpResponse {
|
|
282
|
+
// (undocumented)
|
|
283
|
+
body: ErrorResponse;
|
|
284
|
+
// (undocumented)
|
|
285
|
+
headers: RawHttpHeaders & GetDocumentStatusDefaultHeaders;
|
|
286
|
+
// (undocumented)
|
|
287
|
+
status: string;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
// @public (undocumented)
|
|
291
|
+
export type GetDocumentStatusParameters = RequestParameters;
|
|
292
|
+
|
|
293
|
+
// @public
|
|
294
|
+
export function getLongRunningPoller<TResult extends StartTranslationLogicalResponse | StartTranslationDefaultResponse>(client: Client, initialResponse: StartTranslation202Response | StartTranslationDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
|
|
295
|
+
|
|
296
|
+
// @public
|
|
297
|
+
export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
298
|
+
page: TPage;
|
|
299
|
+
nextPageLink?: string;
|
|
300
|
+
}>;
|
|
301
|
+
|
|
302
|
+
// @public (undocumented)
|
|
303
|
+
export interface GetSupportedFormats {
|
|
304
|
+
get(options?: GetSupportedFormatsParameters): StreamableMethod<GetSupportedFormats200Response | GetSupportedFormatsDefaultResponse>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// @public
|
|
308
|
+
export interface GetSupportedFormats200Response extends HttpResponse {
|
|
309
|
+
// (undocumented)
|
|
310
|
+
body: SupportedFileFormatsOutput;
|
|
311
|
+
// (undocumented)
|
|
312
|
+
status: "200";
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// @public (undocumented)
|
|
316
|
+
export interface GetSupportedFormatsDefaultHeaders {
|
|
317
|
+
"x-ms-error-code"?: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// @public (undocumented)
|
|
321
|
+
export interface GetSupportedFormatsDefaultResponse extends HttpResponse {
|
|
322
|
+
// (undocumented)
|
|
323
|
+
body: ErrorResponse;
|
|
324
|
+
// (undocumented)
|
|
325
|
+
headers: RawHttpHeaders & GetSupportedFormatsDefaultHeaders;
|
|
326
|
+
// (undocumented)
|
|
327
|
+
status: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
// @public (undocumented)
|
|
331
|
+
export type GetSupportedFormatsParameters = GetSupportedFormatsQueryParam & RequestParameters;
|
|
332
|
+
|
|
333
|
+
// @public (undocumented)
|
|
334
|
+
export interface GetSupportedFormatsQueryParam {
|
|
335
|
+
// (undocumented)
|
|
336
|
+
queryParameters?: GetSupportedFormatsQueryParamProperties;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// @public (undocumented)
|
|
340
|
+
export interface GetSupportedFormatsQueryParamProperties {
|
|
341
|
+
type?: FileFormatType;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// @public
|
|
345
|
+
export interface GetTranslationsStatus200Response extends HttpResponse {
|
|
346
|
+
// (undocumented)
|
|
347
|
+
body: TranslationsStatusOutput;
|
|
348
|
+
// (undocumented)
|
|
349
|
+
status: "200";
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// @public (undocumented)
|
|
353
|
+
export interface GetTranslationsStatusDefaultHeaders {
|
|
354
|
+
"x-ms-error-code"?: string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// @public (undocumented)
|
|
358
|
+
export interface GetTranslationsStatusDefaultResponse extends HttpResponse {
|
|
359
|
+
// (undocumented)
|
|
360
|
+
body: ErrorResponse;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
headers: RawHttpHeaders & GetTranslationsStatusDefaultHeaders;
|
|
363
|
+
// (undocumented)
|
|
364
|
+
status: string;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// @public (undocumented)
|
|
368
|
+
export type GetTranslationsStatusParameters = GetTranslationsStatusQueryParam & RequestParameters;
|
|
369
|
+
|
|
370
|
+
// @public (undocumented)
|
|
371
|
+
export interface GetTranslationsStatusQueryParam {
|
|
372
|
+
// (undocumented)
|
|
373
|
+
queryParameters?: GetTranslationsStatusQueryParamProperties;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// @public (undocumented)
|
|
377
|
+
export interface GetTranslationsStatusQueryParamProperties {
|
|
378
|
+
createdDateTimeUtcEnd?: Date | string;
|
|
379
|
+
createdDateTimeUtcStart?: Date | string;
|
|
380
|
+
ids?: string[];
|
|
381
|
+
maxpagesize?: number;
|
|
382
|
+
orderby?: string[];
|
|
383
|
+
skip?: number;
|
|
384
|
+
statuses?: string[];
|
|
385
|
+
top?: number;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// @public (undocumented)
|
|
389
|
+
export interface GetTranslationStatus {
|
|
390
|
+
delete(options?: CancelTranslationParameters): StreamableMethod<CancelTranslation200Response | CancelTranslationDefaultResponse>;
|
|
391
|
+
get(options?: GetTranslationStatusParameters): StreamableMethod<GetTranslationStatus200Response | GetTranslationStatusDefaultResponse>;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// @public
|
|
395
|
+
export interface GetTranslationStatus200Response extends HttpResponse {
|
|
396
|
+
// (undocumented)
|
|
397
|
+
body: TranslationStatusOutput;
|
|
398
|
+
// (undocumented)
|
|
399
|
+
status: "200";
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// @public (undocumented)
|
|
403
|
+
export interface GetTranslationStatusDefaultHeaders {
|
|
404
|
+
"x-ms-error-code"?: string;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// @public (undocumented)
|
|
408
|
+
export interface GetTranslationStatusDefaultResponse extends HttpResponse {
|
|
409
|
+
// (undocumented)
|
|
410
|
+
body: ErrorResponse;
|
|
411
|
+
// (undocumented)
|
|
412
|
+
headers: RawHttpHeaders & GetTranslationStatusDefaultHeaders;
|
|
413
|
+
// (undocumented)
|
|
414
|
+
status: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// @public (undocumented)
|
|
418
|
+
export type GetTranslationStatusParameters = RequestParameters;
|
|
419
|
+
|
|
420
|
+
// @public
|
|
421
|
+
export interface Glossary {
|
|
422
|
+
format: string;
|
|
423
|
+
glossaryUrl: string;
|
|
424
|
+
storageSource?: StorageSource;
|
|
425
|
+
version?: string;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// @public
|
|
429
|
+
export interface InnerTranslationErrorOutput {
|
|
430
|
+
code: string;
|
|
431
|
+
innerError?: InnerTranslationErrorOutput;
|
|
432
|
+
message: string;
|
|
433
|
+
readonly target?: string;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// @public (undocumented)
|
|
437
|
+
export function isUnexpected(response: DocumentTranslate200Response | DocumentTranslateDefaultResponse): response is DocumentTranslateDefaultResponse;
|
|
438
|
+
|
|
439
|
+
// @public (undocumented)
|
|
440
|
+
export function isUnexpected(response: StartTranslation202Response | StartTranslationLogicalResponse | StartTranslationDefaultResponse): response is StartTranslationDefaultResponse;
|
|
441
|
+
|
|
442
|
+
// @public (undocumented)
|
|
443
|
+
export function isUnexpected(response: GetTranslationsStatus200Response | GetTranslationsStatusDefaultResponse): response is GetTranslationsStatusDefaultResponse;
|
|
444
|
+
|
|
445
|
+
// @public (undocumented)
|
|
446
|
+
export function isUnexpected(response: GetDocumentStatus200Response | GetDocumentStatusDefaultResponse): response is GetDocumentStatusDefaultResponse;
|
|
447
|
+
|
|
448
|
+
// @public (undocumented)
|
|
449
|
+
export function isUnexpected(response: GetTranslationStatus200Response | GetTranslationStatusDefaultResponse): response is GetTranslationStatusDefaultResponse;
|
|
450
|
+
|
|
451
|
+
// @public (undocumented)
|
|
452
|
+
export function isUnexpected(response: CancelTranslation200Response | CancelTranslationDefaultResponse): response is CancelTranslationDefaultResponse;
|
|
453
|
+
|
|
454
|
+
// @public (undocumented)
|
|
455
|
+
export function isUnexpected(response: GetDocumentsStatus200Response | GetDocumentsStatusDefaultResponse): response is GetDocumentsStatusDefaultResponse;
|
|
456
|
+
|
|
457
|
+
// @public (undocumented)
|
|
458
|
+
export function isUnexpected(response: GetSupportedFormats200Response | GetSupportedFormatsDefaultResponse): response is GetSupportedFormatsDefaultResponse;
|
|
459
|
+
|
|
460
|
+
// @public
|
|
461
|
+
export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
462
|
+
|
|
463
|
+
// @public
|
|
464
|
+
export type PaginateReturn<TResult> = TResult extends {
|
|
465
|
+
body: {
|
|
466
|
+
value?: infer TPage;
|
|
467
|
+
};
|
|
468
|
+
} ? GetArrayType<TPage> : Array<unknown>;
|
|
469
|
+
|
|
470
|
+
// @public
|
|
471
|
+
export interface PagingOptions<TResponse> {
|
|
472
|
+
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// @public (undocumented)
|
|
476
|
+
export interface Routes {
|
|
477
|
+
(path: "/document:translate"): DocumentTranslate;
|
|
478
|
+
(path: "/document/batches"): StartTranslation;
|
|
479
|
+
(path: "/document/batches/{id}/documents/{documentId}", id: string, documentId: string): GetDocumentStatus;
|
|
480
|
+
(path: "/document/batches/{id}", id: string): GetTranslationStatus;
|
|
481
|
+
(path: "/document/batches/{id}/documents", id: string): GetDocumentsStatus;
|
|
482
|
+
(path: "/document/formats"): GetSupportedFormats;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// @public
|
|
486
|
+
export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
|
|
487
|
+
getOperationState(): TState;
|
|
488
|
+
getResult(): TResult | undefined;
|
|
489
|
+
isDone(): boolean;
|
|
490
|
+
// @deprecated
|
|
491
|
+
isStopped(): boolean;
|
|
492
|
+
onProgress(callback: (state: TState) => void): CancelOnProgress;
|
|
493
|
+
poll(options?: {
|
|
494
|
+
abortSignal?: AbortSignalLike;
|
|
495
|
+
}): Promise<TState>;
|
|
496
|
+
pollUntilDone(pollOptions?: {
|
|
497
|
+
abortSignal?: AbortSignalLike;
|
|
498
|
+
}): Promise<TResult>;
|
|
499
|
+
serialize(): Promise<string>;
|
|
500
|
+
// @deprecated
|
|
501
|
+
stopPolling(): void;
|
|
502
|
+
submitted(): Promise<void>;
|
|
503
|
+
// @deprecated
|
|
504
|
+
toString(): string;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// @public
|
|
508
|
+
export interface SourceInput {
|
|
509
|
+
filter?: DocumentFilter;
|
|
510
|
+
language?: string;
|
|
511
|
+
sourceUrl: string;
|
|
512
|
+
storageSource?: StorageSource;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
// @public (undocumented)
|
|
516
|
+
export interface StartTranslation {
|
|
517
|
+
get(options?: GetTranslationsStatusParameters): StreamableMethod<GetTranslationsStatus200Response | GetTranslationsStatusDefaultResponse>;
|
|
518
|
+
post(options: StartTranslationParameters): StreamableMethod<StartTranslation202Response | StartTranslationDefaultResponse>;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
// @public (undocumented)
|
|
522
|
+
export interface StartTranslation202Headers {
|
|
523
|
+
"operation-location": string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// @public
|
|
527
|
+
export interface StartTranslation202Response extends HttpResponse {
|
|
528
|
+
// (undocumented)
|
|
529
|
+
headers: RawHttpHeaders & StartTranslation202Headers;
|
|
530
|
+
// (undocumented)
|
|
531
|
+
status: "202";
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// @public (undocumented)
|
|
535
|
+
export interface StartTranslationBodyParam {
|
|
536
|
+
body: StartTranslationDetails;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// @public (undocumented)
|
|
540
|
+
export interface StartTranslationDefaultHeaders {
|
|
541
|
+
"x-ms-error-code"?: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
// @public (undocumented)
|
|
545
|
+
export interface StartTranslationDefaultResponse extends HttpResponse {
|
|
546
|
+
// (undocumented)
|
|
547
|
+
body: ErrorResponse;
|
|
548
|
+
// (undocumented)
|
|
549
|
+
headers: RawHttpHeaders & StartTranslationDefaultHeaders;
|
|
550
|
+
// (undocumented)
|
|
551
|
+
status: string;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// @public
|
|
555
|
+
export interface StartTranslationDetails {
|
|
556
|
+
inputs: Array<BatchRequest>;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// @public
|
|
560
|
+
export interface StartTranslationLogicalResponse extends HttpResponse {
|
|
561
|
+
// (undocumented)
|
|
562
|
+
status: "200";
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// @public (undocumented)
|
|
566
|
+
export type StartTranslationParameters = StartTranslationBodyParam & RequestParameters;
|
|
567
|
+
|
|
568
|
+
// @public
|
|
569
|
+
export type StatusOutput = string;
|
|
570
|
+
|
|
571
|
+
// @public
|
|
572
|
+
export interface StatusSummaryOutput {
|
|
573
|
+
cancelled: number;
|
|
574
|
+
failed: number;
|
|
575
|
+
inProgress: number;
|
|
576
|
+
notYetStarted: number;
|
|
577
|
+
success: number;
|
|
578
|
+
total: number;
|
|
579
|
+
totalCharacterCharged: number;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// @public
|
|
583
|
+
export type StorageInputType = string;
|
|
584
|
+
|
|
585
|
+
// @public
|
|
586
|
+
export type StorageSource = string;
|
|
587
|
+
|
|
588
|
+
// @public
|
|
589
|
+
export interface SupportedFileFormatsOutput {
|
|
590
|
+
value: Array<FileFormatOutput>;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
// @public
|
|
594
|
+
export interface TargetInput {
|
|
595
|
+
category?: string;
|
|
596
|
+
glossaries?: Array<Glossary>;
|
|
597
|
+
language: string;
|
|
598
|
+
storageSource?: StorageSource;
|
|
599
|
+
targetUrl: string;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// @public
|
|
603
|
+
export type TranslationErrorCodeOutput = string;
|
|
604
|
+
|
|
605
|
+
// @public
|
|
606
|
+
export interface TranslationErrorOutput {
|
|
607
|
+
code: TranslationErrorCodeOutput;
|
|
608
|
+
innerError?: InnerTranslationErrorOutput;
|
|
609
|
+
message: string;
|
|
610
|
+
readonly target?: string;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
// @public
|
|
614
|
+
export interface TranslationsStatusOutput {
|
|
615
|
+
nextLink?: string;
|
|
616
|
+
value: Array<TranslationStatusOutput>;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// @public
|
|
620
|
+
export interface TranslationStatusOutput {
|
|
621
|
+
createdDateTimeUtc: string;
|
|
622
|
+
error?: TranslationErrorOutput;
|
|
623
|
+
id: string;
|
|
624
|
+
lastActionDateTimeUtc: string;
|
|
625
|
+
status: StatusOutput;
|
|
626
|
+
summary: StatusSummaryOutput;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// (No @packageDocumentation comment for this package)
|
|
630
|
+
|
|
631
|
+
```
|