@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,725 @@
1
+ import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import type { HttpResponse } from "@azure-rest/core-client";
3
+ import type { TranslationErrorResponseOutput, TranslationsStatusOutput, DocumentStatusOutput, TranslationStatusOutput, DocumentsStatusOutput, SupportedFileFormatsOutput, SupportedStorageSourcesOutput } from "./outputModels.js";
4
+ export interface DocumentTranslationStartTranslation202Headers {
5
+ /** Location of batch the operation */
6
+ "operation-location"?: string;
7
+ }
8
+ /**
9
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
10
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
11
+ *
12
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
13
+ *
14
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
15
+ *
16
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
17
+ * 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.
18
+ */
19
+ export interface DocumentTranslationStartTranslation202Response extends HttpResponse {
20
+ status: "202";
21
+ headers: RawHttpHeaders & DocumentTranslationStartTranslation202Headers;
22
+ }
23
+ /**
24
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
25
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
26
+ *
27
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
28
+ *
29
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
30
+ *
31
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
32
+ * 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.
33
+ */
34
+ export interface DocumentTranslationStartTranslation400Response extends HttpResponse {
35
+ status: "400";
36
+ body: TranslationErrorResponseOutput;
37
+ }
38
+ /**
39
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
40
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
41
+ *
42
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
43
+ *
44
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
45
+ *
46
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
47
+ * 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.
48
+ */
49
+ export interface DocumentTranslationStartTranslation401Response extends HttpResponse {
50
+ status: "401";
51
+ body: TranslationErrorResponseOutput;
52
+ }
53
+ /**
54
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
55
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
56
+ *
57
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
58
+ *
59
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
60
+ *
61
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
62
+ * 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.
63
+ */
64
+ export interface DocumentTranslationStartTranslation429Response extends HttpResponse {
65
+ status: "429";
66
+ body: TranslationErrorResponseOutput;
67
+ }
68
+ /**
69
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
70
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
71
+ *
72
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
73
+ *
74
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
75
+ *
76
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
77
+ * 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.
78
+ */
79
+ export interface DocumentTranslationStartTranslation500Response extends HttpResponse {
80
+ status: "500";
81
+ body: TranslationErrorResponseOutput;
82
+ }
83
+ /**
84
+ * Use this API to submit a bulk (batch) translation request to the Document Translation service.
85
+ * Each request can contain multiple documents and must contain a source and destination container for each document.
86
+ *
87
+ * The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name.
88
+ *
89
+ * Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated.
90
+ *
91
+ * If the glossary is invalid or unreachable during translation, an error is indicated in the document status.
92
+ * 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.
93
+ */
94
+ export interface DocumentTranslationStartTranslation503Response extends HttpResponse {
95
+ status: "503";
96
+ body: TranslationErrorResponseOutput;
97
+ }
98
+ export interface DocumentTranslationGetTranslationsStatus200Headers {
99
+ /** Indicates how long to wait before making a new request. */
100
+ "retry-after"?: number;
101
+ /** 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. */
102
+ etag?: string;
103
+ }
104
+ /**
105
+ * Returns a list of batch requests submitted and the status for each request.
106
+ * This list only contains batch requests submitted by the user (based on the resource).
107
+ *
108
+ * 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.
109
+ * The absence of a continuation token means that no additional pages are available.
110
+ *
111
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
112
+ *
113
+ * $top indicates the total number of records the user wants to be returned across all pages.
114
+ * $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.
115
+ * $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.
116
+ *
117
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
118
+ * The default sorting is descending by createdDateTimeUtc.
119
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
120
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
121
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
122
+ *
123
+ * 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.
124
+ *
125
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
126
+ * 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.
127
+ * This reduces the risk of the client making assumptions about the data returned.
128
+ */
129
+ export interface DocumentTranslationGetTranslationsStatus200Response extends HttpResponse {
130
+ status: "200";
131
+ body: TranslationsStatusOutput;
132
+ headers: RawHttpHeaders & DocumentTranslationGetTranslationsStatus200Headers;
133
+ }
134
+ /**
135
+ * Returns a list of batch requests submitted and the status for each request.
136
+ * This list only contains batch requests submitted by the user (based on the resource).
137
+ *
138
+ * 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.
139
+ * The absence of a continuation token means that no additional pages are available.
140
+ *
141
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
142
+ *
143
+ * $top indicates the total number of records the user wants to be returned across all pages.
144
+ * $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.
145
+ * $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.
146
+ *
147
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
148
+ * The default sorting is descending by createdDateTimeUtc.
149
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
150
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
151
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
152
+ *
153
+ * 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.
154
+ *
155
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
156
+ * 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.
157
+ * This reduces the risk of the client making assumptions about the data returned.
158
+ */
159
+ export interface DocumentTranslationGetTranslationsStatus400Response extends HttpResponse {
160
+ status: "400";
161
+ body: TranslationErrorResponseOutput;
162
+ }
163
+ /**
164
+ * Returns a list of batch requests submitted and the status for each request.
165
+ * This list only contains batch requests submitted by the user (based on the resource).
166
+ *
167
+ * 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.
168
+ * The absence of a continuation token means that no additional pages are available.
169
+ *
170
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
171
+ *
172
+ * $top indicates the total number of records the user wants to be returned across all pages.
173
+ * $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.
174
+ * $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.
175
+ *
176
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
177
+ * The default sorting is descending by createdDateTimeUtc.
178
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
179
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
180
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
181
+ *
182
+ * 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.
183
+ *
184
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
185
+ * 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.
186
+ * This reduces the risk of the client making assumptions about the data returned.
187
+ */
188
+ export interface DocumentTranslationGetTranslationsStatus401Response extends HttpResponse {
189
+ status: "401";
190
+ body: TranslationErrorResponseOutput;
191
+ }
192
+ /**
193
+ * Returns a list of batch requests submitted and the status for each request.
194
+ * This list only contains batch requests submitted by the user (based on the resource).
195
+ *
196
+ * 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.
197
+ * The absence of a continuation token means that no additional pages are available.
198
+ *
199
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
200
+ *
201
+ * $top indicates the total number of records the user wants to be returned across all pages.
202
+ * $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.
203
+ * $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.
204
+ *
205
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
206
+ * The default sorting is descending by createdDateTimeUtc.
207
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
208
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
209
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
210
+ *
211
+ * 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.
212
+ *
213
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
214
+ * 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.
215
+ * This reduces the risk of the client making assumptions about the data returned.
216
+ */
217
+ export interface DocumentTranslationGetTranslationsStatus429Response extends HttpResponse {
218
+ status: "429";
219
+ body: TranslationErrorResponseOutput;
220
+ }
221
+ /**
222
+ * Returns a list of batch requests submitted and the status for each request.
223
+ * This list only contains batch requests submitted by the user (based on the resource).
224
+ *
225
+ * 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.
226
+ * The absence of a continuation token means that no additional pages are available.
227
+ *
228
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
229
+ *
230
+ * $top indicates the total number of records the user wants to be returned across all pages.
231
+ * $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.
232
+ * $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.
233
+ *
234
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
235
+ * The default sorting is descending by createdDateTimeUtc.
236
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
237
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
238
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
239
+ *
240
+ * 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.
241
+ *
242
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
243
+ * 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.
244
+ * This reduces the risk of the client making assumptions about the data returned.
245
+ */
246
+ export interface DocumentTranslationGetTranslationsStatus500Response extends HttpResponse {
247
+ status: "500";
248
+ body: TranslationErrorResponseOutput;
249
+ }
250
+ /**
251
+ * Returns a list of batch requests submitted and the status for each request.
252
+ * This list only contains batch requests submitted by the user (based on the resource).
253
+ *
254
+ * 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.
255
+ * The absence of a continuation token means that no additional pages are available.
256
+ *
257
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
258
+ *
259
+ * $top indicates the total number of records the user wants to be returned across all pages.
260
+ * $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.
261
+ * $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.
262
+ *
263
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
264
+ * The default sorting is descending by createdDateTimeUtc.
265
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations.
266
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
267
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
268
+ *
269
+ * 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.
270
+ *
271
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
272
+ * 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.
273
+ * This reduces the risk of the client making assumptions about the data returned.
274
+ */
275
+ export interface DocumentTranslationGetTranslationsStatus503Response extends HttpResponse {
276
+ status: "503";
277
+ body: TranslationErrorResponseOutput;
278
+ }
279
+ export interface DocumentTranslationGetDocumentStatus200Headers {
280
+ /** Indicates how long to wait before making a new request. */
281
+ "retry-after"?: number;
282
+ /** 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. */
283
+ etag?: string;
284
+ }
285
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
286
+ export interface DocumentTranslationGetDocumentStatus200Response extends HttpResponse {
287
+ status: "200";
288
+ body: DocumentStatusOutput;
289
+ headers: RawHttpHeaders & DocumentTranslationGetDocumentStatus200Headers;
290
+ }
291
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
292
+ export interface DocumentTranslationGetDocumentStatus401Response extends HttpResponse {
293
+ status: "401";
294
+ body: TranslationErrorResponseOutput;
295
+ }
296
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
297
+ export interface DocumentTranslationGetDocumentStatus404Response extends HttpResponse {
298
+ status: "404";
299
+ body: TranslationErrorResponseOutput;
300
+ }
301
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
302
+ export interface DocumentTranslationGetDocumentStatus429Response extends HttpResponse {
303
+ status: "429";
304
+ body: TranslationErrorResponseOutput;
305
+ }
306
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
307
+ export interface DocumentTranslationGetDocumentStatus500Response extends HttpResponse {
308
+ status: "500";
309
+ body: TranslationErrorResponseOutput;
310
+ }
311
+ /** Returns the translation status for a specific document based on the request Id and document Id. */
312
+ export interface DocumentTranslationGetDocumentStatus503Response extends HttpResponse {
313
+ status: "503";
314
+ body: TranslationErrorResponseOutput;
315
+ }
316
+ export interface DocumentTranslationGetTranslationStatus200Headers {
317
+ /** Indicates how long to wait before making a new request. */
318
+ "retry-after"?: number;
319
+ /** 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. */
320
+ etag?: string;
321
+ }
322
+ /**
323
+ * Returns the status for a document translation request.
324
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
325
+ */
326
+ export interface DocumentTranslationGetTranslationStatus200Response extends HttpResponse {
327
+ status: "200";
328
+ body: TranslationStatusOutput;
329
+ headers: RawHttpHeaders & DocumentTranslationGetTranslationStatus200Headers;
330
+ }
331
+ /**
332
+ * Returns the status for a document translation request.
333
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
334
+ */
335
+ export interface DocumentTranslationGetTranslationStatus401Response extends HttpResponse {
336
+ status: "401";
337
+ body: TranslationErrorResponseOutput;
338
+ }
339
+ /**
340
+ * Returns the status for a document translation request.
341
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
342
+ */
343
+ export interface DocumentTranslationGetTranslationStatus404Response extends HttpResponse {
344
+ status: "404";
345
+ body: TranslationErrorResponseOutput;
346
+ }
347
+ /**
348
+ * Returns the status for a document translation request.
349
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
350
+ */
351
+ export interface DocumentTranslationGetTranslationStatus429Response extends HttpResponse {
352
+ status: "429";
353
+ body: TranslationErrorResponseOutput;
354
+ }
355
+ /**
356
+ * Returns the status for a document translation request.
357
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
358
+ */
359
+ export interface DocumentTranslationGetTranslationStatus500Response extends HttpResponse {
360
+ status: "500";
361
+ body: TranslationErrorResponseOutput;
362
+ }
363
+ /**
364
+ * Returns the status for a document translation request.
365
+ * The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
366
+ */
367
+ export interface DocumentTranslationGetTranslationStatus503Response extends HttpResponse {
368
+ status: "503";
369
+ body: TranslationErrorResponseOutput;
370
+ }
371
+ /**
372
+ * Cancel a currently processing or queued translation.
373
+ * Cancel a currently processing or queued translation.
374
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
375
+ * All documents that have completed translation will not be cancelled and will be charged.
376
+ * All pending documents will be cancelled if possible.
377
+ */
378
+ export interface DocumentTranslationCancelTranslation200Response extends HttpResponse {
379
+ status: "200";
380
+ body: TranslationStatusOutput;
381
+ }
382
+ /**
383
+ * Cancel a currently processing or queued translation.
384
+ * Cancel a currently processing or queued translation.
385
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
386
+ * All documents that have completed translation will not be cancelled and will be charged.
387
+ * All pending documents will be cancelled if possible.
388
+ */
389
+ export interface DocumentTranslationCancelTranslation401Response extends HttpResponse {
390
+ status: "401";
391
+ body: TranslationErrorResponseOutput;
392
+ }
393
+ /**
394
+ * Cancel a currently processing or queued translation.
395
+ * Cancel a currently processing or queued translation.
396
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
397
+ * All documents that have completed translation will not be cancelled and will be charged.
398
+ * All pending documents will be cancelled if possible.
399
+ */
400
+ export interface DocumentTranslationCancelTranslation404Response extends HttpResponse {
401
+ status: "404";
402
+ body: TranslationErrorResponseOutput;
403
+ }
404
+ /**
405
+ * Cancel a currently processing or queued translation.
406
+ * Cancel a currently processing or queued translation.
407
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
408
+ * All documents that have completed translation will not be cancelled and will be charged.
409
+ * All pending documents will be cancelled if possible.
410
+ */
411
+ export interface DocumentTranslationCancelTranslation429Response extends HttpResponse {
412
+ status: "429";
413
+ body: TranslationErrorResponseOutput;
414
+ }
415
+ /**
416
+ * Cancel a currently processing or queued translation.
417
+ * Cancel a currently processing or queued translation.
418
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
419
+ * All documents that have completed translation will not be cancelled and will be charged.
420
+ * All pending documents will be cancelled if possible.
421
+ */
422
+ export interface DocumentTranslationCancelTranslation500Response extends HttpResponse {
423
+ status: "500";
424
+ body: TranslationErrorResponseOutput;
425
+ }
426
+ /**
427
+ * Cancel a currently processing or queued translation.
428
+ * Cancel a currently processing or queued translation.
429
+ * A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned.
430
+ * All documents that have completed translation will not be cancelled and will be charged.
431
+ * All pending documents will be cancelled if possible.
432
+ */
433
+ export interface DocumentTranslationCancelTranslation503Response extends HttpResponse {
434
+ status: "503";
435
+ body: TranslationErrorResponseOutput;
436
+ }
437
+ export interface DocumentTranslationGetDocumentsStatus200Headers {
438
+ /** Indicates how long to wait before making a new request. */
439
+ "retry-after"?: number;
440
+ /** 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. */
441
+ etag?: string;
442
+ }
443
+ /**
444
+ * Returns the status for all documents in a batch document translation request.
445
+ *
446
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
447
+ * 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.
448
+ *
449
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
450
+ *
451
+ * $top indicates the total number of records the user wants to be returned across all pages.
452
+ * $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.
453
+ * $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.
454
+ *
455
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
456
+ * The default sorting is descending by createdDateTimeUtc.
457
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
458
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
459
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
460
+ *
461
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
462
+ * 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.
463
+ * This reduces the risk of the client making assumptions about the data returned.
464
+ */
465
+ export interface DocumentTranslationGetDocumentsStatus200Response extends HttpResponse {
466
+ status: "200";
467
+ body: DocumentsStatusOutput;
468
+ headers: RawHttpHeaders & DocumentTranslationGetDocumentsStatus200Headers;
469
+ }
470
+ /**
471
+ * Returns the status for all documents in a batch document translation request.
472
+ *
473
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
474
+ * 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.
475
+ *
476
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
477
+ *
478
+ * $top indicates the total number of records the user wants to be returned across all pages.
479
+ * $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.
480
+ * $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.
481
+ *
482
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
483
+ * The default sorting is descending by createdDateTimeUtc.
484
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
485
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
486
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
487
+ *
488
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
489
+ * 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.
490
+ * This reduces the risk of the client making assumptions about the data returned.
491
+ */
492
+ export interface DocumentTranslationGetDocumentsStatus400Response extends HttpResponse {
493
+ status: "400";
494
+ body: TranslationErrorResponseOutput;
495
+ }
496
+ /**
497
+ * Returns the status for all documents in a batch document translation request.
498
+ *
499
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
500
+ * 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.
501
+ *
502
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
503
+ *
504
+ * $top indicates the total number of records the user wants to be returned across all pages.
505
+ * $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.
506
+ * $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.
507
+ *
508
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
509
+ * The default sorting is descending by createdDateTimeUtc.
510
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
511
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
512
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
513
+ *
514
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
515
+ * 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.
516
+ * This reduces the risk of the client making assumptions about the data returned.
517
+ */
518
+ export interface DocumentTranslationGetDocumentsStatus401Response extends HttpResponse {
519
+ status: "401";
520
+ body: TranslationErrorResponseOutput;
521
+ }
522
+ /**
523
+ * Returns the status for all documents in a batch document translation request.
524
+ *
525
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
526
+ * 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.
527
+ *
528
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
529
+ *
530
+ * $top indicates the total number of records the user wants to be returned across all pages.
531
+ * $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.
532
+ * $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.
533
+ *
534
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
535
+ * The default sorting is descending by createdDateTimeUtc.
536
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
537
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
538
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
539
+ *
540
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
541
+ * 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.
542
+ * This reduces the risk of the client making assumptions about the data returned.
543
+ */
544
+ export interface DocumentTranslationGetDocumentsStatus404Response extends HttpResponse {
545
+ status: "404";
546
+ body: TranslationErrorResponseOutput;
547
+ }
548
+ /**
549
+ * Returns the status for all documents in a batch document translation request.
550
+ *
551
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
552
+ * 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.
553
+ *
554
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
555
+ *
556
+ * $top indicates the total number of records the user wants to be returned across all pages.
557
+ * $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.
558
+ * $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.
559
+ *
560
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
561
+ * The default sorting is descending by createdDateTimeUtc.
562
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
563
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
564
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
565
+ *
566
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
567
+ * 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.
568
+ * This reduces the risk of the client making assumptions about the data returned.
569
+ */
570
+ export interface DocumentTranslationGetDocumentsStatus429Response extends HttpResponse {
571
+ status: "429";
572
+ body: TranslationErrorResponseOutput;
573
+ }
574
+ /**
575
+ * Returns the status for all documents in a batch document translation request.
576
+ *
577
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
578
+ * 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.
579
+ *
580
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
581
+ *
582
+ * $top indicates the total number of records the user wants to be returned across all pages.
583
+ * $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.
584
+ * $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.
585
+ *
586
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
587
+ * The default sorting is descending by createdDateTimeUtc.
588
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
589
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
590
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
591
+ *
592
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
593
+ * 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.
594
+ * This reduces the risk of the client making assumptions about the data returned.
595
+ */
596
+ export interface DocumentTranslationGetDocumentsStatus500Response extends HttpResponse {
597
+ status: "500";
598
+ body: TranslationErrorResponseOutput;
599
+ }
600
+ /**
601
+ * Returns the status for all documents in a batch document translation request.
602
+ *
603
+ * If the number of documents in the response exceeds our paging limit, server-side paging is used.
604
+ * 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.
605
+ *
606
+ * $top, $skip and $maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection.
607
+ *
608
+ * $top indicates the total number of records the user wants to be returned across all pages.
609
+ * $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.
610
+ * $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.
611
+ *
612
+ * $orderBy query parameter can be used to sort the returned list (ex "$orderBy=createdDateTimeUtc asc" or "$orderBy=createdDateTimeUtc desc").
613
+ * The default sorting is descending by createdDateTimeUtc.
614
+ * Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents.
615
+ * createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by.
616
+ * The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd).
617
+ *
618
+ * When both $top and $skip are included, the server should first apply $skip and then $top on the collection.
619
+ * 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.
620
+ * This reduces the risk of the client making assumptions about the data returned.
621
+ */
622
+ export interface DocumentTranslationGetDocumentsStatus503Response extends HttpResponse {
623
+ status: "503";
624
+ body: TranslationErrorResponseOutput;
625
+ }
626
+ export interface DocumentTranslationGetSupportedDocumentFormats200Headers {
627
+ /** Indicates how long to wait before making a new request. */
628
+ "retry-after"?: number;
629
+ }
630
+ /**
631
+ * The list of supported document formats supported by the Document Translation service.
632
+ * The list includes the common file extension, as well as the content-type if using the upload API.
633
+ */
634
+ export interface DocumentTranslationGetSupportedDocumentFormats200Response extends HttpResponse {
635
+ status: "200";
636
+ body: SupportedFileFormatsOutput;
637
+ headers: RawHttpHeaders & DocumentTranslationGetSupportedDocumentFormats200Headers;
638
+ }
639
+ /**
640
+ * The list of supported document formats supported by the Document Translation service.
641
+ * The list includes the common file extension, as well as the content-type if using the upload API.
642
+ */
643
+ export interface DocumentTranslationGetSupportedDocumentFormats429Response extends HttpResponse {
644
+ status: "429";
645
+ body: TranslationErrorResponseOutput;
646
+ }
647
+ /**
648
+ * The list of supported document formats supported by the Document Translation service.
649
+ * The list includes the common file extension, as well as the content-type if using the upload API.
650
+ */
651
+ export interface DocumentTranslationGetSupportedDocumentFormats500Response extends HttpResponse {
652
+ status: "500";
653
+ body: TranslationErrorResponseOutput;
654
+ }
655
+ /**
656
+ * The list of supported document formats supported by the Document Translation service.
657
+ * The list includes the common file extension, as well as the content-type if using the upload API.
658
+ */
659
+ export interface DocumentTranslationGetSupportedDocumentFormats503Response extends HttpResponse {
660
+ status: "503";
661
+ body: TranslationErrorResponseOutput;
662
+ }
663
+ export interface DocumentTranslationGetSupportedGlossaryFormats200Headers {
664
+ /** Indicates how long to wait before making a new request. */
665
+ "retry-after"?: number;
666
+ }
667
+ /**
668
+ * The list of supported glossary formats supported by the Document Translation service.
669
+ * The list includes the common file extension used.
670
+ */
671
+ export interface DocumentTranslationGetSupportedGlossaryFormats200Response extends HttpResponse {
672
+ status: "200";
673
+ body: SupportedFileFormatsOutput;
674
+ headers: RawHttpHeaders & DocumentTranslationGetSupportedGlossaryFormats200Headers;
675
+ }
676
+ /**
677
+ * The list of supported glossary formats supported by the Document Translation service.
678
+ * The list includes the common file extension used.
679
+ */
680
+ export interface DocumentTranslationGetSupportedGlossaryFormats429Response extends HttpResponse {
681
+ status: "429";
682
+ body: TranslationErrorResponseOutput;
683
+ }
684
+ /**
685
+ * The list of supported glossary formats supported by the Document Translation service.
686
+ * The list includes the common file extension used.
687
+ */
688
+ export interface DocumentTranslationGetSupportedGlossaryFormats500Response extends HttpResponse {
689
+ status: "500";
690
+ body: TranslationErrorResponseOutput;
691
+ }
692
+ /**
693
+ * The list of supported glossary formats supported by the Document Translation service.
694
+ * The list includes the common file extension used.
695
+ */
696
+ export interface DocumentTranslationGetSupportedGlossaryFormats503Response extends HttpResponse {
697
+ status: "503";
698
+ body: TranslationErrorResponseOutput;
699
+ }
700
+ export interface DocumentTranslationGetSupportedStorageSources200Headers {
701
+ /** Indicates how long to wait before making a new request. */
702
+ "retry-after"?: number;
703
+ }
704
+ /** Returns a list of storage sources/options supported by the Document Translation service. */
705
+ export interface DocumentTranslationGetSupportedStorageSources200Response extends HttpResponse {
706
+ status: "200";
707
+ body: SupportedStorageSourcesOutput;
708
+ headers: RawHttpHeaders & DocumentTranslationGetSupportedStorageSources200Headers;
709
+ }
710
+ /** Returns a list of storage sources/options supported by the Document Translation service. */
711
+ export interface DocumentTranslationGetSupportedStorageSources429Response extends HttpResponse {
712
+ status: "429";
713
+ body: TranslationErrorResponseOutput;
714
+ }
715
+ /** Returns a list of storage sources/options supported by the Document Translation service. */
716
+ export interface DocumentTranslationGetSupportedStorageSources500Response extends HttpResponse {
717
+ status: "500";
718
+ body: TranslationErrorResponseOutput;
719
+ }
720
+ /** Returns a list of storage sources/options supported by the Document Translation service. */
721
+ export interface DocumentTranslationGetSupportedStorageSources503Response extends HttpResponse {
722
+ status: "503";
723
+ body: TranslationErrorResponseOutput;
724
+ }
725
+ //# sourceMappingURL=responses.d.ts.map