@azure-rest/ai-document-intelligence 1.0.0-beta.3 → 1.1.0-alpha.20250513.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/CHANGELOG.md +137 -0
  2. package/LICENSE +4 -4
  3. package/README.md +274 -75
  4. package/dist/browser/audience.d.ts +19 -0
  5. package/dist/browser/audience.d.ts.map +1 -0
  6. package/dist/browser/audience.js +22 -0
  7. package/dist/browser/audience.js.map +1 -0
  8. package/dist/browser/clientDefinitions.d.ts +18 -8
  9. package/dist/browser/clientDefinitions.d.ts.map +1 -1
  10. package/dist/browser/clientDefinitions.js +1 -1
  11. package/dist/browser/clientDefinitions.js.map +1 -1
  12. package/dist/browser/documentIntelligence.d.ts +3 -3
  13. package/dist/browser/documentIntelligence.d.ts.map +1 -1
  14. package/dist/browser/documentIntelligence.js +9 -4
  15. package/dist/browser/documentIntelligence.js.map +1 -1
  16. package/dist/browser/index.d.ts +2 -0
  17. package/dist/browser/index.d.ts.map +1 -1
  18. package/dist/browser/index.js +3 -1
  19. package/dist/browser/index.js.map +1 -1
  20. package/dist/browser/isUnexpected.d.ts +5 -2
  21. package/dist/browser/isUnexpected.d.ts.map +1 -1
  22. package/dist/browser/isUnexpected.js +4 -1
  23. package/dist/browser/isUnexpected.js.map +1 -1
  24. package/dist/browser/logger.js +1 -1
  25. package/dist/browser/logger.js.map +1 -1
  26. package/dist/browser/models.d.ts +5 -5
  27. package/dist/browser/models.d.ts.map +1 -1
  28. package/dist/browser/models.js +1 -1
  29. package/dist/browser/models.js.map +1 -1
  30. package/dist/browser/outputModels.d.ts +85 -58
  31. package/dist/browser/outputModels.d.ts.map +1 -1
  32. package/dist/browser/outputModels.js +1 -1
  33. package/dist/browser/outputModels.js.map +1 -1
  34. package/dist/browser/paginateHelper.d.ts +28 -3
  35. package/dist/browser/paginateHelper.d.ts.map +1 -1
  36. package/dist/browser/paginateHelper.js +99 -2
  37. package/dist/browser/paginateHelper.js.map +1 -1
  38. package/dist/browser/parameters.d.ts +108 -24
  39. package/dist/browser/parameters.d.ts.map +1 -1
  40. package/dist/browser/parameters.js +1 -1
  41. package/dist/browser/parameters.js.map +1 -1
  42. package/dist/browser/pollingHelper.d.ts +25 -73
  43. package/dist/browser/pollingHelper.d.ts.map +1 -1
  44. package/dist/browser/pollingHelper.js +13 -51
  45. package/dist/browser/pollingHelper.js.map +1 -1
  46. package/dist/browser/responses.d.ts +68 -43
  47. package/dist/browser/responses.d.ts.map +1 -1
  48. package/dist/browser/responses.js +1 -1
  49. package/dist/browser/responses.js.map +1 -1
  50. package/dist/browser/utils.d.ts +5 -0
  51. package/dist/browser/utils.d.ts.map +1 -0
  52. package/dist/browser/utils.js +33 -0
  53. package/dist/browser/utils.js.map +1 -0
  54. package/dist/commonjs/audience.d.ts +19 -0
  55. package/dist/commonjs/audience.d.ts.map +1 -0
  56. package/dist/commonjs/audience.js +25 -0
  57. package/dist/commonjs/audience.js.map +1 -0
  58. package/dist/commonjs/clientDefinitions.d.ts +18 -8
  59. package/dist/commonjs/clientDefinitions.d.ts.map +1 -1
  60. package/dist/commonjs/clientDefinitions.js +1 -1
  61. package/dist/commonjs/clientDefinitions.js.map +1 -1
  62. package/dist/commonjs/documentIntelligence.d.ts +3 -3
  63. package/dist/commonjs/documentIntelligence.d.ts.map +1 -1
  64. package/dist/commonjs/documentIntelligence.js +9 -4
  65. package/dist/commonjs/documentIntelligence.js.map +1 -1
  66. package/dist/commonjs/index.d.ts +2 -0
  67. package/dist/commonjs/index.d.ts.map +1 -1
  68. package/dist/commonjs/index.js +5 -1
  69. package/dist/commonjs/index.js.map +1 -1
  70. package/dist/commonjs/isUnexpected.d.ts +5 -2
  71. package/dist/commonjs/isUnexpected.d.ts.map +1 -1
  72. package/dist/commonjs/isUnexpected.js +4 -1
  73. package/dist/commonjs/isUnexpected.js.map +1 -1
  74. package/dist/commonjs/logger.js +1 -1
  75. package/dist/commonjs/logger.js.map +1 -1
  76. package/dist/commonjs/models.d.ts +5 -5
  77. package/dist/commonjs/models.d.ts.map +1 -1
  78. package/dist/commonjs/models.js +1 -1
  79. package/dist/commonjs/models.js.map +1 -1
  80. package/dist/commonjs/outputModels.d.ts +85 -58
  81. package/dist/commonjs/outputModels.d.ts.map +1 -1
  82. package/dist/commonjs/outputModels.js +1 -1
  83. package/dist/commonjs/outputModels.js.map +1 -1
  84. package/dist/commonjs/paginateHelper.d.ts +28 -3
  85. package/dist/commonjs/paginateHelper.d.ts.map +1 -1
  86. package/dist/commonjs/paginateHelper.js +100 -3
  87. package/dist/commonjs/paginateHelper.js.map +1 -1
  88. package/dist/commonjs/parameters.d.ts +108 -24
  89. package/dist/commonjs/parameters.d.ts.map +1 -1
  90. package/dist/commonjs/parameters.js +1 -1
  91. package/dist/commonjs/parameters.js.map +1 -1
  92. package/dist/commonjs/pollingHelper.d.ts +25 -73
  93. package/dist/commonjs/pollingHelper.d.ts.map +1 -1
  94. package/dist/commonjs/pollingHelper.js +13 -50
  95. package/dist/commonjs/pollingHelper.js.map +1 -1
  96. package/dist/commonjs/responses.d.ts +68 -43
  97. package/dist/commonjs/responses.d.ts.map +1 -1
  98. package/dist/commonjs/responses.js +1 -1
  99. package/dist/commonjs/responses.js.map +1 -1
  100. package/dist/commonjs/tsdoc-metadata.json +1 -1
  101. package/dist/commonjs/utils.d.ts +5 -0
  102. package/dist/commonjs/utils.d.ts.map +1 -0
  103. package/dist/commonjs/utils.js +36 -0
  104. package/dist/commonjs/utils.js.map +1 -0
  105. package/dist/esm/audience.d.ts +19 -0
  106. package/dist/esm/audience.d.ts.map +1 -0
  107. package/dist/esm/audience.js +22 -0
  108. package/dist/esm/audience.js.map +1 -0
  109. package/dist/esm/clientDefinitions.d.ts +18 -8
  110. package/dist/esm/clientDefinitions.d.ts.map +1 -1
  111. package/dist/esm/clientDefinitions.js +1 -1
  112. package/dist/esm/clientDefinitions.js.map +1 -1
  113. package/dist/esm/documentIntelligence.d.ts +3 -3
  114. package/dist/esm/documentIntelligence.d.ts.map +1 -1
  115. package/dist/esm/documentIntelligence.js +9 -4
  116. package/dist/esm/documentIntelligence.js.map +1 -1
  117. package/dist/esm/index.d.ts +2 -0
  118. package/dist/esm/index.d.ts.map +1 -1
  119. package/dist/esm/index.js +3 -1
  120. package/dist/esm/index.js.map +1 -1
  121. package/dist/esm/isUnexpected.d.ts +5 -2
  122. package/dist/esm/isUnexpected.d.ts.map +1 -1
  123. package/dist/esm/isUnexpected.js +4 -1
  124. package/dist/esm/isUnexpected.js.map +1 -1
  125. package/dist/esm/logger.js +1 -1
  126. package/dist/esm/logger.js.map +1 -1
  127. package/dist/esm/models.d.ts +5 -5
  128. package/dist/esm/models.d.ts.map +1 -1
  129. package/dist/esm/models.js +1 -1
  130. package/dist/esm/models.js.map +1 -1
  131. package/dist/esm/outputModels.d.ts +85 -58
  132. package/dist/esm/outputModels.d.ts.map +1 -1
  133. package/dist/esm/outputModels.js +1 -1
  134. package/dist/esm/outputModels.js.map +1 -1
  135. package/dist/esm/paginateHelper.d.ts +28 -3
  136. package/dist/esm/paginateHelper.d.ts.map +1 -1
  137. package/dist/esm/paginateHelper.js +99 -2
  138. package/dist/esm/paginateHelper.js.map +1 -1
  139. package/dist/esm/parameters.d.ts +108 -24
  140. package/dist/esm/parameters.d.ts.map +1 -1
  141. package/dist/esm/parameters.js +1 -1
  142. package/dist/esm/parameters.js.map +1 -1
  143. package/dist/esm/pollingHelper.d.ts +25 -73
  144. package/dist/esm/pollingHelper.d.ts.map +1 -1
  145. package/dist/esm/pollingHelper.js +13 -51
  146. package/dist/esm/pollingHelper.js.map +1 -1
  147. package/dist/esm/responses.d.ts +68 -43
  148. package/dist/esm/responses.d.ts.map +1 -1
  149. package/dist/esm/responses.js +1 -1
  150. package/dist/esm/responses.js.map +1 -1
  151. package/dist/esm/utils.d.ts +5 -0
  152. package/dist/esm/utils.d.ts.map +1 -0
  153. package/dist/esm/utils.js +33 -0
  154. package/dist/esm/utils.js.map +1 -0
  155. package/dist/react-native/audience.d.ts +19 -0
  156. package/dist/react-native/audience.d.ts.map +1 -0
  157. package/dist/react-native/audience.js +22 -0
  158. package/dist/react-native/audience.js.map +1 -0
  159. package/dist/react-native/clientDefinitions.d.ts +18 -8
  160. package/dist/react-native/clientDefinitions.d.ts.map +1 -1
  161. package/dist/react-native/clientDefinitions.js +1 -1
  162. package/dist/react-native/clientDefinitions.js.map +1 -1
  163. package/dist/react-native/documentIntelligence.d.ts +3 -3
  164. package/dist/react-native/documentIntelligence.d.ts.map +1 -1
  165. package/dist/react-native/documentIntelligence.js +9 -4
  166. package/dist/react-native/documentIntelligence.js.map +1 -1
  167. package/dist/react-native/index.d.ts +2 -0
  168. package/dist/react-native/index.d.ts.map +1 -1
  169. package/dist/react-native/index.js +3 -1
  170. package/dist/react-native/index.js.map +1 -1
  171. package/dist/react-native/isUnexpected.d.ts +5 -2
  172. package/dist/react-native/isUnexpected.d.ts.map +1 -1
  173. package/dist/react-native/isUnexpected.js +4 -1
  174. package/dist/react-native/isUnexpected.js.map +1 -1
  175. package/dist/react-native/logger.js +1 -1
  176. package/dist/react-native/logger.js.map +1 -1
  177. package/dist/react-native/models.d.ts +5 -5
  178. package/dist/react-native/models.d.ts.map +1 -1
  179. package/dist/react-native/models.js +1 -1
  180. package/dist/react-native/models.js.map +1 -1
  181. package/dist/react-native/outputModels.d.ts +85 -58
  182. package/dist/react-native/outputModels.d.ts.map +1 -1
  183. package/dist/react-native/outputModels.js +1 -1
  184. package/dist/react-native/outputModels.js.map +1 -1
  185. package/dist/react-native/paginateHelper.d.ts +28 -3
  186. package/dist/react-native/paginateHelper.d.ts.map +1 -1
  187. package/dist/react-native/paginateHelper.js +99 -2
  188. package/dist/react-native/paginateHelper.js.map +1 -1
  189. package/dist/react-native/parameters.d.ts +108 -24
  190. package/dist/react-native/parameters.d.ts.map +1 -1
  191. package/dist/react-native/parameters.js +1 -1
  192. package/dist/react-native/parameters.js.map +1 -1
  193. package/dist/react-native/pollingHelper.d.ts +25 -73
  194. package/dist/react-native/pollingHelper.d.ts.map +1 -1
  195. package/dist/react-native/pollingHelper.js +13 -51
  196. package/dist/react-native/pollingHelper.js.map +1 -1
  197. package/dist/react-native/responses.d.ts +68 -43
  198. package/dist/react-native/responses.d.ts.map +1 -1
  199. package/dist/react-native/responses.js +1 -1
  200. package/dist/react-native/responses.js.map +1 -1
  201. package/dist/react-native/utils.d.ts +5 -0
  202. package/dist/react-native/utils.d.ts.map +1 -0
  203. package/dist/react-native/utils.js +33 -0
  204. package/dist/react-native/utils.js.map +1 -0
  205. package/package.json +44 -58
  206. package/review/ai-document-intelligence.api.md +380 -221
@@ -1,6 +1,6 @@
1
- import { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
2
- import { RequestParameters } from "@azure-rest/core-client";
3
- import { StringIndexType, DocumentAnalysisFeature, ContentFormat, AnalyzeOutputOption, AnalyzeDocumentRequest, AnalyzeBatchDocumentsRequest, BuildDocumentModelRequest, ComposeDocumentModelRequest, AuthorizeCopyRequest, CopyAuthorization, BuildDocumentClassifierRequest, SplitMode, ClassifyDocumentRequest, AuthorizeClassifierCopyRequest, ClassifierCopyAuthorization } from "./models.js";
1
+ import type { RawHttpHeadersInput } from "@azure/core-rest-pipeline";
2
+ import type { RequestParameters } from "@azure-rest/core-client";
3
+ import type { StringIndexType, DocumentAnalysisFeature, DocumentContentFormat, AnalyzeOutputOption, AnalyzeDocumentRequest, AnalyzeBatchDocumentsRequest, BuildDocumentModelRequest, ComposeDocumentModelRequest, AuthorizeCopyRequest, ModelCopyAuthorization, BuildDocumentClassifierRequest, SplitMode, ClassifyDocumentRequest, AuthorizeClassifierCopyRequest, ClassifierCopyAuthorization } from "./models.js";
4
4
  export interface ListOperationsHeaders {
5
5
  /** An opaque, globally-unique, client-generated string identifier for the request. */
6
6
  "x-ms-client-request-id"?: string;
@@ -57,10 +57,11 @@ export interface GetOperationHeaderParam {
57
57
  headers?: RawHttpHeadersInput & GetOperationHeaders;
58
58
  }
59
59
  export type GetOperationParameters = GetOperationHeaderParam & RequestParameters;
60
- export type GetResourceInfoParameters = RequestParameters;
60
+ export type GetResourceDetailsParameters = RequestParameters;
61
61
  export type GetAnalyzeResultParameters = RequestParameters;
62
62
  export type GetAnalyzeResultPdfParameters = RequestParameters;
63
63
  export type GetAnalyzeResultFigureParameters = RequestParameters;
64
+ export type DeleteAnalyzeResultParameters = RequestParameters;
64
65
  export interface AnalyzeDocumentFromStreamBodyParam {
65
66
  /**
66
67
  * Input content.
@@ -69,8 +70,35 @@ export interface AnalyzeDocumentFromStreamBodyParam {
69
70
  */
70
71
  body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;
71
72
  }
73
+ /** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */
74
+ export interface AnalyzeDocumentFromStreamFeaturesQueryParam {
75
+ /** Value of the parameter */
76
+ value: DocumentAnalysisFeature[];
77
+ /** Should we explode the value? */
78
+ explode: false;
79
+ /** Style of the value */
80
+ style: "form";
81
+ }
82
+ /** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */
83
+ export interface AnalyzeDocumentFromStreamQueryFieldsQueryParam {
84
+ /** Value of the parameter */
85
+ value: string[];
86
+ /** Should we explode the value? */
87
+ explode: false;
88
+ /** Style of the value */
89
+ style: "form";
90
+ }
91
+ /** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */
92
+ export interface AnalyzeDocumentFromStreamOutputQueryParam {
93
+ /** Value of the parameter */
94
+ value: AnalyzeOutputOption[];
95
+ /** Should we explode the value? */
96
+ explode: false;
97
+ /** Style of the value */
98
+ style: "form";
99
+ }
72
100
  export interface AnalyzeDocumentFromStreamQueryParamProperties {
73
- /** List of 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
101
+ /** 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
74
102
  pages?: string;
75
103
  /**
76
104
  * Locale hint for text recognition and document analysis. Value may contain only
@@ -84,17 +112,17 @@ export interface AnalyzeDocumentFromStreamQueryParamProperties {
84
112
  */
85
113
  stringIndexType?: StringIndexType;
86
114
  /** List of optional analysis features. */
87
- features?: DocumentAnalysisFeature[];
115
+ features?: DocumentAnalysisFeature[] | AnalyzeDocumentFromStreamFeaturesQueryParam;
88
116
  /** List of additional fields to extract. Ex. "NumberOfGuests,StoreNumber" */
89
- queryFields?: string[];
117
+ queryFields?: string[] | AnalyzeDocumentFromStreamQueryFieldsQueryParam;
90
118
  /**
91
119
  * Format of the analyze result top-level content.
92
120
  *
93
121
  * Possible values: "text", "markdown"
94
122
  */
95
- outputContentFormat?: ContentFormat;
123
+ outputContentFormat?: DocumentContentFormat;
96
124
  /** Additional outputs to generate during analysis. */
97
- output?: AnalyzeOutputOption[];
125
+ output?: AnalyzeOutputOption[] | AnalyzeDocumentFromStreamOutputQueryParam;
98
126
  }
99
127
  export interface AnalyzeDocumentFromStreamQueryParam {
100
128
  queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;
@@ -106,10 +134,37 @@ export interface AnalyzeDocumentFromStreamMediaTypesParam {
106
134
  export type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam & AnalyzeDocumentFromStreamMediaTypesParam & AnalyzeDocumentFromStreamBodyParam & RequestParameters;
107
135
  export interface AnalyzeDocumentBodyParam {
108
136
  /** Analyze request parameters. */
109
- body?: AnalyzeDocumentRequest;
137
+ body: AnalyzeDocumentRequest;
138
+ }
139
+ /** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */
140
+ export interface AnalyzeDocumentFeaturesQueryParam {
141
+ /** Value of the parameter */
142
+ value: DocumentAnalysisFeature[];
143
+ /** Should we explode the value? */
144
+ explode: false;
145
+ /** Style of the value */
146
+ style: "form";
147
+ }
148
+ /** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */
149
+ export interface AnalyzeDocumentQueryFieldsQueryParam {
150
+ /** Value of the parameter */
151
+ value: string[];
152
+ /** Should we explode the value? */
153
+ explode: false;
154
+ /** Style of the value */
155
+ style: "form";
156
+ }
157
+ /** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */
158
+ export interface AnalyzeDocumentOutputQueryParam {
159
+ /** Value of the parameter */
160
+ value: AnalyzeOutputOption[];
161
+ /** Should we explode the value? */
162
+ explode: false;
163
+ /** Style of the value */
164
+ style: "form";
110
165
  }
111
166
  export interface AnalyzeDocumentQueryParamProperties {
112
- /** List of 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
167
+ /** 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
113
168
  pages?: string;
114
169
  /**
115
170
  * Locale hint for text recognition and document analysis. Value may contain only
@@ -123,17 +178,17 @@ export interface AnalyzeDocumentQueryParamProperties {
123
178
  */
124
179
  stringIndexType?: StringIndexType;
125
180
  /** List of optional analysis features. */
126
- features?: DocumentAnalysisFeature[];
181
+ features?: DocumentAnalysisFeature[] | AnalyzeDocumentFeaturesQueryParam;
127
182
  /** List of additional fields to extract. Ex. "NumberOfGuests,StoreNumber" */
128
- queryFields?: string[];
183
+ queryFields?: string[] | AnalyzeDocumentQueryFieldsQueryParam;
129
184
  /**
130
185
  * Format of the analyze result top-level content.
131
186
  *
132
187
  * Possible values: "text", "markdown"
133
188
  */
134
- outputContentFormat?: ContentFormat;
189
+ outputContentFormat?: DocumentContentFormat;
135
190
  /** Additional outputs to generate during analysis. */
136
- output?: AnalyzeOutputOption[];
191
+ output?: AnalyzeOutputOption[] | AnalyzeDocumentOutputQueryParam;
137
192
  }
138
193
  export interface AnalyzeDocumentQueryParam {
139
194
  queryParameters?: AnalyzeDocumentQueryParamProperties;
@@ -146,10 +201,37 @@ export type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam & AnalyzeDocum
146
201
  export type GetAnalyzeBatchResultParameters = RequestParameters;
147
202
  export interface AnalyzeBatchDocumentsBodyParam {
148
203
  /** Analyze batch request parameters. */
149
- body?: AnalyzeBatchDocumentsRequest;
204
+ body: AnalyzeBatchDocumentsRequest;
205
+ }
206
+ /** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */
207
+ export interface AnalyzeBatchDocumentsFeaturesQueryParam {
208
+ /** Value of the parameter */
209
+ value: DocumentAnalysisFeature[];
210
+ /** Should we explode the value? */
211
+ explode: false;
212
+ /** Style of the value */
213
+ style: "form";
214
+ }
215
+ /** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */
216
+ export interface AnalyzeBatchDocumentsQueryFieldsQueryParam {
217
+ /** Value of the parameter */
218
+ value: string[];
219
+ /** Should we explode the value? */
220
+ explode: false;
221
+ /** Style of the value */
222
+ style: "form";
223
+ }
224
+ /** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */
225
+ export interface AnalyzeBatchDocumentsOutputQueryParam {
226
+ /** Value of the parameter */
227
+ value: AnalyzeOutputOption[];
228
+ /** Should we explode the value? */
229
+ explode: false;
230
+ /** Style of the value */
231
+ style: "form";
150
232
  }
151
233
  export interface AnalyzeBatchDocumentsQueryParamProperties {
152
- /** List of 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
234
+ /** 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
153
235
  pages?: string;
154
236
  /**
155
237
  * Locale hint for text recognition and document analysis. Value may contain only
@@ -163,17 +245,17 @@ export interface AnalyzeBatchDocumentsQueryParamProperties {
163
245
  */
164
246
  stringIndexType?: StringIndexType;
165
247
  /** List of optional analysis features. */
166
- features?: DocumentAnalysisFeature[];
248
+ features?: DocumentAnalysisFeature[] | AnalyzeBatchDocumentsFeaturesQueryParam;
167
249
  /** List of additional fields to extract. Ex. "NumberOfGuests,StoreNumber" */
168
- queryFields?: string[];
250
+ queryFields?: string[] | AnalyzeBatchDocumentsQueryFieldsQueryParam;
169
251
  /**
170
252
  * Format of the analyze result top-level content.
171
253
  *
172
254
  * Possible values: "text", "markdown"
173
255
  */
174
- outputContentFormat?: ContentFormat;
256
+ outputContentFormat?: DocumentContentFormat;
175
257
  /** Additional outputs to generate during analysis. */
176
- output?: AnalyzeOutputOption[];
258
+ output?: AnalyzeOutputOption[] | AnalyzeBatchDocumentsOutputQueryParam;
177
259
  }
178
260
  export interface AnalyzeBatchDocumentsQueryParam {
179
261
  queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;
@@ -183,6 +265,8 @@ export interface AnalyzeBatchDocumentsMediaTypesParam {
183
265
  contentType: "application/json";
184
266
  }
185
267
  export type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam & AnalyzeBatchDocumentsMediaTypesParam & AnalyzeBatchDocumentsBodyParam & RequestParameters;
268
+ export type ListAnalyzeBatchResultsParameters = RequestParameters;
269
+ export type DeleteAnalyzeBatchResultParameters = RequestParameters;
186
270
  export interface GetModelHeaders {
187
271
  /** An opaque, globally-unique, client-generated string identifier for the request. */
188
272
  "x-ms-client-request-id"?: string;
@@ -208,7 +292,7 @@ export interface AuthorizeModelCopyBodyParam {
208
292
  export type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;
209
293
  export interface CopyModelToBodyParam {
210
294
  /** Copy to request parameters. */
211
- body: CopyAuthorization;
295
+ body: ModelCopyAuthorization;
212
296
  }
213
297
  export type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;
214
298
  export interface ListModelsHeaders {
@@ -277,7 +361,7 @@ export interface ClassifyDocumentFromStreamQueryParamProperties {
277
361
  * Possible values: "auto", "none", "perPage"
278
362
  */
279
363
  split?: SplitMode;
280
- /** List of 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
364
+ /** 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
281
365
  pages?: string;
282
366
  }
283
367
  export interface ClassifyDocumentFromStreamQueryParam {
@@ -305,7 +389,7 @@ export interface ClassifyDocumentQueryParamProperties {
305
389
  * Possible values: "auto", "none", "perPage"
306
390
  */
307
391
  split?: SplitMode;
308
- /** List of 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
392
+ /** 1-based page numbers to analyze. Ex. "1-3,5,7-9" */
309
393
  pages?: string;
310
394
  }
311
395
  export interface ClassifyDocumentQueryParam {
@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,yBAAyB;IACxC,kCAAkC;IAClC,IAAI,EAAE,2BAA2B,CAAC;CACnC;AAED,MAAM,MAAM,0BAA0B,GAAG,yBAAyB,GAAG,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
3
+ // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  //# sourceMappingURL=parameters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport { RequestParameters } from \"@azure-rest/core-client\";\nimport {\n StringIndexType,\n DocumentAnalysisFeature,\n ContentFormat,\n AnalyzeOutputOption,\n AnalyzeDocumentRequest,\n AnalyzeBatchDocumentsRequest,\n BuildDocumentModelRequest,\n ComposeDocumentModelRequest,\n AuthorizeCopyRequest,\n CopyAuthorization,\n BuildDocumentClassifierRequest,\n SplitMode,\n ClassifyDocumentRequest,\n AuthorizeClassifierCopyRequest,\n ClassifierCopyAuthorization,\n} from \"./models.js\";\n\nexport interface ListOperationsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListOperationsHeaderParam {\n headers?: RawHttpHeadersInput & ListOperationsHeaders;\n}\n\nexport type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;\n}\n\nexport type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentModelComposeOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelComposeOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;\n}\n\nexport type GetDocumentModelComposeOperationParameters =\n GetDocumentModelComposeOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;\n}\n\nexport type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentClassifierCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;\n}\n\nexport type GetDocumentClassifierCopyToOperationParameters =\n GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentClassifierBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;\n}\n\nexport type GetDocumentClassifierBuildOperationParameters =\n GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;\n\nexport interface GetOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetOperationHeaders;\n}\n\nexport type GetOperationParameters = GetOperationHeaderParam & RequestParameters;\nexport type GetResourceInfoParameters = RequestParameters;\nexport type GetAnalyzeResultParameters = RequestParameters;\nexport type GetAnalyzeResultPdfParameters = RequestParameters;\nexport type GetAnalyzeResultFigureParameters = RequestParameters;\n\nexport interface AnalyzeDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParam {\n queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam &\n AnalyzeDocumentFromStreamMediaTypesParam &\n AnalyzeDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface AnalyzeDocumentBodyParam {\n /** Analyze request parameters. */\n body?: AnalyzeDocumentRequest;\n}\n\nexport interface AnalyzeDocumentQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeDocumentQueryParam {\n queryParameters?: AnalyzeDocumentQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentMediaTypesParam {\n /** Input content type. */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam &\n AnalyzeDocumentMediaTypesParam &\n AnalyzeDocumentBodyParam &\n RequestParameters;\nexport type GetAnalyzeBatchResultParameters = RequestParameters;\n\nexport interface AnalyzeBatchDocumentsBodyParam {\n /** Analyze batch request parameters. */\n body?: AnalyzeBatchDocumentsRequest;\n}\n\nexport interface AnalyzeBatchDocumentsQueryParamProperties {\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[];\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[];\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: ContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[];\n}\n\nexport interface AnalyzeBatchDocumentsQueryParam {\n queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;\n}\n\nexport interface AnalyzeBatchDocumentsMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam &\n AnalyzeBatchDocumentsMediaTypesParam &\n AnalyzeBatchDocumentsBodyParam &\n RequestParameters;\n\nexport interface GetModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetModelHeaderParam {\n headers?: RawHttpHeadersInput & GetModelHeaders;\n}\n\nexport type GetModelParameters = GetModelHeaderParam & RequestParameters;\n\nexport interface BuildModelBodyParam {\n /** Build request parameters. */\n body: BuildDocumentModelRequest;\n}\n\nexport type BuildModelParameters = BuildModelBodyParam & RequestParameters;\n\nexport interface ComposeModelBodyParam {\n /** Compose request parameters. */\n body: ComposeDocumentModelRequest;\n}\n\nexport type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;\n\nexport interface AuthorizeModelCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeCopyRequest;\n}\n\nexport type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;\n\nexport interface CopyModelToBodyParam {\n /** Copy to request parameters. */\n body: CopyAuthorization;\n}\n\nexport type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;\n\nexport interface ListModelsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListModelsHeaderParam {\n headers?: RawHttpHeadersInput & ListModelsHeaders;\n}\n\nexport type ListModelsParameters = ListModelsHeaderParam & RequestParameters;\n\nexport interface DeleteModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteModelHeaderParam {\n headers?: RawHttpHeadersInput & DeleteModelHeaders;\n}\n\nexport type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;\n\nexport interface BuildClassifierBodyParam {\n /** Build request parameters. */\n body: BuildDocumentClassifierRequest;\n}\n\nexport type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;\n\nexport interface ListClassifiersHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListClassifiersHeaderParam {\n headers?: RawHttpHeadersInput & ListClassifiersHeaders;\n}\n\nexport type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;\n\nexport interface GetClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetClassifierHeaderParam {\n headers?: RawHttpHeadersInput & GetClassifierHeaders;\n}\n\nexport type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;\n\nexport interface DeleteClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteClassifierHeaderParam {\n headers?: RawHttpHeadersInput & DeleteClassifierHeaders;\n}\n\nexport type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;\n\nexport interface ClassifyDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParam {\n queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;\n}\n\nexport interface ClassifyDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam &\n ClassifyDocumentFromStreamMediaTypesParam &\n ClassifyDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface ClassifyDocumentBodyParam {\n /** Classify request parameters. */\n body: ClassifyDocumentRequest;\n}\n\nexport interface ClassifyDocumentQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentQueryParam {\n queryParameters?: ClassifyDocumentQueryParamProperties;\n}\n\nexport interface ClassifyDocumentMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type ClassifyDocumentParameters = ClassifyDocumentQueryParam &\n ClassifyDocumentMediaTypesParam &\n ClassifyDocumentBodyParam &\n RequestParameters;\nexport type GetClassifyResultParameters = RequestParameters;\n\nexport interface AuthorizeClassifierCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeClassifierCopyRequest;\n}\n\nexport type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam &\n RequestParameters;\n\nexport interface CopyClassifierToBodyParam {\n /** Copy to request parameters. */\n body: ClassifierCopyAuthorization;\n}\n\nexport type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;\n"]}
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeadersInput } from \"@azure/core-rest-pipeline\";\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n StringIndexType,\n DocumentAnalysisFeature,\n DocumentContentFormat,\n AnalyzeOutputOption,\n AnalyzeDocumentRequest,\n AnalyzeBatchDocumentsRequest,\n BuildDocumentModelRequest,\n ComposeDocumentModelRequest,\n AuthorizeCopyRequest,\n ModelCopyAuthorization,\n BuildDocumentClassifierRequest,\n SplitMode,\n ClassifyDocumentRequest,\n AuthorizeClassifierCopyRequest,\n ClassifierCopyAuthorization,\n} from \"./models.js\";\n\nexport interface ListOperationsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListOperationsHeaderParam {\n headers?: RawHttpHeadersInput & ListOperationsHeaders;\n}\n\nexport type ListOperationsParameters = ListOperationsHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelBuildOperationHeaders;\n}\n\nexport type GetDocumentModelBuildOperationParameters = GetDocumentModelBuildOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentModelComposeOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelComposeOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelComposeOperationHeaders;\n}\n\nexport type GetDocumentModelComposeOperationParameters =\n GetDocumentModelComposeOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentModelCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentModelCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentModelCopyToOperationHeaders;\n}\n\nexport type GetDocumentModelCopyToOperationParameters = GetDocumentModelCopyToOperationHeaderParam &\n RequestParameters;\n\nexport interface GetDocumentClassifierCopyToOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierCopyToOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierCopyToOperationHeaders;\n}\n\nexport type GetDocumentClassifierCopyToOperationParameters =\n GetDocumentClassifierCopyToOperationHeaderParam & RequestParameters;\n\nexport interface GetDocumentClassifierBuildOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetDocumentClassifierBuildOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetDocumentClassifierBuildOperationHeaders;\n}\n\nexport type GetDocumentClassifierBuildOperationParameters =\n GetDocumentClassifierBuildOperationHeaderParam & RequestParameters;\n\nexport interface GetOperationHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetOperationHeaderParam {\n headers?: RawHttpHeadersInput & GetOperationHeaders;\n}\n\nexport type GetOperationParameters = GetOperationHeaderParam & RequestParameters;\nexport type GetResourceDetailsParameters = RequestParameters;\nexport type GetAnalyzeResultParameters = RequestParameters;\nexport type GetAnalyzeResultPdfParameters = RequestParameters;\nexport type GetAnalyzeResultFigureParameters = RequestParameters;\nexport type DeleteAnalyzeResultParameters = RequestParameters;\n\nexport interface AnalyzeDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body:\n | string\n | Uint8Array\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n | ReadableStream<Uint8Array>\n | NodeJS.ReadableStream;\n}\n\n/** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentFromStreamFeaturesQueryParam {\n /** Value of the parameter */\n value: DocumentAnalysisFeature[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentFromStreamQueryFieldsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentFromStreamOutputQueryParam {\n /** Value of the parameter */\n value: AnalyzeOutputOption[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParamProperties {\n /** 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[] | AnalyzeDocumentFromStreamFeaturesQueryParam;\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[] | AnalyzeDocumentFromStreamQueryFieldsQueryParam;\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: DocumentContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[] | AnalyzeDocumentFromStreamOutputQueryParam;\n}\n\nexport interface AnalyzeDocumentFromStreamQueryParam {\n queryParameters?: AnalyzeDocumentFromStreamQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type AnalyzeDocumentFromStreamParameters = AnalyzeDocumentFromStreamQueryParam &\n AnalyzeDocumentFromStreamMediaTypesParam &\n AnalyzeDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface AnalyzeDocumentBodyParam {\n /** Analyze request parameters. */\n body: AnalyzeDocumentRequest;\n}\n\n/** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentFeaturesQueryParam {\n /** Value of the parameter */\n value: DocumentAnalysisFeature[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentQueryFieldsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */\nexport interface AnalyzeDocumentOutputQueryParam {\n /** Value of the parameter */\n value: AnalyzeOutputOption[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface AnalyzeDocumentQueryParamProperties {\n /** 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[] | AnalyzeDocumentFeaturesQueryParam;\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[] | AnalyzeDocumentQueryFieldsQueryParam;\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: DocumentContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[] | AnalyzeDocumentOutputQueryParam;\n}\n\nexport interface AnalyzeDocumentQueryParam {\n queryParameters?: AnalyzeDocumentQueryParamProperties;\n}\n\nexport interface AnalyzeDocumentMediaTypesParam {\n /** Input content type. */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeDocumentParameters = AnalyzeDocumentQueryParam &\n AnalyzeDocumentMediaTypesParam &\n AnalyzeDocumentBodyParam &\n RequestParameters;\nexport type GetAnalyzeBatchResultParameters = RequestParameters;\n\nexport interface AnalyzeBatchDocumentsBodyParam {\n /** Analyze batch request parameters. */\n body: AnalyzeBatchDocumentsRequest;\n}\n\n/** This is the wrapper object for the parameter `features` with explode set to false and style set to form. */\nexport interface AnalyzeBatchDocumentsFeaturesQueryParam {\n /** Value of the parameter */\n value: DocumentAnalysisFeature[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `queryFields` with explode set to false and style set to form. */\nexport interface AnalyzeBatchDocumentsQueryFieldsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `output` with explode set to false and style set to form. */\nexport interface AnalyzeBatchDocumentsOutputQueryParam {\n /** Value of the parameter */\n value: AnalyzeOutputOption[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface AnalyzeBatchDocumentsQueryParamProperties {\n /** 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n /**\n * Locale hint for text recognition and document analysis. Value may contain only\n * the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").\n */\n locale?: string;\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /** List of optional analysis features. */\n features?: DocumentAnalysisFeature[] | AnalyzeBatchDocumentsFeaturesQueryParam;\n /** List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\" */\n queryFields?: string[] | AnalyzeBatchDocumentsQueryFieldsQueryParam;\n /**\n * Format of the analyze result top-level content.\n *\n * Possible values: \"text\", \"markdown\"\n */\n outputContentFormat?: DocumentContentFormat;\n /** Additional outputs to generate during analysis. */\n output?: AnalyzeOutputOption[] | AnalyzeBatchDocumentsOutputQueryParam;\n}\n\nexport interface AnalyzeBatchDocumentsQueryParam {\n queryParameters?: AnalyzeBatchDocumentsQueryParamProperties;\n}\n\nexport interface AnalyzeBatchDocumentsMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type AnalyzeBatchDocumentsParameters = AnalyzeBatchDocumentsQueryParam &\n AnalyzeBatchDocumentsMediaTypesParam &\n AnalyzeBatchDocumentsBodyParam &\n RequestParameters;\nexport type ListAnalyzeBatchResultsParameters = RequestParameters;\nexport type DeleteAnalyzeBatchResultParameters = RequestParameters;\n\nexport interface GetModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetModelHeaderParam {\n headers?: RawHttpHeadersInput & GetModelHeaders;\n}\n\nexport type GetModelParameters = GetModelHeaderParam & RequestParameters;\n\nexport interface BuildModelBodyParam {\n /** Build request parameters. */\n body: BuildDocumentModelRequest;\n}\n\nexport type BuildModelParameters = BuildModelBodyParam & RequestParameters;\n\nexport interface ComposeModelBodyParam {\n /** Compose request parameters. */\n body: ComposeDocumentModelRequest;\n}\n\nexport type ComposeModelParameters = ComposeModelBodyParam & RequestParameters;\n\nexport interface AuthorizeModelCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeCopyRequest;\n}\n\nexport type AuthorizeModelCopyParameters = AuthorizeModelCopyBodyParam & RequestParameters;\n\nexport interface CopyModelToBodyParam {\n /** Copy to request parameters. */\n body: ModelCopyAuthorization;\n}\n\nexport type CopyModelToParameters = CopyModelToBodyParam & RequestParameters;\n\nexport interface ListModelsHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListModelsHeaderParam {\n headers?: RawHttpHeadersInput & ListModelsHeaders;\n}\n\nexport type ListModelsParameters = ListModelsHeaderParam & RequestParameters;\n\nexport interface DeleteModelHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteModelHeaderParam {\n headers?: RawHttpHeadersInput & DeleteModelHeaders;\n}\n\nexport type DeleteModelParameters = DeleteModelHeaderParam & RequestParameters;\n\nexport interface BuildClassifierBodyParam {\n /** Build request parameters. */\n body: BuildDocumentClassifierRequest;\n}\n\nexport type BuildClassifierParameters = BuildClassifierBodyParam & RequestParameters;\n\nexport interface ListClassifiersHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface ListClassifiersHeaderParam {\n headers?: RawHttpHeadersInput & ListClassifiersHeaders;\n}\n\nexport type ListClassifiersParameters = ListClassifiersHeaderParam & RequestParameters;\n\nexport interface GetClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface GetClassifierHeaderParam {\n headers?: RawHttpHeadersInput & GetClassifierHeaders;\n}\n\nexport type GetClassifierParameters = GetClassifierHeaderParam & RequestParameters;\n\nexport interface DeleteClassifierHeaders {\n /** An opaque, globally-unique, client-generated string identifier for the request. */\n \"x-ms-client-request-id\"?: string;\n}\n\nexport interface DeleteClassifierHeaderParam {\n headers?: RawHttpHeadersInput & DeleteClassifierHeaders;\n}\n\nexport type DeleteClassifierParameters = DeleteClassifierHeaderParam & RequestParameters;\n\nexport interface ClassifyDocumentFromStreamBodyParam {\n /**\n * Input content.\n *\n * Value may contain any sequence of octets\n */\n body:\n | string\n | Uint8Array\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n | ReadableStream<Uint8Array>\n | NodeJS.ReadableStream;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentFromStreamQueryParam {\n queryParameters?: ClassifyDocumentFromStreamQueryParamProperties;\n}\n\nexport interface ClassifyDocumentFromStreamMediaTypesParam {\n /** Input content type. */\n contentType:\n | \"application/octet-stream\"\n | \"application/pdf\"\n | \"image/jpeg\"\n | \"image/png\"\n | \"image/tiff\"\n | \"image/bmp\"\n | \"image/heif\"\n | \"text/html\"\n | \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n | \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"\n | \"application/vnd.openxmlformats-officedocument.presentationml.presentation\";\n}\n\nexport type ClassifyDocumentFromStreamParameters = ClassifyDocumentFromStreamQueryParam &\n ClassifyDocumentFromStreamMediaTypesParam &\n ClassifyDocumentFromStreamBodyParam &\n RequestParameters;\n\nexport interface ClassifyDocumentBodyParam {\n /** Classify request parameters. */\n body: ClassifyDocumentRequest;\n}\n\nexport interface ClassifyDocumentQueryParamProperties {\n /**\n * Method used to compute string offset and length.\n *\n * Possible values: \"textElements\", \"unicodeCodePoint\", \"utf16CodeUnit\"\n */\n stringIndexType?: StringIndexType;\n /**\n * Document splitting mode.\n *\n * Possible values: \"auto\", \"none\", \"perPage\"\n */\n split?: SplitMode;\n /** 1-based page numbers to analyze. Ex. \"1-3,5,7-9\" */\n pages?: string;\n}\n\nexport interface ClassifyDocumentQueryParam {\n queryParameters?: ClassifyDocumentQueryParamProperties;\n}\n\nexport interface ClassifyDocumentMediaTypesParam {\n /** Input content type */\n contentType: \"application/json\";\n}\n\nexport type ClassifyDocumentParameters = ClassifyDocumentQueryParam &\n ClassifyDocumentMediaTypesParam &\n ClassifyDocumentBodyParam &\n RequestParameters;\nexport type GetClassifyResultParameters = RequestParameters;\n\nexport interface AuthorizeClassifierCopyBodyParam {\n /** Authorize copy request parameters. */\n body: AuthorizeClassifierCopyRequest;\n}\n\nexport type AuthorizeClassifierCopyParameters = AuthorizeClassifierCopyBodyParam &\n RequestParameters;\n\nexport interface CopyClassifierToBodyParam {\n /** Copy to request parameters. */\n body: ClassifierCopyAuthorization;\n}\n\nexport type CopyClassifierToParameters = CopyClassifierToBodyParam & RequestParameters;\n"]}
@@ -1,74 +1,18 @@
1
- import { Client } from "@azure-rest/core-client";
2
- import { AbortSignalLike } from "@azure/abort-controller";
3
- import { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
4
- import { AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsDefaultResponse, AnalyzeBatchDocumentsLogicalResponse, BuildModel202Response, BuildModelDefaultResponse, BuildModelLogicalResponse, ComposeModel202Response, ComposeModelDefaultResponse, ComposeModelLogicalResponse, CopyModelTo202Response, CopyModelToDefaultResponse, CopyModelToLogicalResponse, BuildClassifier202Response, BuildClassifierDefaultResponse, BuildClassifierLogicalResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocumentFromStreamLogicalResponse, CopyClassifierTo202Response, CopyClassifierToDefaultResponse, CopyClassifierToLogicalResponse } from "./responses.js";
1
+ import type { Client } from "@azure-rest/core-client";
2
+ import type { OperationState, PollerLike } from "@azure/core-lro";
3
+ import type { AnalyzeDocumentFromStream202Response, AnalyzeDocumentFromStreamDefaultResponse, AnalyzeDocumentFromStreamLogicalResponse, AnalyzeBatchDocuments202Response, AnalyzeBatchDocumentsDefaultResponse, AnalyzeBatchDocumentsLogicalResponse, BuildModel202Response, BuildModelDefaultResponse, BuildModelLogicalResponse, ComposeModel202Response, ComposeModelDefaultResponse, ComposeModelLogicalResponse, CopyModelTo202Response, CopyModelToDefaultResponse, CopyModelToLogicalResponse, BuildClassifier202Response, BuildClassifierDefaultResponse, BuildClassifierLogicalResponse, ClassifyDocumentFromStream202Response, ClassifyDocumentFromStreamDefaultResponse, ClassifyDocumentFromStreamLogicalResponse, CopyClassifierTo202Response, CopyClassifierToDefaultResponse, CopyClassifierToLogicalResponse } from "./responses.js";
5
4
  /**
6
- * A simple poller that can be used to poll a long running operation.
5
+ * Options for `getLongRunningPoller`.
7
6
  */
8
- export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
7
+ export interface GetLongRunningPollerOptions {
9
8
  /**
10
- * Returns true if the poller has finished polling.
9
+ * Defines how much time the poller is going to wait before making a new request to the service.
11
10
  */
12
- isDone(): boolean;
11
+ intervalInMs?: number;
13
12
  /**
14
- * Returns the state of the operation.
13
+ * A serialized poller which can be used to resume an existing paused Long-Running-Operation.
15
14
  */
16
- getOperationState(): TState;
17
- /**
18
- * Returns the id of the operation.
19
- */
20
- getOperationId(): string;
21
- /**
22
- * Returns the result value of the operation,
23
- * regardless of the state of the poller.
24
- * It can return undefined or an incomplete form of the final TResult value
25
- * depending on the implementation.
26
- */
27
- getResult(): TResult | undefined;
28
- /**
29
- * Returns a promise that will resolve once a single polling request finishes.
30
- * It does this by calling the update method of the Poller's operation.
31
- */
32
- poll(options?: {
33
- abortSignal?: AbortSignalLike;
34
- }): Promise<TState>;
35
- /**
36
- * Returns a promise that will resolve once the underlying operation is completed.
37
- */
38
- pollUntilDone(pollOptions?: {
39
- abortSignal?: AbortSignalLike;
40
- }): Promise<TResult>;
41
- /**
42
- * Invokes the provided callback after each polling is completed,
43
- * sending the current state of the poller's operation.
44
- *
45
- * It returns a method that can be used to stop receiving updates on the given callback function.
46
- */
47
- onProgress(callback: (state: TState) => void): CancelOnProgress;
48
- /**
49
- * Returns a promise that could be used for serialized version of the poller's operation
50
- * by invoking the operation's serialize method.
51
- */
52
- serialize(): Promise<string>;
53
- /**
54
- * Wait the poller to be submitted.
55
- */
56
- submitted(): Promise<void>;
57
- /**
58
- * Returns a string representation of the poller's operation. Similar to serialize but returns a string.
59
- * @deprecated Use serialize() instead.
60
- */
61
- toString(): string;
62
- /**
63
- * Stops the poller from continuing to poll. Please note this will only stop the client-side polling
64
- * @deprecated Use abortSignal to stop polling instead.
65
- */
66
- stopPolling(): void;
67
- /**
68
- * Returns true if the poller is stopped.
69
- * @deprecated Use abortSignal status to track this instead.
70
- */
71
- isStopped(): boolean;
15
+ restoreFrom?: string;
72
16
  }
73
17
  /**
74
18
  * Helper function that builds a Poller object to help polling a long running operation.
@@ -77,12 +21,20 @@ export interface SimplePollerLike<TState extends OperationState<TResult>, TResul
77
21
  * @param options - Options to set a resume state or custom polling interval.
78
22
  * @returns - A poller object to poll for operation state updates and eventually get the final response.
79
23
  */
80
- export declare function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
81
- export declare function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
82
- export declare function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
83
- export declare function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
84
- export declare function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
85
- export declare function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
86
- export declare function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
87
- export declare function getLongRunningPoller<TResult extends ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse>(client: Client, initialResponse: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
24
+ export declare function getLongRunningPoller<TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse>(client: Client, initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
25
+ export declare function getLongRunningPoller<TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse>(client: Client, initialResponse: BuildModel202Response | BuildModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
26
+ export declare function getLongRunningPoller<TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse>(client: Client, initialResponse: ComposeModel202Response | ComposeModelDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
27
+ export declare function getLongRunningPoller<TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse>(client: Client, initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
28
+ export declare function getLongRunningPoller<TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse>(client: Client, initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
29
+ export declare function getLongRunningPoller<TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse>(client: Client, initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
30
+ export declare function getLongRunningPoller<TResult extends AnalyzeDocumentFromStreamLogicalResponse | AnalyzeDocumentFromStreamDefaultResponse>(client: Client, initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
31
+ export declare function getLongRunningPoller<TResult extends ClassifyDocumentFromStreamLogicalResponse | ClassifyDocumentFromStreamDefaultResponse>(client: Client, initialResponse: ClassifyDocumentFromStream202Response | ClassifyDocumentFromStreamDefaultResponse, options?: GetLongRunningPollerOptions): PollerLike<OperationState<TResult>, TResult>;
32
+ /**
33
+ * Returns the operation-id from the initialResponse header
34
+ */
35
+ export declare function parseResultIdFromResponse(initialResponse: {
36
+ headers: {
37
+ "operation-location": string;
38
+ };
39
+ }): string;
88
40
  //# sourceMappingURL=pollingHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pollingHelper.d.ts","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAGvB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oCAAoC,EACpC,wCAAwC,EACxC,wCAAwC,EACxC,gCAAgC,EAChC,oCAAoC,EACpC,oCAAoC,EACpC,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,qCAAqC,EACrC,yCAAyC,EACzC,yCAAyC,EACzC,2BAA2B,EAC3B,+BAA+B,EAC/B,+BAA+B,EAChC,MAAM,gBAAgB,CAAC;AAGxB;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,MAAM,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO;IAC/E;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAClB;;OAEG;IACH,iBAAiB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BAA8B,EAC5E,OAAO,CAAC,EAAE,2BAA2B,GACpC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,wBAAgB,oBAAoB,CAClC,OAAO,SAAS,+BAA+B,GAAG,+BAA+B,EAEjF,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,2BAA2B,GAAG,+BAA+B,EAC9E,OAAO,CAAC,EAAE,2BAA2B,GACpC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,wBAAgB,oBAAoB,CAClC,OAAO,SACH,wCAAwC,GACxC,wCAAwC,EAE5C,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,oCAAoC,GAAG,wCAAwC,EAChG,OAAO,CAAC,EAAE,2BAA2B,GACpC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAChD,wBAAgB,oBAAoB,CAClC,OAAO,SACH,yCAAyC,GACzC,yCAAyC,EAE7C,MAAM,EAAE,MAAM,EACd,eAAe,EACX,qCAAqC,GACrC,yCAAyC,EAC7C,OAAO,CAAC,EAAE,2BAA2B,GACpC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AA+DhD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,eAAe,EAAE;IACzD,OAAO,EAAE;QAAE,oBAAoB,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C,GAAG,MAAM,CAGT"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
3
+ // Licensed under the MIT License.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.getLongRunningPoller = getLongRunningPoller;
6
+ exports.parseResultIdFromResponse = parseResultIdFromResponse;
6
7
  const core_lro_1 = require("@azure/core-lro");
7
- async function getLongRunningPoller(client, initialResponse, options = {}) {
8
- var _a;
8
+ function getLongRunningPoller(client, initialResponse, options = {}) {
9
9
  const abortController = new AbortController();
10
10
  const poller = {
11
11
  sendInitialRequest: async () => {
@@ -46,64 +46,27 @@ async function getLongRunningPoller(client, initialResponse, options = {}) {
46
46
  return lroResponse;
47
47
  },
48
48
  };
49
- options.resolveOnUnsuccessful = (_a = options.resolveOnUnsuccessful) !== null && _a !== void 0 ? _a : true;
50
- const httpPoller = (0, core_lro_1.createHttpPoller)(poller, Object.assign(Object.assign({}, options), { updateState: (state, response) => {
51
- const flatResponse = response.flatResponse;
52
- if (!("body" in flatResponse))
53
- return;
54
- const flatResponseBody = flatResponse.body;
55
- if (!("status" in flatResponseBody && flatResponseBody.status === "completed"))
56
- return;
57
- state.status = "succeeded";
58
- } }));
59
- const simplePoller = {
60
- isDone() {
61
- return httpPoller.isDone;
62
- },
63
- isStopped() {
64
- return abortController.signal.aborted;
65
- },
66
- getOperationState() {
67
- if (!httpPoller.operationState) {
68
- throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
69
- }
70
- return httpPoller.operationState;
71
- },
72
- getResult() {
73
- return httpPoller.result;
74
- },
75
- toString() {
76
- if (!httpPoller.operationState) {
77
- throw new Error("Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().");
78
- }
79
- return JSON.stringify({
80
- state: httpPoller.operationState,
81
- });
82
- },
83
- stopPolling() {
84
- abortController.abort();
85
- },
86
- onProgress: httpPoller.onProgress,
87
- poll: httpPoller.poll,
88
- pollUntilDone: httpPoller.pollUntilDone,
89
- serialize: httpPoller.serialize,
90
- submitted: httpPoller.submitted,
91
- getOperationId: () => parseOperationId(initialResponse.headers["operation-location"]),
92
- };
93
- return simplePoller;
49
+ return (0, core_lro_1.createHttpPoller)(poller, options);
94
50
  }
95
51
  /**
96
52
  * Returns the operation-id from the operation-location header
97
53
  */
98
- function parseOperationId(operationLocationHeader) {
54
+ function parseResultId(operationLocationHeader) {
99
55
  // regex to extract the operation id from the operation-location header with the regex "[^:]+://[^/]+/documentintelligence/.+/([^?/]+)"
100
56
  const regex = /[^:]+:\/\/[^/]+\/documentintelligence\/.+\/([^?/]+)/;
101
57
  const match = operationLocationHeader.match(regex);
102
58
  if (!match) {
103
- throw new Error(`Failed to parse operation id from the operation-location header: ${operationLocationHeader}`);
59
+ throw new Error(`Failed to parse result id from the operation-location header: ${operationLocationHeader}`);
104
60
  }
105
61
  return match[1];
106
62
  }
63
+ /**
64
+ * Returns the operation-id from the initialResponse header
65
+ */
66
+ function parseResultIdFromResponse(initialResponse) {
67
+ const operationLocationHeader = initialResponse.headers["operation-location"];
68
+ return parseResultId(operationLocationHeader);
69
+ }
107
70
  /**
108
71
  * Converts a Rest Client response to a response that the LRO implementation understands
109
72
  * @param response - a rest client http response