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

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 (224) hide show
  1. package/CHANGELOG.md +263 -0
  2. package/LICENSE +21 -0
  3. package/README.md +133 -7
  4. package/dist/browser/clientDefinitions.d.ts +175 -0
  5. package/dist/browser/clientDefinitions.d.ts.map +1 -0
  6. package/dist/browser/clientDefinitions.js +4 -0
  7. package/dist/browser/clientDefinitions.js.map +1 -0
  8. package/dist/browser/documentIntelligence.d.ts +16 -0
  9. package/dist/browser/documentIntelligence.d.ts.map +1 -0
  10. package/dist/browser/documentIntelligence.js +44 -0
  11. package/dist/browser/documentIntelligence.js.map +1 -0
  12. package/dist/browser/index.d.ts +13 -0
  13. package/dist/browser/index.d.ts.map +1 -0
  14. package/dist/browser/index.js +15 -0
  15. package/dist/browser/index.js.map +1 -0
  16. package/dist/browser/isUnexpected.d.ts +36 -0
  17. package/dist/browser/isUnexpected.d.ts.map +1 -0
  18. package/{dist-esm/src → dist/browser}/isUnexpected.js +18 -7
  19. package/dist/browser/isUnexpected.js.map +1 -0
  20. package/dist/browser/logger.d.ts +2 -0
  21. package/dist/browser/logger.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/logger.js +1 -1
  23. package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
  24. package/dist/browser/models.d.ts +254 -0
  25. package/dist/browser/models.d.ts.map +1 -0
  26. package/dist/browser/models.js +4 -0
  27. package/dist/browser/models.js.map +1 -0
  28. package/dist/browser/outputModels.d.ts +914 -0
  29. package/dist/browser/outputModels.d.ts.map +1 -0
  30. package/dist/browser/outputModels.js +4 -0
  31. package/dist/browser/outputModels.js.map +1 -0
  32. package/dist/browser/package.json +3 -0
  33. package/dist/browser/paginateHelper.d.ts +68 -0
  34. package/dist/browser/paginateHelper.d.ts.map +1 -0
  35. package/dist/browser/paginateHelper.js +167 -0
  36. package/dist/browser/paginateHelper.js.map +1 -0
  37. package/dist/browser/parameters.d.ts +414 -0
  38. package/dist/browser/parameters.d.ts.map +1 -0
  39. package/dist/browser/parameters.js +4 -0
  40. package/dist/browser/parameters.js.map +1 -0
  41. package/dist/browser/pollingHelper.d.ts +40 -0
  42. package/dist/browser/pollingHelper.d.ts.map +1 -0
  43. package/dist/browser/pollingHelper.js +80 -0
  44. package/dist/browser/pollingHelper.js.map +1 -0
  45. package/dist/browser/responses.d.ts +473 -0
  46. package/dist/browser/responses.d.ts.map +1 -0
  47. package/dist/browser/responses.js +4 -0
  48. package/dist/browser/responses.js.map +1 -0
  49. package/dist/browser/utils.d.ts +5 -0
  50. package/dist/browser/utils.d.ts.map +1 -0
  51. package/dist/browser/utils.js +33 -0
  52. package/dist/browser/utils.js.map +1 -0
  53. package/dist/commonjs/clientDefinitions.d.ts +175 -0
  54. package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
  55. package/dist/commonjs/clientDefinitions.js +5 -0
  56. package/dist/commonjs/clientDefinitions.js.map +1 -0
  57. package/dist/commonjs/documentIntelligence.d.ts +16 -0
  58. package/dist/commonjs/documentIntelligence.d.ts.map +1 -0
  59. package/dist/commonjs/documentIntelligence.js +47 -0
  60. package/dist/commonjs/documentIntelligence.js.map +1 -0
  61. package/dist/commonjs/index.d.ts +13 -0
  62. package/dist/commonjs/index.d.ts.map +1 -0
  63. package/dist/commonjs/index.js +18 -0
  64. package/dist/commonjs/index.js.map +1 -0
  65. package/dist/commonjs/isUnexpected.d.ts +36 -0
  66. package/dist/commonjs/isUnexpected.d.ts.map +1 -0
  67. package/dist/commonjs/isUnexpected.js +107 -0
  68. package/dist/commonjs/isUnexpected.js.map +1 -0
  69. package/dist/commonjs/logger.d.ts +2 -0
  70. package/dist/commonjs/logger.d.ts.map +1 -0
  71. package/dist/commonjs/logger.js +8 -0
  72. package/dist/commonjs/logger.js.map +1 -0
  73. package/dist/commonjs/models.d.ts +254 -0
  74. package/dist/commonjs/models.d.ts.map +1 -0
  75. package/dist/commonjs/models.js +5 -0
  76. package/dist/commonjs/models.js.map +1 -0
  77. package/dist/commonjs/outputModels.d.ts +914 -0
  78. package/dist/commonjs/outputModels.d.ts.map +1 -0
  79. package/dist/commonjs/outputModels.js +5 -0
  80. package/dist/commonjs/outputModels.js.map +1 -0
  81. package/dist/commonjs/package.json +3 -0
  82. package/dist/commonjs/paginateHelper.d.ts +68 -0
  83. package/dist/commonjs/paginateHelper.d.ts.map +1 -0
  84. package/dist/commonjs/paginateHelper.js +170 -0
  85. package/dist/commonjs/paginateHelper.js.map +1 -0
  86. package/dist/commonjs/parameters.d.ts +414 -0
  87. package/dist/commonjs/parameters.d.ts.map +1 -0
  88. package/dist/commonjs/parameters.js +5 -0
  89. package/dist/commonjs/parameters.js.map +1 -0
  90. package/dist/commonjs/pollingHelper.d.ts +40 -0
  91. package/dist/commonjs/pollingHelper.d.ts.map +1 -0
  92. package/dist/commonjs/pollingHelper.js +84 -0
  93. package/dist/commonjs/pollingHelper.js.map +1 -0
  94. package/dist/commonjs/responses.d.ts +473 -0
  95. package/dist/commonjs/responses.d.ts.map +1 -0
  96. package/dist/commonjs/responses.js +5 -0
  97. package/dist/commonjs/responses.js.map +1 -0
  98. package/dist/commonjs/tsdoc-metadata.json +11 -0
  99. package/dist/commonjs/utils.d.ts +5 -0
  100. package/dist/commonjs/utils.d.ts.map +1 -0
  101. package/dist/commonjs/utils.js +36 -0
  102. package/dist/commonjs/utils.js.map +1 -0
  103. package/dist/esm/clientDefinitions.d.ts +175 -0
  104. package/dist/esm/clientDefinitions.d.ts.map +1 -0
  105. package/dist/esm/clientDefinitions.js +4 -0
  106. package/dist/esm/clientDefinitions.js.map +1 -0
  107. package/dist/esm/documentIntelligence.d.ts +16 -0
  108. package/dist/esm/documentIntelligence.d.ts.map +1 -0
  109. package/dist/esm/documentIntelligence.js +44 -0
  110. package/dist/esm/documentIntelligence.js.map +1 -0
  111. package/dist/esm/index.d.ts +13 -0
  112. package/dist/esm/index.d.ts.map +1 -0
  113. package/dist/esm/index.js +15 -0
  114. package/dist/esm/index.js.map +1 -0
  115. package/dist/esm/isUnexpected.d.ts +36 -0
  116. package/dist/esm/isUnexpected.d.ts.map +1 -0
  117. package/dist/esm/isUnexpected.js +104 -0
  118. package/dist/esm/isUnexpected.js.map +1 -0
  119. package/dist/esm/logger.d.ts +2 -0
  120. package/dist/esm/logger.d.ts.map +1 -0
  121. package/dist/esm/logger.js +5 -0
  122. package/dist/esm/logger.js.map +1 -0
  123. package/dist/esm/models.d.ts +254 -0
  124. package/dist/esm/models.d.ts.map +1 -0
  125. package/dist/esm/models.js +4 -0
  126. package/dist/esm/models.js.map +1 -0
  127. package/dist/esm/outputModels.d.ts +914 -0
  128. package/dist/esm/outputModels.d.ts.map +1 -0
  129. package/dist/esm/outputModels.js +4 -0
  130. package/dist/esm/outputModels.js.map +1 -0
  131. package/dist/esm/package.json +3 -0
  132. package/dist/esm/paginateHelper.d.ts +68 -0
  133. package/dist/esm/paginateHelper.d.ts.map +1 -0
  134. package/dist/esm/paginateHelper.js +167 -0
  135. package/dist/esm/paginateHelper.js.map +1 -0
  136. package/dist/esm/parameters.d.ts +414 -0
  137. package/dist/esm/parameters.d.ts.map +1 -0
  138. package/dist/esm/parameters.js +4 -0
  139. package/dist/esm/parameters.js.map +1 -0
  140. package/dist/esm/pollingHelper.d.ts +40 -0
  141. package/dist/esm/pollingHelper.d.ts.map +1 -0
  142. package/dist/esm/pollingHelper.js +80 -0
  143. package/dist/esm/pollingHelper.js.map +1 -0
  144. package/dist/esm/responses.d.ts +473 -0
  145. package/dist/esm/responses.d.ts.map +1 -0
  146. package/dist/esm/responses.js +4 -0
  147. package/dist/esm/responses.js.map +1 -0
  148. package/dist/esm/utils.d.ts +5 -0
  149. package/dist/esm/utils.d.ts.map +1 -0
  150. package/dist/esm/utils.js +33 -0
  151. package/dist/esm/utils.js.map +1 -0
  152. package/dist/react-native/clientDefinitions.d.ts +175 -0
  153. package/dist/react-native/clientDefinitions.d.ts.map +1 -0
  154. package/dist/react-native/clientDefinitions.js +4 -0
  155. package/dist/react-native/clientDefinitions.js.map +1 -0
  156. package/dist/react-native/documentIntelligence.d.ts +16 -0
  157. package/dist/react-native/documentIntelligence.d.ts.map +1 -0
  158. package/dist/react-native/documentIntelligence.js +44 -0
  159. package/dist/react-native/documentIntelligence.js.map +1 -0
  160. package/dist/react-native/index.d.ts +13 -0
  161. package/dist/react-native/index.d.ts.map +1 -0
  162. package/dist/react-native/index.js +15 -0
  163. package/dist/react-native/index.js.map +1 -0
  164. package/dist/react-native/isUnexpected.d.ts +36 -0
  165. package/dist/react-native/isUnexpected.d.ts.map +1 -0
  166. package/dist/react-native/isUnexpected.js +104 -0
  167. package/dist/react-native/isUnexpected.js.map +1 -0
  168. package/dist/react-native/logger.d.ts +2 -0
  169. package/dist/react-native/logger.d.ts.map +1 -0
  170. package/dist/react-native/logger.js +5 -0
  171. package/dist/react-native/logger.js.map +1 -0
  172. package/dist/react-native/models.d.ts +254 -0
  173. package/dist/react-native/models.d.ts.map +1 -0
  174. package/dist/react-native/models.js +4 -0
  175. package/dist/react-native/models.js.map +1 -0
  176. package/dist/react-native/outputModels.d.ts +914 -0
  177. package/dist/react-native/outputModels.d.ts.map +1 -0
  178. package/dist/react-native/outputModels.js +4 -0
  179. package/dist/react-native/outputModels.js.map +1 -0
  180. package/dist/react-native/package.json +3 -0
  181. package/dist/react-native/paginateHelper.d.ts +68 -0
  182. package/dist/react-native/paginateHelper.d.ts.map +1 -0
  183. package/dist/react-native/paginateHelper.js +167 -0
  184. package/dist/react-native/paginateHelper.js.map +1 -0
  185. package/dist/react-native/parameters.d.ts +414 -0
  186. package/dist/react-native/parameters.d.ts.map +1 -0
  187. package/dist/react-native/parameters.js +4 -0
  188. package/dist/react-native/parameters.js.map +1 -0
  189. package/dist/react-native/pollingHelper.d.ts +40 -0
  190. package/dist/react-native/pollingHelper.d.ts.map +1 -0
  191. package/dist/react-native/pollingHelper.js +80 -0
  192. package/dist/react-native/pollingHelper.js.map +1 -0
  193. package/dist/react-native/responses.d.ts +473 -0
  194. package/dist/react-native/responses.d.ts.map +1 -0
  195. package/dist/react-native/responses.js +4 -0
  196. package/dist/react-native/responses.js.map +1 -0
  197. package/dist/react-native/utils.d.ts +5 -0
  198. package/dist/react-native/utils.d.ts.map +1 -0
  199. package/dist/react-native/utils.js +33 -0
  200. package/dist/react-native/utils.js.map +1 -0
  201. package/package.json +108 -92
  202. package/review/ai-document-intelligence.api.md +866 -225
  203. package/dist/index.js +0 -252
  204. package/dist/index.js.map +0 -1
  205. package/dist-esm/src/clientDefinitions.js +0 -4
  206. package/dist-esm/src/clientDefinitions.js.map +0 -1
  207. package/dist-esm/src/documentIntelligence.js +0 -30
  208. package/dist-esm/src/documentIntelligence.js.map +0 -1
  209. package/dist-esm/src/index.js +0 -14
  210. package/dist-esm/src/index.js.map +0 -1
  211. package/dist-esm/src/isUnexpected.js.map +0 -1
  212. package/dist-esm/src/models.js +0 -4
  213. package/dist-esm/src/models.js.map +0 -1
  214. package/dist-esm/src/outputModels.js +0 -4
  215. package/dist-esm/src/outputModels.js.map +0 -1
  216. package/dist-esm/src/paginateHelper.js +0 -70
  217. package/dist-esm/src/paginateHelper.js.map +0 -1
  218. package/dist-esm/src/parameters.js +0 -4
  219. package/dist-esm/src/parameters.js.map +0 -1
  220. package/dist-esm/src/pollingHelper.js +0 -43
  221. package/dist-esm/src/pollingHelper.js.map +0 -1
  222. package/dist-esm/src/responses.js +0 -4
  223. package/dist-esm/src/responses.js.map +0 -1
  224. package/types/ai-document-intelligence.d.ts +0 -2003
@@ -0,0 +1,473 @@
1
+ import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
+ import type { HttpResponse } from "@azure-rest/core-client";
3
+ import type { PagedDocumentIntelligenceOperationDetailsOutput, DocumentIntelligenceErrorResponseOutput, DocumentModelBuildOperationDetailsOutput, DocumentModelComposeOperationDetailsOutput, DocumentModelCopyToOperationDetailsOutput, DocumentClassifierCopyToOperationDetailsOutput, DocumentClassifierBuildOperationDetailsOutput, DocumentIntelligenceOperationDetailsOutput, DocumentIntelligenceResourceDetailsOutput, AnalyzeOperationOutput, AnalyzeBatchOperationOutput, PagedAnalyzeBatchOperationOutput, DocumentModelDetailsOutput, ModelCopyAuthorizationOutput, PagedDocumentModelDetailsOutput, PagedDocumentClassifierDetailsOutput, DocumentClassifierDetailsOutput, ClassifierCopyAuthorizationOutput } from "./outputModels.js";
4
+ export interface ListOperations200Headers {
5
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
6
+ "x-ms-client-request-id"?: string;
7
+ }
8
+ /** The request has succeeded. */
9
+ export interface ListOperations200Response extends HttpResponse {
10
+ status: "200";
11
+ body: PagedDocumentIntelligenceOperationDetailsOutput;
12
+ headers: RawHttpHeaders & ListOperations200Headers;
13
+ }
14
+ export interface ListOperationsDefaultResponse extends HttpResponse {
15
+ status: string;
16
+ body: DocumentIntelligenceErrorResponseOutput;
17
+ }
18
+ export interface GetDocumentModelBuildOperation200Headers {
19
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
20
+ "x-ms-client-request-id"?: string;
21
+ }
22
+ /** The request has succeeded. */
23
+ export interface GetDocumentModelBuildOperation200Response extends HttpResponse {
24
+ status: "200";
25
+ body: DocumentModelBuildOperationDetailsOutput;
26
+ headers: RawHttpHeaders & GetDocumentModelBuildOperation200Headers;
27
+ }
28
+ export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
29
+ status: string;
30
+ body: DocumentIntelligenceErrorResponseOutput;
31
+ }
32
+ export interface GetDocumentModelComposeOperation200Headers {
33
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
34
+ "x-ms-client-request-id"?: string;
35
+ }
36
+ /** The request has succeeded. */
37
+ export interface GetDocumentModelComposeOperation200Response extends HttpResponse {
38
+ status: "200";
39
+ body: DocumentModelComposeOperationDetailsOutput;
40
+ headers: RawHttpHeaders & GetDocumentModelComposeOperation200Headers;
41
+ }
42
+ export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
43
+ status: string;
44
+ body: DocumentIntelligenceErrorResponseOutput;
45
+ }
46
+ export interface GetDocumentModelCopyToOperation200Headers {
47
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
48
+ "x-ms-client-request-id"?: string;
49
+ }
50
+ /** The request has succeeded. */
51
+ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse {
52
+ status: "200";
53
+ body: DocumentModelCopyToOperationDetailsOutput;
54
+ headers: RawHttpHeaders & GetDocumentModelCopyToOperation200Headers;
55
+ }
56
+ export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
57
+ status: string;
58
+ body: DocumentIntelligenceErrorResponseOutput;
59
+ }
60
+ export interface GetDocumentClassifierCopyToOperation200Headers {
61
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
62
+ "x-ms-client-request-id"?: string;
63
+ }
64
+ /** The request has succeeded. */
65
+ export interface GetDocumentClassifierCopyToOperation200Response extends HttpResponse {
66
+ status: "200";
67
+ body: DocumentClassifierCopyToOperationDetailsOutput;
68
+ headers: RawHttpHeaders & GetDocumentClassifierCopyToOperation200Headers;
69
+ }
70
+ export interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {
71
+ status: string;
72
+ body: DocumentIntelligenceErrorResponseOutput;
73
+ }
74
+ export interface GetDocumentClassifierBuildOperation200Headers {
75
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
76
+ "x-ms-client-request-id"?: string;
77
+ }
78
+ /** The request has succeeded. */
79
+ export interface GetDocumentClassifierBuildOperation200Response extends HttpResponse {
80
+ status: "200";
81
+ body: DocumentClassifierBuildOperationDetailsOutput;
82
+ headers: RawHttpHeaders & GetDocumentClassifierBuildOperation200Headers;
83
+ }
84
+ export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
85
+ status: string;
86
+ body: DocumentIntelligenceErrorResponseOutput;
87
+ }
88
+ export interface GetOperation200Headers {
89
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
90
+ "x-ms-client-request-id"?: string;
91
+ }
92
+ /** The request has succeeded. */
93
+ export interface GetOperation200Response extends HttpResponse {
94
+ status: "200";
95
+ body: DocumentIntelligenceOperationDetailsOutput;
96
+ headers: RawHttpHeaders & GetOperation200Headers;
97
+ }
98
+ export interface GetOperationDefaultResponse extends HttpResponse {
99
+ status: string;
100
+ body: DocumentIntelligenceErrorResponseOutput;
101
+ }
102
+ /** The request has succeeded. */
103
+ export interface GetResourceDetails200Response extends HttpResponse {
104
+ status: "200";
105
+ body: DocumentIntelligenceResourceDetailsOutput;
106
+ }
107
+ export interface GetResourceDetailsDefaultResponse extends HttpResponse {
108
+ status: string;
109
+ body: DocumentIntelligenceErrorResponseOutput;
110
+ }
111
+ /** The request has succeeded. */
112
+ export interface GetAnalyzeResult200Response extends HttpResponse {
113
+ status: "200";
114
+ body: AnalyzeOperationOutput;
115
+ }
116
+ export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
117
+ status: string;
118
+ body: DocumentIntelligenceErrorResponseOutput;
119
+ }
120
+ export interface GetAnalyzeResultPdf200Headers {
121
+ /** Response content type. */
122
+ "content-type": "application/pdf";
123
+ }
124
+ /** The request has succeeded. */
125
+ export interface GetAnalyzeResultPdf200Response extends HttpResponse {
126
+ status: "200";
127
+ /** Value may contain any sequence of octets */
128
+ body: Uint8Array;
129
+ headers: RawHttpHeaders & GetAnalyzeResultPdf200Headers;
130
+ }
131
+ export interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {
132
+ status: string;
133
+ body: DocumentIntelligenceErrorResponseOutput;
134
+ }
135
+ export interface GetAnalyzeResultFigure200Headers {
136
+ /** Response content type. */
137
+ "content-type": "image/png";
138
+ }
139
+ /** The request has succeeded. */
140
+ export interface GetAnalyzeResultFigure200Response extends HttpResponse {
141
+ status: "200";
142
+ /** Value may contain any sequence of octets */
143
+ body: Uint8Array;
144
+ headers: RawHttpHeaders & GetAnalyzeResultFigure200Headers;
145
+ }
146
+ export interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {
147
+ status: string;
148
+ body: DocumentIntelligenceErrorResponseOutput;
149
+ }
150
+ /** There is no content to send for this request, but the headers may be useful. */
151
+ export interface DeleteAnalyzeResult204Response extends HttpResponse {
152
+ status: "204";
153
+ }
154
+ export interface DeleteAnalyzeResultDefaultResponse extends HttpResponse {
155
+ status: string;
156
+ body: DocumentIntelligenceErrorResponseOutput;
157
+ }
158
+ export interface AnalyzeDocumentFromStream202Headers {
159
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
160
+ "retry-after"?: number;
161
+ "operation-location": string;
162
+ }
163
+ /** The request has been accepted for processing, but processing has not yet completed. */
164
+ export interface AnalyzeDocumentFromStream202Response extends HttpResponse {
165
+ status: "202";
166
+ headers: RawHttpHeaders & AnalyzeDocumentFromStream202Headers;
167
+ }
168
+ export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
169
+ status: string;
170
+ body: DocumentIntelligenceErrorResponseOutput;
171
+ }
172
+ /** The final response for long-running analyzeDocumentFromStream operation */
173
+ export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
174
+ status: "200";
175
+ }
176
+ export interface AnalyzeDocument202Headers {
177
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
178
+ "retry-after"?: number;
179
+ "operation-location": string;
180
+ }
181
+ /** The request has been accepted for processing, but processing has not yet completed. */
182
+ export interface AnalyzeDocument202Response extends HttpResponse {
183
+ status: "202";
184
+ headers: RawHttpHeaders & AnalyzeDocument202Headers;
185
+ }
186
+ export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
187
+ status: string;
188
+ body: DocumentIntelligenceErrorResponseOutput;
189
+ }
190
+ /** The final response for long-running analyzeDocument operation */
191
+ export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
192
+ status: "200";
193
+ }
194
+ /** The request has succeeded. */
195
+ export interface GetAnalyzeBatchResult200Response extends HttpResponse {
196
+ status: "200";
197
+ body: AnalyzeBatchOperationOutput;
198
+ }
199
+ export interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {
200
+ status: string;
201
+ body: DocumentIntelligenceErrorResponseOutput;
202
+ }
203
+ export interface AnalyzeBatchDocuments202Headers {
204
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
205
+ "retry-after"?: number;
206
+ "operation-location": string;
207
+ }
208
+ /** The request has been accepted for processing, but processing has not yet completed. */
209
+ export interface AnalyzeBatchDocuments202Response extends HttpResponse {
210
+ status: "202";
211
+ headers: RawHttpHeaders & AnalyzeBatchDocuments202Headers;
212
+ }
213
+ export interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {
214
+ status: string;
215
+ body: DocumentIntelligenceErrorResponseOutput;
216
+ }
217
+ /** The final response for long-running analyzeBatchDocuments operation */
218
+ export interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {
219
+ status: "200";
220
+ }
221
+ /** The request has succeeded. */
222
+ export interface ListAnalyzeBatchResults200Response extends HttpResponse {
223
+ status: "200";
224
+ body: PagedAnalyzeBatchOperationOutput;
225
+ }
226
+ export interface ListAnalyzeBatchResultsDefaultResponse extends HttpResponse {
227
+ status: string;
228
+ body: DocumentIntelligenceErrorResponseOutput;
229
+ }
230
+ /** There is no content to send for this request, but the headers may be useful. */
231
+ export interface DeleteAnalyzeBatchResult204Response extends HttpResponse {
232
+ status: "204";
233
+ }
234
+ export interface DeleteAnalyzeBatchResultDefaultResponse extends HttpResponse {
235
+ status: string;
236
+ body: DocumentIntelligenceErrorResponseOutput;
237
+ }
238
+ export interface GetModel200Headers {
239
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
240
+ "x-ms-client-request-id"?: string;
241
+ }
242
+ /** The request has succeeded. */
243
+ export interface GetModel200Response extends HttpResponse {
244
+ status: "200";
245
+ body: DocumentModelDetailsOutput;
246
+ headers: RawHttpHeaders & GetModel200Headers;
247
+ }
248
+ export interface GetModelDefaultResponse extends HttpResponse {
249
+ status: string;
250
+ body: DocumentIntelligenceErrorResponseOutput;
251
+ }
252
+ export interface BuildModel202Headers {
253
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
254
+ "retry-after"?: number;
255
+ "operation-location": string;
256
+ }
257
+ /** The request has been accepted for processing, but processing has not yet completed. */
258
+ export interface BuildModel202Response extends HttpResponse {
259
+ status: "202";
260
+ headers: RawHttpHeaders & BuildModel202Headers;
261
+ }
262
+ export interface BuildModelDefaultResponse extends HttpResponse {
263
+ status: string;
264
+ body: DocumentIntelligenceErrorResponseOutput;
265
+ }
266
+ /** The final response for long-running buildModel operation */
267
+ export interface BuildModelLogicalResponse extends HttpResponse {
268
+ status: "200";
269
+ }
270
+ export interface ComposeModel202Headers {
271
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
272
+ "retry-after"?: number;
273
+ "operation-location": string;
274
+ }
275
+ /** The request has been accepted for processing, but processing has not yet completed. */
276
+ export interface ComposeModel202Response extends HttpResponse {
277
+ status: "202";
278
+ headers: RawHttpHeaders & ComposeModel202Headers;
279
+ }
280
+ export interface ComposeModelDefaultResponse extends HttpResponse {
281
+ status: string;
282
+ body: DocumentIntelligenceErrorResponseOutput;
283
+ }
284
+ /** The final response for long-running composeModel operation */
285
+ export interface ComposeModelLogicalResponse extends HttpResponse {
286
+ status: "200";
287
+ }
288
+ /** The request has succeeded. */
289
+ export interface AuthorizeModelCopy200Response extends HttpResponse {
290
+ status: "200";
291
+ body: ModelCopyAuthorizationOutput;
292
+ }
293
+ export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
294
+ status: string;
295
+ body: DocumentIntelligenceErrorResponseOutput;
296
+ }
297
+ export interface CopyModelTo202Headers {
298
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
299
+ "retry-after"?: number;
300
+ "operation-location": string;
301
+ }
302
+ /** The request has been accepted for processing, but processing has not yet completed. */
303
+ export interface CopyModelTo202Response extends HttpResponse {
304
+ status: "202";
305
+ headers: RawHttpHeaders & CopyModelTo202Headers;
306
+ }
307
+ export interface CopyModelToDefaultResponse extends HttpResponse {
308
+ status: string;
309
+ body: DocumentIntelligenceErrorResponseOutput;
310
+ }
311
+ /** The final response for long-running copyModelTo operation */
312
+ export interface CopyModelToLogicalResponse extends HttpResponse {
313
+ status: "200";
314
+ }
315
+ export interface ListModels200Headers {
316
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
317
+ "x-ms-client-request-id"?: string;
318
+ }
319
+ /** The request has succeeded. */
320
+ export interface ListModels200Response extends HttpResponse {
321
+ status: "200";
322
+ body: PagedDocumentModelDetailsOutput;
323
+ headers: RawHttpHeaders & ListModels200Headers;
324
+ }
325
+ export interface ListModelsDefaultResponse extends HttpResponse {
326
+ status: string;
327
+ body: DocumentIntelligenceErrorResponseOutput;
328
+ }
329
+ export interface DeleteModel204Headers {
330
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
331
+ "x-ms-client-request-id"?: string;
332
+ }
333
+ /** There is no content to send for this request, but the headers may be useful. */
334
+ export interface DeleteModel204Response extends HttpResponse {
335
+ status: "204";
336
+ headers: RawHttpHeaders & DeleteModel204Headers;
337
+ }
338
+ export interface DeleteModelDefaultResponse extends HttpResponse {
339
+ status: string;
340
+ body: DocumentIntelligenceErrorResponseOutput;
341
+ }
342
+ export interface BuildClassifier202Headers {
343
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
344
+ "retry-after"?: number;
345
+ "operation-location": string;
346
+ }
347
+ /** The request has been accepted for processing, but processing has not yet completed. */
348
+ export interface BuildClassifier202Response extends HttpResponse {
349
+ status: "202";
350
+ headers: RawHttpHeaders & BuildClassifier202Headers;
351
+ }
352
+ export interface BuildClassifierDefaultResponse extends HttpResponse {
353
+ status: string;
354
+ body: DocumentIntelligenceErrorResponseOutput;
355
+ }
356
+ /** The final response for long-running buildClassifier operation */
357
+ export interface BuildClassifierLogicalResponse extends HttpResponse {
358
+ status: "200";
359
+ }
360
+ export interface ListClassifiers200Headers {
361
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
362
+ "x-ms-client-request-id"?: string;
363
+ }
364
+ /** The request has succeeded. */
365
+ export interface ListClassifiers200Response extends HttpResponse {
366
+ status: "200";
367
+ body: PagedDocumentClassifierDetailsOutput;
368
+ headers: RawHttpHeaders & ListClassifiers200Headers;
369
+ }
370
+ export interface ListClassifiersDefaultResponse extends HttpResponse {
371
+ status: string;
372
+ body: DocumentIntelligenceErrorResponseOutput;
373
+ }
374
+ export interface GetClassifier200Headers {
375
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
376
+ "x-ms-client-request-id"?: string;
377
+ }
378
+ /** The request has succeeded. */
379
+ export interface GetClassifier200Response extends HttpResponse {
380
+ status: "200";
381
+ body: DocumentClassifierDetailsOutput;
382
+ headers: RawHttpHeaders & GetClassifier200Headers;
383
+ }
384
+ export interface GetClassifierDefaultResponse extends HttpResponse {
385
+ status: string;
386
+ body: DocumentIntelligenceErrorResponseOutput;
387
+ }
388
+ export interface DeleteClassifier204Headers {
389
+ /** An opaque, globally-unique, client-generated string identifier for the request. */
390
+ "x-ms-client-request-id"?: string;
391
+ }
392
+ /** There is no content to send for this request, but the headers may be useful. */
393
+ export interface DeleteClassifier204Response extends HttpResponse {
394
+ status: "204";
395
+ headers: RawHttpHeaders & DeleteClassifier204Headers;
396
+ }
397
+ export interface DeleteClassifierDefaultResponse extends HttpResponse {
398
+ status: string;
399
+ body: DocumentIntelligenceErrorResponseOutput;
400
+ }
401
+ export interface ClassifyDocumentFromStream202Headers {
402
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
403
+ "retry-after"?: number;
404
+ "operation-location": string;
405
+ }
406
+ /** The request has been accepted for processing, but processing has not yet completed. */
407
+ export interface ClassifyDocumentFromStream202Response extends HttpResponse {
408
+ status: "202";
409
+ headers: RawHttpHeaders & ClassifyDocumentFromStream202Headers;
410
+ }
411
+ export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
412
+ status: string;
413
+ body: DocumentIntelligenceErrorResponseOutput;
414
+ }
415
+ /** The final response for long-running classifyDocumentFromStream operation */
416
+ export interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {
417
+ status: "200";
418
+ }
419
+ export interface ClassifyDocument202Headers {
420
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
421
+ "retry-after"?: number;
422
+ "operation-location": string;
423
+ }
424
+ /** The request has been accepted for processing, but processing has not yet completed. */
425
+ export interface ClassifyDocument202Response extends HttpResponse {
426
+ status: "202";
427
+ headers: RawHttpHeaders & ClassifyDocument202Headers;
428
+ }
429
+ export interface ClassifyDocumentDefaultResponse extends HttpResponse {
430
+ status: string;
431
+ body: DocumentIntelligenceErrorResponseOutput;
432
+ }
433
+ /** The final response for long-running classifyDocument operation */
434
+ export interface ClassifyDocumentLogicalResponse extends HttpResponse {
435
+ status: "200";
436
+ }
437
+ /** The request has succeeded. */
438
+ export interface GetClassifyResult200Response extends HttpResponse {
439
+ status: "200";
440
+ body: AnalyzeOperationOutput;
441
+ }
442
+ export interface GetClassifyResultDefaultResponse extends HttpResponse {
443
+ status: string;
444
+ body: DocumentIntelligenceErrorResponseOutput;
445
+ }
446
+ /** The request has succeeded. */
447
+ export interface AuthorizeClassifierCopy200Response extends HttpResponse {
448
+ status: "200";
449
+ body: ClassifierCopyAuthorizationOutput;
450
+ }
451
+ export interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {
452
+ status: string;
453
+ body: DocumentIntelligenceErrorResponseOutput;
454
+ }
455
+ export interface CopyClassifierTo202Headers {
456
+ /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
457
+ "retry-after"?: number;
458
+ "operation-location": string;
459
+ }
460
+ /** The request has been accepted for processing, but processing has not yet completed. */
461
+ export interface CopyClassifierTo202Response extends HttpResponse {
462
+ status: "202";
463
+ headers: RawHttpHeaders & CopyClassifierTo202Headers;
464
+ }
465
+ export interface CopyClassifierToDefaultResponse extends HttpResponse {
466
+ status: string;
467
+ body: DocumentIntelligenceErrorResponseOutput;
468
+ }
469
+ /** The final response for long-running copyClassifierTo operation */
470
+ export interface CopyClassifierToLogicalResponse extends HttpResponse {
471
+ status: "200";
472
+ }
473
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EACV,+CAA+C,EAC/C,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,EAC1C,yCAAyC,EACzC,8CAA8C,EAC9C,6CAA6C,EAC7C,0CAA0C,EAC1C,yCAAyC,EACzC,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,4BAA4B,EAC5B,+BAA+B,EAC/B,oCAAoC,EACpC,+BAA+B,EAC/B,iCAAiC,EAClC,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,wBAAwB;IACvC,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,+CAA+C,CAAC;IACtD,OAAO,EAAE,cAAc,GAAG,wBAAwB,CAAC;CACpD;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uCAAuC,CAAC;CAC/C;AAED,MAAM,WAAW,wCAAwC;IACvD,sFAAsF;IACtF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED,iCAAiC;AACjC,MAAM,WAAW,yCAA0C,SAAQ,YAAY;IAC7E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,wCAAwC,CAAC;IAC/C,OAAO,EAAE,cAAc,GAAG,wCAAwC,CAAC;CACpE;AAED,MAAM,WAAW,6CAA8C,SAAQ,YAA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AAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,KAAK,CAAC;CACf"}
@@ -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 PagedDocumentIntelligenceOperationDetailsOutput,\n DocumentIntelligenceErrorResponseOutput,\n DocumentModelBuildOperationDetailsOutput,\n DocumentModelComposeOperationDetailsOutput,\n DocumentModelCopyToOperationDetailsOutput,\n DocumentClassifierCopyToOperationDetailsOutput,\n DocumentClassifierBuildOperationDetailsOutput,\n DocumentIntelligenceOperationDetailsOutput,\n DocumentIntelligenceResourceDetailsOutput,\n AnalyzeOperationOutput,\n AnalyzeBatchOperationOutput,\n PagedAnalyzeBatchOperationOutput,\n DocumentModelDetailsOutput,\n ModelCopyAuthorizationOutput,\n PagedDocumentModelDetailsOutput,\n PagedDocumentClassifierDetailsOutput,\n DocumentClassifierDetailsOutput,\n ClassifierCopyAuthorizationOutput,\n} from \"./outputModels.js\";\n\nexport interface ListOperations200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ListOperations200Response extends HttpResponse {\n status: \"200\";\n body: PagedDocumentIntelligenceOperationDetailsOutput;\n headers: RawHttpHeaders & ListOperations200Headers;\n}\n\nexport interface ListOperationsDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetDocumentModelBuildOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDocumentModelBuildOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentModelBuildOperationDetailsOutput;\n headers: RawHttpHeaders & GetDocumentModelBuildOperation200Headers;\n}\n\nexport interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetDocumentModelComposeOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDocumentModelComposeOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentModelComposeOperationDetailsOutput;\n headers: RawHttpHeaders & GetDocumentModelComposeOperation200Headers;\n}\n\nexport interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetDocumentModelCopyToOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDocumentModelCopyToOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentModelCopyToOperationDetailsOutput;\n headers: RawHttpHeaders & GetDocumentModelCopyToOperation200Headers;\n}\n\nexport interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetDocumentClassifierCopyToOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDocumentClassifierCopyToOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentClassifierCopyToOperationDetailsOutput;\n headers: RawHttpHeaders & GetDocumentClassifierCopyToOperation200Headers;\n}\n\nexport interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetDocumentClassifierBuildOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetDocumentClassifierBuildOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentClassifierBuildOperationDetailsOutput;\n headers: RawHttpHeaders & GetDocumentClassifierBuildOperation200Headers;\n}\n\nexport interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetOperation200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetOperation200Response extends HttpResponse {\n status: \"200\";\n body: DocumentIntelligenceOperationDetailsOutput;\n headers: RawHttpHeaders & GetOperation200Headers;\n}\n\nexport interface GetOperationDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The request has succeeded. */\nexport interface GetResourceDetails200Response extends HttpResponse {\n status: \"200\";\n body: DocumentIntelligenceResourceDetailsOutput;\n}\n\nexport interface GetResourceDetailsDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The request has succeeded. */\nexport interface GetAnalyzeResult200Response extends HttpResponse {\n status: \"200\";\n body: AnalyzeOperationOutput;\n}\n\nexport interface GetAnalyzeResultDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetAnalyzeResultPdf200Headers {\n /** Response content type. */\n \"content-type\": \"application/pdf\";\n}\n\n/** The request has succeeded. */\nexport interface GetAnalyzeResultPdf200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & GetAnalyzeResultPdf200Headers;\n}\n\nexport interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetAnalyzeResultFigure200Headers {\n /** Response content type. */\n \"content-type\": \"image/png\";\n}\n\n/** The request has succeeded. */\nexport interface GetAnalyzeResultFigure200Response extends HttpResponse {\n status: \"200\";\n /** Value may contain any sequence of octets */\n body: Uint8Array;\n headers: RawHttpHeaders & GetAnalyzeResultFigure200Headers;\n}\n\nexport interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteAnalyzeResult204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteAnalyzeResultDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface AnalyzeDocumentFromStream202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface AnalyzeDocumentFromStream202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & AnalyzeDocumentFromStream202Headers;\n}\n\nexport interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running analyzeDocumentFromStream operation */\nexport interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\nexport interface AnalyzeDocument202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface AnalyzeDocument202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & AnalyzeDocument202Headers;\n}\n\nexport interface AnalyzeDocumentDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running analyzeDocument operation */\nexport interface AnalyzeDocumentLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** The request has succeeded. */\nexport interface GetAnalyzeBatchResult200Response extends HttpResponse {\n status: \"200\";\n body: AnalyzeBatchOperationOutput;\n}\n\nexport interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface AnalyzeBatchDocuments202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface AnalyzeBatchDocuments202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & AnalyzeBatchDocuments202Headers;\n}\n\nexport interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running analyzeBatchDocuments operation */\nexport interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** The request has succeeded. */\nexport interface ListAnalyzeBatchResults200Response extends HttpResponse {\n status: \"200\";\n body: PagedAnalyzeBatchOperationOutput;\n}\n\nexport interface ListAnalyzeBatchResultsDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteAnalyzeBatchResult204Response extends HttpResponse {\n status: \"204\";\n}\n\nexport interface DeleteAnalyzeBatchResultDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetModel200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetModel200Response extends HttpResponse {\n status: \"200\";\n body: DocumentModelDetailsOutput;\n headers: RawHttpHeaders & GetModel200Headers;\n}\n\nexport interface GetModelDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface BuildModel202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface BuildModel202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & BuildModel202Headers;\n}\n\nexport interface BuildModelDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running buildModel operation */\nexport interface BuildModelLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\nexport interface ComposeModel202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface ComposeModel202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & ComposeModel202Headers;\n}\n\nexport interface ComposeModelDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running composeModel operation */\nexport interface ComposeModelLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** The request has succeeded. */\nexport interface AuthorizeModelCopy200Response extends HttpResponse {\n status: \"200\";\n body: ModelCopyAuthorizationOutput;\n}\n\nexport interface AuthorizeModelCopyDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface CopyModelTo202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface CopyModelTo202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & CopyModelTo202Headers;\n}\n\nexport interface CopyModelToDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running copyModelTo operation */\nexport interface CopyModelToLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\nexport interface ListModels200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ListModels200Response extends HttpResponse {\n status: \"200\";\n body: PagedDocumentModelDetailsOutput;\n headers: RawHttpHeaders & ListModels200Headers;\n}\n\nexport interface ListModelsDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface DeleteModel204Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteModel204Response extends HttpResponse {\n status: \"204\";\n headers: RawHttpHeaders & DeleteModel204Headers;\n}\n\nexport interface DeleteModelDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface BuildClassifier202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface BuildClassifier202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & BuildClassifier202Headers;\n}\n\nexport interface BuildClassifierDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running buildClassifier operation */\nexport interface BuildClassifierLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\nexport interface ListClassifiers200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface ListClassifiers200Response extends HttpResponse {\n status: \"200\";\n body: PagedDocumentClassifierDetailsOutput;\n headers: RawHttpHeaders & ListClassifiers200Headers;\n}\n\nexport interface ListClassifiersDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface GetClassifier200Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** The request has succeeded. */\nexport interface GetClassifier200Response extends HttpResponse {\n status: \"200\";\n body: DocumentClassifierDetailsOutput;\n headers: RawHttpHeaders & GetClassifier200Headers;\n}\n\nexport interface GetClassifierDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface DeleteClassifier204Headers {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\n/** There is no content to send for this request, but the headers may be useful. */\nexport interface DeleteClassifier204Response extends HttpResponse {\n status: \"204\";\n headers: RawHttpHeaders & DeleteClassifier204Headers;\n}\n\nexport interface DeleteClassifierDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface ClassifyDocumentFromStream202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface ClassifyDocumentFromStream202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & ClassifyDocumentFromStream202Headers;\n}\n\nexport interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running classifyDocumentFromStream operation */\nexport interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\nexport interface ClassifyDocument202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface ClassifyDocument202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & ClassifyDocument202Headers;\n}\n\nexport interface ClassifyDocumentDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running classifyDocument operation */\nexport interface ClassifyDocumentLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n\n/** The request has succeeded. */\nexport interface GetClassifyResult200Response extends HttpResponse {\n status: \"200\";\n body: AnalyzeOperationOutput;\n}\n\nexport interface GetClassifyResultDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The request has succeeded. */\nexport interface AuthorizeClassifierCopy200Response extends HttpResponse {\n status: \"200\";\n body: ClassifierCopyAuthorizationOutput;\n}\n\nexport interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\nexport interface CopyClassifierTo202Headers {\n /** The Retry-After header can indicate how long the client should wait before polling the operation status. */\n \"retry-after\"?: number;\n \"operation-location\": string;\n}\n\n/** The request has been accepted for processing, but processing has not yet completed. */\nexport interface CopyClassifierTo202Response extends HttpResponse {\n status: \"202\";\n headers: RawHttpHeaders & CopyClassifierTo202Headers;\n}\n\nexport interface CopyClassifierToDefaultResponse extends HttpResponse {\n status: string;\n body: DocumentIntelligenceErrorResponseOutput;\n}\n\n/** The final response for long-running copyClassifierTo operation */\nexport interface CopyClassifierToLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n"]}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Converts a NodeJS.ReadableStream to a Uint8Array.
3
+ */
4
+ export declare function streamToUint8Array(stream: NodeJS.ReadableStream): Promise<Uint8Array>;
5
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CA0BrF"}
@@ -0,0 +1,33 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { RestError } from "@azure/core-rest-pipeline";
4
+ /**
5
+ * Converts a NodeJS.ReadableStream to a Uint8Array.
6
+ */
7
+ export function streamToUint8Array(stream) {
8
+ return new Promise((resolve, reject) => {
9
+ const chunks = [];
10
+ stream.on("data", (chunk) => {
11
+ if (Buffer.isBuffer(chunk)) {
12
+ chunks.push(chunk);
13
+ }
14
+ else {
15
+ chunks.push(Buffer.from(chunk));
16
+ }
17
+ });
18
+ stream.on("end", () => {
19
+ resolve(new Uint8Array(Buffer.concat(chunks)));
20
+ });
21
+ stream.on("error", (e) => {
22
+ if (e && (e === null || e === void 0 ? void 0 : e.name) === "AbortError") {
23
+ reject(e);
24
+ }
25
+ else {
26
+ reject(new RestError(`Error reading response as text: ${e.message}`, {
27
+ code: RestError.PARSE_ERROR,
28
+ }));
29
+ }
30
+ });
31
+ });
32
+ }
33
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAA6B;IAC9D,OAAO,IAAI,OAAO,CAAa,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACjD,MAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAC1B,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAClC,CAAC;QACH,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;YACpB,OAAO,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;YACvB,IAAI,CAAC,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,MAAK,YAAY,EAAE,CAAC;gBAClC,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC;iBAAM,CAAC;gBACN,MAAM,CACJ,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC,OAAO,EAAE,EAAE;oBAC5D,IAAI,EAAE,SAAS,CAAC,WAAW;iBAC5B,CAAC,CACH,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Converts a NodeJS.ReadableStream to a Uint8Array.\n */\nexport function streamToUint8Array(stream: NodeJS.ReadableStream): Promise<Uint8Array> {\n return new Promise<Uint8Array>((resolve, reject) => {\n const chunks: Buffer[] = [];\n\n stream.on(\"data\", (chunk) => {\n if (Buffer.isBuffer(chunk)) {\n chunks.push(chunk);\n } else {\n chunks.push(Buffer.from(chunk));\n }\n });\n stream.on(\"end\", () => {\n resolve(new Uint8Array(Buffer.concat(chunks)));\n });\n stream.on(\"error\", (e) => {\n if (e && e?.name === \"AbortError\") {\n reject(e);\n } else {\n reject(\n new RestError(`Error reading response as text: ${e.message}`, {\n code: RestError.PARSE_ERROR,\n }),\n );\n }\n });\n });\n}\n"]}