@azure-rest/ai-document-translator 1.0.0-alpha.20240826.1 → 1.0.0-alpha.20240828.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/dist/index.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var coreClient = require('@azure-rest/core-client');
6
6
 
7
7
  // Copyright (c) Microsoft Corporation.
8
- // Licensed under the MIT license.
8
+ // Licensed under the MIT License.
9
9
  function DocumentTranslator(endpoint, credentials, options = {}) {
10
10
  var _a;
11
11
  const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/translator/text/batch/v1.0`;
@@ -17,7 +17,7 @@ function DocumentTranslator(endpoint, credentials, options = {}) {
17
17
  }
18
18
 
19
19
  // Copyright (c) Microsoft Corporation.
20
- // Licensed under the MIT license.
20
+ // Licensed under the MIT License.
21
21
  /**
22
22
  * A rest library for working with the Azure Document Translator service.
23
23
  * @packageDocumentation
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/documentTranslator.ts","../src/index.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetDocumentsStatus200Response,\n GetDocumentsStatus400Response,\n GetDocumentsStatus401Response,\n GetDocumentsStatus404Response,\n GetDocumentsStatus429Response,\n GetDocumentsStatus500Response,\n GetDocumentsStatus503Response,\n GetSupportedDocumentFormats200Response,\n GetSupportedDocumentFormats429Response,\n GetSupportedDocumentFormats500Response,\n GetSupportedDocumentFormats503Response,\n GetSupportedGlossaryFormats200Response,\n GetSupportedGlossaryFormats429Response,\n GetSupportedGlossaryFormats500Response,\n GetSupportedGlossaryFormats503Response,\n GetSupportedStorageSources200Response,\n GetSupportedStorageSources429Response,\n GetSupportedStorageSources500Response,\n GetSupportedStorageSources503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n} from \"./responses\";\nimport {\n CancelTranslationParameters,\n GetDocumentStatusParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n GetTranslationStatusParameters,\n GetTranslationsStatusParameters,\n StartTranslationParameters,\n} from \"./parameters\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { KeyCredential, TokenCredential } from \"@azure/core-auth\";\n\nexport interface GetTranslationsStatus {\n /**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\n post(\n options: StartTranslationParameters,\n ): Promise<\n | StartTranslation202Response\n | StartTranslation400Response\n | StartTranslation401Response\n | StartTranslation429Response\n | StartTranslation500Response\n | StartTranslation503Response\n >;\n /**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetTranslationsStatusParameters,\n ): Promise<\n | GetTranslationsStatus200Response\n | GetTranslationsStatus400Response\n | GetTranslationsStatus401Response\n | GetTranslationsStatus429Response\n | GetTranslationsStatus500Response\n | GetTranslationsStatus503Response\n >;\n}\n\nexport interface GetDocumentStatus {\n /** Returns the translation status for a specific document based on the request Id and document Id. */\n get(\n options?: GetDocumentStatusParameters,\n ): Promise<\n | GetDocumentStatus200Response\n | GetDocumentStatus401Response\n | GetDocumentStatus404Response\n | GetDocumentStatus429Response\n | GetDocumentStatus500Response\n | GetDocumentStatus503Response\n >;\n}\n\nexport interface CancelTranslation {\n /**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\n get(\n options?: GetTranslationStatusParameters,\n ): Promise<\n | GetTranslationStatus200Response\n | GetTranslationStatus401Response\n | GetTranslationStatus404Response\n | GetTranslationStatus429Response\n | GetTranslationStatus500Response\n | GetTranslationStatus503Response\n >;\n /**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\n delete(\n options?: CancelTranslationParameters,\n ): Promise<\n | CancelTranslation200Response\n | CancelTranslation401Response\n | CancelTranslation404Response\n | CancelTranslation429Response\n | CancelTranslation500Response\n | CancelTranslation503Response\n >;\n}\n\nexport interface GetDocumentsStatus {\n /**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetDocumentsStatusParameters,\n ): Promise<\n | GetDocumentsStatus200Response\n | GetDocumentsStatus400Response\n | GetDocumentsStatus401Response\n | GetDocumentsStatus404Response\n | GetDocumentsStatus429Response\n | GetDocumentsStatus500Response\n | GetDocumentsStatus503Response\n >;\n}\n\nexport interface GetSupportedDocumentFormats {\n /**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\n get(\n options?: GetSupportedDocumentFormatsParameters,\n ): Promise<\n | GetSupportedDocumentFormats200Response\n | GetSupportedDocumentFormats429Response\n | GetSupportedDocumentFormats500Response\n | GetSupportedDocumentFormats503Response\n >;\n}\n\nexport interface GetSupportedGlossaryFormats {\n /**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\n get(\n options?: GetSupportedGlossaryFormatsParameters,\n ): Promise<\n | GetSupportedGlossaryFormats200Response\n | GetSupportedGlossaryFormats429Response\n | GetSupportedGlossaryFormats500Response\n | GetSupportedGlossaryFormats503Response\n >;\n}\n\nexport interface GetSupportedStorageSources {\n /** Returns a list of storage sources/options supported by the Document Translation service. */\n get(\n options?: GetSupportedStorageSourcesParameters,\n ): Promise<\n | GetSupportedStorageSources200Response\n | GetSupportedStorageSources429Response\n | GetSupportedStorageSources500Response\n | GetSupportedStorageSources503Response\n >;\n}\n\nexport interface Routes {\n /** Resource for '/batches' has methods for the following verbs: post, get */\n (path: \"/batches\"): GetTranslationsStatus;\n /** Resource for '/batches/\\{id\\}/documents/\\{documentId\\}' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents/{documentId}\", id: string, documentId: string): GetDocumentStatus;\n /** Resource for '/batches/\\{id\\}' has methods for the following verbs: get, delete */\n (path: \"/batches/{id}\", id: string): CancelTranslation;\n /** Resource for '/batches/\\{id\\}/documents' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents\", id: string): GetDocumentsStatus;\n /** Resource for '/documents/formats' has methods for the following verbs: get */\n (path: \"/documents/formats\"): GetSupportedDocumentFormats;\n /** Resource for '/glossaries/formats' has methods for the following verbs: get */\n (path: \"/glossaries/formats\"): GetSupportedGlossaryFormats;\n /** Resource for '/storagesources' has methods for the following verbs: get */\n (path: \"/storagesources\"): GetSupportedStorageSources;\n}\n\nexport type DocumentTranslatorClient = Client & {\n path: Routes;\n};\n\nexport interface DocumentTranslatorFactory {\n (endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): void;\n}\n\nexport default function DocumentTranslator(\n endpoint: string,\n credentials: TokenCredential | KeyCredential,\n options: ClientOptions = {},\n): DocumentTranslatorClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/translator/text/batch/v1.0`;\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: \"Ocp-Apim-Subscription-Key\",\n },\n };\n\n return getClient(baseUrl, credentials, options) as DocumentTranslatorClient;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * A rest library for working with the Azure Document Translator service.\n * @packageDocumentation\n */\n\nimport DocumentTranslator from \"./documentTranslator\";\nexport * from \"./documentTranslator\";\nexport * from \"./models\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport default DocumentTranslator;\n"],"names":["getClient"],"mappings":";;;;;;AAAA;AACA;AAqRc,SAAU,kBAAkB,CACxC,QAAgB,EAChB,WAA4C,EAC5C,OAAA,GAAyB,EAAE,EAAA;;IAE3B,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,EAAG,QAAQ,CAAA,2BAAA,CAA6B,CAAC;AAC5E,IAAA,OAAO,GACF,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,OAAO,CACV,EAAA,EAAA,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,8CAA8C,CAAC;AACxD,YAAA,gBAAgB,EAAE,2BAA2B;AAC9C,SAAA,EAAA,CACF,CAAC;IAEF,OAAOA,oBAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;AAC9E;;ACrSA;AACA;AAEA;;;AAGG;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/documentTranslator.ts","../src/index.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetDocumentsStatus200Response,\n GetDocumentsStatus400Response,\n GetDocumentsStatus401Response,\n GetDocumentsStatus404Response,\n GetDocumentsStatus429Response,\n GetDocumentsStatus500Response,\n GetDocumentsStatus503Response,\n GetSupportedDocumentFormats200Response,\n GetSupportedDocumentFormats429Response,\n GetSupportedDocumentFormats500Response,\n GetSupportedDocumentFormats503Response,\n GetSupportedGlossaryFormats200Response,\n GetSupportedGlossaryFormats429Response,\n GetSupportedGlossaryFormats500Response,\n GetSupportedGlossaryFormats503Response,\n GetSupportedStorageSources200Response,\n GetSupportedStorageSources429Response,\n GetSupportedStorageSources500Response,\n GetSupportedStorageSources503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n} from \"./responses\";\nimport {\n CancelTranslationParameters,\n GetDocumentStatusParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n GetTranslationStatusParameters,\n GetTranslationsStatusParameters,\n StartTranslationParameters,\n} from \"./parameters\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { KeyCredential, TokenCredential } from \"@azure/core-auth\";\n\nexport interface GetTranslationsStatus {\n /**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\n post(\n options: StartTranslationParameters,\n ): Promise<\n | StartTranslation202Response\n | StartTranslation400Response\n | StartTranslation401Response\n | StartTranslation429Response\n | StartTranslation500Response\n | StartTranslation503Response\n >;\n /**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetTranslationsStatusParameters,\n ): Promise<\n | GetTranslationsStatus200Response\n | GetTranslationsStatus400Response\n | GetTranslationsStatus401Response\n | GetTranslationsStatus429Response\n | GetTranslationsStatus500Response\n | GetTranslationsStatus503Response\n >;\n}\n\nexport interface GetDocumentStatus {\n /** Returns the translation status for a specific document based on the request Id and document Id. */\n get(\n options?: GetDocumentStatusParameters,\n ): Promise<\n | GetDocumentStatus200Response\n | GetDocumentStatus401Response\n | GetDocumentStatus404Response\n | GetDocumentStatus429Response\n | GetDocumentStatus500Response\n | GetDocumentStatus503Response\n >;\n}\n\nexport interface CancelTranslation {\n /**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\n get(\n options?: GetTranslationStatusParameters,\n ): Promise<\n | GetTranslationStatus200Response\n | GetTranslationStatus401Response\n | GetTranslationStatus404Response\n | GetTranslationStatus429Response\n | GetTranslationStatus500Response\n | GetTranslationStatus503Response\n >;\n /**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\n delete(\n options?: CancelTranslationParameters,\n ): Promise<\n | CancelTranslation200Response\n | CancelTranslation401Response\n | CancelTranslation404Response\n | CancelTranslation429Response\n | CancelTranslation500Response\n | CancelTranslation503Response\n >;\n}\n\nexport interface GetDocumentsStatus {\n /**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetDocumentsStatusParameters,\n ): Promise<\n | GetDocumentsStatus200Response\n | GetDocumentsStatus400Response\n | GetDocumentsStatus401Response\n | GetDocumentsStatus404Response\n | GetDocumentsStatus429Response\n | GetDocumentsStatus500Response\n | GetDocumentsStatus503Response\n >;\n}\n\nexport interface GetSupportedDocumentFormats {\n /**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\n get(\n options?: GetSupportedDocumentFormatsParameters,\n ): Promise<\n | GetSupportedDocumentFormats200Response\n | GetSupportedDocumentFormats429Response\n | GetSupportedDocumentFormats500Response\n | GetSupportedDocumentFormats503Response\n >;\n}\n\nexport interface GetSupportedGlossaryFormats {\n /**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\n get(\n options?: GetSupportedGlossaryFormatsParameters,\n ): Promise<\n | GetSupportedGlossaryFormats200Response\n | GetSupportedGlossaryFormats429Response\n | GetSupportedGlossaryFormats500Response\n | GetSupportedGlossaryFormats503Response\n >;\n}\n\nexport interface GetSupportedStorageSources {\n /** Returns a list of storage sources/options supported by the Document Translation service. */\n get(\n options?: GetSupportedStorageSourcesParameters,\n ): Promise<\n | GetSupportedStorageSources200Response\n | GetSupportedStorageSources429Response\n | GetSupportedStorageSources500Response\n | GetSupportedStorageSources503Response\n >;\n}\n\nexport interface Routes {\n /** Resource for '/batches' has methods for the following verbs: post, get */\n (path: \"/batches\"): GetTranslationsStatus;\n /** Resource for '/batches/\\{id\\}/documents/\\{documentId\\}' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents/{documentId}\", id: string, documentId: string): GetDocumentStatus;\n /** Resource for '/batches/\\{id\\}' has methods for the following verbs: get, delete */\n (path: \"/batches/{id}\", id: string): CancelTranslation;\n /** Resource for '/batches/\\{id\\}/documents' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents\", id: string): GetDocumentsStatus;\n /** Resource for '/documents/formats' has methods for the following verbs: get */\n (path: \"/documents/formats\"): GetSupportedDocumentFormats;\n /** Resource for '/glossaries/formats' has methods for the following verbs: get */\n (path: \"/glossaries/formats\"): GetSupportedGlossaryFormats;\n /** Resource for '/storagesources' has methods for the following verbs: get */\n (path: \"/storagesources\"): GetSupportedStorageSources;\n}\n\nexport type DocumentTranslatorClient = Client & {\n path: Routes;\n};\n\nexport interface DocumentTranslatorFactory {\n (endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): void;\n}\n\nexport default function DocumentTranslator(\n endpoint: string,\n credentials: TokenCredential | KeyCredential,\n options: ClientOptions = {},\n): DocumentTranslatorClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/translator/text/batch/v1.0`;\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: \"Ocp-Apim-Subscription-Key\",\n },\n };\n\n return getClient(baseUrl, credentials, options) as DocumentTranslatorClient;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A rest library for working with the Azure Document Translator service.\n * @packageDocumentation\n */\n\nimport DocumentTranslator from \"./documentTranslator\";\nexport * from \"./documentTranslator\";\nexport * from \"./models\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport default DocumentTranslator;\n"],"names":["getClient"],"mappings":";;;;;;AAAA;AACA;AAqRc,SAAU,kBAAkB,CACxC,QAAgB,EAChB,WAA4C,EAC5C,OAAA,GAAyB,EAAE,EAAA;;IAE3B,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,EAAG,QAAQ,CAAA,2BAAA,CAA6B,CAAC;AAC5E,IAAA,OAAO,GACF,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,OAAO,CACV,EAAA,EAAA,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,8CAA8C,CAAC;AACxD,YAAA,gBAAgB,EAAE,2BAA2B;AAC9C,SAAA,EAAA,CACF,CAAC;IAEF,OAAOA,oBAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;AAC9E;;ACrSA;AACA;AAEA;;;AAGG;;;;"}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * @internal\n */\nexport const SDK_VERSION: string = \"1.0.0-beta.2\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * @internal\n */\nexport const SDK_VERSION: string = \"1.0.0-beta.2\";\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { getClient } from "@azure-rest/core-client";
4
4
  export default function DocumentTranslator(endpoint, credentials, options = {}) {
5
5
  var _a;
@@ -1 +1 @@
1
- {"version":3,"file":"documentTranslator.js","sourceRoot":"","sources":["../../src/documentTranslator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgElC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqN3E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,QAAgB,EAChB,WAA4C,EAC5C,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,6BAA6B,CAAC;IAC5E,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,8CAA8C,CAAC;YACxD,gBAAgB,EAAE,2BAA2B;SAC9C,GACF,CAAC;IAEF,OAAO,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetDocumentsStatus200Response,\n GetDocumentsStatus400Response,\n GetDocumentsStatus401Response,\n GetDocumentsStatus404Response,\n GetDocumentsStatus429Response,\n GetDocumentsStatus500Response,\n GetDocumentsStatus503Response,\n GetSupportedDocumentFormats200Response,\n GetSupportedDocumentFormats429Response,\n GetSupportedDocumentFormats500Response,\n GetSupportedDocumentFormats503Response,\n GetSupportedGlossaryFormats200Response,\n GetSupportedGlossaryFormats429Response,\n GetSupportedGlossaryFormats500Response,\n GetSupportedGlossaryFormats503Response,\n GetSupportedStorageSources200Response,\n GetSupportedStorageSources429Response,\n GetSupportedStorageSources500Response,\n GetSupportedStorageSources503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n} from \"./responses\";\nimport {\n CancelTranslationParameters,\n GetDocumentStatusParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n GetTranslationStatusParameters,\n GetTranslationsStatusParameters,\n StartTranslationParameters,\n} from \"./parameters\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { KeyCredential, TokenCredential } from \"@azure/core-auth\";\n\nexport interface GetTranslationsStatus {\n /**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\n post(\n options: StartTranslationParameters,\n ): Promise<\n | StartTranslation202Response\n | StartTranslation400Response\n | StartTranslation401Response\n | StartTranslation429Response\n | StartTranslation500Response\n | StartTranslation503Response\n >;\n /**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetTranslationsStatusParameters,\n ): Promise<\n | GetTranslationsStatus200Response\n | GetTranslationsStatus400Response\n | GetTranslationsStatus401Response\n | GetTranslationsStatus429Response\n | GetTranslationsStatus500Response\n | GetTranslationsStatus503Response\n >;\n}\n\nexport interface GetDocumentStatus {\n /** Returns the translation status for a specific document based on the request Id and document Id. */\n get(\n options?: GetDocumentStatusParameters,\n ): Promise<\n | GetDocumentStatus200Response\n | GetDocumentStatus401Response\n | GetDocumentStatus404Response\n | GetDocumentStatus429Response\n | GetDocumentStatus500Response\n | GetDocumentStatus503Response\n >;\n}\n\nexport interface CancelTranslation {\n /**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\n get(\n options?: GetTranslationStatusParameters,\n ): Promise<\n | GetTranslationStatus200Response\n | GetTranslationStatus401Response\n | GetTranslationStatus404Response\n | GetTranslationStatus429Response\n | GetTranslationStatus500Response\n | GetTranslationStatus503Response\n >;\n /**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\n delete(\n options?: CancelTranslationParameters,\n ): Promise<\n | CancelTranslation200Response\n | CancelTranslation401Response\n | CancelTranslation404Response\n | CancelTranslation429Response\n | CancelTranslation500Response\n | CancelTranslation503Response\n >;\n}\n\nexport interface GetDocumentsStatus {\n /**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetDocumentsStatusParameters,\n ): Promise<\n | GetDocumentsStatus200Response\n | GetDocumentsStatus400Response\n | GetDocumentsStatus401Response\n | GetDocumentsStatus404Response\n | GetDocumentsStatus429Response\n | GetDocumentsStatus500Response\n | GetDocumentsStatus503Response\n >;\n}\n\nexport interface GetSupportedDocumentFormats {\n /**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\n get(\n options?: GetSupportedDocumentFormatsParameters,\n ): Promise<\n | GetSupportedDocumentFormats200Response\n | GetSupportedDocumentFormats429Response\n | GetSupportedDocumentFormats500Response\n | GetSupportedDocumentFormats503Response\n >;\n}\n\nexport interface GetSupportedGlossaryFormats {\n /**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\n get(\n options?: GetSupportedGlossaryFormatsParameters,\n ): Promise<\n | GetSupportedGlossaryFormats200Response\n | GetSupportedGlossaryFormats429Response\n | GetSupportedGlossaryFormats500Response\n | GetSupportedGlossaryFormats503Response\n >;\n}\n\nexport interface GetSupportedStorageSources {\n /** Returns a list of storage sources/options supported by the Document Translation service. */\n get(\n options?: GetSupportedStorageSourcesParameters,\n ): Promise<\n | GetSupportedStorageSources200Response\n | GetSupportedStorageSources429Response\n | GetSupportedStorageSources500Response\n | GetSupportedStorageSources503Response\n >;\n}\n\nexport interface Routes {\n /** Resource for '/batches' has methods for the following verbs: post, get */\n (path: \"/batches\"): GetTranslationsStatus;\n /** Resource for '/batches/\\{id\\}/documents/\\{documentId\\}' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents/{documentId}\", id: string, documentId: string): GetDocumentStatus;\n /** Resource for '/batches/\\{id\\}' has methods for the following verbs: get, delete */\n (path: \"/batches/{id}\", id: string): CancelTranslation;\n /** Resource for '/batches/\\{id\\}/documents' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents\", id: string): GetDocumentsStatus;\n /** Resource for '/documents/formats' has methods for the following verbs: get */\n (path: \"/documents/formats\"): GetSupportedDocumentFormats;\n /** Resource for '/glossaries/formats' has methods for the following verbs: get */\n (path: \"/glossaries/formats\"): GetSupportedGlossaryFormats;\n /** Resource for '/storagesources' has methods for the following verbs: get */\n (path: \"/storagesources\"): GetSupportedStorageSources;\n}\n\nexport type DocumentTranslatorClient = Client & {\n path: Routes;\n};\n\nexport interface DocumentTranslatorFactory {\n (endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): void;\n}\n\nexport default function DocumentTranslator(\n endpoint: string,\n credentials: TokenCredential | KeyCredential,\n options: ClientOptions = {},\n): DocumentTranslatorClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/translator/text/batch/v1.0`;\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: \"Ocp-Apim-Subscription-Key\",\n },\n };\n\n return getClient(baseUrl, credentials, options) as DocumentTranslatorClient;\n}\n"]}
1
+ {"version":3,"file":"documentTranslator.js","sourceRoot":"","sources":["../../src/documentTranslator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgElC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqN3E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,QAAgB,EAChB,WAA4C,EAC5C,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,6BAA6B,CAAC;IAC5E,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,8CAA8C,CAAC;YACxD,gBAAgB,EAAE,2BAA2B;SAC9C,GACF,CAAC;IAEF,OAAO,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetDocumentsStatus200Response,\n GetDocumentsStatus400Response,\n GetDocumentsStatus401Response,\n GetDocumentsStatus404Response,\n GetDocumentsStatus429Response,\n GetDocumentsStatus500Response,\n GetDocumentsStatus503Response,\n GetSupportedDocumentFormats200Response,\n GetSupportedDocumentFormats429Response,\n GetSupportedDocumentFormats500Response,\n GetSupportedDocumentFormats503Response,\n GetSupportedGlossaryFormats200Response,\n GetSupportedGlossaryFormats429Response,\n GetSupportedGlossaryFormats500Response,\n GetSupportedGlossaryFormats503Response,\n GetSupportedStorageSources200Response,\n GetSupportedStorageSources429Response,\n GetSupportedStorageSources500Response,\n GetSupportedStorageSources503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n} from \"./responses\";\nimport {\n CancelTranslationParameters,\n GetDocumentStatusParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n GetTranslationStatusParameters,\n GetTranslationsStatusParameters,\n StartTranslationParameters,\n} from \"./parameters\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { KeyCredential, TokenCredential } from \"@azure/core-auth\";\n\nexport interface GetTranslationsStatus {\n /**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\n post(\n options: StartTranslationParameters,\n ): Promise<\n | StartTranslation202Response\n | StartTranslation400Response\n | StartTranslation401Response\n | StartTranslation429Response\n | StartTranslation500Response\n | StartTranslation503Response\n >;\n /**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetTranslationsStatusParameters,\n ): Promise<\n | GetTranslationsStatus200Response\n | GetTranslationsStatus400Response\n | GetTranslationsStatus401Response\n | GetTranslationsStatus429Response\n | GetTranslationsStatus500Response\n | GetTranslationsStatus503Response\n >;\n}\n\nexport interface GetDocumentStatus {\n /** Returns the translation status for a specific document based on the request Id and document Id. */\n get(\n options?: GetDocumentStatusParameters,\n ): Promise<\n | GetDocumentStatus200Response\n | GetDocumentStatus401Response\n | GetDocumentStatus404Response\n | GetDocumentStatus429Response\n | GetDocumentStatus500Response\n | GetDocumentStatus503Response\n >;\n}\n\nexport interface CancelTranslation {\n /**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\n get(\n options?: GetTranslationStatusParameters,\n ): Promise<\n | GetTranslationStatus200Response\n | GetTranslationStatus401Response\n | GetTranslationStatus404Response\n | GetTranslationStatus429Response\n | GetTranslationStatus500Response\n | GetTranslationStatus503Response\n >;\n /**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\n delete(\n options?: CancelTranslationParameters,\n ): Promise<\n | CancelTranslation200Response\n | CancelTranslation401Response\n | CancelTranslation404Response\n | CancelTranslation429Response\n | CancelTranslation500Response\n | CancelTranslation503Response\n >;\n}\n\nexport interface GetDocumentsStatus {\n /**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\n get(\n options?: GetDocumentsStatusParameters,\n ): Promise<\n | GetDocumentsStatus200Response\n | GetDocumentsStatus400Response\n | GetDocumentsStatus401Response\n | GetDocumentsStatus404Response\n | GetDocumentsStatus429Response\n | GetDocumentsStatus500Response\n | GetDocumentsStatus503Response\n >;\n}\n\nexport interface GetSupportedDocumentFormats {\n /**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\n get(\n options?: GetSupportedDocumentFormatsParameters,\n ): Promise<\n | GetSupportedDocumentFormats200Response\n | GetSupportedDocumentFormats429Response\n | GetSupportedDocumentFormats500Response\n | GetSupportedDocumentFormats503Response\n >;\n}\n\nexport interface GetSupportedGlossaryFormats {\n /**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\n get(\n options?: GetSupportedGlossaryFormatsParameters,\n ): Promise<\n | GetSupportedGlossaryFormats200Response\n | GetSupportedGlossaryFormats429Response\n | GetSupportedGlossaryFormats500Response\n | GetSupportedGlossaryFormats503Response\n >;\n}\n\nexport interface GetSupportedStorageSources {\n /** Returns a list of storage sources/options supported by the Document Translation service. */\n get(\n options?: GetSupportedStorageSourcesParameters,\n ): Promise<\n | GetSupportedStorageSources200Response\n | GetSupportedStorageSources429Response\n | GetSupportedStorageSources500Response\n | GetSupportedStorageSources503Response\n >;\n}\n\nexport interface Routes {\n /** Resource for '/batches' has methods for the following verbs: post, get */\n (path: \"/batches\"): GetTranslationsStatus;\n /** Resource for '/batches/\\{id\\}/documents/\\{documentId\\}' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents/{documentId}\", id: string, documentId: string): GetDocumentStatus;\n /** Resource for '/batches/\\{id\\}' has methods for the following verbs: get, delete */\n (path: \"/batches/{id}\", id: string): CancelTranslation;\n /** Resource for '/batches/\\{id\\}/documents' has methods for the following verbs: get */\n (path: \"/batches/{id}/documents\", id: string): GetDocumentsStatus;\n /** Resource for '/documents/formats' has methods for the following verbs: get */\n (path: \"/documents/formats\"): GetSupportedDocumentFormats;\n /** Resource for '/glossaries/formats' has methods for the following verbs: get */\n (path: \"/glossaries/formats\"): GetSupportedGlossaryFormats;\n /** Resource for '/storagesources' has methods for the following verbs: get */\n (path: \"/storagesources\"): GetSupportedStorageSources;\n}\n\nexport type DocumentTranslatorClient = Client & {\n path: Routes;\n};\n\nexport interface DocumentTranslatorFactory {\n (endpoint: string, credentials: TokenCredential | KeyCredential, options?: ClientOptions): void;\n}\n\nexport default function DocumentTranslator(\n endpoint: string,\n credentials: TokenCredential | KeyCredential,\n options: ClientOptions = {},\n): DocumentTranslatorClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/translator/text/batch/v1.0`;\n options = {\n ...options,\n credentials: {\n scopes: [\"https://cognitiveservices.azure.com/.default\"],\n apiKeyHeaderName: \"Ocp-Apim-Subscription-Key\",\n },\n };\n\n return getClient(baseUrl, credentials, options) as DocumentTranslatorClient;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  /**
4
4
  * A rest library for working with the Azure Document Translator service.
5
5
  * @packageDocumentation
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AAEH,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * A rest library for working with the Azure Document Translator service.\n * @packageDocumentation\n */\n\nimport DocumentTranslator from \"./documentTranslator\";\nexport * from \"./documentTranslator\";\nexport * from \"./models\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport default DocumentTranslator;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;GAGG;AAEH,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * A rest library for working with the Azure Document Translator service.\n * @packageDocumentation\n */\n\nimport DocumentTranslator from \"./documentTranslator\";\nexport * from \"./documentTranslator\";\nexport * from \"./models\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport default DocumentTranslator;\n"]}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export {};
4
4
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport interface StartTranslationDetails {\n /** The input list of documents or folders containing documents */\n inputs: BatchRequest[];\n}\n\nexport interface BatchRequest {\n /** Source of the input documents */\n source: SourceInput;\n /** Location of the destination for the output */\n targets: TargetInput[];\n /** Storage type of the input documents source string */\n storageType?: StorageInputType;\n}\n\nexport interface SourceInput {\n /** Location of the folder / container or single file with your documents */\n sourceUrl: string;\n /** */\n filter?: DocumentFilter;\n /**\n * Language code\n * If none is specified, we will perform auto detect on the document\n */\n language?: string;\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface DocumentFilter {\n /**\n * A case-sensitive prefix string to filter documents in the source path for translation.\n * For example, when using a Azure storage blob Uri, use the prefix to restrict sub folders for translation.\n */\n prefix?: string;\n /**\n * A case-sensitive suffix string to filter documents in the source path for translation.\n * This is most often use for file extensions\n */\n suffix?: string;\n}\n\nexport interface TargetInput {\n /** Location of the folder / container with your documents */\n targetUrl: string;\n /** Category / custom system for translation request */\n category?: string;\n /** Target Language */\n language: string;\n /** List of Glossary */\n glossaries?: Glossary[];\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface Glossary {\n /**\n * Location of the glossary.\n * We will use the file extension to extract the formatting if the format parameter is not supplied.\n *\n * If the translation language pair is not present in the glossary, it will not be applied\n */\n glossaryUrl: string;\n /** Format */\n format: string;\n /** Optional Version. If not specified, default is used. */\n version?: string;\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface TranslationErrorResponse {\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n}\n\nexport interface TranslationError {\n /** Enums containing high level error codes. */\n code: TranslationErrorCode;\n /** Gets high level error message. */\n message: string;\n /**\n * Gets the source of the error.\n * For example it would be \"documents\" or \"document id\" in case of invalid document.\n */\n target?: string;\n /**\n * New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow.\n * This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).\n */\n innerError?: InnerTranslationError;\n}\n\nexport interface InnerTranslationError {\n /** Gets code error string. */\n code: string;\n /** Gets high level error message. */\n message: string;\n /**\n * Gets the source of the error.\n * For example it would be \"documents\" or \"document id\" in case of invalid document.\n */\n target?: string;\n /**\n * New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow.\n * This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).\n */\n innerError?: InnerTranslationError;\n}\n\nexport interface TranslationsStatus {\n /** The summary status of individual operation */\n value: TranslationStatus[];\n /** Url for the next page. Null if no more pages available */\n nextLink?: string;\n}\n\nexport interface TranslationStatus {\n /** Id of the operation. */\n id: string;\n /** Operation created date time */\n createdDateTimeUtc: Date;\n /** Date time in which the operation's status has been updated */\n lastActionDateTimeUtc: Date;\n /** List of possible statuses for job or document */\n status: Status;\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n /** */\n summary: StatusSummary;\n}\n\nexport interface StatusSummary {\n /** Total count */\n total: number;\n /** Failed count */\n failed: number;\n /** Number of Success */\n success: number;\n /** Number of in progress */\n inProgress: number;\n /** Count of not yet started */\n notYetStarted: number;\n /** Number of cancelled */\n cancelled: number;\n /** Total characters charged by the API */\n totalCharacterCharged: number;\n}\n\nexport interface DocumentStatus {\n /** Location of the document or folder */\n path?: string;\n /** Location of the source document */\n sourcePath: string;\n /** Operation created date time */\n createdDateTimeUtc: Date;\n /** Date time in which the operation's status has been updated */\n lastActionDateTimeUtc: Date;\n /** List of possible statuses for job or document */\n status: Status;\n /** To language */\n to: string;\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n /** Progress of the translation if available */\n progress: number;\n /** Document Id */\n id: string;\n /** Character charged by the API */\n characterCharged?: number;\n}\n\nexport interface DocumentsStatus {\n /** The detail status of individual documents */\n value: DocumentStatus[];\n /** Url for the next page. Null if no more pages available */\n nextLink?: string;\n}\n\nexport interface SupportedFileFormats {\n /** list of objects */\n value: FileFormat[];\n}\n\nexport interface FileFormat {\n /** Name of the format */\n format: string;\n /** Supported file extension for this format */\n fileExtensions: string[];\n /** Supported Content-Types for this format */\n contentTypes: string[];\n /** Default version if none is specified */\n defaultVersion?: string;\n /** Supported Version */\n versions?: string[];\n}\n\nexport interface SupportedStorageSources {\n /** list of objects */\n value: \"AzureBlob\"[];\n}\n\nexport type StorageSource = \"AzureBlob\";\nexport type StorageInputType = \"Folder\" | \"File\";\nexport type TranslationErrorCode =\n | \"InvalidRequest\"\n | \"InvalidArgument\"\n | \"InternalServerError\"\n | \"ServiceUnavailable\"\n | \"ResourceNotFound\"\n | \"Unauthorized\"\n | \"RequestRateTooHigh\";\nexport type Status =\n | \"NotStarted\"\n | \"Running\"\n | \"Succeeded\"\n | \"Failed\"\n | \"Cancelled\"\n | \"Cancelling\"\n | \"ValidationFailed\";\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport interface StartTranslationDetails {\n /** The input list of documents or folders containing documents */\n inputs: BatchRequest[];\n}\n\nexport interface BatchRequest {\n /** Source of the input documents */\n source: SourceInput;\n /** Location of the destination for the output */\n targets: TargetInput[];\n /** Storage type of the input documents source string */\n storageType?: StorageInputType;\n}\n\nexport interface SourceInput {\n /** Location of the folder / container or single file with your documents */\n sourceUrl: string;\n /** */\n filter?: DocumentFilter;\n /**\n * Language code\n * If none is specified, we will perform auto detect on the document\n */\n language?: string;\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface DocumentFilter {\n /**\n * A case-sensitive prefix string to filter documents in the source path for translation.\n * For example, when using a Azure storage blob Uri, use the prefix to restrict sub folders for translation.\n */\n prefix?: string;\n /**\n * A case-sensitive suffix string to filter documents in the source path for translation.\n * This is most often use for file extensions\n */\n suffix?: string;\n}\n\nexport interface TargetInput {\n /** Location of the folder / container with your documents */\n targetUrl: string;\n /** Category / custom system for translation request */\n category?: string;\n /** Target Language */\n language: string;\n /** List of Glossary */\n glossaries?: Glossary[];\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface Glossary {\n /**\n * Location of the glossary.\n * We will use the file extension to extract the formatting if the format parameter is not supplied.\n *\n * If the translation language pair is not present in the glossary, it will not be applied\n */\n glossaryUrl: string;\n /** Format */\n format: string;\n /** Optional Version. If not specified, default is used. */\n version?: string;\n /** Storage Source */\n storageSource?: StorageSource;\n}\n\nexport interface TranslationErrorResponse {\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n}\n\nexport interface TranslationError {\n /** Enums containing high level error codes. */\n code: TranslationErrorCode;\n /** Gets high level error message. */\n message: string;\n /**\n * Gets the source of the error.\n * For example it would be \"documents\" or \"document id\" in case of invalid document.\n */\n target?: string;\n /**\n * New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow.\n * This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).\n */\n innerError?: InnerTranslationError;\n}\n\nexport interface InnerTranslationError {\n /** Gets code error string. */\n code: string;\n /** Gets high level error message. */\n message: string;\n /**\n * Gets the source of the error.\n * For example it would be \"documents\" or \"document id\" in case of invalid document.\n */\n target?: string;\n /**\n * New Inner Error format which conforms to Cognitive Services API Guidelines which is available at https://microsoft.sharepoint.com/%3Aw%3A/t/CognitiveServicesPMO/EUoytcrjuJdKpeOKIK_QRC8BPtUYQpKBi8JsWyeDMRsWlQ?e=CPq8ow.\n * This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).\n */\n innerError?: InnerTranslationError;\n}\n\nexport interface TranslationsStatus {\n /** The summary status of individual operation */\n value: TranslationStatus[];\n /** Url for the next page. Null if no more pages available */\n nextLink?: string;\n}\n\nexport interface TranslationStatus {\n /** Id of the operation. */\n id: string;\n /** Operation created date time */\n createdDateTimeUtc: Date;\n /** Date time in which the operation's status has been updated */\n lastActionDateTimeUtc: Date;\n /** List of possible statuses for job or document */\n status: Status;\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n /** */\n summary: StatusSummary;\n}\n\nexport interface StatusSummary {\n /** Total count */\n total: number;\n /** Failed count */\n failed: number;\n /** Number of Success */\n success: number;\n /** Number of in progress */\n inProgress: number;\n /** Count of not yet started */\n notYetStarted: number;\n /** Number of cancelled */\n cancelled: number;\n /** Total characters charged by the API */\n totalCharacterCharged: number;\n}\n\nexport interface DocumentStatus {\n /** Location of the document or folder */\n path?: string;\n /** Location of the source document */\n sourcePath: string;\n /** Operation created date time */\n createdDateTimeUtc: Date;\n /** Date time in which the operation's status has been updated */\n lastActionDateTimeUtc: Date;\n /** List of possible statuses for job or document */\n status: Status;\n /** To language */\n to: string;\n /** This contains an outer error with error code, message, details, target and an inner error with more descriptive details. */\n error?: TranslationError;\n /** Progress of the translation if available */\n progress: number;\n /** Document Id */\n id: string;\n /** Character charged by the API */\n characterCharged?: number;\n}\n\nexport interface DocumentsStatus {\n /** The detail status of individual documents */\n value: DocumentStatus[];\n /** Url for the next page. Null if no more pages available */\n nextLink?: string;\n}\n\nexport interface SupportedFileFormats {\n /** list of objects */\n value: FileFormat[];\n}\n\nexport interface FileFormat {\n /** Name of the format */\n format: string;\n /** Supported file extension for this format */\n fileExtensions: string[];\n /** Supported Content-Types for this format */\n contentTypes: string[];\n /** Default version if none is specified */\n defaultVersion?: string;\n /** Supported Version */\n versions?: string[];\n}\n\nexport interface SupportedStorageSources {\n /** list of objects */\n value: \"AzureBlob\"[];\n}\n\nexport type StorageSource = \"AzureBlob\";\nexport type StorageInputType = \"Folder\" | \"File\";\nexport type TranslationErrorCode =\n | \"InvalidRequest\"\n | \"InvalidArgument\"\n | \"InternalServerError\"\n | \"ServiceUnavailable\"\n | \"ResourceNotFound\"\n | \"Unauthorized\"\n | \"RequestRateTooHigh\";\nexport type Status =\n | \"NotStarted\"\n | \"Running\"\n | \"Succeeded\"\n | \"Failed\"\n | \"Cancelled\"\n | \"Cancelling\"\n | \"ValidationFailed\";\n"]}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export {};
4
4
  //# sourceMappingURL=parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport { StartTranslationDetails } from \"./models\";\n\nexport interface StartTranslationBodyParam {\n body: StartTranslationDetails;\n}\n\nexport type StartTranslationParameters = RequestParameters & StartTranslationBodyParam;\n\nexport interface GetTranslationsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetTranslationsStatusQueryParam {\n queryParameters?: GetTranslationsStatusQueryParamProperties;\n}\n\nexport type GetTranslationsStatusParameters = RequestParameters & GetTranslationsStatusQueryParam;\nexport type GetDocumentStatusParameters = RequestParameters;\nexport type GetTranslationStatusParameters = RequestParameters;\nexport type CancelTranslationParameters = RequestParameters;\n\nexport interface GetDocumentsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetDocumentsStatusQueryParam {\n queryParameters?: GetDocumentsStatusQueryParamProperties;\n}\n\nexport type GetDocumentsStatusParameters = RequestParameters & GetDocumentsStatusQueryParam;\nexport type GetSupportedDocumentFormatsParameters = RequestParameters;\nexport type GetSupportedGlossaryFormatsParameters = RequestParameters;\nexport type GetSupportedStorageSourcesParameters = RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport { StartTranslationDetails } from \"./models\";\n\nexport interface StartTranslationBodyParam {\n body: StartTranslationDetails;\n}\n\nexport type StartTranslationParameters = RequestParameters & StartTranslationBodyParam;\n\nexport interface GetTranslationsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetTranslationsStatusQueryParam {\n queryParameters?: GetTranslationsStatusQueryParamProperties;\n}\n\nexport type GetTranslationsStatusParameters = RequestParameters & GetTranslationsStatusQueryParam;\nexport type GetDocumentStatusParameters = RequestParameters;\nexport type GetTranslationStatusParameters = RequestParameters;\nexport type CancelTranslationParameters = RequestParameters;\n\nexport interface GetDocumentsStatusQueryParamProperties {\n /**\n * $top indicates the total number of records the user wants to be returned across all pages.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $top?: number;\n /**\n * $skip indicates the number of records to skip from the list of records held by the server based on the sorting method specified. By default, we sort by descending start time.\n *\n * Clients MAY use $top and $skip query parameters to specify a number of results to return and an offset into the collection.\n * When both $top and $skip are given by a client, the server SHOULD first apply $skip and then $top on the collection.\n *\n * Note: If the server can't honor $top and/or $skip, the server MUST return an error to the client informing about it instead of just ignoring the query options.\n */\n $skip?: number;\n /**\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * Clients MAY request server-driven paging with a specific page size by specifying a $maxpagesize preference. The server SHOULD honor this preference if the specified page size is smaller than the server's default page size.\n */\n $maxpagesize?: number;\n /** Ids to use in filtering */\n ids?: string[];\n /** Statuses to use in filtering */\n statuses?: string[];\n /** the start datetime to get items after */\n createdDateTimeUtcStart?: Date;\n /** the end datetime to get items before */\n createdDateTimeUtcEnd?: Date;\n /** the sorting query for the collection (ex: 'CreatedDateTimeUtc asc', 'CreatedDateTimeUtc desc') */\n $orderBy?: string[];\n}\n\nexport interface GetDocumentsStatusQueryParam {\n queryParameters?: GetDocumentsStatusQueryParamProperties;\n}\n\nexport type GetDocumentsStatusParameters = RequestParameters & GetDocumentsStatusQueryParam;\nexport type GetSupportedDocumentFormatsParameters = RequestParameters;\nexport type GetSupportedGlossaryFormatsParameters = RequestParameters;\nexport type GetSupportedStorageSourcesParameters = RequestParameters;\n"]}
@@ -1,4 +1,4 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  export {};
4
4
  //# sourceMappingURL=responses.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n TranslationErrorResponse,\n TranslationsStatus,\n DocumentStatus,\n TranslationStatus,\n DocumentsStatus,\n SupportedFileFormats,\n SupportedStorageSources,\n} from \"./models\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\nexport interface StartTranslation202Headers {\n /** Location of batch the operation */\n \"operation-location\"?: string;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & StartTranslation202Headers;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetTranslationsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationsStatus;\n headers: RawHttpHeaders & GetTranslationsStatus200Headers;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetDocumentStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentStatus;\n headers: RawHttpHeaders & GetDocumentStatus200Headers;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetTranslationStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatus;\n headers: RawHttpHeaders & GetTranslationStatus200Headers;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatus;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetDocumentsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentsStatus;\n headers: RawHttpHeaders & GetDocumentsStatus200Headers;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedDocumentFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormats;\n headers: RawHttpHeaders & GetSupportedDocumentFormats200Headers;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedGlossaryFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormats;\n headers: RawHttpHeaders & GetSupportedGlossaryFormats200Headers;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedStorageSources200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources200Response extends HttpResponse {\n status: \"200\";\n body: SupportedStorageSources;\n headers: RawHttpHeaders & GetSupportedStorageSources200Headers;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n"]}
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n TranslationErrorResponse,\n TranslationsStatus,\n DocumentStatus,\n TranslationStatus,\n DocumentsStatus,\n SupportedFileFormats,\n SupportedStorageSources,\n} from \"./models\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\nexport interface StartTranslation202Headers {\n /** Location of batch the operation */\n \"operation-location\"?: string;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & StartTranslation202Headers;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Use this API to submit a bulk (batch) translation request to the Document Translation service.\n * Each request can contain multiple documents and must contain a source and destination container for each document.\n *\n * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.\n *\n * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.\n *\n * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.\n * If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.\n */\nexport interface StartTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetTranslationsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationsStatus;\n headers: RawHttpHeaders & GetTranslationsStatus200Headers;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns a list of batch requests submitted and the status for each request.\n * This list only contains batch requests submitted by the user (based on the resource).\n *\n * If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response.\n * The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled operations.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token.\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetTranslationsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetDocumentStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentStatus;\n headers: RawHttpHeaders & GetDocumentStatus200Headers;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface GetDocumentStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetTranslationStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatus;\n headers: RawHttpHeaders & GetTranslationStatus200Headers;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for a document translation request.\n * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.\n */\nexport interface GetTranslationStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatus;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Cancel a currently processing or queued translation.\n * Cancel a currently processing or queued translation.\n * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.\n * All documents that have completed translation will not be cancelled and will be charged.\n * All pending documents will be cancelled if possible.\n */\nexport interface CancelTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetDocumentsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n /** The ETag response-header field provides the current value of the entity tag for the requested variant. Used with If-Match, If-None-Match and If-Range to implement optimistic concurrency control. */\n etag?: string;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentsStatus;\n headers: RawHttpHeaders & GetDocumentsStatus200Headers;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * Returns the status for all documents in a batch document translation request.\n *\n * If the number of documents in the response exceeds our paging limit, server-side paging is used.\n * Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available.\n *\n * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.\n *\n * $top indicates the total number of records the user wants to be returned across all pages.\n * $skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time.\n * $maxpagesize is the maximum items returned in a page. If more items are requested via $top (or $top is not specified and there are more items to be returned), \\@nextLink will contain the link to the next page.\n *\n * $orderBy query parameter can be used to sort the returned list (ex \"$orderBy=createdDateTimeUtc asc\" or \"$orderBy=createdDateTimeUtc desc\").\n * The default sorting is descending by createdDateTimeUtc.\n * Some query parameters can be used to filter the returned list (ex: \"status=Succeeded,Cancelled\") will only return succeeded and cancelled documents.\n * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.\n * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).\n *\n * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.\n * Note: If the server can't honor $top and/or $skip, the server must return an error to the client informing about it instead of just ignoring the query options.\n * This reduces the risk of the client making assumptions about the data returned.\n */\nexport interface GetDocumentsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedDocumentFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormats;\n headers: RawHttpHeaders & GetSupportedDocumentFormats200Headers;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported document formats supported by the Document Translation service.\n * The list includes the common file extension, as well as the content-type if using the upload API.\n */\nexport interface GetSupportedDocumentFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedGlossaryFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormats;\n headers: RawHttpHeaders & GetSupportedGlossaryFormats200Headers;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/**\n * The list of supported glossary formats supported by the Document Translation service.\n * The list includes the common file extension used.\n */\nexport interface GetSupportedGlossaryFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n\nexport interface GetSupportedStorageSources200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: string;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources200Response extends HttpResponse {\n status: \"200\";\n body: SupportedStorageSources;\n headers: RawHttpHeaders & GetSupportedStorageSources200Headers;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponse;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponse;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface GetSupportedStorageSources503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponse;\n}\n"]}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sdk-type": "client",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "An isomorphic rest level client library for the Azure Document Translator service.",
6
- "version": "1.0.0-alpha.20240826.1",
6
+ "version": "1.0.0-alpha.20240828.1",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",