@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 +1 @@
1
- {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmLlC,oDA+FC;AA9QD,8CAOyB;AAwKlB,KAAK,UAAU,oBAAoB,CACxC,MAAc,EACd,eAAwB,EACxB,UAAqE,EAAE;;IAEvE,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAY,EAAE,WAA+C,EAAE,EAAE;YACvF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC;YAClD,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3C,IAAI,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,OAAO,EAAE,CAAC;gB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K,CAAC,KAAK,CAAC,CAAC;IACnD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,oEAAoE,uBAAuB,EAAE,CAC9F,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n CancelOnProgress,\n CreateHttpPollerOptions,\n RunningOperation,\n OperationResponse,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport {\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsDefaultResponse,\n AnalyzeBatchDocumentsLogicalResponse,\n BuildModel202Response,\n BuildModelDefaultResponse,\n BuildModelLogicalResponse,\n ComposeModel202Response,\n ComposeModelDefaultResponse,\n ComposeModelLogicalResponse,\n CopyModelTo202Response,\n CopyModelToDefaultResponse,\n CopyModelToLogicalResponse,\n BuildClassifier202Response,\n BuildClassifierDefaultResponse,\n BuildClassifierLogicalResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocumentFromStreamLogicalResponse,\n CopyClassifierTo202Response,\n CopyClassifierToDefaultResponse,\n CopyClassifierToLogicalResponse,\n} from \"./responses.js\";\nimport { AnalyzeBatchResultOperationOutput } from \"./outputModels.js\";\n\n/**\n * A simple poller that can be used to poll a long running operation.\n */\nexport interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {\n /**\n * Returns true if the poller has finished polling.\n */\n isDone(): boolean;\n /**\n * Returns the state of the operation.\n */\n getOperationState(): TState;\n /**\n * Returns the id of the operation.\n */\n getOperationId(): string;\n /**\n * Returns the result value of the operation,\n * regardless of the state of the poller.\n * It can return undefined or an incomplete form of the final TResult value\n * depending on the implementation.\n */\n getResult(): TResult | undefined;\n /**\n * Returns a promise that will resolve once a single polling request finishes.\n * It does this by calling the update method of the Poller's operation.\n */\n poll(options?: { abortSignal?: AbortSignalLike }): Promise<TState>;\n /**\n * Returns a promise that will resolve once the underlying operation is completed.\n */\n pollUntilDone(pollOptions?: { abortSignal?: AbortSignalLike }): Promise<TResult>;\n /**\n * Invokes the provided callback after each polling is completed,\n * sending the current state of the poller's operation.\n *\n * It returns a method that can be used to stop receiving updates on the given callback function.\n */\n onProgress(callback: (state: TState) => void): CancelOnProgress;\n\n /**\n * Returns a promise that could be used for serialized version of the poller's operation\n * by invoking the operation's serialize method.\n */\n serialize(): Promise<string>;\n\n /**\n * Wait the poller to be submitted.\n */\n submitted(): Promise<void>;\n\n /**\n * Returns a string representation of the poller's operation. Similar to serialize but returns a string.\n * @deprecated Use serialize() instead.\n */\n toString(): string;\n\n /**\n * Stops the poller from continuing to poll. Please note this will only stop the client-side polling\n * @deprecated Use abortSignal to stop polling instead.\n */\n stopPolling(): void;\n\n /**\n * Returns true if the poller is stopped.\n * @deprecated Use abortSignal status to track this instead.\n */\n isStopped(): boolean;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport async function getLongRunningPoller<\n TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildModel202Response | BuildModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n>(\n client: Client,\n initialResponse: ComposeModel202Response | ComposeModelDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<\n TResult extends\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamDefaultResponse,\n options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>,\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;\nexport async function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: CreateHttpPollerOptions<TResult, OperationState<TResult>> = {},\n): Promise<SimplePollerLike<OperationState<TResult>, TResult>> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n options.resolveOnUnsuccessful = options.resolveOnUnsuccessful ?? true;\n\n const httpPoller = createHttpPoller(poller, {\n ...options,\n updateState: (state, response) => {\n const flatResponse = <HttpResponse>response.flatResponse;\n if (!(\"body\" in flatResponse)) return;\n const flatResponseBody = <AnalyzeBatchResultOperationOutput>flatResponse.body;\n if (!(\"status\" in flatResponseBody && flatResponseBody.status === \"completed\")) return;\n state.status = \"succeeded\";\n },\n });\n const simplePoller: SimplePollerLike<OperationState<TResult>, TResult> = {\n isDone() {\n return httpPoller.isDone;\n },\n isStopped() {\n return abortController.signal.aborted;\n },\n getOperationState() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return httpPoller.operationState;\n },\n getResult() {\n return httpPoller.result;\n },\n toString() {\n if (!httpPoller.operationState) {\n throw new Error(\n \"Operation state is not available. The poller may not have been started and you could await submitted() before calling getOperationState().\",\n );\n }\n return JSON.stringify({\n state: httpPoller.operationState,\n });\n },\n stopPolling() {\n abortController.abort();\n },\n onProgress: httpPoller.onProgress,\n poll: httpPoller.poll,\n pollUntilDone: httpPoller.pollUntilDone,\n serialize: httpPoller.serialize,\n submitted: httpPoller.submitted,\n getOperationId: () => parseOperationId(initialResponse.headers[\"operation-location\"]),\n };\n return simplePoller;\n}\n\n/**\n * Returns the operation-id from the operation-location header\n */\nfunction parseOperationId(operationLocationHeader: string): string {\n // regex to extract the operation id from the operation-location header with the regex \"[^:]+://[^/]+/documentintelligence/.+/([^?/]+)\"\n const regex = /[^:]+:\\/\\/[^/]+\\/documentintelligence\\/.+\\/([^?/]+)/;\n const match = operationLocationHeader.match(regex);\n if (!match) {\n throw new Error(\n `Failed to parse operation id from the operation-location header: ${operationLocationHeader}`,\n );\n }\n return match[1];\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
1
+ {"version":3,"file":"pollingHelper.js","sourceRoot":"","sources":["../../src/pollingHelper.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAyHlC,oDA6CC;AAoBD,8DAKC;AArLD,8CAAmD;AA+GnD,SAAgB,oBAAoB,CAClC,MAAc,EACd,eAAwB,EACxB,UAAuC,EAAE;IAEzC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,MAAM,MAAM,GAA8B;QACxC,kBAAkB,EAAE,KAAK,IAAI,EAAE;YAC7B,sGAAsG;YACtG,2FAA2F;YAC3F,6BAA6B;YAC7B,OAAO,cAAc,CAAC,eAAe,CAAC,CAAC;QACzC,CAAC;QACD,eAAe,EAAE,KAAK,EAAE,IAAY,EAAE,WAA+C,EAAE,EAAE;YACvF,sEAAsE;YACtE,4EAA4E;YAC5E,0JAA0J;YAC1J,+GAA+G;YAC/G,SAAS,aAAa;gBACpB,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;YACD,MAAM,gBAAgB,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAC;YAClD,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC;YAC3C,IAAI,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,OAAO,EAAE,CAAC;gBAC9B,eAAe,CAAC,KAAK,EAAE,CAAC;YAC1B,CAAC;iBAAM,IAAI,CAAC,WAAW,CAAC,OA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C;IAC9E,OAAO,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAChD,CAAC;AAED;;;;GAIG;AACH,SAAS,cAAc,CACrB,QAAiB;IAEjB,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,SAAS,CAAC,uDAAuD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,WAAW,kCACN,QAAQ,KACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,GACpB;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type {\n RunningOperation,\n OperationResponse,\n OperationState,\n PollerLike,\n} from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport type {\n AnalyzeDocumentFromStream202Response,\n AnalyzeDocumentFromStreamDefaultResponse,\n AnalyzeDocumentFromStreamLogicalResponse,\n AnalyzeBatchDocuments202Response,\n AnalyzeBatchDocumentsDefaultResponse,\n AnalyzeBatchDocumentsLogicalResponse,\n BuildModel202Response,\n BuildModelDefaultResponse,\n BuildModelLogicalResponse,\n ComposeModel202Response,\n ComposeModelDefaultResponse,\n ComposeModelLogicalResponse,\n CopyModelTo202Response,\n CopyModelToDefaultResponse,\n CopyModelToLogicalResponse,\n BuildClassifier202Response,\n BuildClassifierDefaultResponse,\n BuildClassifierLogicalResponse,\n ClassifyDocumentFromStream202Response,\n ClassifyDocumentFromStreamDefaultResponse,\n ClassifyDocumentFromStreamLogicalResponse,\n CopyClassifierTo202Response,\n CopyClassifierToDefaultResponse,\n CopyClassifierToLogicalResponse,\n} from \"./responses.js\";\n\n/**\n * Options for `getLongRunningPoller`.\n */\nexport interface GetLongRunningPollerOptions {\n /**\n * Defines how much time the poller is going to wait before making a new request to the service.\n */\n intervalInMs?: number;\n /**\n * A serialized poller which can be used to resume an existing paused Long-Running-Operation.\n */\n restoreFrom?: string;\n}\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport function getLongRunningPoller<\n TResult extends AnalyzeBatchDocumentsLogicalResponse | AnalyzeBatchDocumentsDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeBatchDocuments202Response | AnalyzeBatchDocumentsDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends BuildModelLogicalResponse | BuildModelDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildModel202Response | BuildModelDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends ComposeModelLogicalResponse | ComposeModelDefaultResponse,\n>(\n client: Client,\n initialResponse: ComposeModel202Response | ComposeModelDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends CopyModelToLogicalResponse | CopyModelToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyModelTo202Response | CopyModelToDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends BuildClassifierLogicalResponse | BuildClassifierDefaultResponse,\n>(\n client: Client,\n initialResponse: BuildClassifier202Response | BuildClassifierDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends CopyClassifierToLogicalResponse | CopyClassifierToDefaultResponse,\n>(\n client: Client,\n initialResponse: CopyClassifierTo202Response | CopyClassifierToDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends\n | AnalyzeDocumentFromStreamLogicalResponse\n | AnalyzeDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse: AnalyzeDocumentFromStream202Response | AnalyzeDocumentFromStreamDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<\n TResult extends\n | ClassifyDocumentFromStreamLogicalResponse\n | ClassifyDocumentFromStreamDefaultResponse,\n>(\n client: Client,\n initialResponse:\n | ClassifyDocumentFromStream202Response\n | ClassifyDocumentFromStreamDefaultResponse,\n options?: GetLongRunningPollerOptions,\n): PollerLike<OperationState<TResult>, TResult>;\nexport function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: GetLongRunningPollerOptions = {},\n): PollerLike<OperationState<TResult>, TResult> {\n const abortController = new AbortController();\n const poller: RunningOperation<TResult> = {\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path: string, pollOptions?: { abortSignal?: AbortSignalLike }) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n function abortListener(): void {\n abortController.abort();\n }\n const inputAbortSignal = pollOptions?.abortSignal;\n const abortSignal = abortController.signal;\n if (inputAbortSignal?.aborted) {\n abortController.abort();\n } else if (!abortSignal.aborted) {\n inputAbortSignal?.addEventListener(\"abort\", abortListener, {\n once: true,\n });\n }\n let response;\n try {\n response = await client\n .pathUnchecked(path ?? initialResponse.request.url)\n .get({ abortSignal });\n } finally {\n inputAbortSignal?.removeEventListener(\"abort\", abortListener);\n }\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n return createHttpPoller(poller, options);\n}\n\n/**\n * Returns the operation-id from the operation-location header\n */\nfunction parseResultId(operationLocationHeader: string): string {\n // regex to extract the operation id from the operation-location header with the regex \"[^:]+://[^/]+/documentintelligence/.+/([^?/]+)\"\n const regex = /[^:]+:\\/\\/[^/]+\\/documentintelligence\\/.+\\/([^?/]+)/;\n const match = operationLocationHeader.match(regex);\n if (!match) {\n throw new Error(\n `Failed to parse result id from the operation-location header: ${operationLocationHeader}`,\n );\n }\n return match[1];\n}\n\n/**\n * Returns the operation-id from the initialResponse header\n */\nexport function parseResultIdFromResponse(initialResponse: {\n headers: { \"operation-location\": string };\n}): string {\n const operationLocationHeader = initialResponse.headers[\"operation-location\"];\n return parseResultId(operationLocationHeader);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO implementation understands\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO implementation understands\n */\nfunction getLroResponse<TResult extends HttpResponse>(\n response: TResult,\n): OperationResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
- import { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
- import { HttpResponse } from "@azure-rest/core-client";
3
- import { PagedOperationDetailsOutput, ErrorResponseOutput, DocumentModelBuildOperationDetailsOutput, DocumentModelComposeOperationDetailsOutput, DocumentModelCopyToOperationDetailsOutput, DocumentClassifierCopyToOperationDetailsOutput, DocumentClassifierBuildOperationDetailsOutput, OperationDetailsOutput, ResourceDetailsOutput, AnalyzeResultOperationOutput, AnalyzeBatchResultOperationOutput, DocumentModelDetailsOutput, CopyAuthorizationOutput, PagedDocumentModelDetailsOutput, PagedDocumentClassifierDetailsOutput, DocumentClassifierDetailsOutput, ClassifierCopyAuthorizationOutput } from "./outputModels.js";
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
4
  export interface ListOperations200Headers {
5
5
  /** An opaque, globally-unique, client-generated string identifier for the request. */
6
6
  "x-ms-client-request-id"?: string;
@@ -8,12 +8,12 @@ export interface ListOperations200Headers {
8
8
  /** The request has succeeded. */
9
9
  export interface ListOperations200Response extends HttpResponse {
10
10
  status: "200";
11
- body: PagedOperationDetailsOutput;
11
+ body: PagedDocumentIntelligenceOperationDetailsOutput;
12
12
  headers: RawHttpHeaders & ListOperations200Headers;
13
13
  }
14
14
  export interface ListOperationsDefaultResponse extends HttpResponse {
15
15
  status: string;
16
- body: ErrorResponseOutput;
16
+ body: DocumentIntelligenceErrorResponseOutput;
17
17
  }
18
18
  export interface GetDocumentModelBuildOperation200Headers {
19
19
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -27,7 +27,7 @@ export interface GetDocumentModelBuildOperation200Response extends HttpResponse
27
27
  }
28
28
  export interface GetDocumentModelBuildOperationDefaultResponse extends HttpResponse {
29
29
  status: string;
30
- body: ErrorResponseOutput;
30
+ body: DocumentIntelligenceErrorResponseOutput;
31
31
  }
32
32
  export interface GetDocumentModelComposeOperation200Headers {
33
33
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -41,7 +41,7 @@ export interface GetDocumentModelComposeOperation200Response extends HttpRespons
41
41
  }
42
42
  export interface GetDocumentModelComposeOperationDefaultResponse extends HttpResponse {
43
43
  status: string;
44
- body: ErrorResponseOutput;
44
+ body: DocumentIntelligenceErrorResponseOutput;
45
45
  }
46
46
  export interface GetDocumentModelCopyToOperation200Headers {
47
47
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -55,7 +55,7 @@ export interface GetDocumentModelCopyToOperation200Response extends HttpResponse
55
55
  }
56
56
  export interface GetDocumentModelCopyToOperationDefaultResponse extends HttpResponse {
57
57
  status: string;
58
- body: ErrorResponseOutput;
58
+ body: DocumentIntelligenceErrorResponseOutput;
59
59
  }
60
60
  export interface GetDocumentClassifierCopyToOperation200Headers {
61
61
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -69,7 +69,7 @@ export interface GetDocumentClassifierCopyToOperation200Response extends HttpRes
69
69
  }
70
70
  export interface GetDocumentClassifierCopyToOperationDefaultResponse extends HttpResponse {
71
71
  status: string;
72
- body: ErrorResponseOutput;
72
+ body: DocumentIntelligenceErrorResponseOutput;
73
73
  }
74
74
  export interface GetDocumentClassifierBuildOperation200Headers {
75
75
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -83,7 +83,7 @@ export interface GetDocumentClassifierBuildOperation200Response extends HttpResp
83
83
  }
84
84
  export interface GetDocumentClassifierBuildOperationDefaultResponse extends HttpResponse {
85
85
  status: string;
86
- body: ErrorResponseOutput;
86
+ body: DocumentIntelligenceErrorResponseOutput;
87
87
  }
88
88
  export interface GetOperation200Headers {
89
89
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -92,30 +92,30 @@ export interface GetOperation200Headers {
92
92
  /** The request has succeeded. */
93
93
  export interface GetOperation200Response extends HttpResponse {
94
94
  status: "200";
95
- body: OperationDetailsOutput;
95
+ body: DocumentIntelligenceOperationDetailsOutput;
96
96
  headers: RawHttpHeaders & GetOperation200Headers;
97
97
  }
98
98
  export interface GetOperationDefaultResponse extends HttpResponse {
99
99
  status: string;
100
- body: ErrorResponseOutput;
100
+ body: DocumentIntelligenceErrorResponseOutput;
101
101
  }
102
102
  /** The request has succeeded. */
103
- export interface GetResourceInfo200Response extends HttpResponse {
103
+ export interface GetResourceDetails200Response extends HttpResponse {
104
104
  status: "200";
105
- body: ResourceDetailsOutput;
105
+ body: DocumentIntelligenceResourceDetailsOutput;
106
106
  }
107
- export interface GetResourceInfoDefaultResponse extends HttpResponse {
107
+ export interface GetResourceDetailsDefaultResponse extends HttpResponse {
108
108
  status: string;
109
- body: ErrorResponseOutput;
109
+ body: DocumentIntelligenceErrorResponseOutput;
110
110
  }
111
111
  /** The request has succeeded. */
112
112
  export interface GetAnalyzeResult200Response extends HttpResponse {
113
113
  status: "200";
114
- body: AnalyzeResultOperationOutput;
114
+ body: AnalyzeOperationOutput;
115
115
  }
116
116
  export interface GetAnalyzeResultDefaultResponse extends HttpResponse {
117
117
  status: string;
118
- body: ErrorResponseOutput;
118
+ body: DocumentIntelligenceErrorResponseOutput;
119
119
  }
120
120
  export interface GetAnalyzeResultPdf200Headers {
121
121
  /** Response content type. */
@@ -130,7 +130,7 @@ export interface GetAnalyzeResultPdf200Response extends HttpResponse {
130
130
  }
131
131
  export interface GetAnalyzeResultPdfDefaultResponse extends HttpResponse {
132
132
  status: string;
133
- body: ErrorResponseOutput;
133
+ body: DocumentIntelligenceErrorResponseOutput;
134
134
  }
135
135
  export interface GetAnalyzeResultFigure200Headers {
136
136
  /** Response content type. */
@@ -145,7 +145,15 @@ export interface GetAnalyzeResultFigure200Response extends HttpResponse {
145
145
  }
146
146
  export interface GetAnalyzeResultFigureDefaultResponse extends HttpResponse {
147
147
  status: string;
148
- body: ErrorResponseOutput;
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;
149
157
  }
150
158
  export interface AnalyzeDocumentFromStream202Headers {
151
159
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -159,7 +167,7 @@ export interface AnalyzeDocumentFromStream202Response extends HttpResponse {
159
167
  }
160
168
  export interface AnalyzeDocumentFromStreamDefaultResponse extends HttpResponse {
161
169
  status: string;
162
- body: ErrorResponseOutput;
170
+ body: DocumentIntelligenceErrorResponseOutput;
163
171
  }
164
172
  /** The final response for long-running analyzeDocumentFromStream operation */
165
173
  export interface AnalyzeDocumentFromStreamLogicalResponse extends HttpResponse {
@@ -177,7 +185,7 @@ export interface AnalyzeDocument202Response extends HttpResponse {
177
185
  }
178
186
  export interface AnalyzeDocumentDefaultResponse extends HttpResponse {
179
187
  status: string;
180
- body: ErrorResponseOutput;
188
+ body: DocumentIntelligenceErrorResponseOutput;
181
189
  }
182
190
  /** The final response for long-running analyzeDocument operation */
183
191
  export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
@@ -186,11 +194,11 @@ export interface AnalyzeDocumentLogicalResponse extends HttpResponse {
186
194
  /** The request has succeeded. */
187
195
  export interface GetAnalyzeBatchResult200Response extends HttpResponse {
188
196
  status: "200";
189
- body: AnalyzeBatchResultOperationOutput;
197
+ body: AnalyzeBatchOperationOutput;
190
198
  }
191
199
  export interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {
192
200
  status: string;
193
- body: ErrorResponseOutput;
201
+ body: DocumentIntelligenceErrorResponseOutput;
194
202
  }
195
203
  export interface AnalyzeBatchDocuments202Headers {
196
204
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -204,12 +212,29 @@ export interface AnalyzeBatchDocuments202Response extends HttpResponse {
204
212
  }
205
213
  export interface AnalyzeBatchDocumentsDefaultResponse extends HttpResponse {
206
214
  status: string;
207
- body: ErrorResponseOutput;
215
+ body: DocumentIntelligenceErrorResponseOutput;
208
216
  }
209
217
  /** The final response for long-running analyzeBatchDocuments operation */
210
218
  export interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {
211
219
  status: "200";
212
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
+ }
213
238
  export interface GetModel200Headers {
214
239
  /** An opaque, globally-unique, client-generated string identifier for the request. */
215
240
  "x-ms-client-request-id"?: string;
@@ -222,7 +247,7 @@ export interface GetModel200Response extends HttpResponse {
222
247
  }
223
248
  export interface GetModelDefaultResponse extends HttpResponse {
224
249
  status: string;
225
- body: ErrorResponseOutput;
250
+ body: DocumentIntelligenceErrorResponseOutput;
226
251
  }
227
252
  export interface BuildModel202Headers {
228
253
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -236,7 +261,7 @@ export interface BuildModel202Response extends HttpResponse {
236
261
  }
237
262
  export interface BuildModelDefaultResponse extends HttpResponse {
238
263
  status: string;
239
- body: ErrorResponseOutput;
264
+ body: DocumentIntelligenceErrorResponseOutput;
240
265
  }
241
266
  /** The final response for long-running buildModel operation */
242
267
  export interface BuildModelLogicalResponse extends HttpResponse {
@@ -254,7 +279,7 @@ export interface ComposeModel202Response extends HttpResponse {
254
279
  }
255
280
  export interface ComposeModelDefaultResponse extends HttpResponse {
256
281
  status: string;
257
- body: ErrorResponseOutput;
282
+ body: DocumentIntelligenceErrorResponseOutput;
258
283
  }
259
284
  /** The final response for long-running composeModel operation */
260
285
  export interface ComposeModelLogicalResponse extends HttpResponse {
@@ -263,11 +288,11 @@ export interface ComposeModelLogicalResponse extends HttpResponse {
263
288
  /** The request has succeeded. */
264
289
  export interface AuthorizeModelCopy200Response extends HttpResponse {
265
290
  status: "200";
266
- body: CopyAuthorizationOutput;
291
+ body: ModelCopyAuthorizationOutput;
267
292
  }
268
293
  export interface AuthorizeModelCopyDefaultResponse extends HttpResponse {
269
294
  status: string;
270
- body: ErrorResponseOutput;
295
+ body: DocumentIntelligenceErrorResponseOutput;
271
296
  }
272
297
  export interface CopyModelTo202Headers {
273
298
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -281,7 +306,7 @@ export interface CopyModelTo202Response extends HttpResponse {
281
306
  }
282
307
  export interface CopyModelToDefaultResponse extends HttpResponse {
283
308
  status: string;
284
- body: ErrorResponseOutput;
309
+ body: DocumentIntelligenceErrorResponseOutput;
285
310
  }
286
311
  /** The final response for long-running copyModelTo operation */
287
312
  export interface CopyModelToLogicalResponse extends HttpResponse {
@@ -299,7 +324,7 @@ export interface ListModels200Response extends HttpResponse {
299
324
  }
300
325
  export interface ListModelsDefaultResponse extends HttpResponse {
301
326
  status: string;
302
- body: ErrorResponseOutput;
327
+ body: DocumentIntelligenceErrorResponseOutput;
303
328
  }
304
329
  export interface DeleteModel204Headers {
305
330
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -312,7 +337,7 @@ export interface DeleteModel204Response extends HttpResponse {
312
337
  }
313
338
  export interface DeleteModelDefaultResponse extends HttpResponse {
314
339
  status: string;
315
- body: ErrorResponseOutput;
340
+ body: DocumentIntelligenceErrorResponseOutput;
316
341
  }
317
342
  export interface BuildClassifier202Headers {
318
343
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -326,7 +351,7 @@ export interface BuildClassifier202Response extends HttpResponse {
326
351
  }
327
352
  export interface BuildClassifierDefaultResponse extends HttpResponse {
328
353
  status: string;
329
- body: ErrorResponseOutput;
354
+ body: DocumentIntelligenceErrorResponseOutput;
330
355
  }
331
356
  /** The final response for long-running buildClassifier operation */
332
357
  export interface BuildClassifierLogicalResponse extends HttpResponse {
@@ -344,7 +369,7 @@ export interface ListClassifiers200Response extends HttpResponse {
344
369
  }
345
370
  export interface ListClassifiersDefaultResponse extends HttpResponse {
346
371
  status: string;
347
- body: ErrorResponseOutput;
372
+ body: DocumentIntelligenceErrorResponseOutput;
348
373
  }
349
374
  export interface GetClassifier200Headers {
350
375
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -358,7 +383,7 @@ export interface GetClassifier200Response extends HttpResponse {
358
383
  }
359
384
  export interface GetClassifierDefaultResponse extends HttpResponse {
360
385
  status: string;
361
- body: ErrorResponseOutput;
386
+ body: DocumentIntelligenceErrorResponseOutput;
362
387
  }
363
388
  export interface DeleteClassifier204Headers {
364
389
  /** An opaque, globally-unique, client-generated string identifier for the request. */
@@ -371,7 +396,7 @@ export interface DeleteClassifier204Response extends HttpResponse {
371
396
  }
372
397
  export interface DeleteClassifierDefaultResponse extends HttpResponse {
373
398
  status: string;
374
- body: ErrorResponseOutput;
399
+ body: DocumentIntelligenceErrorResponseOutput;
375
400
  }
376
401
  export interface ClassifyDocumentFromStream202Headers {
377
402
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -385,7 +410,7 @@ export interface ClassifyDocumentFromStream202Response extends HttpResponse {
385
410
  }
386
411
  export interface ClassifyDocumentFromStreamDefaultResponse extends HttpResponse {
387
412
  status: string;
388
- body: ErrorResponseOutput;
413
+ body: DocumentIntelligenceErrorResponseOutput;
389
414
  }
390
415
  /** The final response for long-running classifyDocumentFromStream operation */
391
416
  export interface ClassifyDocumentFromStreamLogicalResponse extends HttpResponse {
@@ -403,7 +428,7 @@ export interface ClassifyDocument202Response extends HttpResponse {
403
428
  }
404
429
  export interface ClassifyDocumentDefaultResponse extends HttpResponse {
405
430
  status: string;
406
- body: ErrorResponseOutput;
431
+ body: DocumentIntelligenceErrorResponseOutput;
407
432
  }
408
433
  /** The final response for long-running classifyDocument operation */
409
434
  export interface ClassifyDocumentLogicalResponse extends HttpResponse {
@@ -412,11 +437,11 @@ export interface ClassifyDocumentLogicalResponse extends HttpResponse {
412
437
  /** The request has succeeded. */
413
438
  export interface GetClassifyResult200Response extends HttpResponse {
414
439
  status: "200";
415
- body: AnalyzeResultOperationOutput;
440
+ body: AnalyzeOperationOutput;
416
441
  }
417
442
  export interface GetClassifyResultDefaultResponse extends HttpResponse {
418
443
  status: string;
419
- body: ErrorResponseOutput;
444
+ body: DocumentIntelligenceErrorResponseOutput;
420
445
  }
421
446
  /** The request has succeeded. */
422
447
  export interface AuthorizeClassifierCopy200Response extends HttpResponse {
@@ -425,7 +450,7 @@ export interface AuthorizeClassifierCopy200Response extends HttpResponse {
425
450
  }
426
451
  export interface AuthorizeClassifierCopyDefaultResponse extends HttpResponse {
427
452
  status: string;
428
- body: ErrorResponseOutput;
453
+ body: DocumentIntelligenceErrorResponseOutput;
429
454
  }
430
455
  export interface CopyClassifierTo202Headers {
431
456
  /** The Retry-After header can indicate how long the client should wait before polling the operation status. */
@@ -439,7 +464,7 @@ export interface CopyClassifierTo202Response extends HttpResponse {
439
464
  }
440
465
  export interface CopyClassifierToDefaultResponse extends HttpResponse {
441
466
  status: string;
442
- body: ErrorResponseOutput;
467
+ body: DocumentIntelligenceErrorResponseOutput;
443
468
  }
444
469
  /** The final response for long-running copyClassifierTo operation */
445
470
  export interface CopyClassifierToLogicalResponse extends HttpResponse {
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAA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,EAAE,MAAM,CAAC;CAC9B;AAED,0FAA0F;AAC1F,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,cAAc,GAAG,0BAA0B,CAAC;CACtD;AAED,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,uCAAuC,CAAC;CAC/C;AAED,qEAAqE;AACrE,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,KAAK,CAAC;CACf"}
@@ -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=responses.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n PagedOperationDetailsOutput,\n ErrorResponseOutput,\n DocumentModelBuildOperationDetailsOutput,\n DocumentModelComposeOperationDetailsOutput,\n DocumentModelCopyToOperationDetailsOutput,\n DocumentClassifierCopyToOperationDetailsOutput,\n DocumentClassifierBuildOperationDetailsOutput,\n OperationDetailsOutput,\n ResourceDetailsOutput,\n AnalyzeResultOperationOutput,\n AnalyzeBatchResultOperationOutput,\n DocumentModelDetailsOutput,\n CopyAuthorizationOutput,\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: PagedOperationDetailsOutput;\n headers: RawHttpHeaders & ListOperations200Headers;\n}\n\nexport interface ListOperationsDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: OperationDetailsOutput;\n headers: RawHttpHeaders & GetOperation200Headers;\n}\n\nexport interface GetOperationDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The request has succeeded. */\nexport interface GetResourceInfo200Response extends HttpResponse {\n status: \"200\";\n body: ResourceDetailsOutput;\n}\n\nexport interface GetResourceInfoDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** The request has succeeded. */\nexport interface GetAnalyzeResult200Response extends HttpResponse {\n status: \"200\";\n body: AnalyzeResultOperationOutput;\n}\n\nexport interface GetAnalyzeResultDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: AnalyzeBatchResultOperationOutput;\n}\n\nexport interface GetAnalyzeBatchResultDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\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: ErrorResponseOutput;\n}\n\n/** The final response for long-running analyzeBatchDocuments operation */\nexport interface AnalyzeBatchDocumentsLogicalResponse extends HttpResponse {\n status: \"200\";\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: CopyAuthorizationOutput;\n}\n\nexport interface AuthorizeModelCopyDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\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: AnalyzeResultOperationOutput;\n}\n\nexport interface GetClassifyResultDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\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: ErrorResponseOutput;\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: ErrorResponseOutput;\n}\n\n/** The final response for long-running copyClassifierTo operation */\nexport interface CopyClassifierToLogicalResponse extends HttpResponse {\n status: \"200\";\n}\n"]}
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport 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"]}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.47.6"
8
+ "packageVersion": "7.52.7"
9
9
  }
10
10
  ]
11
11
  }
@@ -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,36 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT License.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.streamToUint8Array = streamToUint8Array;
6
+ const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
7
+ /**
8
+ * Converts a NodeJS.ReadableStream to a Uint8Array.
9
+ */
10
+ function streamToUint8Array(stream) {
11
+ return new Promise((resolve, reject) => {
12
+ const chunks = [];
13
+ stream.on("data", (chunk) => {
14
+ if (Buffer.isBuffer(chunk)) {
15
+ chunks.push(chunk);
16
+ }
17
+ else {
18
+ chunks.push(Buffer.from(chunk));
19
+ }
20
+ });
21
+ stream.on("end", () => {
22
+ resolve(new Uint8Array(Buffer.concat(chunks)));
23
+ });
24
+ stream.on("error", (e) => {
25
+ if (e && (e === null || e === void 0 ? void 0 : e.name) === "AbortError") {
26
+ reject(e);
27
+ }
28
+ else {
29
+ reject(new core_rest_pipeline_1.RestError(`Error reading response as text: ${e.message}`, {
30
+ code: core_rest_pipeline_1.RestError.PARSE_ERROR,
31
+ }));
32
+ }
33
+ });
34
+ });
35
+ }
36
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAOlC,gDA0BC;AA/BD,kEAAsD;AAEtD;;GAEG;AACH,SAAgB,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,8BAAS,CAAC,mCAAmC,CAAC,CAAC,OAAO,EAAE,EAAE;oBAC5D,IAAI,EAAE,8BAAS,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"]}