@azure-rest/ai-document-translator 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/LICENSE +3 -3
  2. package/README.md +52 -71
  3. package/dist/browser/clientDefinitions.d.ts +125 -0
  4. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  5. package/dist/browser/clientDefinitions.js +4 -0
  6. package/dist/browser/clientDefinitions.js.map +1 -0
  7. package/dist/browser/documentTranslator.d.ts +14 -0
  8. package/dist/browser/documentTranslator.d.ts.map +1 -0
  9. package/dist/browser/documentTranslator.js +33 -0
  10. package/dist/browser/documentTranslator.js.map +1 -0
  11. package/dist/browser/index.d.ts +12 -0
  12. package/dist/browser/index.d.ts.map +1 -0
  13. package/dist/browser/index.js +14 -0
  14. package/dist/browser/index.js.map +1 -0
  15. package/dist/browser/isUnexpected.d.ts +11 -0
  16. package/dist/browser/isUnexpected.d.ts.map +1 -0
  17. package/dist/browser/isUnexpected.js +78 -0
  18. package/dist/browser/isUnexpected.js.map +1 -0
  19. package/dist/browser/logger.d.ts +2 -0
  20. package/dist/browser/logger.d.ts.map +1 -0
  21. package/dist/browser/logger.js +5 -0
  22. package/dist/browser/logger.js.map +1 -0
  23. package/dist/browser/models.d.ts +69 -0
  24. package/dist/browser/models.d.ts.map +1 -0
  25. package/dist/browser/models.js +4 -0
  26. package/dist/browser/models.js.map +1 -0
  27. package/dist/browser/outputModels.d.ts +144 -0
  28. package/dist/browser/outputModels.d.ts.map +1 -0
  29. package/dist/browser/outputModels.js +4 -0
  30. package/dist/browser/outputModels.js.map +1 -0
  31. package/dist/browser/package.json +3 -0
  32. package/dist/browser/paginateHelper.d.ts +68 -0
  33. package/dist/browser/paginateHelper.d.ts.map +1 -0
  34. package/dist/browser/paginateHelper.js +167 -0
  35. package/dist/browser/paginateHelper.js.map +1 -0
  36. package/dist/browser/parameters.d.ts +98 -0
  37. package/dist/browser/parameters.d.ts.map +1 -0
  38. package/dist/browser/parameters.js +4 -0
  39. package/dist/browser/parameters.js.map +1 -0
  40. package/dist/browser/pollingHelper.d.ts +76 -0
  41. package/dist/browser/pollingHelper.d.ts.map +1 -0
  42. package/dist/browser/pollingHelper.js +104 -0
  43. package/dist/browser/pollingHelper.js.map +1 -0
  44. package/{types/ai-document-translator.d.ts → dist/browser/responses.d.ts} +725 -1242
  45. package/dist/browser/responses.d.ts.map +1 -0
  46. package/dist/browser/responses.js +4 -0
  47. package/dist/browser/responses.js.map +1 -0
  48. package/dist/commonjs/clientDefinitions.d.ts +125 -0
  49. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  50. package/dist/commonjs/clientDefinitions.js +5 -0
  51. package/dist/commonjs/clientDefinitions.js.map +1 -0
  52. package/dist/commonjs/documentTranslator.d.ts +14 -0
  53. package/dist/commonjs/documentTranslator.d.ts.map +1 -0
  54. package/dist/commonjs/documentTranslator.js +36 -0
  55. package/dist/commonjs/documentTranslator.js.map +1 -0
  56. package/dist/commonjs/index.d.ts +12 -0
  57. package/dist/commonjs/index.d.ts.map +1 -0
  58. package/dist/commonjs/index.js +17 -0
  59. package/dist/commonjs/index.js.map +1 -0
  60. package/dist/commonjs/isUnexpected.d.ts +11 -0
  61. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  62. package/dist/commonjs/isUnexpected.js +81 -0
  63. package/dist/commonjs/isUnexpected.js.map +1 -0
  64. package/dist/commonjs/logger.d.ts +2 -0
  65. package/dist/commonjs/logger.d.ts.map +1 -0
  66. package/dist/commonjs/logger.js +8 -0
  67. package/dist/commonjs/logger.js.map +1 -0
  68. package/dist/commonjs/models.d.ts +69 -0
  69. package/dist/commonjs/models.d.ts.map +1 -0
  70. package/dist/commonjs/models.js +5 -0
  71. package/dist/commonjs/models.js.map +1 -0
  72. package/dist/commonjs/outputModels.d.ts +144 -0
  73. package/dist/commonjs/outputModels.d.ts.map +1 -0
  74. package/dist/commonjs/outputModels.js +5 -0
  75. package/dist/commonjs/outputModels.js.map +1 -0
  76. package/dist/commonjs/package.json +3 -0
  77. package/dist/commonjs/paginateHelper.d.ts +68 -0
  78. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  79. package/dist/commonjs/paginateHelper.js +170 -0
  80. package/dist/commonjs/paginateHelper.js.map +1 -0
  81. package/dist/commonjs/parameters.d.ts +98 -0
  82. package/dist/commonjs/parameters.d.ts.map +1 -0
  83. package/dist/commonjs/parameters.js +5 -0
  84. package/dist/commonjs/parameters.js.map +1 -0
  85. package/dist/commonjs/pollingHelper.d.ts +76 -0
  86. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  87. package/dist/commonjs/pollingHelper.js +107 -0
  88. package/dist/commonjs/pollingHelper.js.map +1 -0
  89. package/dist/commonjs/responses.d.ts +725 -0
  90. package/dist/commonjs/responses.d.ts.map +1 -0
  91. package/dist/commonjs/responses.js +5 -0
  92. package/dist/commonjs/responses.js.map +1 -0
  93. package/dist/commonjs/tsdoc-metadata.json +11 -0
  94. package/dist/esm/clientDefinitions.d.ts +125 -0
  95. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  96. package/dist/esm/clientDefinitions.js +4 -0
  97. package/dist/esm/clientDefinitions.js.map +1 -0
  98. package/dist/esm/documentTranslator.d.ts +14 -0
  99. package/dist/esm/documentTranslator.d.ts.map +1 -0
  100. package/dist/esm/documentTranslator.js +33 -0
  101. package/dist/esm/documentTranslator.js.map +1 -0
  102. package/dist/esm/index.d.ts +12 -0
  103. package/dist/esm/index.d.ts.map +1 -0
  104. package/dist/esm/index.js +14 -0
  105. package/dist/esm/index.js.map +1 -0
  106. package/dist/esm/isUnexpected.d.ts +11 -0
  107. package/dist/esm/isUnexpected.d.ts.map +1 -0
  108. package/dist/esm/isUnexpected.js +78 -0
  109. package/dist/esm/isUnexpected.js.map +1 -0
  110. package/dist/esm/logger.d.ts +2 -0
  111. package/dist/esm/logger.d.ts.map +1 -0
  112. package/dist/esm/logger.js +5 -0
  113. package/dist/esm/logger.js.map +1 -0
  114. package/dist/esm/models.d.ts +69 -0
  115. package/dist/esm/models.d.ts.map +1 -0
  116. package/dist/esm/models.js +4 -0
  117. package/dist/esm/models.js.map +1 -0
  118. package/dist/esm/outputModels.d.ts +144 -0
  119. package/dist/esm/outputModels.d.ts.map +1 -0
  120. package/dist/esm/outputModels.js +4 -0
  121. package/dist/esm/outputModels.js.map +1 -0
  122. package/dist/esm/package.json +3 -0
  123. package/dist/esm/paginateHelper.d.ts +68 -0
  124. package/dist/esm/paginateHelper.d.ts.map +1 -0
  125. package/dist/esm/paginateHelper.js +167 -0
  126. package/dist/esm/paginateHelper.js.map +1 -0
  127. package/dist/esm/parameters.d.ts +98 -0
  128. package/dist/esm/parameters.d.ts.map +1 -0
  129. package/dist/esm/parameters.js +4 -0
  130. package/dist/esm/parameters.js.map +1 -0
  131. package/dist/esm/pollingHelper.d.ts +76 -0
  132. package/dist/esm/pollingHelper.d.ts.map +1 -0
  133. package/dist/esm/pollingHelper.js +104 -0
  134. package/dist/esm/pollingHelper.js.map +1 -0
  135. package/dist/esm/responses.d.ts +725 -0
  136. package/dist/esm/responses.d.ts.map +1 -0
  137. package/dist/esm/responses.js +4 -0
  138. package/dist/esm/responses.js.map +1 -0
  139. package/dist/react-native/clientDefinitions.d.ts +125 -0
  140. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  141. package/dist/react-native/clientDefinitions.js +4 -0
  142. package/dist/react-native/clientDefinitions.js.map +1 -0
  143. package/dist/react-native/documentTranslator.d.ts +14 -0
  144. package/dist/react-native/documentTranslator.d.ts.map +1 -0
  145. package/dist/react-native/documentTranslator.js +33 -0
  146. package/dist/react-native/documentTranslator.js.map +1 -0
  147. package/dist/react-native/index.d.ts +12 -0
  148. package/dist/react-native/index.d.ts.map +1 -0
  149. package/dist/react-native/index.js +14 -0
  150. package/dist/react-native/index.js.map +1 -0
  151. package/dist/react-native/isUnexpected.d.ts +11 -0
  152. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  153. package/dist/react-native/isUnexpected.js +78 -0
  154. package/dist/react-native/isUnexpected.js.map +1 -0
  155. package/dist/react-native/logger.d.ts +2 -0
  156. package/dist/react-native/logger.d.ts.map +1 -0
  157. package/dist/react-native/logger.js +5 -0
  158. package/dist/react-native/logger.js.map +1 -0
  159. package/dist/react-native/models.d.ts +69 -0
  160. package/dist/react-native/models.d.ts.map +1 -0
  161. package/dist/react-native/models.js +4 -0
  162. package/dist/react-native/models.js.map +1 -0
  163. package/dist/react-native/outputModels.d.ts +144 -0
  164. package/dist/react-native/outputModels.d.ts.map +1 -0
  165. package/dist/react-native/outputModels.js +4 -0
  166. package/dist/react-native/outputModels.js.map +1 -0
  167. package/dist/react-native/package.json +3 -0
  168. package/dist/react-native/paginateHelper.d.ts +68 -0
  169. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  170. package/dist/react-native/paginateHelper.js +167 -0
  171. package/dist/react-native/paginateHelper.js.map +1 -0
  172. package/dist/react-native/parameters.d.ts +98 -0
  173. package/dist/react-native/parameters.d.ts.map +1 -0
  174. package/dist/react-native/parameters.js +4 -0
  175. package/dist/react-native/parameters.js.map +1 -0
  176. package/dist/react-native/pollingHelper.d.ts +76 -0
  177. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  178. package/dist/react-native/pollingHelper.js +104 -0
  179. package/dist/react-native/pollingHelper.js.map +1 -0
  180. package/dist/react-native/responses.d.ts +725 -0
  181. package/dist/react-native/responses.d.ts.map +1 -0
  182. package/dist/react-native/responses.js +4 -0
  183. package/dist/react-native/responses.js.map +1 -0
  184. package/package.json +86 -71
  185. package/CHANGELOG.md +0 -5
  186. package/dist/index.js +0 -19
  187. package/dist/index.js.map +0 -1
  188. package/dist-esm/src/constants.js +0 -7
  189. package/dist-esm/src/constants.js.map +0 -1
  190. package/dist-esm/src/documentTranslator.js +0 -13
  191. package/dist-esm/src/documentTranslator.js.map +0 -1
  192. package/dist-esm/src/index.js +0 -13
  193. package/dist-esm/src/index.js.map +0 -1
  194. package/dist-esm/src/models.js +0 -4
  195. package/dist-esm/src/models.js.map +0 -1
  196. package/dist-esm/src/parameters.js +0 -4
  197. package/dist-esm/src/parameters.js.map +0 -1
  198. package/dist-esm/src/responses.js +0 -4
  199. package/dist-esm/src/responses.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +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 type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n TranslationErrorResponseOutput,\n TranslationsStatusOutput,\n DocumentStatusOutput,\n TranslationStatusOutput,\n DocumentsStatusOutput,\n SupportedFileFormatsOutput,\n SupportedStorageSourcesOutput,\n} from \"./outputModels.js\";\n\nexport interface DocumentTranslationStartTranslation202Headers {\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 DocumentTranslationStartTranslation202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & DocumentTranslationStartTranslation202Headers;\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 DocumentTranslationStartTranslation400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationStartTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationStartTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationStartTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationStartTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetTranslationsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetTranslationsStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationsStatusOutput;\n headers: RawHttpHeaders & DocumentTranslationGetTranslationsStatus200Headers;\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 DocumentTranslationGetTranslationsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetDocumentStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetDocumentStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentStatusOutput;\n headers: RawHttpHeaders & DocumentTranslationGetDocumentStatus200Headers;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface DocumentTranslationGetDocumentStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface DocumentTranslationGetDocumentStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface DocumentTranslationGetDocumentStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface DocumentTranslationGetDocumentStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns the translation status for a specific document based on the request Id and document Id. */\nexport interface DocumentTranslationGetDocumentStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetTranslationStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetTranslationStatus200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatusOutput;\n headers: RawHttpHeaders & DocumentTranslationGetTranslationStatus200Headers;\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 DocumentTranslationGetTranslationStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetTranslationStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationCancelTranslation200Response extends HttpResponse {\n status: \"200\";\n body: TranslationStatusOutput;\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 DocumentTranslationCancelTranslation401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationCancelTranslation404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationCancelTranslation429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationCancelTranslation500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationCancelTranslation503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetDocumentsStatus200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetDocumentsStatus200Response extends HttpResponse {\n status: \"200\";\n body: DocumentsStatusOutput;\n headers: RawHttpHeaders & DocumentTranslationGetDocumentsStatus200Headers;\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 DocumentTranslationGetDocumentsStatus400Response extends HttpResponse {\n status: \"400\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetDocumentsStatus401Response extends HttpResponse {\n status: \"401\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetDocumentsStatus404Response extends HttpResponse {\n status: \"404\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetDocumentsStatus429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetDocumentsStatus500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetDocumentsStatus503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetSupportedDocumentFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetSupportedDocumentFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormatsOutput;\n headers: RawHttpHeaders & DocumentTranslationGetSupportedDocumentFormats200Headers;\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 DocumentTranslationGetSupportedDocumentFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetSupportedDocumentFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetSupportedDocumentFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetSupportedGlossaryFormats200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\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 DocumentTranslationGetSupportedGlossaryFormats200Response extends HttpResponse {\n status: \"200\";\n body: SupportedFileFormatsOutput;\n headers: RawHttpHeaders & DocumentTranslationGetSupportedGlossaryFormats200Headers;\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 DocumentTranslationGetSupportedGlossaryFormats429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetSupportedGlossaryFormats500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\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 DocumentTranslationGetSupportedGlossaryFormats503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\n}\n\nexport interface DocumentTranslationGetSupportedStorageSources200Headers {\n /** Indicates how long to wait before making a new request. */\n \"retry-after\"?: number;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface DocumentTranslationGetSupportedStorageSources200Response extends HttpResponse {\n status: \"200\";\n body: SupportedStorageSourcesOutput;\n headers: RawHttpHeaders & DocumentTranslationGetSupportedStorageSources200Headers;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface DocumentTranslationGetSupportedStorageSources429Response extends HttpResponse {\n status: \"429\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface DocumentTranslationGetSupportedStorageSources500Response extends HttpResponse {\n status: \"500\";\n body: TranslationErrorResponseOutput;\n}\n\n/** Returns a list of storage sources/options supported by the Document Translation service. */\nexport interface DocumentTranslationGetSupportedStorageSources503Response extends HttpResponse {\n status: \"503\";\n body: TranslationErrorResponseOutput;\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-beta.1",
6
+ "version": "1.0.0-beta.2",
7
7
  "keywords": [
8
8
  "node",
9
9
  "azure",
@@ -13,18 +13,16 @@
13
13
  "isomorphic"
14
14
  ],
15
15
  "license": "MIT",
16
- "main": "./dist/index.js",
17
- "module": "./dist-esm/src/index.js",
18
- "types": "./types/ai-document-translator.d.ts",
19
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/documenttranslator/ai-document-translator/README.md",
16
+ "main": "./dist/commonjs/index.js",
17
+ "module": "./dist/esm/index.js",
18
+ "types": "./dist/commonjs/index.d.ts",
19
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/documenttranslator/ai-document-translator/README.md",
20
20
  "repository": "github:Azure/azure-sdk-for-js",
21
21
  "bugs": {
22
22
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
23
23
  },
24
24
  "files": [
25
25
  "dist/",
26
- "dist-esm/src/",
27
- "types/ai-document-translator.d.ts",
28
26
  "README.md",
29
27
  "LICENSE"
30
28
  ],
@@ -41,7 +39,7 @@
41
39
  ]
42
40
  },
43
41
  "engines": {
44
- "node": ">=8.0.0"
42
+ "node": ">=18.0.0"
45
43
  },
46
44
  "//sampleConfiguration": {
47
45
  "productName": "Azure Document Translator rest",
@@ -51,85 +49,102 @@
51
49
  "azure-translator"
52
50
  ],
53
51
  "requiredResources": {
54
- "Azure Cognitive Services instance": "https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account"
52
+ "Azure Cognitive Services instance": "https://learn.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account"
55
53
  }
56
54
  },
57
- "browser": {
58
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
59
- },
60
55
  "scripts": {
61
- "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
62
- "regenerate": "autorest --typescript swagger/README.md && npm run format",
63
- "build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
64
- "build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
56
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
57
+ "build:browser": "dev-tool run build-package && dev-tool run bundle",
58
+ "build:debug": "dev-tool run build-package && dev-tool run bundle && dev-tool run extract-api",
59
+ "build:node": "dev-tool run build-package && dev-tool run bundle",
65
60
  "build:samples": "echo Obsolete.",
66
- "build:test": "tsc -p . && rollup -c 2>&1",
67
- "build": "tsc -p . && rollup -c 2>&1 && api-extractor run --local",
68
- "build:debug": "tsc -p . && rollup -c 2>&1 && api-extractor run --local",
69
- "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
70
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
61
+ "build:test": "dev-tool run build-package && dev-tool run bundle",
62
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
63
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
71
64
  "execute:samples": "dev-tool samples run samples-dev",
72
- "extract-api": "tsc -p . && api-extractor run --local",
73
- "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
74
- "integration-test:browser": "karma start --single-run",
75
- "integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 5000000 --full-trace \"dist-esm/test/{,!(browser)/**/}*.spec.js\"",
65
+ "extract-api": "dev-tool run build-package && dev-tool run extract-api",
66
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
67
+ "generate:client": "autorest --typescript swagger/README.md && npm run format",
76
68
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
77
- "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
78
- "lint": "eslint package.json api-extractor.json src test --ext .ts",
69
+ "integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
70
+ "integration-test:node": "dev-tool run test:vitest --esm",
71
+ "lint": "eslint package.json api-extractor.json src test",
72
+ "lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
79
73
  "pack": "npm pack 2>&1",
80
- "prebuild": "npm run clean",
74
+ "test": "npm run clean && npm run build:test && npm run unit-test",
81
75
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
82
76
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
83
- "test": "npm run clean && npm run build:test && npm run unit-test",
84
- "unit-test:browser": "karma start --single-run",
85
- "unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
86
77
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
87
- "docs": "typedoc --excludePrivate --excludeExternals --out ./dist/docs ./src"
78
+ "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
79
+ "unit-test:node": "dev-tool run test:vitest",
80
+ "update-snippets": "dev-tool run update-snippets"
88
81
  },
89
82
  "sideEffects": false,
90
83
  "autoPublish": false,
91
84
  "dependencies": {
92
- "@azure/core-auth": "^1.3.0",
93
- "@azure-rest/core-client": "1.0.0-beta.1",
94
- "@azure/core-rest-pipeline": "^1.0.0",
95
- "@azure/logger": "^1.0.0",
96
- "tslib": "^2.0.0"
85
+ "@azure-rest/core-client": "^2.3.1",
86
+ "@azure-tools/test-recorder": "^3.0.0",
87
+ "@azure/abort-controller": "^2.1.2",
88
+ "@azure/core-auth": "^1.9.0",
89
+ "@azure/core-lro": "^3.0.0",
90
+ "@azure/core-rest-pipeline": "^1.18.2",
91
+ "@azure/logger": "^1.1.4",
92
+ "tslib": "^2.8.1"
97
93
  },
98
94
  "devDependencies": {
95
+ "@azure-tools/test-credential": "^2.0.0",
96
+ "@azure-tools/test-recorder": "^4.1.0",
97
+ "@azure-tools/test-utils-vitest": "^1.0.0",
99
98
  "@azure/dev-tool": "^1.0.0",
100
99
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
101
- "@azure/identity": "^1.1.0",
102
- "@azure/test-utils-recorder": "^1.0.0",
103
- "@microsoft/api-extractor": "7.13.2",
104
- "@types/chai": "^4.1.6",
105
- "@types/mocha": "^7.0.2",
106
- "@types/node": "^8.0.0",
107
- "chai": "^4.2.0",
108
- "cross-env": "^7.0.2",
109
- "dotenv": "^8.2.0",
110
- "eslint": "^7.15.0",
111
- "karma-chrome-launcher": "^3.0.0",
112
- "karma-coverage": "^2.0.0",
113
- "karma-edge-launcher": "^0.4.2",
114
- "karma-env-preprocessor": "^0.1.1",
115
- "karma-firefox-launcher": "^1.1.0",
116
- "karma-ie-launcher": "^1.0.0",
117
- "karma-json-preprocessor": "^0.3.3",
118
- "karma-json-to-file-reporter": "^1.0.1",
119
- "karma-junit-reporter": "^2.0.1",
120
- "karma-mocha-reporter": "^2.2.5",
121
- "karma-mocha": "^2.0.1",
122
- "karma-source-map-support": "~1.4.0",
123
- "karma-sourcemap-loader": "^0.3.8",
124
- "karma": "^6.2.0",
125
- "mocha-junit-reporter": "^1.18.0",
126
- "mocha": "^7.1.1",
127
- "nyc": "^14.0.0",
128
- "prettier": "2.2.1",
129
- "rimraf": "^3.0.0",
130
- "rollup": "^1.16.3",
131
- "source-map-support": "^0.5.9",
132
- "typedoc": "0.15.2",
133
- "typescript": "~4.2.0"
134
- }
100
+ "@azure/identity": "^4.6.0",
101
+ "@types/node": "^18.0.0",
102
+ "@vitest/browser": "^3.0.3",
103
+ "@vitest/coverage-istanbul": "^3.0.3",
104
+ "dotenv": "^16.0.0",
105
+ "eslint": "^9.9.0",
106
+ "playwright": "^1.50.1",
107
+ "typescript": "~5.7.2",
108
+ "vitest": "^3.0.3"
109
+ },
110
+ "type": "module",
111
+ "tshy": {
112
+ "project": "./tsconfig.src.json",
113
+ "exports": {
114
+ "./package.json": "./package.json",
115
+ ".": "./src/index.ts"
116
+ },
117
+ "dialects": [
118
+ "esm",
119
+ "commonjs"
120
+ ],
121
+ "esmDialects": [
122
+ "browser",
123
+ "react-native"
124
+ ],
125
+ "selfLink": false
126
+ },
127
+ "browser": "./dist/browser/index.js",
128
+ "exports": {
129
+ "./package.json": "./package.json",
130
+ ".": {
131
+ "browser": {
132
+ "types": "./dist/browser/index.d.ts",
133
+ "default": "./dist/browser/index.js"
134
+ },
135
+ "react-native": {
136
+ "types": "./dist/react-native/index.d.ts",
137
+ "default": "./dist/react-native/index.js"
138
+ },
139
+ "import": {
140
+ "types": "./dist/esm/index.d.ts",
141
+ "default": "./dist/esm/index.js"
142
+ },
143
+ "require": {
144
+ "types": "./dist/commonjs/index.d.ts",
145
+ "default": "./dist/commonjs/index.js"
146
+ }
147
+ }
148
+ },
149
+ "react-native": "./dist/react-native/index.js"
135
150
  }
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # Release History
2
-
3
- ## 1.0.0-beta.1 (2021-04-22)
4
-
5
- - First release of package, see README.md for details.
package/dist/index.js DELETED
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- var coreClient = require('@azure-rest/core-client');
4
-
5
- // Copyright (c) Microsoft Corporation.
6
- function DocumentTranslator(endpoint, credentials, options = {}) {
7
- var _a;
8
- const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/translator/text/batch/v1.0-preview.1`;
9
- options = Object.assign(Object.assign({}, options), { credentials: {
10
- scopes: ["https://cognitiveservices.azure.com/.default"],
11
- apiKeyHeaderName: "Ocp-Apim-Subscription-Key",
12
- } });
13
- return coreClient.getClient(baseUrl, credentials, options);
14
- }
15
-
16
- // Copyright (c) Microsoft Corporation.
17
-
18
- module.exports = DocumentTranslator;
19
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
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 StartTranslationParameters,\n GetTranslationsStatusParameters,\n GetDocumentStatusParameters,\n GetTranslationStatusParameters,\n CancelTranslationParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n} from \"./parameters\";\nimport {\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\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} from \"./responses\";\nimport { getClient, ClientOptions, Client } 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-preview.1`;\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;SAsRwB,kBAAkB,CACxC,QAAgB,EAChB,WAA4C,EAC5C,UAAyB,EAAE;;IAE3B,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,OAAO,mCAAI,GAAG,QAAQ,uCAAuC,CAAC;IACtF,OAAO,mCACF,OAAO,KACV,WAAW,EAAE;YACX,MAAM,EAAE,CAAC,8CAA8C,CAAC;YACxD,gBAAgB,EAAE,2BAA2B;SAC9C,GACF,CAAC;IAEF,OAAOA,oBAAS,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAA6B,CAAC;AAC9E;;ACrSA,uCAAuC;;;;"}
@@ -1,7 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * @internal
5
- */
6
- export const SDK_VERSION = "1.0.0-beta.1";
7
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
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.1\";\n"]}
@@ -1,13 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { getClient } from "@azure-rest/core-client";
4
- export default function DocumentTranslator(endpoint, credentials, options = {}) {
5
- var _a;
6
- const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/translator/text/batch/v1.0-preview.1`;
7
- options = Object.assign(Object.assign({}, options), { credentials: {
8
- scopes: ["https://cognitiveservices.azure.com/.default"],
9
- apiKeyHeaderName: "Ocp-Apim-Subscription-Key",
10
- } });
11
- return getClient(baseUrl, credentials, options);
12
- }
13
- //# sourceMappingURL=documentTranslator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentTranslator.js","sourceRoot":"","sources":["../../src/documentTranslator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgElC,OAAO,EAAE,SAAS,EAAyB,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,uCAAuC,CAAC;IACtF,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 StartTranslationParameters,\n GetTranslationsStatusParameters,\n GetDocumentStatusParameters,\n GetTranslationStatusParameters,\n CancelTranslationParameters,\n GetDocumentsStatusParameters,\n GetSupportedDocumentFormatsParameters,\n GetSupportedGlossaryFormatsParameters,\n GetSupportedStorageSourcesParameters,\n} from \"./parameters\";\nimport {\n StartTranslation202Response,\n StartTranslation400Response,\n StartTranslation401Response,\n StartTranslation429Response,\n StartTranslation500Response,\n StartTranslation503Response,\n GetTranslationsStatus200Response,\n GetTranslationsStatus400Response,\n GetTranslationsStatus401Response,\n GetTranslationsStatus429Response,\n GetTranslationsStatus500Response,\n GetTranslationsStatus503Response,\n GetDocumentStatus200Response,\n GetDocumentStatus401Response,\n GetDocumentStatus404Response,\n GetDocumentStatus429Response,\n GetDocumentStatus500Response,\n GetDocumentStatus503Response,\n GetTranslationStatus200Response,\n GetTranslationStatus401Response,\n GetTranslationStatus404Response,\n GetTranslationStatus429Response,\n GetTranslationStatus500Response,\n GetTranslationStatus503Response,\n CancelTranslation200Response,\n CancelTranslation401Response,\n CancelTranslation404Response,\n CancelTranslation429Response,\n CancelTranslation500Response,\n CancelTranslation503Response,\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} from \"./responses\";\nimport { getClient, ClientOptions, Client } 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-preview.1`;\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,13 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * A rest library for working with the Azure Document Translator service.
5
- * @packageDocumentation
6
- */
7
- import DocumentTranslator from "./documentTranslator";
8
- export * from "./documentTranslator";
9
- export * from "./models";
10
- export * from "./parameters";
11
- export * from "./responses";
12
- export default DocumentTranslator;
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=parameters.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=responses.js.map